query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
$ANTLR end synpred1_expression $ANTLR start synpred3_expression
public final void synpred3_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:29:5: ( STRING ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:29:5: STRING { match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public void testAND3() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 227, \"+\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "public final void synpred1_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:7: ( LPAREN fpdef[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:8: LPAREN fpdef[null] COMMA\n {\n match(input,LPAREN,FOLLOW_LPAREN_in_synpred1_Python1249); if (state.failed) return ;\n pushFollow(FOLLOW_fpdef_in_synpred1_Python1251);\n fpdef(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred1_Python1254); if (state.failed) return ;\n\n }\n }", "public final void synpred1_ANTLRv3_fragment() throws RecognitionException {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:362:4: ( rewrite_template )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:362:4: rewrite_template\r\n {\r\n pushFollow(FOLLOW_rewrite_template_in_synpred1_ANTLRv32648);\r\n rewrite_template();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred2_ANTLRv3_fragment() throws RecognitionException {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:363:4: ( rewrite_tree_alternative )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:363:4: rewrite_tree_alternative\r\n {\r\n pushFollow(FOLLOW_rewrite_tree_alternative_in_synpred2_ANTLRv32653);\r\n rewrite_tree_alternative();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred3_Binding_fragment() throws RecognitionException { \n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:11: INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n {\n mINT(); if (state.failed) return ;\n match('.'); if (state.failed) return ;\n if ( (input.LA(1)>='\\u0000' && input.LA(1)<='-')||(input.LA(1)>='/' && input.LA(1)<='@')||(input.LA(1)>='[' && input.LA(1)<='^')||input.LA(1)=='`'||(input.LA(1)>='{' && input.LA(1)<='\\u00BF')||input.LA(1)=='\\u00D7'||input.LA(1)=='\\u00F7'||(input.LA(1)>='\\u0100' && input.LA(1)<='\\uFFFF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n }", "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ;\n\n }\n }", "public void testTIERCED3() throws Exception {\n\t\tObject retval = execLexer(\"TIERCED\", 83, \"blah\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"TIERCED\", expecting, actual);\n\t}", "public void testWS3() throws Exception {\n\t\tObject retval = execLexer(\"WS\", 284, \" \", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"WS\", expecting, actual);\n\t}", "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "protected void emit_Query3_AndKeyword_3_4_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "public final void synpred7_QL_fragment() throws RecognitionException {\n Expr expr =null;\n\n Body b1 =null;\n\n Body b2 =null;\n\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: ( 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}' )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}'\n {\n match(input,32,FOLLOW_32_in_synpred7_QL260); if (state.failed) return ;\n\n match(input,18,FOLLOW_18_in_synpred7_QL262); if (state.failed) return ;\n\n pushFollow(FOLLOW_orExpr_in_synpred7_QL266);\n expr=orExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,19,FOLLOW_19_in_synpred7_QL268); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL270); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL273);\n b1=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL274); if (state.failed) return ;\n\n match(input,30,FOLLOW_30_in_synpred7_QL276); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL278); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL282);\n b2=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL283); if (state.failed) return ;\n\n }\n\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred5_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:7: ( test[null] COMMA test[null] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:8: test[null] COMMA test[null]\n {\n pushFollow(FOLLOW_test_in_synpred5_Python2388);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred5_Python2391); if (state.failed) return ;\n pushFollow(FOLLOW_test_in_synpred5_Python2393);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public String newRuleFirstCondition(Situation threeSituationsAgo)\n {\n String firstPredicate;\n //---------------\n firstPredicate = \"ninguno\";\n\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8) &&\n (threeSituationsAgo.puzzle[2][0] == 9) &&\n (threeSituationsAgo.puzzle[3][0] == 13)\n )\n {\n firstPredicate = \"dosLineasYColumna\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8)\n )\n {\n firstPredicate = \"dosLineasListas\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4)\n )\n {\n firstPredicate = \"primeraLineaLista\";\n }//end if\n }//end else\n }//end else\n\n return firstPredicate;\n }", "private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }", "public void testSUBORDINARY3() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 35, \"canton\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "public final void synpred23_InternalMyDsl_fragment() throws RecognitionException { \n EObject lv_operand_3_0 = null;\n\n\n // InternalMyDsl.g:849:3: ( ( () ( (lv_operand_3_0= ruleSequence ) ) ) )\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n // InternalMyDsl.g:850:4: () ( (lv_operand_3_0= ruleSequence ) )\n {\n // InternalMyDsl.g:850:4: ()\n // InternalMyDsl.g:851:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:860:4: ( (lv_operand_3_0= ruleSequence ) )\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n {\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n // InternalMyDsl.g:862:6: lv_operand_3_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_3_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred1_PrePro() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred1_PrePro_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "public final void synpred4_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:668:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:668:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred4_Python2289);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred4_Python2292); if (state.failed) return ;\n\n }\n }", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "public final boolean synpred33_ul() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred33_ul_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "E3Rule createE3Rule();", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "protected void emit_Query3_AndKeyword_1_5_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "public final void synpred3_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:604:7: ( testlist[null] ASSIGN )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:604:8: testlist[null] ASSIGN\n {\n pushFollow(FOLLOW_testlist_in_synpred3_Python1761);\n testlist(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,ASSIGN,FOLLOW_ASSIGN_in_synpred3_Python1764); if (state.failed) return ;\n\n }\n }", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public void testOTHER_ORDINARY3() throws Exception {\n\t\tObject retval = execLexer(\"OTHER_ORDINARY\", 23, \"bend\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"OTHER_ORDINARY\", expecting, actual);\n\t}", "public final void synpred11_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred11_Python7158);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred11_Python7161); if (state.failed) return ;\n\n }\n }", "@Override\n\tprotected void initPredicate() {\n\t\t\n\t\tString pred1 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * header::Entry<ele,header,header> & size=0 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,header,header> & first=last & size=1 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,nextF,prevF> * last::Entry<ele2,nextL,prevL> * lseg(nextF,first,last,prevL,size1) & prevF=header & nextL=header & size=2+size1\";\n\t\t\n\t\tString pred2 = \"pred lseg(next,first,last,prev,size) == next=last & prev=first & size=0 || \" +\n\t\t\t\t\"next::Entry<item,next1,prev1> * lseg(next1,next,last,prev,size1) & prev1=first & size=size1+1\";\n\t\t\n\t\t\n//\t\tString pred0 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * dll(header,size)\";\n//\t\tString pred1 = \"pred dll(header,size) == header::Entry<ele,header,header> & size=0 || header::Entry<ele,next,prev> * nndll(next,header,header,prev,size)\";\n//\t\tString pred2 = \"pred nndll(curr,prev,header,prevH,size) == curr::Entry<ele,header,prev> & prevH=curr & size=1 || curr::Entry<ele,next,prev> * nndll(next,curr,header,prevH,size1) & size=size1+1\";\n\t\t\t\t\n\t\tString pred = pred1 + \";\" + pred2;\n\t\tInitializer.initPredicate(pred);\n\t}", "public void testMETAL1() throws Exception {\n\t\tObject retval = execLexer(\"METAL\", 128, \"or\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"METAL\", expecting, actual);\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private int disjunctMatch( int ix0, int ix1 )\n {\n \tint n = 0;\n if( ix0 == ix1 ){\n // TODO: complain, this should never happen.\n return 0;\n }\n \n if( ix0>ix1 ){\n int h = ix0;\n ix0 = ix1;\n ix1 = h;\n }\n \twhile( (ix0+n)<ix1 && (text[ix0+n] == text[ix1+n]) && (text[ix0+n] != STOP) ){\n \t n++;\n \t}\n \treturn n;\n }", "public void testMETAL3() throws Exception {\n\t\tObject retval = execLexer(\"METAL\", 130, \"azure\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"METAL\", expecting, actual);\n\t}", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "public final expressionParser.evaluator_return evaluator() throws RecognitionException {\n expressionParser.evaluator_return retval = new expressionParser.evaluator_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token STRING3=null;\n expressionParser.stringExpression_return stringExpression1 = null;\n\n expressionParser.freeExpression_return freeExpression2 = null;\n\n\n CommonTree STRING3_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:26:3: ( ( stringExpression | freeExpression | STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n {\n root_0 = (CommonTree)adaptor.nil();\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n loop1:\n do {\n int alt1=4;\n switch ( input.LA(1) ) {\n case STRING:\n {\n int LA1_2 = input.LA(2);\n\n if ( (synpred1_expression()) ) {\n alt1=1;\n }\n else if ( (synpred3_expression()) ) {\n alt1=3;\n }\n\n\n }\n break;\n case EPRESSIONCHAR:\n {\n alt1=1;\n }\n break;\n case IDENT:\n case INTEGER:\n case 36:\n case 38:\n case 39:\n case 46:\n case 47:\n case 50:\n case 51:\n {\n alt1=2;\n }\n break;\n\n }\n\n switch (alt1) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n \t {\n \t pushFollow(FOLLOW_stringExpression_in_evaluator98);\n \t stringExpression1=stringExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, stringExpression1.getTree());\n\n \t }\n \t break;\n \tcase 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:28:5: freeExpression\n \t {\n \t pushFollow(FOLLOW_freeExpression_in_evaluator105);\n \t freeExpression2=freeExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, freeExpression2.getTree());\n\n \t }\n \t break;\n \tcase 3 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n \t {\n \t STRING3=(Token)match(input,STRING,FOLLOW_STRING_in_evaluator111); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t STRING3_tree = (CommonTree)adaptor.create(STRING3);\n \t adaptor.addChild(root_0, STRING3_tree);\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "protected void emit_Query3___IsKeyword_1_2_AndKeyword_1_5_q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "static void printN3(Model m) {\n StmtIterator iter = m.listStatements();\n\n // print out the predicate, subject and object of each statement\n while (iter.hasNext()) {\n Statement stmt = iter.nextStatement(); // get next statement\n Resource subject = stmt.getSubject(); // get the subject\n Property predicate = stmt.getPredicate(); // get the predicate\n RDFNode object = stmt.getObject(); // get the object\n\n System.out.print(subject.toString());\n System.out.print(\" \" + predicate.toString() + \" \");\n if (object instanceof Resource) {\n System.out.print(object.toString());\n } else {\n // object is a literal\n System.out.print(\" \\\"\" + object.toString() + \"\\\"\");\n }\n\n System.out.println(\" .\");\n }\n }", "private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }", "public final void synpred3_InternalJavaJRExpression_fragment() throws RecognitionException { \n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:316:3: ( ( () ( ( '&&' ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:316:4: ( () ( ( '&&' ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:316:4: ( () ( ( '&&' ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:316:5: () ( ( '&&' ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:316:5: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:317:1: \n {\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:317:2: ( ( '&&' ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:318:1: ( '&&' )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:318:1: ( '&&' )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:319:2: '&&'\n {\n match(input,29,FOLLOW_29_in_synpred3_InternalJavaJRExpression701); if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public void testAND1() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 225, \"and\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public final void mKEYWORD_3() throws RecognitionException {\n try {\n int _type = KEYWORD_3;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:55:11: ( ')' )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:55:13: ')'\n {\n match(')'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "protected LR1_Grammar(Grammar grammar) {\n\t\tsuper(grammar);\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public final void synpred111_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ( ^( MINUS expr expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ^( MINUS expr expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_synpred111_AstValidator1949); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1951);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1953);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }", "protected void emit_Query3___AndKeyword_1_5_q_IsKeyword_1_2__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "public final void synpred3_InternalSafetyParser_fragment() throws RecognitionException { \n // InternalSafetyParser.g:2189:4: ( ( () LeftSquareBracket ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis ) )\n // InternalSafetyParser.g:2189:5: ( () LeftSquareBracket ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis )\n {\n // InternalSafetyParser.g:2189:5: ( () LeftSquareBracket ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis )\n // InternalSafetyParser.g:2190:5: () LeftSquareBracket ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis\n {\n // InternalSafetyParser.g:2190:5: ()\n // InternalSafetyParser.g:2191:5: \n {\n }\n\n match(input,LeftSquareBracket,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:2193:5: ( ( ruleExpr ) )\n // InternalSafetyParser.g:2194:6: ( ruleExpr )\n {\n // InternalSafetyParser.g:2194:6: ( ruleExpr )\n // InternalSafetyParser.g:2195:7: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_30);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n match(input,Comma,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:2199:5: ( ( ruleExpr ) )\n // InternalSafetyParser.g:2200:6: ( ruleExpr )\n {\n // InternalSafetyParser.g:2200:6: ( ruleExpr )\n // InternalSafetyParser.g:2201:7: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_33);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n match(input,RightParenthesis,FollowSets000.FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }", "public void testBIRD_FLYING_INSECT3() throws Exception {\n\t\tObject retval = execLexer(\"BIRD_FLYING_INSECT\", 176, \"bee\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"BIRD_FLYING_INSECT\", expecting, actual);\n\t}", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public /* synthetic */ SearchPrediction(String str, String str2, String str3, int i2, f fVar) {\n this(str, (i2 & 2) != 0 ? null : str2, (i2 & 4) != 0 ? e.a() : str3);\n }", "public String getLHS()\n {\n return lhs;\n }", "protected void emit_Property_FullStopKeyword_3_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "protected void emit_Query3___IsKeyword_1_2_AndKeyword_1_5_q__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }", "public void testSWIMMING_BEAST3() throws Exception {\n\t\tObject retval = execLexer(\"SWIMMING_BEAST\", 189, \"dolphins\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SWIMMING_BEAST\", expecting, actual);\n\t}", "public void testFUR3() throws Exception {\n\t\tObject retval = execLexer(\"FUR\", 135, \"erminois\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"FUR\", expecting, actual);\n\t}", "public void testPARTYPER3() throws Exception {\n\t\tObject retval = execLexer(\"PARTYPER\", 116, \"parted per\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"PARTYPER\", expecting, actual);\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public final void synpred7_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:9: ( IF or_test[null] ORELSE )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:10: IF or_test[null] ORELSE\n {\n match(input,IF,FOLLOW_IF_in_synpred7_Python4191); if (state.failed) return ;\n pushFollow(FOLLOW_or_test_in_synpred7_Python4193);\n or_test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,ORELSE,FOLLOW_ORELSE_in_synpred7_Python4196); if (state.failed) return ;\n\n }\n }", "private MetaSparqlRequest createRollbackMT3() {\n\t\t\tString sparqlStr = \"\"+\n\t\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\t\"DELETE { GRAPH \"+_graph+\" { \"+\n\t\t\t\t\tbuilderBindDelete\n\t\t\t\t\t+\" } }INSERT { GRAPH \"+_graph+\"{\"+\n\t\t\t\t\tbuilderBindInsert\n\t\t\t\t\t+ \" } } WHERE {?s ?p ?o}\";\t\n\t\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\t\tmsr.setTripleInsert(createTripleBaseMT3A());\n\t\t\tmsr.setTripleDelete(createTripleBaseMT3B());\n\t\t\treturn msr;\n\t\t}", "public final void synpred10_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:7: ( expr[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:8: expr[null] COMMA\n {\n pushFollow(FOLLOW_expr_in_synpred10_Python7017);\n expr(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred10_Python7020); if (state.failed) return ;\n\n }\n }", "static TreeSet<Noun> parse3rdNouns(Scanner data){\n\n\t\tint declension = 3;\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Noun> output = new TreeSet<Noun>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.NOUN_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString nominative = null;\n\t\t\tString genitive = null;\n\t\t\tchar gender = '-';\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\t\t\ttry{\n\t\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD;\n\t\t\t\t\t//System.out.println(\"No i-stem\");\n\t\t\t\t} catch(NumberFormatException e){ //I-Stem.\n\t\t\t\t\tchapter = Integer.parseInt(current[0].substring(0, 2));\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD_I;\n\t\t\t\t\t//System.out.println(\"i-stem\");\n\t\t\t\t}\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tint genderIndex = Values.getGenderIndex(gender);\n\t\t\ttrimAll(definitions);\n\t\t\tNoun currentNoun = new Noun(nominative, genitive, chapter, genderIndex, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentNoun);\n\t\t\toutput.add(currentNoun);\n\t\t}\n\n\t\treturn output;\n\t}", "HornSentence(Literal head, HashSet premises){\n this.head = head;\n this.premises = new HashSet(premises);\n }", "public final void synpred21_ul_fragment() throws RecognitionException {\n\t\tId i =null;\n\t\tExpr e =null;\n\n\t\t// ul.g:115:4: (i= id '=' e= expr SEMI )\n\t\t// ul.g:115:4: i= id '=' e= expr SEMI\n\t\t{\n\t\tpushFollow(FOLLOW_id_in_synpred21_ul521);\n\t\ti=id();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,36,FOLLOW_36_in_synpred21_ul523); if (state.failed) return;\n\t\tpushFollow(FOLLOW_expr_in_synpred21_ul529);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,SEMI,FOLLOW_SEMI_in_synpred21_ul531); if (state.failed) return;\n\t\t}\n\n\t}", "public final ANTLRv3Parser.atom_return atom() throws RecognitionException {\r\n ANTLRv3Parser.atom_return retval = new ANTLRv3Parser.atom_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token op=null;\r\n Token RULE_REF110=null;\r\n Token ARG_ACTION111=null;\r\n ANTLRv3Parser.terminal_return terminal107 =null;\r\n\r\n ANTLRv3Parser.range_return range108 =null;\r\n\r\n ANTLRv3Parser.notSet_return notSet109 =null;\r\n\r\n\r\n CommonTree op_tree=null;\r\n CommonTree RULE_REF110_tree=null;\r\n CommonTree ARG_ACTION111_tree=null;\r\n RewriteRuleTokenStream stream_BANG=new RewriteRuleTokenStream(adaptor,\"token BANG\");\r\n RewriteRuleTokenStream stream_ROOT=new RewriteRuleTokenStream(adaptor,\"token ROOT\");\r\n RewriteRuleTokenStream stream_RULE_REF=new RewriteRuleTokenStream(adaptor,\"token RULE_REF\");\r\n RewriteRuleTokenStream stream_ARG_ACTION=new RewriteRuleTokenStream(adaptor,\"token ARG_ACTION\");\r\n RewriteRuleSubtreeStream stream_range=new RewriteRuleSubtreeStream(adaptor,\"rule range\");\r\n RewriteRuleSubtreeStream stream_notSet=new RewriteRuleSubtreeStream(adaptor,\"rule notSet\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:5: ( terminal | range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range ) | notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet ) | RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) ) )\r\n int alt54=4;\r\n switch ( input.LA(1) ) {\r\n case CHAR_LITERAL:\r\n {\r\n int LA54_1 = input.LA(2);\r\n\r\n if ( (LA54_1==RANGE) ) {\r\n alt54=2;\r\n }\r\n else if ( (LA54_1==ACTION||LA54_1==BANG||LA54_1==CHAR_LITERAL||(LA54_1 >= REWRITE && LA54_1 <= ROOT)||LA54_1==RULE_REF||LA54_1==SEMPRED||LA54_1==STRING_LITERAL||(LA54_1 >= TOKEN_REF && LA54_1 <= TREE_BEGIN)||(LA54_1 >= 68 && LA54_1 <= 71)||LA54_1==73||(LA54_1 >= 76 && LA54_1 <= 77)||LA54_1==80||LA54_1==91||LA54_1==93) ) {\r\n alt54=1;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case STRING_LITERAL:\r\n case TOKEN_REF:\r\n case 73:\r\n {\r\n alt54=1;\r\n }\r\n break;\r\n case 93:\r\n {\r\n alt54=3;\r\n }\r\n break;\r\n case RULE_REF:\r\n {\r\n alt54=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt54) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:9: terminal\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_terminal_in_atom1800);\r\n terminal107=terminal();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, terminal107.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:256:4: range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n {\r\n pushFollow(FOLLOW_range_in_atom1805);\r\n range108=range();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_range.add(range108.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:3: ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n int alt48=2;\r\n int LA48_0 = input.LA(1);\r\n\r\n if ( (LA48_0==BANG||LA48_0==ROOT) ) {\r\n alt48=1;\r\n }\r\n else if ( (LA48_0==ACTION||LA48_0==CHAR_LITERAL||LA48_0==REWRITE||LA48_0==RULE_REF||LA48_0==SEMPRED||LA48_0==STRING_LITERAL||(LA48_0 >= TOKEN_REF && LA48_0 <= TREE_BEGIN)||(LA48_0 >= 68 && LA48_0 <= 71)||LA48_0==73||LA48_0==76||LA48_0==80||LA48_0==91||LA48_0==93) ) {\r\n alt48=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 48, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt48) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n int alt47=2;\r\n int LA47_0 = input.LA(1);\r\n\r\n if ( (LA47_0==ROOT) ) {\r\n alt47=1;\r\n }\r\n else if ( (LA47_0==BANG) ) {\r\n alt47=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 47, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt47) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1815); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1819); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: range, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 257:21: -> ^( $op range )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:24: ^( $op range )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_range.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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:258:9: \r\n {\r\n // AST REWRITE\r\n // elements: range\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 if ( state.backtracking==0 ) {\r\n\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 // 258:9: -> range\r\n {\r\n adaptor.addChild(root_0, stream_range.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:260:7: notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n {\r\n pushFollow(FOLLOW_notSet_in_atom1853);\r\n notSet109=notSet();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_notSet.add(notSet109.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:3: ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n int alt50=2;\r\n int LA50_0 = input.LA(1);\r\n\r\n if ( (LA50_0==BANG||LA50_0==ROOT) ) {\r\n alt50=1;\r\n }\r\n else if ( (LA50_0==ACTION||LA50_0==CHAR_LITERAL||LA50_0==REWRITE||LA50_0==RULE_REF||LA50_0==SEMPRED||LA50_0==STRING_LITERAL||(LA50_0 >= TOKEN_REF && LA50_0 <= TREE_BEGIN)||(LA50_0 >= 68 && LA50_0 <= 71)||LA50_0==73||LA50_0==76||LA50_0==80||LA50_0==91||LA50_0==93) ) {\r\n alt50=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 50, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt50) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n int alt49=2;\r\n int LA49_0 = input.LA(1);\r\n\r\n if ( (LA49_0==ROOT) ) {\r\n alt49=1;\r\n }\r\n else if ( (LA49_0==BANG) ) {\r\n alt49=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 49, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt49) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1862); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1866); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: notSet, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 261:21: -> ^( $op notSet )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:24: ^( $op notSet )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_notSet.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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:262:9: \r\n {\r\n // AST REWRITE\r\n // elements: notSet\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 if ( state.backtracking==0 ) {\r\n\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 // 262:9: -> notSet\r\n {\r\n adaptor.addChild(root_0, stream_notSet.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:9: RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n {\r\n RULE_REF110=(Token)match(input,RULE_REF,FOLLOW_RULE_REF_in_atom1902); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RULE_REF.add(RULE_REF110);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ( ARG_ACTION )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==ARG_ACTION) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ARG_ACTION\r\n {\r\n ARG_ACTION111=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1904); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ARG_ACTION.add(ARG_ACTION111);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:3: ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==BANG||LA53_0==ROOT) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==ACTION||LA53_0==CHAR_LITERAL||LA53_0==REWRITE||LA53_0==RULE_REF||LA53_0==SEMPRED||LA53_0==STRING_LITERAL||(LA53_0 >= TOKEN_REF && LA53_0 <= TREE_BEGIN)||(LA53_0 >= 68 && LA53_0 <= 71)||LA53_0==73||LA53_0==76||LA53_0==80||LA53_0==91||LA53_0==93) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==ROOT) ) {\r\n alt52=1;\r\n }\r\n else if ( (LA52_0==BANG) ) {\r\n alt52=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1914); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1918); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: ARG_ACTION, op, RULE_REF\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 265:21: -> ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:24: ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, \r\n stream_RULE_REF.nextNode()\r\n );\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:39: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:9: \r\n {\r\n // AST REWRITE\r\n // elements: ARG_ACTION, RULE_REF\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 if ( state.backtracking==0 ) {\r\n\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 // 266:9: -> ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:12: ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_RULE_REF.nextNode()\r\n , root_1);\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:23: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\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 }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\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 }", "private MetaSparqlRequest createPrepareInsertMT3() {\n\t\t\tString sparqlStr = \"\"+\n\t\t\t\t\t\"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\r\\n\" + \n\t\t\t\t\t\"PREFIX ub: \"+_ontology+\"\\r\\n\" + \n\t\t\t\t\t\"INSERT DATA { GRAPH \"+_graph+\" { \"+\n\t\t\t\t\tbuilderBindInsert\n\t\t\t\t\t+\" } }\";\n\t\t\t\n\t\t\tSparqlObj sparql= new SparqlObj(sparqlStr) ;\n\t\t\tEndPoint endPointHost= new EndPoint(_protocol,_host,_port,\"/update\");\n\t\t\tMetaSparqlRequest msr = new MetaSparqlRequest(new SparqlRequest(sparql,endPointHost));\n\t\t\tmsr.setTripleInsert(createTripleBaseMT3A());\n\t\t\treturn msr;\n\t\t}", "Expression getActionSentence();", "public final void synpred4_InternalSafetyParser_fragment() throws RecognitionException { \n // InternalSafetyParser.g:2269:4: ( ( () LeftParenthesis ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis ) )\n // InternalSafetyParser.g:2269:5: ( () LeftParenthesis ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis )\n {\n // InternalSafetyParser.g:2269:5: ( () LeftParenthesis ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis )\n // InternalSafetyParser.g:2270:5: () LeftParenthesis ( ( ruleExpr ) ) Comma ( ( ruleExpr ) ) RightParenthesis\n {\n // InternalSafetyParser.g:2270:5: ()\n // InternalSafetyParser.g:2271:5: \n {\n }\n\n match(input,LeftParenthesis,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:2273:5: ( ( ruleExpr ) )\n // InternalSafetyParser.g:2274:6: ( ruleExpr )\n {\n // InternalSafetyParser.g:2274:6: ( ruleExpr )\n // InternalSafetyParser.g:2275:7: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_30);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n match(input,Comma,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:2279:5: ( ( ruleExpr ) )\n // InternalSafetyParser.g:2280:6: ( ruleExpr )\n {\n // InternalSafetyParser.g:2280:6: ( ruleExpr )\n // InternalSafetyParser.g:2281:7: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_33);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n match(input,RightParenthesis,FollowSets000.FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }", "public MMExptTupleMatcher() {\n this.conceptMatcher = new kb.matching.SynonymConceptMatcher();\n // Need to set synonyms right here\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "protected void emit_Query3___AndKeyword_1_5_q_IsKeyword_1_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "public static float req3(float R1, float R2, float R3)\n\t{\n\t\treturn 1.0f / (1.0f/R1 + 1.0f/R1 + 1.0f/R3);\n\t}", "public final void rule__PredictiveVars__PredVarAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2647:1: ( ( RULE_STRING ) )\n // InternalMLRegression.g:2648:2: ( RULE_STRING )\n {\n // InternalMLRegression.g:2648:2: ( RULE_STRING )\n // InternalMLRegression.g:2649:3: RULE_STRING\n {\n before(grammarAccess.getPredictiveVarsAccess().getPredVarSTRINGTerminalRuleCall_3_1_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getPredictiveVarsAccess().getPredVarSTRINGTerminalRuleCall_3_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 }", "protected void emit_Query2_Query3___CompareKeyword_0_AndKeyword_4___or___IfKeyword_0___IsKeyword_1_2_AndKeyword_1_5_q__a_ThenKeyword_2_WhereKeyword_4__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "public final void synpred116_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: ( const_expr )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: const_expr\n {\n pushFollow(FOLLOW_const_expr_in_synpred116_AstValidator2032);\n const_expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "private static boolean isThreeCombinedVerbs(AnalyzedTokenReadings[] tokens, int first, int last) {\n return tokens[first].matchesPosTagRegex(\"VER:(AUX|INF|PA[12]).*\") && tokens[first + 1].matchesPosTagRegex(\"VER:(.*INF|PA[12]).*\")\n && tokens[last].matchesPosTagRegex(\"VER:(MOD|AUX).*\");\n }", "private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}", "public interface LLkGrammarAnalyzer extends GrammarAnalyzer {\n\n\n public boolean deterministic(AlternativeBlock blk);\n\n public boolean deterministic(OneOrMoreBlock blk);\n\n public boolean deterministic(ZeroOrMoreBlock blk);\n\n public Lookahead FOLLOW(int k, RuleEndElement end);\n\n public Lookahead look(int k, ActionElement action);\n\n public Lookahead look(int k, AlternativeBlock blk);\n\n public Lookahead look(int k, BlockEndElement end);\n\n public Lookahead look(int k, CharLiteralElement atom);\n\n public Lookahead look(int k, CharRangeElement end);\n\n public Lookahead look(int k, GrammarAtom atom);\n\n public Lookahead look(int k, OneOrMoreBlock blk);\n\n public Lookahead look(int k, RuleBlock blk);\n\n public Lookahead look(int k, RuleEndElement end);\n\n public Lookahead look(int k, RuleRefElement rr);\n\n public Lookahead look(int k, StringLiteralElement atom);\n\n public Lookahead look(int k, SynPredBlock blk);\n\n public Lookahead look(int k, TokenRangeElement end);\n\n public Lookahead look(int k, TreeElement end);\n\n public Lookahead look(int k, WildcardElement wc);\n\n public Lookahead look(int k, ZeroOrMoreBlock blk);\n\n public Lookahead look(int k, String rule);\n\n public void setGrammar(Grammar g);\n\n public boolean subruleCanBeInverted(AlternativeBlock blk, boolean forLexer);\n}", "public static Annotation ruleResolvePronoun(Annotation[] basenps, int num, Document doc)\r\n{\n Annotation np2 = basenps[num];\r\n // Get some properties of the np\r\n FeatureUtils.PRTypeEnum type2 = Pronoun.getValue(np2, doc);\r\n String str2 = doc.getAnnotString(np2);\r\n boolean reflexive = FeatureUtils.isReflexive(str2);\r\n // Get the possible antecedents\r\n ArrayList<Annotation> antes = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums = new ArrayList<Integer>();\r\n if (DEBUG) {\r\n System.err.println(\"Pronoun: \" + doc.getAnnotText(np2));\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.FIRST) {\r\n if (NumberEnum.SINGLE.equals(Number.getValue(np2, doc)))\r\n return ruleResolvePronounI(np2, basenps, num, doc);\r\n else\r\n return ruleResolvePronounWe(np2, basenps, num, doc);\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.SECOND)\r\n return ruleResolvePronounYou(np2, basenps, num, doc);\r\n else {\r\n int sentnum = 0;\r\n for (int i = num - 1; i >= 0 && sentnum <= 3; i--) {\r\n Annotation np1 = basenps[i];\r\n sentnum = sentNum(np1, np2, doc);\r\n if (DEBUG) {\r\n System.err.println(\"Possible antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n if (!isNumberIncompatible(np1, np2, doc) && !isGenderIncompatible(np1, np2, doc)\r\n && !isAnimacyIncompatible(np1, np2, doc) && isWNClassComp(np1, np2, doc) && isProComp(np1, np2, doc)\r\n && !Embedded.getValue(np1, doc) && isSyntax(np1, np2, doc)) {\r\n if (DEBUG) {\r\n System.err.println(\"Candidate antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n antes.add(0, np1);\r\n nums.add(0, i);\r\n }\r\n }\r\n }\r\n if (antes.size() == 0) return null;\r\n // Check for reflexsives\r\n if (FeatureUtils.isReflexive(doc.getAnnotText(np2))) {\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n if (antes.size() == 1) {\r\n // Rule 1: Unique in discourse\r\n if (DEBUG) {\r\n System.err.println(\"Rule 1 match!!!\");\r\n }\r\n union(nums.get(0).intValue(), num);\r\n return antes.get(0);\r\n }\r\n // Rule 2: Reflexive -- the last possible antecedent\r\n if (reflexive) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 2 match!!!\");\r\n }\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n // Rule 3: Unique current + Prior\r\n ArrayList<Annotation> antes1 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums1 = new ArrayList<Integer>();\r\n int counter = 0;\r\n for (Annotation np1 : antes) {\r\n if (sentNum(np1, np2, doc) < 2) {\r\n antes1.add(np1);\r\n nums1.add(nums.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes1.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 3 match!!!\");\r\n }\r\n union(nums1.get(0).intValue(), num);\r\n return antes1.get(0);\r\n }\r\n // Rule 4: Possesive Pro\r\n\r\n if (FeatureUtils.isPossesive(str2) && antes1.size() > 0) {\r\n Integer found = null;\r\n Annotation ant = null;\r\n boolean multiple = false;\r\n for (int i = 0; i < antes1.size() && !multiple; i++) {\r\n Annotation np1 = antes1.get(i);\r\n if (doc.getAnnotText(np1).equalsIgnoreCase(str2) && sentNum(np1, np2, doc) == 1) {\r\n if (found == null) {\r\n found = nums1.get(i);\r\n ant = antes1.get(i);\r\n }\r\n else {\r\n multiple = true;\r\n }\r\n }\r\n }\r\n if (!multiple && found != null) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 4 match!!!\");\r\n }\r\n union(found.intValue(), num);\r\n return ant;\r\n }\r\n }\r\n // Rule #5: Unique in the current sentence\r\n ArrayList<Annotation> antes2 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums2 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes1) {\r\n if (sentNum(np1, np2, doc) < 1) {\r\n antes2.add(np1);\r\n nums2.add(nums1.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes2.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 5 match!!!\");\r\n }\r\n union(nums2.get(0).intValue(), num);\r\n return antes2.get(0);\r\n }\r\n // Extra Rule: Unique in the current clause (or parent clauses\r\n AnnotationSet parse = doc.getAnnotationSet(Constants.PARSE);\r\n Annotation clause = SyntaxUtils.getClause(np2, parse);\r\n while (clause != null) {\r\n ArrayList<Annotation> antes3 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums3 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes2) {\r\n if (clause.covers(np1)) {\r\n antes3.add(np1);\r\n nums3.add(nums2.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (DEBUG) {\r\n System.err.println(antes3.size() + \" antecedents in the clause\");\r\n }\r\n if (antes3.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Clause rule match!!!\");\r\n }\r\n union(nums3.get(0).intValue(), num);\r\n return antes3.get(0);\r\n }\r\n clause = SyntaxUtils.getParentClause(clause, parse);\r\n }\r\n\r\n // Rule #6: Unique Subject\r\n\r\n // //Look for the subject in the current sentence\r\n // boolean unique = true;\r\n // Annotation subject = null;\r\n // Integer subjectNum = null;\r\n // for(int i=antes.size()-1; i>=0; i--){\r\n // Annotation np1 = antes.get(i);\r\n // if(sentNum(np1, np2, annotations, text)==0){\r\n // if(FeatureUtils.getGramRole(np1, annotations, text).equals(\"SUBJECT\")){\r\n // //&&SyntaxUtils.isMainClause(np1, parse)){\r\n // if(DEBUG)\r\n // System.err.println(\"Rule 6 match!!!\");\r\n // if(subjectNum!=null)\r\n // unique=false;\r\n // subjectNum = nums.get(i);\r\n // subject = antes.get(i);\r\n // }\r\n // }\r\n // }\r\n\r\n // if(subject!=null&&unique){\r\n // union(subjectNum.intValue(), num);\r\n // return subject;\r\n // }\r\n\r\n // Look for the subject in the previous sentence\r\n boolean unique = true;\r\n Annotation subject = null;\r\n Integer subjectNum = null;\r\n if (GramRole.getValue(np2, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np2, parse)){\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 1) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6 match!!!\");\r\n }\r\n if (subjectNum != null) {\r\n unique = false;\r\n }\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null && unique) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n subjectNum = null;\r\n subject = null;\r\n\r\n // One more Rule -- assign possessive pronouns to the last subject\r\n if (type2.equals(FeatureUtils.PRTypeEnum.POSSESSIVE)) {\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 0) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6a match!!!\");\r\n }\r\n if (subject == null) {\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n }\r\n\r\n return null;\r\n}", "public final void synpred13_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: ( REFERENCECHAR simpleExpr )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: REFERENCECHAR simpleExpr\n {\n match(input,REFERENCECHAR,FOLLOW_REFERENCECHAR_in_synpred13_expression246); if (state.failed) return ;\n pushFollow(FOLLOW_simpleExpr_in_synpred13_expression249);\n simpleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "Rule Const() {\n // Push 1 ConstNode onto the value stack\n StringVar constName = new StringVar(\"\");\n return Sequence(\n \"const \",\n FieldType(),\n Identifier(),\n actions.pop(),\n ACTION(constName.set(match())),\n \"= \",\n ConstValue(),\n Optional(ListSeparator()),\n WhiteSpace(),\n push(new IdentifierNode(constName.get())),\n actions.pushConstNode());\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}" ]
[ "0.6617614", "0.5525349", "0.5510534", "0.5425687", "0.5421465", "0.5406464", "0.52745426", "0.5267957", "0.5246731", "0.52052605", "0.5175054", "0.5103826", "0.5073342", "0.5062878", "0.50158805", "0.4972953", "0.49650663", "0.49420297", "0.4919945", "0.49180114", "0.49062952", "0.4900764", "0.48835066", "0.48553813", "0.48520654", "0.4848822", "0.48315987", "0.48174572", "0.48128548", "0.48009682", "0.47891936", "0.47769922", "0.47727722", "0.47712004", "0.47671178", "0.47646564", "0.47618154", "0.47551772", "0.47507837", "0.4730669", "0.47248057", "0.4718933", "0.46970725", "0.46903843", "0.46750996", "0.46741676", "0.46597636", "0.46500522", "0.46498746", "0.46483928", "0.4640856", "0.46343625", "0.4624934", "0.46233046", "0.46180162", "0.46077734", "0.4605205", "0.45879245", "0.45871264", "0.4578749", "0.45737538", "0.45685032", "0.45644715", "0.45629337", "0.4557497", "0.45549354", "0.4553921", "0.45480737", "0.45356822", "0.4533108", "0.45284793", "0.4520856", "0.45175064", "0.45042858", "0.45032012", "0.45003605", "0.4492904", "0.44877434", "0.4484541", "0.44689867", "0.44685885", "0.4467014", "0.44600025", "0.44421056", "0.44421008", "0.442994", "0.44296432", "0.44294724", "0.4428547", "0.4427245", "0.44121954", "0.44108108", "0.4405746", "0.44022462", "0.43990704", "0.4392355", "0.43896797", "0.43846512", "0.4382291", "0.43801326" ]
0.6619255
0
$ANTLR end synpred3_expression $ANTLR start synpred6_expression
public final void synpred6_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:14: ( nameExpression ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:14: nameExpression { pushFollow(FOLLOW_nameExpression_in_synpred6_expression160); nameExpression(); state._fsp--; if (state.failed) return ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ;\n\n }\n }", "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "public final void synpred3_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ;\n\n }\n }", "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred7_QL_fragment() throws RecognitionException {\n Expr expr =null;\n\n Body b1 =null;\n\n Body b2 =null;\n\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: ( 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}' )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}'\n {\n match(input,32,FOLLOW_32_in_synpred7_QL260); if (state.failed) return ;\n\n match(input,18,FOLLOW_18_in_synpred7_QL262); if (state.failed) return ;\n\n pushFollow(FOLLOW_orExpr_in_synpred7_QL266);\n expr=orExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,19,FOLLOW_19_in_synpred7_QL268); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL270); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL273);\n b1=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL274); if (state.failed) return ;\n\n match(input,30,FOLLOW_30_in_synpred7_QL276); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL278); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL282);\n b2=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL283); if (state.failed) return ;\n\n }\n\n }", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred6_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:7: ( ( decorators )? DEF )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )? DEF\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )?\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( (LA156_0==AT) ) {\n alt156=1;\n }\n switch (alt156) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: decorators\n {\n pushFollow(FOLLOW_decorators_in_synpred6_Python3455);\n decorators();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n match(input,DEF,FOLLOW_DEF_in_synpred6_Python3458); if (state.failed) return ;\n\n }\n }", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred5_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:7: ( test[null] COMMA test[null] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:8: test[null] COMMA test[null]\n {\n pushFollow(FOLLOW_test_in_synpred5_Python2388);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred5_Python2391); if (state.failed) return ;\n pushFollow(FOLLOW_test_in_synpred5_Python2393);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "public final void synpred3_Binding_fragment() throws RecognitionException { \n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:11: INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n {\n mINT(); if (state.failed) return ;\n match('.'); if (state.failed) return ;\n if ( (input.LA(1)>='\\u0000' && input.LA(1)<='-')||(input.LA(1)>='/' && input.LA(1)<='@')||(input.LA(1)>='[' && input.LA(1)<='^')||input.LA(1)=='`'||(input.LA(1)>='{' && input.LA(1)<='\\u00BF')||input.LA(1)=='\\u00D7'||input.LA(1)=='\\u00F7'||(input.LA(1)>='\\u0100' && input.LA(1)<='\\uFFFF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "public final void synpred2_ANTLRv3_fragment() throws RecognitionException {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:363:4: ( rewrite_tree_alternative )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:363:4: rewrite_tree_alternative\r\n {\r\n pushFollow(FOLLOW_rewrite_tree_alternative_in_synpred2_ANTLRv32653);\r\n rewrite_tree_alternative();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "public final void synpred7_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:9: ( IF or_test[null] ORELSE )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:10: IF or_test[null] ORELSE\n {\n match(input,IF,FOLLOW_IF_in_synpred7_Python4191); if (state.failed) return ;\n pushFollow(FOLLOW_or_test_in_synpred7_Python4193);\n or_test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,ORELSE,FOLLOW_ORELSE_in_synpred7_Python4196); if (state.failed) return ;\n\n }\n }", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public String newRuleFirstCondition(Situation threeSituationsAgo)\n {\n String firstPredicate;\n //---------------\n firstPredicate = \"ninguno\";\n\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8) &&\n (threeSituationsAgo.puzzle[2][0] == 9) &&\n (threeSituationsAgo.puzzle[3][0] == 13)\n )\n {\n firstPredicate = \"dosLineasYColumna\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8)\n )\n {\n firstPredicate = \"dosLineasListas\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4)\n )\n {\n firstPredicate = \"primeraLineaLista\";\n }//end if\n }//end else\n }//end else\n\n return firstPredicate;\n }", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "public final void synpred4_QL_fragment() throws RecognitionException {\r\n IfThenElseStatement ifthels =null;\r\n\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: (ifthels= ifThenElseStatement )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: ifthels= ifThenElseStatement\r\n {\r\n pushFollow(FOLLOW_ifThenElseStatement_in_synpred4_QL196);\r\n ifthels=ifThenElseStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "public final void synpred6_InternalJavaJRExpression_fragment() throws RecognitionException { \n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:3: ( ( () ( ( ruleRelationalOp ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:4: ( () ( ( ruleRelationalOp ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:4: ( () ( ( ruleRelationalOp ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:5: () ( ( ruleRelationalOp ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:5: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:566:1: \n {\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:566:2: ( ( ruleRelationalOp ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:567:1: ( ruleRelationalOp )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:567:1: ( ruleRelationalOp )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:568:1: ruleRelationalOp\n {\n pushFollow(FOLLOW_ruleRelationalOp_in_synpred6_InternalJavaJRExpression1299);\n ruleRelationalOp();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public StatementNode getStatementNodeOnTrue();", "public final expressionParser.evaluator_return evaluator() throws RecognitionException {\n expressionParser.evaluator_return retval = new expressionParser.evaluator_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token STRING3=null;\n expressionParser.stringExpression_return stringExpression1 = null;\n\n expressionParser.freeExpression_return freeExpression2 = null;\n\n\n CommonTree STRING3_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:26:3: ( ( stringExpression | freeExpression | STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n {\n root_0 = (CommonTree)adaptor.nil();\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n loop1:\n do {\n int alt1=4;\n switch ( input.LA(1) ) {\n case STRING:\n {\n int LA1_2 = input.LA(2);\n\n if ( (synpred1_expression()) ) {\n alt1=1;\n }\n else if ( (synpred3_expression()) ) {\n alt1=3;\n }\n\n\n }\n break;\n case EPRESSIONCHAR:\n {\n alt1=1;\n }\n break;\n case IDENT:\n case INTEGER:\n case 36:\n case 38:\n case 39:\n case 46:\n case 47:\n case 50:\n case 51:\n {\n alt1=2;\n }\n break;\n\n }\n\n switch (alt1) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n \t {\n \t pushFollow(FOLLOW_stringExpression_in_evaluator98);\n \t stringExpression1=stringExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, stringExpression1.getTree());\n\n \t }\n \t break;\n \tcase 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:28:5: freeExpression\n \t {\n \t pushFollow(FOLLOW_freeExpression_in_evaluator105);\n \t freeExpression2=freeExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, freeExpression2.getTree());\n\n \t }\n \t break;\n \tcase 3 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n \t {\n \t STRING3=(Token)match(input,STRING,FOLLOW_STRING_in_evaluator111); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t STRING3_tree = (CommonTree)adaptor.create(STRING3);\n \t adaptor.addChild(root_0, STRING3_tree);\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "@Override\n\tprotected void initPredicate() {\n\t\t\n\t\tString pred1 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * header::Entry<ele,header,header> & size=0 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,header,header> & first=last & size=1 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,nextF,prevF> * last::Entry<ele2,nextL,prevL> * lseg(nextF,first,last,prevL,size1) & prevF=header & nextL=header & size=2+size1\";\n\t\t\n\t\tString pred2 = \"pred lseg(next,first,last,prev,size) == next=last & prev=first & size=0 || \" +\n\t\t\t\t\"next::Entry<item,next1,prev1> * lseg(next1,next,last,prev,size1) & prev1=first & size=size1+1\";\n\t\t\n\t\t\n//\t\tString pred0 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * dll(header,size)\";\n//\t\tString pred1 = \"pred dll(header,size) == header::Entry<ele,header,header> & size=0 || header::Entry<ele,next,prev> * nndll(next,header,header,prev,size)\";\n//\t\tString pred2 = \"pred nndll(curr,prev,header,prevH,size) == curr::Entry<ele,header,prev> & prevH=curr & size=1 || curr::Entry<ele,next,prev> * nndll(next,curr,header,prevH,size1) & size=size1+1\";\n\t\t\t\t\n\t\tString pred = pred1 + \";\" + pred2;\n\t\tInitializer.initPredicate(pred);\n\t}", "@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}", "public final void synpred71_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_5=null;\n EObject lv_elseStatement_6_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2857:2: (otherlv_5= KEYWORD_47 ( (lv_elseStatement_6_0= ruleStatement ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2857:2: otherlv_5= KEYWORD_47 ( (lv_elseStatement_6_0= ruleStatement ) )\n {\n otherlv_5=(Token)match(input,KEYWORD_47,FOLLOW_KEYWORD_47_in_synpred71_InternalMitraParser5673); if (state.failed) return ;\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2861:1: ( (lv_elseStatement_6_0= ruleStatement ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2862:1: (lv_elseStatement_6_0= ruleStatement )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2862:1: (lv_elseStatement_6_0= ruleStatement )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2863:3: lv_elseStatement_6_0= ruleStatement\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getIfStatementAccess().getElseStatementStatementParserRuleCall_5_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleStatement_in_synpred71_InternalMitraParser5693);\n lv_elseStatement_6_0=ruleStatement();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "Expression getActionSentence();", "public interface SubstPred extends Reason {\r\n\r\n /**\r\n * Get this reason.\r\n *\r\n * @return This reason.\r\n */\r\n public SubstPred getSubstPred();\r\n\r\n /**\r\n * Get reference to already proven formula.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public String getReference();\r\n\r\n /**\r\n * Get predicate variable (with subject variables as parameters) that should be replaced.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public Element getPredicateVariable();\r\n\r\n /**\r\n * Get substitute formula. Must contain the subject variables from\r\n * {@link #getPredicateVariable()}.\r\n *\r\n * @return Replacement term.\r\n */\r\n public Element getSubstituteFormula();\r\n\r\n}", "public final boolean synpred33_ul() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred33_ul_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "public void testWS6() throws Exception {\n\t\tObject retval = execLexer(\"WS\", 287, \"\\t \\t \", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"WS\", expecting, actual);\n\t}", "@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public final void synpred11_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: ( nameExprTerm )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: nameExprTerm\n {\n pushFollow(FOLLOW_nameExprTerm_in_synpred11_expression222);\n nameExprTerm();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "E6Rule createE6Rule();", "public final void synpred24_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_6=null;\n EObject lv_operand_5_0 = null;\n\n\n // InternalMyDsl.g:881:3: ( ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' ) )\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n {\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n // InternalMyDsl.g:882:4: () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!'\n {\n // InternalMyDsl.g:882:4: ()\n // InternalMyDsl.g:883:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:892:4: ( (lv_operand_5_0= ruleSequence ) )\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n {\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n // InternalMyDsl.g:894:6: lv_operand_5_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_15);\n lv_operand_5_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_6=(Token)match(input,26,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "@Override\n public Predicate generateOutputStructure(Predicate predicate) {\n Predicate modifiedPredicate = new Predicate(predicate.getPredicateName());\n phrase = nlgFactory.createClause();\n //create phrase using the annotations of each predicate element describing its function in the sentence\n for (PredicateElement element : predicate.getElements()) {\n if (element != null && element.getPredicateElementAnnotation() != null) {\n PredicateElementAnnotation elementAnnotation = element.getPredicateElementAnnotation();\n if (elementAnnotation.equals(PredicateElementAnnotation.subject)) {\n phrase.setSubject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.verb)) {\n phrase.setVerb(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.directObject)) {\n phrase.setObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.indirectObject)) {\n phrase.setIndirectObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.complement)) {\n phrase.setComplement(element.toString());\n }\n }\n }\n //get annotation which affect whole predicate and use them to create correct type of phrase\n if (predicate.getPredicateAnnotations() != null) {\n List<PredicateAnnotation> predicateAnnotations = predicate.getPredicateAnnotations();\n if (predicateAnnotations.contains(PredicateAnnotation.NEGATION)) {\n phrase.setFeature(Feature.NEGATED, true);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.YES_NO)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW_MANY)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW_MANY);\n }\n if (predicateAnnotations.contains((PredicateAnnotation.IMPERATIVE))) {\n phrase.setFeature(Feature.FORM, Form.IMPERATIVE);\n }\n }\n //create the output sentence\n String resultString = realiser.realiseSentence(phrase);\n setOutputStructure(resultString);\n //split output structure into its elements\n String resStructure = phrase.getParent().getFeatureAsString((\"textComponents\"));\n resStructure = resStructure.replace(\"[\", \"\");\n resStructure = resStructure.replace(\"]\", \"\");\n ArrayList<String> outputOrderList = new ArrayList<>();\n String[] resSplit = resStructure.split(\",\");\n for (int i = 0; i < resSplit.length; i++) {\n outputOrderList.add(resSplit[i].trim());\n }\n //create new predicate element list\n ArrayList<PredicateElement> modifiedPredicateElementList = new ArrayList<>();\n //use this orderList as new predicate element list -> order important for planning\n boolean elementAlreadyAdded = false;\n for (String outputOrderElement : outputOrderList) {\n //keep old predicate if worldobjectid and type were already set (\"I\", \"you\")\n for(PredicateElement element: predicate.getElements()) {\n if(element.getWorldObjectId() != null && element.toString().equals(outputOrderElement)) {\n modifiedPredicateElementList.add(element);\n elementAlreadyAdded = true;\n break;\n }\n }\n if(elementAlreadyAdded) {\n elementAlreadyAdded = false;\n continue;\n }\n modifiedPredicateElementList.add(new StringPredicateElement(outputOrderElement));\n }\n if(phrase.hasFeature(Feature.INTERROGATIVE_TYPE)) {\n modifiedPredicateElementList.add(new StringPredicateElement(\"?\"));\n }else {\n modifiedPredicateElementList.add(new StringPredicateElement(\".\"));\n }\n //set new elements for the modified predicate\n modifiedPredicate.setElements(modifiedPredicateElementList.toArray(new StringPredicateElement[modifiedPredicateElementList.size()]));\n return modifiedPredicate;\n }", "public void testSUBORDINARY6() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 38, \"orle\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "public abstract PredicateExpr getNext();", "public interface ForteLangConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMPARATOR_OP = 1;\n /** RegularExpression Id. */\n int BOOLEAN_OP = 2;\n /** RegularExpression Id. */\n int SET_OP = 3;\n /** RegularExpression Id. */\n int OP = 4;\n /** RegularExpression Id. */\n int CONCAT = 5;\n /** RegularExpression Id. */\n int SELECT = 6;\n /** RegularExpression Id. */\n int CONTAINS = 7;\n /** RegularExpression Id. */\n int NUMBER = 8;\n /** RegularExpression Id. */\n int FLOATING_POINT_NUMBER = 9;\n /** RegularExpression Id. */\n int BOOLEAN = 10;\n /** RegularExpression Id. */\n int STRING = 11;\n /** RegularExpression Id. */\n int REGEX_STRING = 12;\n /** RegularExpression Id. */\n int INCLUDE = 13;\n /** RegularExpression Id. */\n int IN = 14;\n /** RegularExpression Id. */\n int MATCH = 15;\n /** RegularExpression Id. */\n int OPENBRACKET = 16;\n /** RegularExpression Id. */\n int CLOSEBRACKET = 17;\n /** RegularExpression Id. */\n int OPENSBRACKET = 18;\n /** RegularExpression Id. */\n int CLOSESBRACKET = 19;\n /** RegularExpression Id. */\n int COMMA = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int SEMICOLON = 22;\n /** RegularExpression Id. */\n int OPENCBRACKET = 23;\n /** RegularExpression Id. */\n int CLOSECBRACKET = 24;\n /** RegularExpression Id. */\n int NUM = 25;\n /** RegularExpression Id. */\n int LST = 26;\n /** RegularExpression Id. */\n int SET = 27;\n /** RegularExpression Id. */\n int FUN = 28;\n /** RegularExpression Id. */\n int BOO = 29;\n /** RegularExpression Id. */\n int STR = 30;\n /** RegularExpression Id. */\n int COLON = 31;\n /** RegularExpression Id. */\n int VAR_NAME = 32;\n /** RegularExpression Id. */\n int FUNCTION_ARROW = 33;\n /** RegularExpression Id. */\n int GUARD_START = 34;\n /** RegularExpression Id. */\n int GUARD = 35;\n /** RegularExpression Id. */\n int GUARD_ARROW = 36;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int BlockComment = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<COMPARATOR_OP>\",\n \"<BOOLEAN_OP>\",\n \"<SET_OP>\",\n \"<OP>\",\n \"\\\"++\\\"\",\n \"\\\".\\\"\",\n \"\\\"?\\\"\",\n \"<NUMBER>\",\n \"<FLOATING_POINT_NUMBER>\",\n \"<BOOLEAN>\",\n \"<STRING>\",\n \"<REGEX_STRING>\",\n \"\\\"include\\\"\",\n \"\\\"in\\\"\",\n \"\\\"match\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\",\\\"\",\n \"\\\"=\\\"\",\n \"\\\";\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"num\\\"\",\n \"\\\"list\\\"\",\n \"\\\"set\\\"\",\n \"\\\"func\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"str\\\"\",\n \"\\\":\\\"\",\n \"<VAR_NAME>\",\n \"\\\"->\\\"\",\n \"\\\"|>\\\"\",\n \"\\\"|\\\"\",\n \"\\\"->>\\\"\",\n \"<token of kind 37>\",\n \"<token of kind 38>\",\n \"\\\"#[\\\"\",\n \"\\\"#[\\\"\",\n \"<token of kind 41>\",\n \"\\\"]#\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n };\n\n}", "public final void synpred1_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:7: ( LPAREN fpdef[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:8: LPAREN fpdef[null] COMMA\n {\n match(input,LPAREN,FOLLOW_LPAREN_in_synpred1_Python1249); if (state.failed) return ;\n pushFollow(FOLLOW_fpdef_in_synpred1_Python1251);\n fpdef(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred1_Python1254); if (state.failed) return ;\n\n }\n }", "public final void synpred1_ANTLRv3_fragment() throws RecognitionException {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:362:4: ( rewrite_template )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:362:4: rewrite_template\r\n {\r\n pushFollow(FOLLOW_rewrite_template_in_synpred1_ANTLRv32648);\r\n rewrite_template();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "public final void synpred69_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_9=null;\n EObject lv_lhs_10_0 = null;\n\n Enumerator lv_operator_11_0 = null;\n\n EObject lv_expression_12_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2624:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2632:2: (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+\n int cnt135=0;\n loop135:\n do {\n int alt135=2;\n int LA135_0 = input.LA(1);\n\n if ( (LA135_0==KEYWORD_8) ) {\n alt135=1;\n }\n\n\n switch (alt135) {\n \tcase 1 :\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2633:2: otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t {\n \t otherlv_9=(Token)match(input,KEYWORD_8,FOLLOW_KEYWORD_8_in_synpred69_InternalMitraParser5221); if (state.failed) return ;\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2637:1: ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t {\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2639:3: lv_lhs_10_0= ruleVariableAccess\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getLhsVariableAccessParserRuleCall_4_1_1_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleVariableAccess_in_synpred69_InternalMitraParser5241);\n \t lv_lhs_10_0=ruleVariableAccess();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt135 >= 1 ) break loop135;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(135, input);\n throw eee;\n }\n cnt135++;\n } while (true);\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2655:4: ( (lv_operator_11_0= ruleAssignmentOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2657:3: lv_operator_11_0= ruleAssignmentOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getOperatorAssignmentOperatorEnumRuleCall_4_1_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleAssignmentOperator_in_synpred69_InternalMitraParser5264);\n lv_operator_11_0=ruleAssignmentOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2673:2: ( (lv_expression_12_0= ruleExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2675:3: lv_expression_12_0= ruleExpression\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getExpressionExpressionParserRuleCall_4_1_1_3_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_in_synpred69_InternalMitraParser5285);\n lv_expression_12_0=ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "@Override\n public final void bottomup() {\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:73:5:\n // ( | standaloneExpression | expressionRoot | incompleteAxiom |\n // incompleteExpression | axiom )\n int alt1 = 6;\n switch (input.LA(1)) {\n case EOF: {\n alt1 = 1;\n }\n break;\n case STANDALONE_EXPRESSION: {\n alt1 = 2;\n }\n break;\n case EXPRESSION: {\n alt1 = 3;\n }\n break;\n case INCOMPLETE_TYPE_ASSERTION:\n case INCOMPLETE_ROLE_ASSERTION:\n case INCOMPLETE_UNARY_AXIOM:\n case INCOMPLETE_SUB_CLASS_AXIOM:\n case INCOMPLETE_EQUIVALENT_TO_AXIOM:\n case INCOMPLETE_DISJOINT_WITH_AXIOM:\n case INCOMPLETE_SUB_PROPERTY_AXIOM:\n case INCOMPLETE_SAME_AS_AXIOM:\n case INCOMPLETE_DIFFERENT_FROM_AXIOM:\n case INCOMPLETE_DOMAIN:\n case INCOMPLETE_RANGE:\n case INCOMPLETE_INVERSE_OF: {\n alt1 = 4;\n }\n break;\n case INCOMPLETE_PROPERTY_CHAIN:\n case INCOMPLETE_DISJUNCTION:\n case INCOMPLETE_EXPRESSION: {\n alt1 = 5;\n }\n break;\n case INVERSE_OF:\n case DOMAIN:\n case RANGE:\n case SUB_CLASS_AXIOM:\n case EQUIVALENT_TO_AXIOM:\n case DISJOINT_WITH_AXIOM:\n case SUB_PROPERTY_AXIOM:\n case SAME_AS_AXIOM:\n case DIFFERENT_FROM_AXIOM:\n case UNARY_AXIOM:\n case NEGATED_ASSERTION:\n case TYPE_ASSERTION:\n case ROLE_ASSERTION: {\n alt1 = 6;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 1, 0, input);\n throw nvae;\n }\n switch (alt1) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:5:\n {}\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:7:\n // standaloneExpression\n {\n pushFollow(FOLLOW_standaloneExpression_in_bottomup87);\n standaloneExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:75:8:\n // expressionRoot\n {\n pushFollow(FOLLOW_expressionRoot_in_bottomup96);\n expressionRoot();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:76:9:\n // incompleteAxiom\n {\n pushFollow(FOLLOW_incompleteAxiom_in_bottomup107);\n incompleteAxiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:77:9:\n // incompleteExpression\n {\n pushFollow(FOLLOW_incompleteExpression_in_bottomup117);\n incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 6:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:78:8:\n // axiom\n {\n pushFollow(FOLLOW_axiom_in_bottomup126);\n axiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return;\n }", "public static void main(String[] args) {\n RegexParser regexParser = new RegexParser(new File(args[0]));\n regexParser.parseCharClasses();\n regexParser.parseTokens();\n regexParser.buildDFATable();\n // write DFA Table to file\n try {\n BufferedWriter tableWriter = new BufferedWriter(new FileWriter(new File(args[2])));\n for (int i = 0; i < regexParser.dfaTable.tableRows.size(); i++) {\n tableWriter.write(\"State\" + i);\n tableWriter.newLine();\n for (int j = 0; j < 95; j++) {\n //if (regexParser.dfaTable.tableRows.get(i).nextStates[j] != 1) {\n tableWriter.write(\" \" + (char)(j + 32) + \" \" + regexParser.dfaTable.tableRows.get(i).nextStates[j]);\n //}\n }\n tableWriter.newLine();\n }\n tableWriter.newLine();\n tableWriter.write(\"Accept States\");\n tableWriter.newLine();\n for (int j = 0; j < regexParser.dfaTable.tableRows.size(); j++) {\n for (int i = 0; i < regexParser.dfaTable.nfa.acceptStates.size(); i++) {\n if (regexParser.dfaTable.tableRows.get(j).nfaStates.contains(regexParser.dfaTable.nfa.acceptStates.get(i))) {\n tableWriter.write(\" \" + j);\n }\n }\n }\n tableWriter.close();\n }\n catch (Exception e) {\n System.out.println(\"Could not write to table file\");\n System.exit(0);\n }\n TableWalker tw = new TableWalker(regexParser.dfaTable, new File(args[1]), new File(args[3]));\n System.out.println(\"Success! Check your output files!\");\n//Part 2, piece 1: parsing the grammar\n LL1GrammarParser parser = new LL1GrammarParser(new File(args[4]), regexParser.specReader.tokens);\n parser.parseGrammar();\n\n//piece 2/3: first and follow sets \n System.out.println(\"Creating First and Follow Sets: \");\n\n LL1FFSets sets = new LL1FFSets(parser.rules);\n\n System.out.println(\"Working on the Parsing Table\");\n//piece 4/5: LL(1) parsing table and running it. Success/reject message here.\n LL1ParsingTable table = new LL1ParsingTable(sets, regexParser.specReader.tokens,tw.parsedTokens, parser.rules);\n System.out.println(table.run());\n\n\n }", "public String visit(TrueLiteral n, LLVMRedux argu) throws Exception {\n return \"true\";\n }", "static void lookUp(){\r\n\r\n if (lexeme.equals(\"(\"))\r\n token = \"LEFT_PAREN\";\r\n else if (lexeme.equals(\")\"))\r\n token = \"RIGHT_PAREN\";\r\n else if (lexeme.equals(\"true\"))\r\n token = \"TRUE\";\r\n else if (lexeme.equals(\"false\"))\r\n token = \"FALSE\";\r\n else if (lexeme.equals(\"-\"))\r\n token = \"MINUS\";\r\n else if (lexeme.equals(\"+\"))\r\n token = \"PLUS\";\r\n else if (lexeme.equals(\"*\"))\r\n token = \"STAR\";\r\n else if (lexeme.equals(\"/\"))\r\n token = \"DIVOP\";\r\n else if (lexeme.equals(\"%\"))\r\n token = \"MOD\";\r\n else if (lexeme.equals(\">\"))\r\n token = \"GREATER_THAN\";\r\n else if (lexeme .equals(\"<\"))\r\n token = \"LESS_THAN\";\r\n else if (lexeme.equals(\"=\"))\r\n token = \"EQUALS\";\r\n else if (lexeme.equals(\"<=\"))\r\n token = \"LESS_OR_EQUAL\";\r\n else if (lexeme.equals(\">=\"))\r\n token = \"GREATER_OR_EQUAL\";\r\n else if (lexeme.equals(\"!=\"))\r\n token = \"NOT_EQUAL\";\r\n else\r\n token = \"ILLEGAL\";\r\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "void removeStatement(String subjectURIString, URI predicate,\r\n\t\t\tString literal, String languageTag) throws ModelRuntimeException;", "public interface LLkGrammarAnalyzer extends GrammarAnalyzer {\n\n\n public boolean deterministic(AlternativeBlock blk);\n\n public boolean deterministic(OneOrMoreBlock blk);\n\n public boolean deterministic(ZeroOrMoreBlock blk);\n\n public Lookahead FOLLOW(int k, RuleEndElement end);\n\n public Lookahead look(int k, ActionElement action);\n\n public Lookahead look(int k, AlternativeBlock blk);\n\n public Lookahead look(int k, BlockEndElement end);\n\n public Lookahead look(int k, CharLiteralElement atom);\n\n public Lookahead look(int k, CharRangeElement end);\n\n public Lookahead look(int k, GrammarAtom atom);\n\n public Lookahead look(int k, OneOrMoreBlock blk);\n\n public Lookahead look(int k, RuleBlock blk);\n\n public Lookahead look(int k, RuleEndElement end);\n\n public Lookahead look(int k, RuleRefElement rr);\n\n public Lookahead look(int k, StringLiteralElement atom);\n\n public Lookahead look(int k, SynPredBlock blk);\n\n public Lookahead look(int k, TokenRangeElement end);\n\n public Lookahead look(int k, TreeElement end);\n\n public Lookahead look(int k, WildcardElement wc);\n\n public Lookahead look(int k, ZeroOrMoreBlock blk);\n\n public Lookahead look(int k, String rule);\n\n public void setGrammar(Grammar g);\n\n public boolean subruleCanBeInverted(AlternativeBlock blk, boolean forLexer);\n}", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "public void testAND3() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 227, \"+\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public void testBIRD_FLYING_INSECT6() throws Exception {\n\t\tObject retval = execLexer(\"BIRD_FLYING_INSECT\", 179, \"lion\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"BIRD_FLYING_INSECT\", expecting, actual);\n\t}", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "ExprRule createExprRule();", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "public final void synpred4_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:668:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:668:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred4_Python2289);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred4_Python2292); if (state.failed) return ;\n\n }\n }", "public String getLHS()\n {\n return lhs;\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred85_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ( () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3878:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3886:2: ( (lv_op_2_0= ruleEqualityOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3888:3: lv_op_2_0= ruleEqualityOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getOpEqualityOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleEqualityOperator_in_synpred85_InternalMitraParser7783);\n lv_op_2_0=ruleEqualityOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3904:2: ( (lv_rhs_3_0= ruleExpression_3 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3906:3: lv_rhs_3_0= ruleExpression_3\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getRhsExpression_3ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_3_in_synpred85_InternalMitraParser7804);\n lv_rhs_3_0=ruleExpression_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "StatementRule createStatementRule();", "public final void synpred15_ul_fragment() throws RecognitionException {\n\t\tExpr e =null;\n\t\tBlock b =null;\n\n\t\t// ul.g:110:4: ( IF OPENPAREN e= expr CLOSEPAREN b= block )\n\t\t// ul.g:110:4: IF OPENPAREN e= expr CLOSEPAREN b= block\n\t\t{\n\t\tmatch(input,IF,FOLLOW_IF_in_synpred15_ul428); if (state.failed) return;\n\t\tmatch(input,OPENPAREN,FOLLOW_OPENPAREN_in_synpred15_ul430); if (state.failed) return;\n\t\tpushFollow(FOLLOW_expr_in_synpred15_ul436);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,CLOSEPAREN,FOLLOW_CLOSEPAREN_in_synpred15_ul438); if (state.failed) return;\n\t\tpushFollow(FOLLOW_block_in_synpred15_ul444);\n\t\tb=block();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\t}\n\n\t}", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public final void synpred14_ul_fragment() throws RecognitionException {\n\t\tExpr e =null;\n\t\tBlock b1 =null;\n\t\tBlock b2 =null;\n\n\t\t// ul.g:109:4: ( IF OPENPAREN e= expr CLOSEPAREN b1= block ELSE b2= block )\n\t\t// ul.g:109:4: IF OPENPAREN e= expr CLOSEPAREN b1= block ELSE b2= block\n\t\t{\n\t\tmatch(input,IF,FOLLOW_IF_in_synpred14_ul398); if (state.failed) return;\n\t\tmatch(input,OPENPAREN,FOLLOW_OPENPAREN_in_synpred14_ul400); if (state.failed) return;\n\t\tpushFollow(FOLLOW_expr_in_synpred14_ul406);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,CLOSEPAREN,FOLLOW_CLOSEPAREN_in_synpred14_ul408); if (state.failed) return;\n\t\tpushFollow(FOLLOW_block_in_synpred14_ul414);\n\t\tb1=block();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,ELSE,FOLLOW_ELSE_in_synpred14_ul416); if (state.failed) return;\n\t\tpushFollow(FOLLOW_block_in_synpred14_ul422);\n\t\tb2=block();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\t}\n\n\t}", "public final void synpred116_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: ( const_expr )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: const_expr\n {\n pushFollow(FOLLOW_const_expr_in_synpred116_AstValidator2032);\n const_expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public void testTIERCED3() throws Exception {\n\t\tObject retval = execLexer(\"TIERCED\", 83, \"blah\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"TIERCED\", expecting, actual);\n\t}", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "java.lang.String getS6();", "public final boolean synpred1_PrePro() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred1_PrePro_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "@Override\n\tpublic Object visit(ASTFParen node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "public final void synpred23_InternalMyDsl_fragment() throws RecognitionException { \n EObject lv_operand_3_0 = null;\n\n\n // InternalMyDsl.g:849:3: ( ( () ( (lv_operand_3_0= ruleSequence ) ) ) )\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n // InternalMyDsl.g:850:4: () ( (lv_operand_3_0= ruleSequence ) )\n {\n // InternalMyDsl.g:850:4: ()\n // InternalMyDsl.g:851:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:860:4: ( (lv_operand_3_0= ruleSequence ) )\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n {\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n // InternalMyDsl.g:862:6: lv_operand_3_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_3_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "void removeStatement(String subjectURIString, URI predicate,\r\n\t\t\tString literal, URI datatypeURI) throws ModelRuntimeException;", "public void testFUR6() throws Exception {\n\t\tObject retval = execLexer(\"FUR\", 138, \"counter-vair\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"FUR\", expecting, actual);\n\t}", "public static void main(String[] args) {\r\n\r\n\tAlternation a = new Alternation();\r\n\t\r\n\ta.add(new Literal(\"steaming\"));\r\n\ta.add(new Literal(\"hot\"));\r\n\r\n\tRepetition adjectives = new Repetition(a);\r\n\r\n\tTokenAssembly ta = \r\n\t\tnew TokenAssembly(\"hot hot steaming hot coffee\");\r\n\t\r\n\tSystem.out.println(adjectives.bestMatch(ta));\r\n}", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "public interface AstIncreUnaryExpression extends AstUnaryExpression {\r\n}", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n stringReader0.reset();\n stringReader0.ready();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n stringReader0.reset();\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n StringReader stringReader1 = new StringReader(\"call\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader1);\n streamTokenizer4.nextToken();\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader1);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer2);\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader1);\n streamTokenizer7.slashStarComments(true);\n streamTokenizer2.commentChar((-4));\n boolean boolean0 = jSTerm1.equals((JSPredicateForm) jSTerm0);\n assertTrue(boolean0);\n \n StringReader stringReader2 = new StringReader(\"c}^$\");\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader2);\n boolean boolean1 = jSTerm1.equals((JSPredicateForm) null);\n assertFalse(boolean1);\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "public void testATTITUDE6() throws Exception {\n\t\tObject retval = execLexer(\"ATTITUDE\", 198, \"courant\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"ATTITUDE\", expecting, actual);\n\t}", "public final void synpred13_ul_fragment() throws RecognitionException {\n\t\tExpr e =null;\n\n\t\t// ul.g:108:4: (e= expr SEMI )\n\t\t// ul.g:108:4: e= expr SEMI\n\t\t{\n\t\tpushFollow(FOLLOW_expr_in_synpred13_ul390);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,SEMI,FOLLOW_SEMI_in_synpred13_ul392); if (state.failed) return;\n\t\t}\n\n\t}", "public String getRuleBodySQLQueries(List<SWRLAtom> bodyAtoms, Map<String, String> v2prefix) {\n\t\tOntopOWLConnection conn = null;\n\t\tOntopOWLStatement st = null;\n\t\tString sql = null;\n\t\ttry{\n\t\t\tconn = _reasoner.getConnection();\n\t\t\tst = conn.createStatement();\n\t\t\tList<String> lines = new LinkedList<String>();\n\t\t\t\n\t\t\t// parse atoms into sparql query constraints\n\t\t\tfor(SWRLAtom atom : bodyAtoms) {\n\t\t\t\tif (atom instanceof SWRLClassAtom) {\n\t\t\t\t\t// class assertion\n\t\t\t\t\tString cls = atom.getPredicate().toString();\n\t\t\t\t\tString var = null;\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\t var = ((SWRLVariable)arg).getIRI().getRemainder().get();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlines.add(String.format(\"?%s a %s .\", var, cls));\n\t\t\t\t}else if(atom instanceof SWRLDataPropertyAtom) {\n\t\t\t\t\t//data value property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tString val = \"\";\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}else if (arg instanceof SWRLLiteralArgument) {\n\t\t\t\t\t\t\t val = arg.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t\telse\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s %s .\", vars.get(0), pred, val));\n\t\t\t\t}else if(atom instanceof SWRLObjectPropertyAtom) {\n\t\t\t\t\t// object property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tString sparqlQuery = String.format(queryTemplate, String.join(\"\\n\", lines));\n\t\t\t_logger.info(String.format(\"SPARQL: [%s]\", sparqlQuery));\n\t sql = st.getExecutableQuery(sparqlQuery).toString();\n } catch(Exception e){\n \te.printStackTrace();\n }finally {\n \tif (conn != null) {\n \t\ttry {\n \t\t\tst.close();\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (OWLException 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}\n }\n\t\tif (null != sql) {\n\t\t\tsql = clearGeneratedSQl(sql);\n\t\t\tsql = fixURIPrefixIssue(sql, v2prefix);\n\t\t}\n\t\t_logger.info(String.format(\"translated SQL is: [%s]\", sql));\n\t\treturn sql;\n\t}", "public final EObject ruleExpression_6() throws RecognitionException {\n EObject current = null;\n int ruleExpression_6_StartIndex = input.index();\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_type_2_0 = null;\n\n EObject lv_expression_4_0 = null;\n\n EObject this_Expression_7_5 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 94) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4098:28: ( ( ( () otherlv_1= KEYWORD_4 ( (lv_type_2_0= ruleType ) ) otherlv_3= KEYWORD_5 ( (lv_expression_4_0= ruleExpression_7 ) ) ) | this_Expression_7_5= ruleExpression_7 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4099:1: ( ( () otherlv_1= KEYWORD_4 ( (lv_type_2_0= ruleType ) ) otherlv_3= KEYWORD_5 ( (lv_expression_4_0= ruleExpression_7 ) ) ) | this_Expression_7_5= ruleExpression_7 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4099:1: ( ( () otherlv_1= KEYWORD_4 ( (lv_type_2_0= ruleType ) ) otherlv_3= KEYWORD_5 ( (lv_expression_4_0= ruleExpression_7 ) ) ) | this_Expression_7_5= ruleExpression_7 )\n int alt70=2;\n alt70 = dfa70.predict(input);\n switch (alt70) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4099:2: ( () otherlv_1= KEYWORD_4 ( (lv_type_2_0= ruleType ) ) otherlv_3= KEYWORD_5 ( (lv_expression_4_0= ruleExpression_7 ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4099:2: ( () otherlv_1= KEYWORD_4 ( (lv_type_2_0= ruleType ) ) otherlv_3= KEYWORD_5 ( (lv_expression_4_0= ruleExpression_7 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4099:3: () otherlv_1= KEYWORD_4 ( (lv_type_2_0= ruleType ) ) otherlv_3= KEYWORD_5 ( (lv_expression_4_0= ruleExpression_7 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4099:3: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4100:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getExpression_6Access().getUnaryCastExpressionAction_0_0(),\n current);\n \n }\n\n }\n\n otherlv_1=(Token)match(input,KEYWORD_4,FOLLOW_KEYWORD_4_in_ruleExpression_68204); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getExpression_6Access().getLeftParenthesisKeyword_0_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4113:1: ( (lv_type_2_0= ruleType ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4114:1: (lv_type_2_0= ruleType )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4114:1: (lv_type_2_0= ruleType )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4115:3: lv_type_2_0= ruleType\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_6Access().getTypeTypeParserRuleCall_0_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleType_in_ruleExpression_68224);\n lv_type_2_0=ruleType();\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.getExpression_6Rule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"type\",\n \t\tlv_type_2_0, \n \t\t\"Type\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,KEYWORD_5,FOLLOW_KEYWORD_5_in_ruleExpression_68237); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_3, grammarAccess.getExpression_6Access().getRightParenthesisKeyword_0_3());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4136:1: ( (lv_expression_4_0= ruleExpression_7 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4137:1: (lv_expression_4_0= ruleExpression_7 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4137:1: (lv_expression_4_0= ruleExpression_7 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4138:3: lv_expression_4_0= ruleExpression_7\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_6Access().getExpressionExpression_7ParserRuleCall_0_4_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_7_in_ruleExpression_68257);\n lv_expression_4_0=ruleExpression_7();\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.getExpression_6Rule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"expression\",\n \t\tlv_expression_4_0, \n \t\t\"Expression_7\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4156:2: this_Expression_7_5= ruleExpression_7\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_6Access().getExpression_7ParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleExpression_7_in_ruleExpression_68289);\n this_Expression_7_5=ruleExpression_7();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_Expression_7_5;\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 \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 94, ruleExpression_6_StartIndex); }\n }\n return current;\n }" ]
[ "0.6020024", "0.59078", "0.5906702", "0.58621806", "0.5779299", "0.5741411", "0.56099", "0.5551951", "0.5539675", "0.5357352", "0.5237152", "0.5222017", "0.52063316", "0.5172868", "0.51716346", "0.51408374", "0.51372164", "0.50923187", "0.5089827", "0.50792694", "0.50781035", "0.50557065", "0.5050503", "0.50074834", "0.49984807", "0.4986783", "0.4908549", "0.49037004", "0.4873296", "0.48433685", "0.48387092", "0.48320356", "0.4822954", "0.48070186", "0.47986144", "0.47841904", "0.47815862", "0.47633755", "0.4760066", "0.47496116", "0.47451377", "0.47278312", "0.47235677", "0.47168416", "0.46871683", "0.46868598", "0.4679351", "0.46460968", "0.46275598", "0.46249297", "0.46246538", "0.46199942", "0.46161643", "0.4606508", "0.46021494", "0.46003413", "0.4589389", "0.45794833", "0.4577525", "0.45734832", "0.45691812", "0.45640868", "0.45616624", "0.45606095", "0.45578572", "0.45564148", "0.4552565", "0.45522606", "0.45479676", "0.45455158", "0.45404774", "0.45404616", "0.45379302", "0.45374492", "0.45341372", "0.4530545", "0.45218968", "0.45192477", "0.451377", "0.45071867", "0.4505743", "0.45053664", "0.45047095", "0.45008266", "0.44987714", "0.44982755", "0.44874075", "0.44863534", "0.4484167", "0.44722563", "0.4471707", "0.44684", "0.4466979", "0.4457124", "0.4456405", "0.44564006", "0.4455486", "0.44495055", "0.4449004", "0.44439775" ]
0.5823804
4
$ANTLR end synpred6_expression $ANTLR start synpred7_expression
public final void synpred7_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:30: ( STRING ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:30: STRING { match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred7_QL_fragment() throws RecognitionException {\n Expr expr =null;\n\n Body b1 =null;\n\n Body b2 =null;\n\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: ( 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}' )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}'\n {\n match(input,32,FOLLOW_32_in_synpred7_QL260); if (state.failed) return ;\n\n match(input,18,FOLLOW_18_in_synpred7_QL262); if (state.failed) return ;\n\n pushFollow(FOLLOW_orExpr_in_synpred7_QL266);\n expr=orExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,19,FOLLOW_19_in_synpred7_QL268); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL270); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL273);\n b1=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL274); if (state.failed) return ;\n\n match(input,30,FOLLOW_30_in_synpred7_QL276); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL278); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL282);\n b2=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL283); if (state.failed) return ;\n\n }\n\n }", "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred6_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: nameExpression\n {\n pushFollow(FOLLOW_nameExpression_in_synpred6_expression160);\n nameExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred7_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:9: ( IF or_test[null] ORELSE )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:10: IF or_test[null] ORELSE\n {\n match(input,IF,FOLLOW_IF_in_synpred7_Python4191); if (state.failed) return ;\n pushFollow(FOLLOW_or_test_in_synpred7_Python4193);\n or_test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,ORELSE,FOLLOW_ORELSE_in_synpred7_Python4196); if (state.failed) return ;\n\n }\n }", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred3_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ;\n\n }\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred5_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:7: ( test[null] COMMA test[null] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:8: test[null] COMMA test[null]\n {\n pushFollow(FOLLOW_test_in_synpred5_Python2388);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred5_Python2391); if (state.failed) return ;\n pushFollow(FOLLOW_test_in_synpred5_Python2393);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "public final void synpred6_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:7: ( ( decorators )? DEF )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )? DEF\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: ( decorators )?\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( (LA156_0==AT) ) {\n alt156=1;\n }\n switch (alt156) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:881:8: decorators\n {\n pushFollow(FOLLOW_decorators_in_synpred6_Python3455);\n decorators();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n match(input,DEF,FOLLOW_DEF_in_synpred6_Python3458); if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "public final void synpred3_Binding_fragment() throws RecognitionException { \n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:11: INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n {\n mINT(); if (state.failed) return ;\n match('.'); if (state.failed) return ;\n if ( (input.LA(1)>='\\u0000' && input.LA(1)<='-')||(input.LA(1)>='/' && input.LA(1)<='@')||(input.LA(1)>='[' && input.LA(1)<='^')||input.LA(1)=='`'||(input.LA(1)>='{' && input.LA(1)<='\\u00BF')||input.LA(1)=='\\u00D7'||input.LA(1)=='\\u00F7'||(input.LA(1)>='\\u0100' && input.LA(1)<='\\uFFFF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n }", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "public StatementNode getStatementNodeOnTrue();", "public final void synpred11_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: ( nameExprTerm )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: nameExprTerm\n {\n pushFollow(FOLLOW_nameExprTerm_in_synpred11_expression222);\n nameExprTerm();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "E7Rule createE7Rule();", "public void testBEAST7() throws Exception {\n\t\tObject retval = execLexer(\"BEAST\", 166, \"horse\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"BEAST\", expecting, actual);\n\t}", "public final void synpred71_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_5=null;\n EObject lv_elseStatement_6_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2857:2: (otherlv_5= KEYWORD_47 ( (lv_elseStatement_6_0= ruleStatement ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2857:2: otherlv_5= KEYWORD_47 ( (lv_elseStatement_6_0= ruleStatement ) )\n {\n otherlv_5=(Token)match(input,KEYWORD_47,FOLLOW_KEYWORD_47_in_synpred71_InternalMitraParser5673); if (state.failed) return ;\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2861:1: ( (lv_elseStatement_6_0= ruleStatement ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2862:1: (lv_elseStatement_6_0= ruleStatement )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2862:1: (lv_elseStatement_6_0= ruleStatement )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2863:3: lv_elseStatement_6_0= ruleStatement\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getIfStatementAccess().getElseStatementStatementParserRuleCall_5_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleStatement_in_synpred71_InternalMitraParser5693);\n lv_elseStatement_6_0=ruleStatement();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "public final void synpred30_InternalGo_fragment() throws RecognitionException { \r\n // InternalGo.g:3492:2: ( ( ( rule__Statement__GotostAssignment_7 ) ) )\r\n // InternalGo.g:3492:2: ( ( rule__Statement__GotostAssignment_7 ) )\r\n {\r\n // InternalGo.g:3492:2: ( ( rule__Statement__GotostAssignment_7 ) )\r\n // InternalGo.g:3493:3: ( rule__Statement__GotostAssignment_7 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getStatementAccess().getGotostAssignment_7()); \r\n }\r\n // InternalGo.g:3494:3: ( rule__Statement__GotostAssignment_7 )\r\n // InternalGo.g:3494:4: rule__Statement__GotostAssignment_7\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Statement__GotostAssignment_7();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n }", "@Override\n public final void bottomup() {\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:73:5:\n // ( | standaloneExpression | expressionRoot | incompleteAxiom |\n // incompleteExpression | axiom )\n int alt1 = 6;\n switch (input.LA(1)) {\n case EOF: {\n alt1 = 1;\n }\n break;\n case STANDALONE_EXPRESSION: {\n alt1 = 2;\n }\n break;\n case EXPRESSION: {\n alt1 = 3;\n }\n break;\n case INCOMPLETE_TYPE_ASSERTION:\n case INCOMPLETE_ROLE_ASSERTION:\n case INCOMPLETE_UNARY_AXIOM:\n case INCOMPLETE_SUB_CLASS_AXIOM:\n case INCOMPLETE_EQUIVALENT_TO_AXIOM:\n case INCOMPLETE_DISJOINT_WITH_AXIOM:\n case INCOMPLETE_SUB_PROPERTY_AXIOM:\n case INCOMPLETE_SAME_AS_AXIOM:\n case INCOMPLETE_DIFFERENT_FROM_AXIOM:\n case INCOMPLETE_DOMAIN:\n case INCOMPLETE_RANGE:\n case INCOMPLETE_INVERSE_OF: {\n alt1 = 4;\n }\n break;\n case INCOMPLETE_PROPERTY_CHAIN:\n case INCOMPLETE_DISJUNCTION:\n case INCOMPLETE_EXPRESSION: {\n alt1 = 5;\n }\n break;\n case INVERSE_OF:\n case DOMAIN:\n case RANGE:\n case SUB_CLASS_AXIOM:\n case EQUIVALENT_TO_AXIOM:\n case DISJOINT_WITH_AXIOM:\n case SUB_PROPERTY_AXIOM:\n case SAME_AS_AXIOM:\n case DIFFERENT_FROM_AXIOM:\n case UNARY_AXIOM:\n case NEGATED_ASSERTION:\n case TYPE_ASSERTION:\n case ROLE_ASSERTION: {\n alt1 = 6;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 1, 0, input);\n throw nvae;\n }\n switch (alt1) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:5:\n {}\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:7:\n // standaloneExpression\n {\n pushFollow(FOLLOW_standaloneExpression_in_bottomup87);\n standaloneExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:75:8:\n // expressionRoot\n {\n pushFollow(FOLLOW_expressionRoot_in_bottomup96);\n expressionRoot();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:76:9:\n // incompleteAxiom\n {\n pushFollow(FOLLOW_incompleteAxiom_in_bottomup107);\n incompleteAxiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:77:9:\n // incompleteExpression\n {\n pushFollow(FOLLOW_incompleteExpression_in_bottomup117);\n incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 6:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:78:8:\n // axiom\n {\n pushFollow(FOLLOW_axiom_in_bottomup126);\n axiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return;\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "public final EObject ruleExpression_7() throws RecognitionException {\n EObject current = null;\n int ruleExpression_7_StartIndex = input.index();\n Token otherlv_2=null;\n EObject this_Expression_8_0 = null;\n\n EObject lv_expression_3_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 96) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4187:28: ( (this_Expression_8_0= ruleExpression_8 | ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4188:1: (this_Expression_8_0= ruleExpression_8 | ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4188:1: (this_Expression_8_0= ruleExpression_8 | ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) ) )\n int alt71=2;\n alt71 = dfa71.predict(input);\n switch (alt71) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4189:2: this_Expression_8_0= ruleExpression_8\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_7Access().getExpression_8ParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleExpression_8_in_ruleExpression_78383);\n this_Expression_8_0=ruleExpression_8();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_Expression_8_0;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:6: ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:6: ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:7: () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4202:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getExpression_7Access().getUnaryBooleanExpressionAction_1_0(),\n current);\n \n }\n\n }\n\n otherlv_2=(Token)match(input,KEYWORD_1,FOLLOW_KEYWORD_1_in_ruleExpression_78414); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getExpression_7Access().getExclamationMarkKeyword_1_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4215:1: ( (lv_expression_3_0= ruleExpression_8 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4216:1: (lv_expression_3_0= ruleExpression_8 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4216:1: (lv_expression_3_0= ruleExpression_8 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4217:3: lv_expression_3_0= ruleExpression_8\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_7Access().getExpressionExpression_8ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_8_in_ruleExpression_78434);\n lv_expression_3_0=ruleExpression_8();\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.getExpression_7Rule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"expression\",\n \t\tlv_expression_3_0, \n \t\t\"Expression_8\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 96, ruleExpression_7_StartIndex); }\n }\n return current;\n }", "public final void synpred24_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_6=null;\n EObject lv_operand_5_0 = null;\n\n\n // InternalMyDsl.g:881:3: ( ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' ) )\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n {\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n // InternalMyDsl.g:882:4: () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!'\n {\n // InternalMyDsl.g:882:4: ()\n // InternalMyDsl.g:883:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:892:4: ( (lv_operand_5_0= ruleSequence ) )\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n {\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n // InternalMyDsl.g:894:6: lv_operand_5_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_15);\n lv_operand_5_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_6=(Token)match(input,26,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }", "public abstract PredicateExpr getNext();", "public void testWS7() throws Exception {\n\t\tObject retval = execLexer(\"WS\", 288, \"blah\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"WS\", expecting, actual);\n\t}", "public void testSUBORDINARY7() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 39, \"tressure\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "@Override\n\tprotected void initPredicate() {\n\t\t\n\t\tString pred1 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * header::Entry<ele,header,header> & size=0 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,header,header> & first=last & size=1 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,nextF,prevF> * last::Entry<ele2,nextL,prevL> * lseg(nextF,first,last,prevL,size1) & prevF=header & nextL=header & size=2+size1\";\n\t\t\n\t\tString pred2 = \"pred lseg(next,first,last,prev,size) == next=last & prev=first & size=0 || \" +\n\t\t\t\t\"next::Entry<item,next1,prev1> * lseg(next1,next,last,prev,size1) & prev1=first & size=size1+1\";\n\t\t\n\t\t\n//\t\tString pred0 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * dll(header,size)\";\n//\t\tString pred1 = \"pred dll(header,size) == header::Entry<ele,header,header> & size=0 || header::Entry<ele,next,prev> * nndll(next,header,header,prev,size)\";\n//\t\tString pred2 = \"pred nndll(curr,prev,header,prevH,size) == curr::Entry<ele,header,prev> & prevH=curr & size=1 || curr::Entry<ele,next,prev> * nndll(next,curr,header,prevH,size1) & size=size1+1\";\n\t\t\t\t\n\t\tString pred = pred1 + \";\" + pred2;\n\t\tInitializer.initPredicate(pred);\n\t}", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public interface SubstPred extends Reason {\r\n\r\n /**\r\n * Get this reason.\r\n *\r\n * @return This reason.\r\n */\r\n public SubstPred getSubstPred();\r\n\r\n /**\r\n * Get reference to already proven formula.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public String getReference();\r\n\r\n /**\r\n * Get predicate variable (with subject variables as parameters) that should be replaced.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public Element getPredicateVariable();\r\n\r\n /**\r\n * Get substitute formula. Must contain the subject variables from\r\n * {@link #getPredicateVariable()}.\r\n *\r\n * @return Replacement term.\r\n */\r\n public Element getSubstituteFormula();\r\n\r\n}", "java.lang.String getS7();", "public final void synpred6_InternalJavaJRExpression_fragment() throws RecognitionException { \n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:3: ( ( () ( ( ruleRelationalOp ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:4: ( () ( ( ruleRelationalOp ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:4: ( () ( ( ruleRelationalOp ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:5: () ( ( ruleRelationalOp ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:5: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:566:1: \n {\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:566:2: ( ( ruleRelationalOp ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:567:1: ( ruleRelationalOp )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:567:1: ( ruleRelationalOp )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:568:1: ruleRelationalOp\n {\n pushFollow(FOLLOW_ruleRelationalOp_in_synpred6_InternalJavaJRExpression1299);\n ruleRelationalOp();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "public MMExptTupleMatcher() {\n this.conceptMatcher = new kb.matching.SynonymConceptMatcher();\n // Need to set synonyms right here\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "public final void synpred10_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n\n // InternalMyDsl.g:320:3: ( ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt151=4;\n alt151 = dfa151.predict(input);\n switch (alt151) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "public final void synpred69_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_9=null;\n EObject lv_lhs_10_0 = null;\n\n Enumerator lv_operator_11_0 = null;\n\n EObject lv_expression_12_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2624:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2632:2: (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+\n int cnt135=0;\n loop135:\n do {\n int alt135=2;\n int LA135_0 = input.LA(1);\n\n if ( (LA135_0==KEYWORD_8) ) {\n alt135=1;\n }\n\n\n switch (alt135) {\n \tcase 1 :\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2633:2: otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t {\n \t otherlv_9=(Token)match(input,KEYWORD_8,FOLLOW_KEYWORD_8_in_synpred69_InternalMitraParser5221); if (state.failed) return ;\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2637:1: ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t {\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2639:3: lv_lhs_10_0= ruleVariableAccess\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getLhsVariableAccessParserRuleCall_4_1_1_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleVariableAccess_in_synpred69_InternalMitraParser5241);\n \t lv_lhs_10_0=ruleVariableAccess();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt135 >= 1 ) break loop135;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(135, input);\n throw eee;\n }\n cnt135++;\n } while (true);\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2655:4: ( (lv_operator_11_0= ruleAssignmentOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2657:3: lv_operator_11_0= ruleAssignmentOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getOperatorAssignmentOperatorEnumRuleCall_4_1_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleAssignmentOperator_in_synpred69_InternalMitraParser5264);\n lv_operator_11_0=ruleAssignmentOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2673:2: ( (lv_expression_12_0= ruleExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2675:3: lv_expression_12_0= ruleExpression\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getExpressionExpressionParserRuleCall_4_1_1_3_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_in_synpred69_InternalMitraParser5285);\n lv_expression_12_0=ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public void setMlSdef7(String mlSdef7) {\n this.mlSdef7 = mlSdef7;\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred4_QL_fragment() throws RecognitionException {\r\n IfThenElseStatement ifthels =null;\r\n\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: (ifthels= ifThenElseStatement )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: ifthels= ifThenElseStatement\r\n {\r\n pushFollow(FOLLOW_ifThenElseStatement_in_synpred4_QL196);\r\n ifthels=ifThenElseStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "public void toGrammar() {\n System.out.println(\"<binary_expression> -> <arithmeitc_expression> <arithmetic_op> <arithmetic_expression>\");\n left.toGrammar();\n operator.toGrammar();\n right.toGrammar();\n prefix();\n }", "public String newRuleFirstCondition(Situation threeSituationsAgo)\n {\n String firstPredicate;\n //---------------\n firstPredicate = \"ninguno\";\n\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8) &&\n (threeSituationsAgo.puzzle[2][0] == 9) &&\n (threeSituationsAgo.puzzle[3][0] == 13)\n )\n {\n firstPredicate = \"dosLineasYColumna\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8)\n )\n {\n firstPredicate = \"dosLineasListas\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4)\n )\n {\n firstPredicate = \"primeraLineaLista\";\n }//end if\n }//end else\n }//end else\n\n return firstPredicate;\n }", "public final void synpred27_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( ( '+' | '-' ) mult )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( '+' | '-' ) mult\n {\n if ( (input.LA(1)>=46 && input.LA(1)<=47) ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n pushFollow(FOLLOW_mult_in_synpred27_expression437);\n mult();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "public final void synpred1_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:7: ( LPAREN fpdef[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:8: LPAREN fpdef[null] COMMA\n {\n match(input,LPAREN,FOLLOW_LPAREN_in_synpred1_Python1249); if (state.failed) return ;\n pushFollow(FOLLOW_fpdef_in_synpred1_Python1251);\n fpdef(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred1_Python1254); if (state.failed) return ;\n\n }\n }", "public final void synpred85_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ( () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3878:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3886:2: ( (lv_op_2_0= ruleEqualityOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3888:3: lv_op_2_0= ruleEqualityOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getOpEqualityOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleEqualityOperator_in_synpred85_InternalMitraParser7783);\n lv_op_2_0=ruleEqualityOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3904:2: ( (lv_rhs_3_0= ruleExpression_3 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3906:3: lv_rhs_3_0= ruleExpression_3\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getRhsExpression_3ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_3_in_synpred85_InternalMitraParser7804);\n lv_rhs_3_0=ruleExpression_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "static void lookUp(){\r\n\r\n if (lexeme.equals(\"(\"))\r\n token = \"LEFT_PAREN\";\r\n else if (lexeme.equals(\")\"))\r\n token = \"RIGHT_PAREN\";\r\n else if (lexeme.equals(\"true\"))\r\n token = \"TRUE\";\r\n else if (lexeme.equals(\"false\"))\r\n token = \"FALSE\";\r\n else if (lexeme.equals(\"-\"))\r\n token = \"MINUS\";\r\n else if (lexeme.equals(\"+\"))\r\n token = \"PLUS\";\r\n else if (lexeme.equals(\"*\"))\r\n token = \"STAR\";\r\n else if (lexeme.equals(\"/\"))\r\n token = \"DIVOP\";\r\n else if (lexeme.equals(\"%\"))\r\n token = \"MOD\";\r\n else if (lexeme.equals(\">\"))\r\n token = \"GREATER_THAN\";\r\n else if (lexeme .equals(\"<\"))\r\n token = \"LESS_THAN\";\r\n else if (lexeme.equals(\"=\"))\r\n token = \"EQUALS\";\r\n else if (lexeme.equals(\"<=\"))\r\n token = \"LESS_OR_EQUAL\";\r\n else if (lexeme.equals(\">=\"))\r\n token = \"GREATER_OR_EQUAL\";\r\n else if (lexeme.equals(\"!=\"))\r\n token = \"NOT_EQUAL\";\r\n else\r\n token = \"ILLEGAL\";\r\n }", "public interface PredicateBinaryExpr extends BinaryExpr {\r\n /**\r\n * Returns the wildcard operator.\r\n * \r\n * @return the wildcard operator.\r\n */\r\n public PredicateOperator getOperator();\r\n\r\n /**\r\n * Returns the property.\r\n * \r\n * @return the property.\r\n */\r\n public Property getProperty();\r\n\r\n /**\r\n * Returns the string representation of the path qualified property.\r\n * \r\n * @return the string representation of the path qualified property\r\n */\r\n public String getPropertyPath();\r\n\r\n /**\r\n * Returns the query literal\r\n * \r\n * @return the query literal\r\n */\r\n public Literal getLiteral();\r\n}", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public final void synpred111_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ( ^( MINUS expr expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ^( MINUS expr expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_synpred111_AstValidator1949); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1951);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1953);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "public String getLHS()\n {\n return lhs;\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "public void testSUBORDINARY6() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 38, \"orle\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "public void testAND3() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 227, \"+\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "public final void synpred7_InternalSafetyParser_fragment() throws RecognitionException { \n // InternalSafetyParser.g:3302:5: ( ( () Whenever ( ( ruleExpr ) ) Occurs ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs ) ) )\n // InternalSafetyParser.g:3302:6: ( () Whenever ( ( ruleExpr ) ) Occurs ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs ) )\n {\n // InternalSafetyParser.g:3302:6: ( () Whenever ( ( ruleExpr ) ) Occurs ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs ) )\n // InternalSafetyParser.g:3303:6: () Whenever ( ( ruleExpr ) ) Occurs ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs )\n {\n // InternalSafetyParser.g:3303:6: ()\n // InternalSafetyParser.g:3304:6: \n {\n }\n\n match(input,Whenever,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:3306:6: ( ( ruleExpr ) )\n // InternalSafetyParser.g:3307:7: ( ruleExpr )\n {\n // InternalSafetyParser.g:3307:7: ( ruleExpr )\n // InternalSafetyParser.g:3308:8: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_41);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n match(input,Occurs,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:3312:6: ( ( ruleExpr ) )\n // InternalSafetyParser.g:3313:7: ( ruleExpr )\n {\n // InternalSafetyParser.g:3313:7: ( ruleExpr )\n // InternalSafetyParser.g:3314:8: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_46);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // InternalSafetyParser.g:3317:6: ( ( Exclusively ) )?\n int alt151=2;\n int LA151_0 = input.LA(1);\n\n if ( (LA151_0==Exclusively) ) {\n alt151=1;\n }\n switch (alt151) {\n case 1 :\n // InternalSafetyParser.g:3318:7: ( Exclusively )\n {\n // InternalSafetyParser.g:3318:7: ( Exclusively )\n // InternalSafetyParser.g:3319:8: Exclusively\n {\n match(input,Exclusively,FollowSets000.FOLLOW_47); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n if ( input.LA(1)==Occurs||input.LA(1)==Occur ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n\n\n }\n }", "@Override\n\tpublic Object visit(ASTFParen node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Override\n public Expression translateSyntacticSugar() {\n return new Condition(this.e1, BooleanConstant.TRUE, this.e2);\n }", "public void testSWIMMING_BEAST4() throws Exception {\n\t\tObject retval = execLexer(\"SWIMMING_BEAST\", 190, \"dolphinss\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SWIMMING_BEAST\", expecting, actual);\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "private Operation expression1(Scope scope, Vector queue)\r\n {\r\n follower.add(Keyword.QUESTIONMARKSY);\r\n Operation op = expression2(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n\r\n if (nextSymbol == Keyword.QUESTIONMARKSY)\r\n {\r\n Operation a = new Operation();\r\n a.operator = nextSymbol;\r\n a.right = conditionalExpr(scope, queue);\r\n a.left = op;\r\n op = a;\r\n }\r\n\r\n return op;\r\n }", "static void translate() {\n if(!token.equals(\"IF\")) {\r\n stack.add(lexeme);\r\n index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n stack.add(lexeme);\r\n index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n stack.add(index, lexeme);\r\n index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n index++;\r\n }\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n index++;\r\n break;\r\n }\r\n }\r\n\r\n // Beginning the execution and evaluation of the translated code.\r\n index = 0;\r\n\r\n while (!stack.get(index).equals(\"=\") && !stack.get(index).equals(\"+\") && !stack.get(index).equals(\"-\") &&\r\n !stack.get(index).equals(\"*\") && !stack.get(index).equals(\"/\") && !stack.get(index).equals(\"%\")) {\r\n index ++;\r\n }\r\n\r\n int value = 0;\r\n int operand1 = 0;\r\n int operand2 = 0;\r\n String operator = stack.get(index);\r\n stack.remove(index);\r\n index--;\r\n\r\n if (operator.equals(\"=\")) {\r\n\r\n try {\r\n value = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n value = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n index--;\r\n\r\n String id = stack.get(index);\r\n stack.remove(index);\r\n\r\n //System.out.println(\"\\n\" + id + \" is equal to \" + value);\r\n\r\n if (search(id) == -1) {\r\n varList.add(id);\r\n varList.add(Integer.toString(value));\r\n } else {\r\n varList.set(search(id) + 1, Integer.toString(value));\r\n }\r\n }\r\n\r\n else {\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n\r\n execute(evaluate(operand1, operand2, operator));\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(translateIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }", "public final void synpred23_InternalMyDsl_fragment() throws RecognitionException { \n EObject lv_operand_3_0 = null;\n\n\n // InternalMyDsl.g:849:3: ( ( () ( (lv_operand_3_0= ruleSequence ) ) ) )\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n // InternalMyDsl.g:850:4: () ( (lv_operand_3_0= ruleSequence ) )\n {\n // InternalMyDsl.g:850:4: ()\n // InternalMyDsl.g:851:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:860:4: ( (lv_operand_3_0= ruleSequence ) )\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n {\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n // InternalMyDsl.g:862:6: lv_operand_3_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_3_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "public void testWS6() throws Exception {\n\t\tObject retval = execLexer(\"WS\", 287, \"\\t \\t \", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"WS\", expecting, actual);\n\t}", "public interface ForteLangConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMPARATOR_OP = 1;\n /** RegularExpression Id. */\n int BOOLEAN_OP = 2;\n /** RegularExpression Id. */\n int SET_OP = 3;\n /** RegularExpression Id. */\n int OP = 4;\n /** RegularExpression Id. */\n int CONCAT = 5;\n /** RegularExpression Id. */\n int SELECT = 6;\n /** RegularExpression Id. */\n int CONTAINS = 7;\n /** RegularExpression Id. */\n int NUMBER = 8;\n /** RegularExpression Id. */\n int FLOATING_POINT_NUMBER = 9;\n /** RegularExpression Id. */\n int BOOLEAN = 10;\n /** RegularExpression Id. */\n int STRING = 11;\n /** RegularExpression Id. */\n int REGEX_STRING = 12;\n /** RegularExpression Id. */\n int INCLUDE = 13;\n /** RegularExpression Id. */\n int IN = 14;\n /** RegularExpression Id. */\n int MATCH = 15;\n /** RegularExpression Id. */\n int OPENBRACKET = 16;\n /** RegularExpression Id. */\n int CLOSEBRACKET = 17;\n /** RegularExpression Id. */\n int OPENSBRACKET = 18;\n /** RegularExpression Id. */\n int CLOSESBRACKET = 19;\n /** RegularExpression Id. */\n int COMMA = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int SEMICOLON = 22;\n /** RegularExpression Id. */\n int OPENCBRACKET = 23;\n /** RegularExpression Id. */\n int CLOSECBRACKET = 24;\n /** RegularExpression Id. */\n int NUM = 25;\n /** RegularExpression Id. */\n int LST = 26;\n /** RegularExpression Id. */\n int SET = 27;\n /** RegularExpression Id. */\n int FUN = 28;\n /** RegularExpression Id. */\n int BOO = 29;\n /** RegularExpression Id. */\n int STR = 30;\n /** RegularExpression Id. */\n int COLON = 31;\n /** RegularExpression Id. */\n int VAR_NAME = 32;\n /** RegularExpression Id. */\n int FUNCTION_ARROW = 33;\n /** RegularExpression Id. */\n int GUARD_START = 34;\n /** RegularExpression Id. */\n int GUARD = 35;\n /** RegularExpression Id. */\n int GUARD_ARROW = 36;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int BlockComment = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<COMPARATOR_OP>\",\n \"<BOOLEAN_OP>\",\n \"<SET_OP>\",\n \"<OP>\",\n \"\\\"++\\\"\",\n \"\\\".\\\"\",\n \"\\\"?\\\"\",\n \"<NUMBER>\",\n \"<FLOATING_POINT_NUMBER>\",\n \"<BOOLEAN>\",\n \"<STRING>\",\n \"<REGEX_STRING>\",\n \"\\\"include\\\"\",\n \"\\\"in\\\"\",\n \"\\\"match\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\",\\\"\",\n \"\\\"=\\\"\",\n \"\\\";\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"num\\\"\",\n \"\\\"list\\\"\",\n \"\\\"set\\\"\",\n \"\\\"func\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"str\\\"\",\n \"\\\":\\\"\",\n \"<VAR_NAME>\",\n \"\\\"->\\\"\",\n \"\\\"|>\\\"\",\n \"\\\"|\\\"\",\n \"\\\"->>\\\"\",\n \"<token of kind 37>\",\n \"<token of kind 38>\",\n \"\\\"#[\\\"\",\n \"\\\"#[\\\"\",\n \"<token of kind 41>\",\n \"\\\"]#\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n };\n\n}", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.pipe();\n xPathLexer0.slashes();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.number();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }", "public final boolean synpred33_ul() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred33_ul_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}" ]
[ "0.6417185", "0.6335073", "0.6217068", "0.5775017", "0.57086116", "0.57056844", "0.5611603", "0.560639", "0.5594731", "0.5402298", "0.53479266", "0.5321424", "0.52654916", "0.52651614", "0.5257072", "0.52335346", "0.5149068", "0.50844026", "0.5052265", "0.5033005", "0.5018865", "0.5001355", "0.49959895", "0.4993509", "0.49743894", "0.49657348", "0.49634868", "0.49322274", "0.49193224", "0.49139738", "0.4908175", "0.48969635", "0.4881448", "0.4879169", "0.48645553", "0.4860336", "0.48531574", "0.48524922", "0.48426148", "0.48214117", "0.48098522", "0.48092258", "0.48082754", "0.48025486", "0.47812274", "0.477978", "0.4778106", "0.4777662", "0.47755668", "0.4764599", "0.47594976", "0.47577798", "0.47568974", "0.47500056", "0.47443587", "0.47439048", "0.4742706", "0.47416824", "0.47322917", "0.4731453", "0.47294804", "0.47285873", "0.47262728", "0.47185782", "0.47074664", "0.46926707", "0.46913305", "0.4685459", "0.4684164", "0.46756092", "0.46704546", "0.46684968", "0.46620625", "0.4659477", "0.46548802", "0.4654471", "0.46530572", "0.4647031", "0.46370193", "0.4627876", "0.46216652", "0.46144864", "0.46144179", "0.46134993", "0.46117294", "0.4609399", "0.46045178", "0.46024624", "0.46013007", "0.46012717", "0.45917892", "0.45900944", "0.45893922", "0.45886406", "0.4586917", "0.45747918", "0.45733356", "0.45719248", "0.45688054", "0.45652103" ]
0.6574329
0
$ANTLR end synpred7_expression $ANTLR start synpred8_expression
public final void synpred8_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )* { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:6: ( STRING )* loop23: do { int alt23=2; int LA23_0 = input.LA(1); if ( (LA23_0==STRING) ) { alt23=1; } switch (alt23) { case 1 : // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:0:0: STRING { match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ; } break; default : break loop23; } } while (true); // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:14: ( nameExpression )+ int cnt24=0; loop24: do { int alt24=2; int LA24_0 = input.LA(1); if ( (LA24_0==EPRESSIONCHAR) ) { alt24=1; } switch (alt24) { case 1 : // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:0:0: nameExpression { pushFollow(FOLLOW_nameExpression_in_synpred8_expression160); nameExpression(); state._fsp--; if (state.failed) return ; } break; default : if ( cnt24 >= 1 ) break loop24; if (state.backtracking>0) {state.failed=true; return ;} EarlyExitException eee = new EarlyExitException(24, input); throw eee; } cnt24++; } while (true); // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:30: ( STRING )* loop25: do { int alt25=2; int LA25_0 = input.LA(1); if ( (LA25_0==STRING) ) { alt25=1; } switch (alt25) { case 1 : // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:0:0: STRING { match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ; } break; default : break loop25; } } while (true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ;\n\n }\n }", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "E8Rule createE8Rule();", "public final void synpred3_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ;\n\n }\n }", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred7_QL_fragment() throws RecognitionException {\n Expr expr =null;\n\n Body b1 =null;\n\n Body b2 =null;\n\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: ( 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}' )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}'\n {\n match(input,32,FOLLOW_32_in_synpred7_QL260); if (state.failed) return ;\n\n match(input,18,FOLLOW_18_in_synpred7_QL262); if (state.failed) return ;\n\n pushFollow(FOLLOW_orExpr_in_synpred7_QL266);\n expr=orExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,19,FOLLOW_19_in_synpred7_QL268); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL270); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL273);\n b1=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL274); if (state.failed) return ;\n\n match(input,30,FOLLOW_30_in_synpred7_QL276); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL278); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL282);\n b2=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL283); if (state.failed) return ;\n\n }\n\n }", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred6_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: nameExpression\n {\n pushFollow(FOLLOW_nameExpression_in_synpred6_expression160);\n nameExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "public final EObject ruleExpression_8() throws RecognitionException {\n EObject current = null;\n int ruleExpression_8_StartIndex = input.index();\n EObject this_Expression_9_0 = null;\n\n Enumerator lv_op_2_0 = null;\n\n EObject lv_expression_3_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 98) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4253:28: ( (this_Expression_9_0= ruleExpression_9 | ( () ( (lv_op_2_0= ruleUnaryMathOperator ) ) ( (lv_expression_3_0= ruleExpression_9 ) ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4254:1: (this_Expression_9_0= ruleExpression_9 | ( () ( (lv_op_2_0= ruleUnaryMathOperator ) ) ( (lv_expression_3_0= ruleExpression_9 ) ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4254:1: (this_Expression_9_0= ruleExpression_9 | ( () ( (lv_op_2_0= ruleUnaryMathOperator ) ) ( (lv_expression_3_0= ruleExpression_9 ) ) ) )\n int alt72=2;\n alt72 = dfa72.predict(input);\n switch (alt72) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4255:2: this_Expression_9_0= ruleExpression_9\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_8Access().getExpression_9ParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleExpression_9_in_ruleExpression_88530);\n this_Expression_9_0=ruleExpression_9();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_Expression_9_0;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4267:6: ( () ( (lv_op_2_0= ruleUnaryMathOperator ) ) ( (lv_expression_3_0= ruleExpression_9 ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4267:6: ( () ( (lv_op_2_0= ruleUnaryMathOperator ) ) ( (lv_expression_3_0= ruleExpression_9 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4267:7: () ( (lv_op_2_0= ruleUnaryMathOperator ) ) ( (lv_expression_3_0= ruleExpression_9 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4267:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4268:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getExpression_8Access().getUnaryMathExpressionAction_1_0(),\n current);\n \n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4276:2: ( (lv_op_2_0= ruleUnaryMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4277:1: (lv_op_2_0= ruleUnaryMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4277:1: (lv_op_2_0= ruleUnaryMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4278:3: lv_op_2_0= ruleUnaryMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_8Access().getOpUnaryMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleUnaryMathOperator_in_ruleExpression_88569);\n lv_op_2_0=ruleUnaryMathOperator();\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.getExpression_8Rule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"op\",\n \t\tlv_op_2_0, \n \t\t\"UnaryMathOperator\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4294:2: ( (lv_expression_3_0= ruleExpression_9 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4295:1: (lv_expression_3_0= ruleExpression_9 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4295:1: (lv_expression_3_0= ruleExpression_9 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4296:3: lv_expression_3_0= ruleExpression_9\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_8Access().getExpressionExpression_9ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_9_in_ruleExpression_88590);\n lv_expression_3_0=ruleExpression_9();\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.getExpression_8Rule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"expression\",\n \t\tlv_expression_3_0, \n \t\t\"Expression_9\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 98, ruleExpression_8_StartIndex); }\n }\n return current;\n }", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public final void synpred11_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: ( nameExprTerm )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: nameExprTerm\n {\n pushFollow(FOLLOW_nameExprTerm_in_synpred11_expression222);\n nameExprTerm();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public abstract PredicateExpr getNext();", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public void testSUBORDINARY8() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 40, \"gyron\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "public final void synpred85_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ( () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3878:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3886:2: ( (lv_op_2_0= ruleEqualityOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3888:3: lv_op_2_0= ruleEqualityOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getOpEqualityOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleEqualityOperator_in_synpred85_InternalMitraParser7783);\n lv_op_2_0=ruleEqualityOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3904:2: ( (lv_rhs_3_0= ruleExpression_3 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3906:3: lv_rhs_3_0= ruleExpression_3\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getRhsExpression_3ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_3_in_synpred85_InternalMitraParser7804);\n lv_rhs_3_0=ruleExpression_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public void testBEAST8() throws Exception {\n\t\tObject retval = execLexer(\"BEAST\", 167, \"unicorn\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"BEAST\", expecting, actual);\n\t}", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "protected LR1_Grammar(Grammar grammar) {\n\t\tsuper(grammar);\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "public final void synpred111_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ( ^( MINUS expr expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ^( MINUS expr expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_synpred111_AstValidator1949); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1951);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1953);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "public void testWS8() throws Exception {\n\t\tObject retval = execLexer(\"WS\", 289, \" a \", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"WS\", expecting, actual);\n\t}", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public String getLHS()\n {\n return lhs;\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.pipe();\n xPathLexer0.slashes();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.number();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "public final void synpred8_InternalSafetyParser_fragment() throws RecognitionException { \n // InternalSafetyParser.g:3439:5: ( ( () Whenever ( ( ruleExpr ) ) Becomes True ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs ) ) )\n // InternalSafetyParser.g:3439:6: ( () Whenever ( ( ruleExpr ) ) Becomes True ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs ) )\n {\n // InternalSafetyParser.g:3439:6: ( () Whenever ( ( ruleExpr ) ) Becomes True ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs ) )\n // InternalSafetyParser.g:3440:6: () Whenever ( ( ruleExpr ) ) Becomes True ( ( ruleExpr ) ) ( ( Exclusively ) )? ( Occur | Occurs )\n {\n // InternalSafetyParser.g:3440:6: ()\n // InternalSafetyParser.g:3441:6: \n {\n }\n\n match(input,Whenever,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:3443:6: ( ( ruleExpr ) )\n // InternalSafetyParser.g:3444:7: ( ruleExpr )\n {\n // InternalSafetyParser.g:3444:7: ( ruleExpr )\n // InternalSafetyParser.g:3445:8: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_48);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n match(input,Becomes,FollowSets000.FOLLOW_49); if (state.failed) return ;\n match(input,True,FollowSets000.FOLLOW_21); if (state.failed) return ;\n // InternalSafetyParser.g:3450:6: ( ( ruleExpr ) )\n // InternalSafetyParser.g:3451:7: ( ruleExpr )\n {\n // InternalSafetyParser.g:3451:7: ( ruleExpr )\n // InternalSafetyParser.g:3452:8: ruleExpr\n {\n pushFollow(FollowSets000.FOLLOW_46);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // InternalSafetyParser.g:3455:6: ( ( Exclusively ) )?\n int alt152=2;\n int LA152_0 = input.LA(1);\n\n if ( (LA152_0==Exclusively) ) {\n alt152=1;\n }\n switch (alt152) {\n case 1 :\n // InternalSafetyParser.g:3456:7: ( Exclusively )\n {\n // InternalSafetyParser.g:3456:7: ( Exclusively )\n // InternalSafetyParser.g:3457:8: Exclusively\n {\n match(input,Exclusively,FollowSets000.FOLLOW_47); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n if ( input.LA(1)==Occurs||input.LA(1)==Occur ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n\n\n }\n }", "public void toGrammar() {\n System.out.println(\"<binary_expression> -> <arithmeitc_expression> <arithmetic_op> <arithmetic_expression>\");\n left.toGrammar();\n operator.toGrammar();\n right.toGrammar();\n prefix();\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "@Override\n\tprotected void initPredicate() {\n\t\t\n\t\tString pred1 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * header::Entry<ele,header,header> & size=0 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,header,header> & first=last & size=1 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,nextF,prevF> * last::Entry<ele2,nextL,prevL> * lseg(nextF,first,last,prevL,size1) & prevF=header & nextL=header & size=2+size1\";\n\t\t\n\t\tString pred2 = \"pred lseg(next,first,last,prev,size) == next=last & prev=first & size=0 || \" +\n\t\t\t\t\"next::Entry<item,next1,prev1> * lseg(next1,next,last,prev,size1) & prev1=first & size=size1+1\";\n\t\t\n\t\t\n//\t\tString pred0 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * dll(header,size)\";\n//\t\tString pred1 = \"pred dll(header,size) == header::Entry<ele,header,header> & size=0 || header::Entry<ele,next,prev> * nndll(next,header,header,prev,size)\";\n//\t\tString pred2 = \"pred nndll(curr,prev,header,prevH,size) == curr::Entry<ele,header,prev> & prevH=curr & size=1 || curr::Entry<ele,next,prev> * nndll(next,curr,header,prevH,size1) & size=size1+1\";\n\t\t\t\t\n\t\tString pred = pred1 + \";\" + pred2;\n\t\tInitializer.initPredicate(pred);\n\t}", "public final void synpred7_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:9: ( IF or_test[null] ORELSE )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:10: IF or_test[null] ORELSE\n {\n match(input,IF,FOLLOW_IF_in_synpred7_Python4191); if (state.failed) return ;\n pushFollow(FOLLOW_or_test_in_synpred7_Python4193);\n or_test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,ORELSE,FOLLOW_ORELSE_in_synpred7_Python4196); if (state.failed) return ;\n\n }\n }", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "public final void synpred5_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:7: ( test[null] COMMA test[null] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:8: test[null] COMMA test[null]\n {\n pushFollow(FOLLOW_test_in_synpred5_Python2388);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred5_Python2391); if (state.failed) return ;\n pushFollow(FOLLOW_test_in_synpred5_Python2393);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public StatementNode getStatementNodeOnTrue();", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\".s,=X(+aojF=\");\n Token token0 = xPathLexer0.rightBracket();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(4, token0.getTokenType());\n assertEquals(\".\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"s,=X(+aojF=\", token1.getTokenText());\n }", "private Literal findNextLiteral(String subquery, int startIndex) {\n\n\t\tint subLength = subquery.length();\n\t\tint lengthOut;\n\n\t\t// Skip past white space.\n\t\twhile (subquery.charAt(startIndex) == ' ') {\n\t\t\t++startIndex;\n\t\t}\n\n\t\t//determine if a phrase literal is next\n\t\tif (subquery.charAt(startIndex) == '\\\"') {\n\t\t\tstartIndex++;//skip first \\\"\n\t\t\tint phraseEnd = subquery.indexOf('\\\"', startIndex+1);//phrase ending\n\t\t\tif (phraseEnd >= 0) {\n\t\t\t\tlengthOut = phraseEnd - startIndex;\n\n\t\t\t\t//split up the terms within the phrase\n\t\t\t\tString[] splitPhrase = subquery.substring(startIndex, startIndex + lengthOut).split(\" \");\n\t\t\t\tList<Query> phraseTerms = new ArrayList<>();\n\t\t\t\tfor (int i = 0; i < splitPhrase.length; i++) {\n\t\t\t\t\t//locate a wildcard within the term\n\t\t\t\t\tint wildCard = splitPhrase[i].indexOf('*');\n\t\t\t\t\tif (wildCard >= 0) {\n\t\t\t\t\t\tphraseTerms.add(new WildcardLiteral(splitPhrase[i]));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphraseTerms.add(new TermLiteral(splitPhrase[i]));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// This is a phrase literal containing multiple terms.\n\t\t\t\treturn new Literal(\n\t\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\t\tnew PhraseLiteral(phraseTerms));\n\n\t\t\t}\n\n\t\t}\n\n\t\t// determine if a NEAR literal is next\n\t\t// ex. [baseball NEAR/2 angels]\n\t\tif (subquery.charAt(startIndex) == '[') {\n\t\t\tstartIndex++; // skip initial '['\n\t\t\tint nearEnd = subquery.indexOf(']', startIndex+1);\n\t\t\tif (nearEnd >= 0) {\n\t\t\t\tlengthOut = nearEnd - startIndex;\n\n\t\t\t\t// split literal into [ firstTerm, NEAR/k, secondTerm ]\n\t\t\t\tString[] splitNEAR = subquery.substring(startIndex, startIndex + lengthOut).split(\" \");\n\t\t\t\tList<Query> nearTerms = new ArrayList<>();\n\t\t\t\tint k = 0;\n\t\t\t\tfor (int i = 0; i < splitNEAR.length; i++) {\n\t\t\t\t\tif(i == 1){\n\t\t\t\t\t\t// second term is the NEAR/k, extract k\n\t\t\t\t\t\tk = Integer.parseInt(splitNEAR[i].substring(5));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// check for wildcard\n\t\t\t\t\t\tint wildCard = splitNEAR[i].indexOf('*');\n\t\t\t\t\t\tif(wildCard >= 0) {\n\t\t\t\t\t\t\t// wildcard literal\n\t\t\t\t\t\t\tnearTerms.add(new WildcardLiteral(splitNEAR[i]));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// term literal\n\t\t\t\t\t\t\tnearTerms.add(new TermLiteral(splitNEAR[i]));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\treturn new Literal(\n\t\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\t\tnew NearLiteral(nearTerms,k));\n\t\t\t}\n\n\t\t}\n\n\t\t// Locate the next space to find the end of this literal.\n\t\tint nextSpace = subquery.indexOf(' ', startIndex);\n\t\tif (nextSpace < 0) {\n\t\t\t// No more literals in this subquery.\n\t\t\tlengthOut = subLength - startIndex;\n\t\t}\n\t\telse {\n\t\t\tlengthOut = nextSpace - startIndex;\n\t\t}\n\n\t\t//locate a wildcard within the term\n\t\tint wildCard = subquery.substring(startIndex, startIndex + lengthOut).indexOf('*');\n\t\tif (wildCard >= 0) {\n\t\t\t// This is a term literal containing a single term.\n\t\t\treturn new Literal(\n\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\tnew WildcardLiteral(subquery.substring(startIndex, startIndex + lengthOut)));\n\t\t}\n\n\t\t// This is a term literal containing a single term.\n\t\treturn new Literal(\n\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\tnew TermLiteral(subquery.substring(startIndex, startIndex + lengthOut)));\n\n\t\t/*\n\t\tDone:\n\t\tInstead of assuming that we only have single-term literals, modify this method so it will create a PhraseLiteral\n\t\tobject if the first non-space character you find is a double-quote (\"). In this case, the literal is not ended\n\t\tby the next space character, but by the next double-quote character.\n\t\t */\n\n\t}", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public interface PredicateBinaryExpr extends BinaryExpr {\r\n /**\r\n * Returns the wildcard operator.\r\n * \r\n * @return the wildcard operator.\r\n */\r\n public PredicateOperator getOperator();\r\n\r\n /**\r\n * Returns the property.\r\n * \r\n * @return the property.\r\n */\r\n public Property getProperty();\r\n\r\n /**\r\n * Returns the string representation of the path qualified property.\r\n * \r\n * @return the string representation of the path qualified property\r\n */\r\n public String getPropertyPath();\r\n\r\n /**\r\n * Returns the query literal\r\n * \r\n * @return the query literal\r\n */\r\n public Literal getLiteral();\r\n}", "public final boolean synpred1_PrePro() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred1_PrePro_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "public interface SubstPred extends Reason {\r\n\r\n /**\r\n * Get this reason.\r\n *\r\n * @return This reason.\r\n */\r\n public SubstPred getSubstPred();\r\n\r\n /**\r\n * Get reference to already proven formula.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public String getReference();\r\n\r\n /**\r\n * Get predicate variable (with subject variables as parameters) that should be replaced.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public Element getPredicateVariable();\r\n\r\n /**\r\n * Get substitute formula. Must contain the subject variables from\r\n * {@link #getPredicateVariable()}.\r\n *\r\n * @return Replacement term.\r\n */\r\n public Element getSubstituteFormula();\r\n\r\n}", "public final flipsParser.requireValue_return requireValue() throws RecognitionException {\n flipsParser.requireValue_return retval = new flipsParser.requireValue_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token StringLiteral8=null;\n Token And9=null;\n Token char_literal10=null;\n Token And11=null;\n Token StringLiteral12=null;\n\n CommonTree StringLiteral8_tree=null;\n CommonTree And9_tree=null;\n CommonTree char_literal10_tree=null;\n CommonTree And11_tree=null;\n CommonTree StringLiteral12_tree=null;\n RewriteRuleTokenStream stream_StringLiteral=new RewriteRuleTokenStream(adaptor,\"token StringLiteral\");\n RewriteRuleTokenStream stream_120=new RewriteRuleTokenStream(adaptor,\"token 120\");\n RewriteRuleTokenStream stream_And=new RewriteRuleTokenStream(adaptor,\"token And\");\n\n try {\n // flips.g:140:2: ( StringLiteral ( ( And | ',' ( And )? )? StringLiteral )* -> ( ^( REQUIRE StringLiteral ) )+ )\n // flips.g:140:4: StringLiteral ( ( And | ',' ( And )? )? StringLiteral )*\n {\n StringLiteral8=(Token)match(input,StringLiteral,FOLLOW_StringLiteral_in_requireValue551); \n stream_StringLiteral.add(StringLiteral8);\n\n // flips.g:140:18: ( ( And | ',' ( And )? )? StringLiteral )*\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0>=StringLiteral && LA7_0<=And)||LA7_0==120) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // flips.g:140:19: ( And | ',' ( And )? )? StringLiteral\n \t {\n \t // flips.g:140:19: ( And | ',' ( And )? )?\n \t int alt6=3;\n \t int LA6_0 = input.LA(1);\n\n \t if ( (LA6_0==And) ) {\n \t alt6=1;\n \t }\n \t else if ( (LA6_0==120) ) {\n \t alt6=2;\n \t }\n \t switch (alt6) {\n \t case 1 :\n \t // flips.g:140:20: And\n \t {\n \t And9=(Token)match(input,And,FOLLOW_And_in_requireValue555); \n \t stream_And.add(And9);\n\n\n \t }\n \t break;\n \t case 2 :\n \t // flips.g:140:24: ',' ( And )?\n \t {\n \t char_literal10=(Token)match(input,120,FOLLOW_120_in_requireValue557); \n \t stream_120.add(char_literal10);\n\n \t // flips.g:140:28: ( And )?\n \t int alt5=2;\n \t int LA5_0 = input.LA(1);\n\n \t if ( (LA5_0==And) ) {\n \t alt5=1;\n \t }\n \t switch (alt5) {\n \t case 1 :\n \t // flips.g:140:28: And\n \t {\n \t And11=(Token)match(input,And,FOLLOW_And_in_requireValue559); \n \t stream_And.add(And11);\n\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t StringLiteral12=(Token)match(input,StringLiteral,FOLLOW_StringLiteral_in_requireValue564); \n \t stream_StringLiteral.add(StringLiteral12);\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\n }\n } while (true);\n\n\n\n // AST REWRITE\n // elements: StringLiteral\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 141:2: -> ( ^( REQUIRE StringLiteral ) )+\n {\n if ( !(stream_StringLiteral.hasNext()) ) {\n throw new RewriteEarlyExitException();\n }\n while ( stream_StringLiteral.hasNext() ) {\n // flips.g:141:5: ^( REQUIRE StringLiteral )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(REQUIRE, \"REQUIRE\"), root_1);\n\n adaptor.addChild(root_1, stream_StringLiteral.nextNode());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n stream_StringLiteral.reset();\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "Expression getActionSentence();", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n \n Token token1 = xPathLexer0.not();\n assertEquals(\"O\", token1.getTokenText());\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"Ph7\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "public final EObject ruleExpression_7() throws RecognitionException {\n EObject current = null;\n int ruleExpression_7_StartIndex = input.index();\n Token otherlv_2=null;\n EObject this_Expression_8_0 = null;\n\n EObject lv_expression_3_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 96) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4187:28: ( (this_Expression_8_0= ruleExpression_8 | ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4188:1: (this_Expression_8_0= ruleExpression_8 | ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4188:1: (this_Expression_8_0= ruleExpression_8 | ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) ) )\n int alt71=2;\n alt71 = dfa71.predict(input);\n switch (alt71) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4189:2: this_Expression_8_0= ruleExpression_8\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_7Access().getExpression_8ParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleExpression_8_in_ruleExpression_78383);\n this_Expression_8_0=ruleExpression_8();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_Expression_8_0;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:6: ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:6: ( () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:7: () otherlv_2= KEYWORD_1 ( (lv_expression_3_0= ruleExpression_8 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4201:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4202:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getExpression_7Access().getUnaryBooleanExpressionAction_1_0(),\n current);\n \n }\n\n }\n\n otherlv_2=(Token)match(input,KEYWORD_1,FOLLOW_KEYWORD_1_in_ruleExpression_78414); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getExpression_7Access().getExclamationMarkKeyword_1_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4215:1: ( (lv_expression_3_0= ruleExpression_8 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4216:1: (lv_expression_3_0= ruleExpression_8 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4216:1: (lv_expression_3_0= ruleExpression_8 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4217:3: lv_expression_3_0= ruleExpression_8\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_7Access().getExpressionExpression_8ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_8_in_ruleExpression_78434);\n lv_expression_3_0=ruleExpression_8();\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.getExpression_7Rule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"expression\",\n \t\tlv_expression_3_0, \n \t\t\"Expression_8\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 96, ruleExpression_7_StartIndex); }\n }\n return current;\n }", "@Test(timeout = 4000)\n public void test160() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(\"h\", token0.getTokenText());\n \n xPathLexer0.not();\n Token token1 = xPathLexer0.nextToken();\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.leftParen();\n assertEquals(1, token2.getTokenType());\n assertEquals(\"S\", token2.getTokenText());\n \n Token token3 = xPathLexer0.dollar();\n assertEquals(26, token3.getTokenType());\n \n Token token4 = xPathLexer0.at();\n assertEquals(16, token4.getTokenType());\n assertEquals(\"~\", token4.getTokenText());\n \n Token token5 = xPathLexer0.not();\n assertEquals(\"8\", token5.getTokenText());\n \n Token token6 = xPathLexer0.nextToken();\n assertEquals(\"ux(wB\", token6.getTokenText());\n }", "public final void synpred3_Binding_fragment() throws RecognitionException { \n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:11: INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n {\n mINT(); if (state.failed) return ;\n match('.'); if (state.failed) return ;\n if ( (input.LA(1)>='\\u0000' && input.LA(1)<='-')||(input.LA(1)>='/' && input.LA(1)<='@')||(input.LA(1)>='[' && input.LA(1)<='^')||input.LA(1)=='`'||(input.LA(1)>='{' && input.LA(1)<='\\u00BF')||input.LA(1)=='\\u00D7'||input.LA(1)=='\\u00F7'||(input.LA(1)>='\\u0100' && input.LA(1)<='\\uFFFF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n }", "@Override\n public final void bottomup() {\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:73:5:\n // ( | standaloneExpression | expressionRoot | incompleteAxiom |\n // incompleteExpression | axiom )\n int alt1 = 6;\n switch (input.LA(1)) {\n case EOF: {\n alt1 = 1;\n }\n break;\n case STANDALONE_EXPRESSION: {\n alt1 = 2;\n }\n break;\n case EXPRESSION: {\n alt1 = 3;\n }\n break;\n case INCOMPLETE_TYPE_ASSERTION:\n case INCOMPLETE_ROLE_ASSERTION:\n case INCOMPLETE_UNARY_AXIOM:\n case INCOMPLETE_SUB_CLASS_AXIOM:\n case INCOMPLETE_EQUIVALENT_TO_AXIOM:\n case INCOMPLETE_DISJOINT_WITH_AXIOM:\n case INCOMPLETE_SUB_PROPERTY_AXIOM:\n case INCOMPLETE_SAME_AS_AXIOM:\n case INCOMPLETE_DIFFERENT_FROM_AXIOM:\n case INCOMPLETE_DOMAIN:\n case INCOMPLETE_RANGE:\n case INCOMPLETE_INVERSE_OF: {\n alt1 = 4;\n }\n break;\n case INCOMPLETE_PROPERTY_CHAIN:\n case INCOMPLETE_DISJUNCTION:\n case INCOMPLETE_EXPRESSION: {\n alt1 = 5;\n }\n break;\n case INVERSE_OF:\n case DOMAIN:\n case RANGE:\n case SUB_CLASS_AXIOM:\n case EQUIVALENT_TO_AXIOM:\n case DISJOINT_WITH_AXIOM:\n case SUB_PROPERTY_AXIOM:\n case SAME_AS_AXIOM:\n case DIFFERENT_FROM_AXIOM:\n case UNARY_AXIOM:\n case NEGATED_ASSERTION:\n case TYPE_ASSERTION:\n case ROLE_ASSERTION: {\n alt1 = 6;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 1, 0, input);\n throw nvae;\n }\n switch (alt1) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:5:\n {}\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:7:\n // standaloneExpression\n {\n pushFollow(FOLLOW_standaloneExpression_in_bottomup87);\n standaloneExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:75:8:\n // expressionRoot\n {\n pushFollow(FOLLOW_expressionRoot_in_bottomup96);\n expressionRoot();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:76:9:\n // incompleteAxiom\n {\n pushFollow(FOLLOW_incompleteAxiom_in_bottomup107);\n incompleteAxiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:77:9:\n // incompleteExpression\n {\n pushFollow(FOLLOW_incompleteExpression_in_bottomup117);\n incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 6:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:78:8:\n // axiom\n {\n pushFollow(FOLLOW_axiom_in_bottomup126);\n axiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return;\n }", "private boolean grammar() {\r\n return skip() && rules() && MARK(END_OF_TEXT) && EOT();\r\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "public final void synpred1_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:7: ( LPAREN fpdef[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:8: LPAREN fpdef[null] COMMA\n {\n match(input,LPAREN,FOLLOW_LPAREN_in_synpred1_Python1249); if (state.failed) return ;\n pushFollow(FOLLOW_fpdef_in_synpred1_Python1251);\n fpdef(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred1_Python1254); if (state.failed) return ;\n\n }\n }", "public interface sym {\n /* terminals */\n public static final int SHORT = 47;\n public static final int ANDEQ = 94;\n public static final int IMPLEMENTS = 4;\n public static final int CONST = 27;\n public static final int BITNOT = 68;\n public static final int STRICTFP = 35;\n public static final int NOTEQ = 74;\n public static final int PLUSEQ = 90;\n public static final int RBRACK = 60;\n public static final int CATCH = 20;\n public static final int COMMA = 62;\n public static final int RBRACE = 58;\n public static final int THROW = 22;\n public static final int RPAREN = 56;\n public static final int LBRACK = 59;\n public static final int ANDAND = 75;\n public static final int NUMERO = 101;\n public static final int OROR = 76;\n public static final int DOUBLE = 51;\n public static final int LBRACE = 57;\n public static final int TRANSIENT = 32;\n public static final int LPAREN = 55;\n public static final int XOREQ = 96;\n public static final int PROTECTED = 37;\n public static final int FALSE = 54;\n public static final int NOT = 67;\n public static final int COMENTARIO = 102;\n public static final int FINAL = 29;\n public static final int FLOAT = 49;\n public static final int URSHIFTEQ = 45;\n public static final int PACKAGE = 25;\n public static final int MOD = 86;\n public static final int CLASS = 2;\n public static final int SUPER = 34;\n public static final int ABSTRACT = 28;\n public static final int TRUE = 53;\n public static final int NATIVE = 30;\n public static final int PLUS = 79;\n public static final int LONG = 50;\n public static final int QUESTION = 69;\n public static final int WHILE = 17;\n public static final int EQUAL = 64;\n public static final int EXTENDS = 3;\n public static final int INTERFACE = 5;\n public static final int CHAR = 46;\n public static final int BOOLEAN = 44;\n public static final int SWITCH = 16;\n public static final int DO = 11;\n public static final int FOR = 14;\n public static final int RSHIFTEQ = 99;\n public static final int GREATER = 65;\n public static final int DIV = 82;\n public static final int VOID = 40;\n public static final int MULT = 81;\n public static final int PUBLIC = 36;\n public static final int RETURN = 15;\n public static final int ELSE = 13;\n public static final int TRY = 19;\n public static final int GTEQ = 73;\n public static final int BREAK = 7;\n public static final int DOT = 63;\n public static final int INT = 48;\n public static final int THROWS = 23;\n public static final int EQEQ = 71;\n public static final int NULL = 41;\n public static final int EOF = 0;\n public static final int SEMICOLON = 61;\n public static final int THIS = 42;\n public static final int DEFAULT = 10;\n public static final int MULTEQ = 92;\n public static final int IMPORT = 24;\n public static final int MINUS = 80;\n public static final int LTEQ = 72;\n public static final int OR = 84;\n public static final int URSHIFT = 89;\n public static final int error = 1;\n public static final int SYNCHRONIZED = 31;\n public static final int DIVEQ = 93;\n public static final int LSHIFTEQ = 98;\n public static final int FINALLY = 21;\n public static final int CONTINUE = 9;\n public static final int IF = 12;\n public static final int INSTANCEOF = 43;\n public static final int ID = 100;\n public static final int MODEQ = 97;\n public static final int MINUSMINUS = 78;\n public static final int COLON = 70;\n public static final int ASSERT = 18;\n public static final int OREQ = 95;\n public static final int VOLATILE = 33;\n public static final int PLUSPLUS = 77;\n public static final int CASE = 8;\n public static final int NEW = 6;\n public static final int RSHIFT = 88;\n public static final int STRING = 52;\n public static final int LESS = 66;\n public static final int BYTE = 26;\n public static final int AND = 83;\n public static final int PRIVATE = 38;\n public static final int STATIC = 39;\n public static final int LSHIFT = 87;\n public static final int XOR = 85;\n public static final int MINUSEQ = 91;\n}", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.rightParen();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "static void translate() {\n if(!token.equals(\"IF\")) {\r\n stack.add(lexeme);\r\n index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n stack.add(lexeme);\r\n index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n stack.add(index, lexeme);\r\n index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n index++;\r\n }\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n index++;\r\n break;\r\n }\r\n }\r\n\r\n // Beginning the execution and evaluation of the translated code.\r\n index = 0;\r\n\r\n while (!stack.get(index).equals(\"=\") && !stack.get(index).equals(\"+\") && !stack.get(index).equals(\"-\") &&\r\n !stack.get(index).equals(\"*\") && !stack.get(index).equals(\"/\") && !stack.get(index).equals(\"%\")) {\r\n index ++;\r\n }\r\n\r\n int value = 0;\r\n int operand1 = 0;\r\n int operand2 = 0;\r\n String operator = stack.get(index);\r\n stack.remove(index);\r\n index--;\r\n\r\n if (operator.equals(\"=\")) {\r\n\r\n try {\r\n value = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n value = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n index--;\r\n\r\n String id = stack.get(index);\r\n stack.remove(index);\r\n\r\n //System.out.println(\"\\n\" + id + \" is equal to \" + value);\r\n\r\n if (search(id) == -1) {\r\n varList.add(id);\r\n varList.add(Integer.toString(value));\r\n } else {\r\n varList.set(search(id) + 1, Integer.toString(value));\r\n }\r\n }\r\n\r\n else {\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n\r\n execute(evaluate(operand1, operand2, operator));\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(translateIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"y/F+oSztXWDMo}00{5-\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"/\", token1.getTokenText());\n assertEquals(11, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"F\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public final boolean synpred33_ul() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred33_ul_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "public Lexicon lex()\n/* */ {\n/* 505 */ return new BaseLexicon();\n/* */ }", "public final void synpred11_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred11_Python7158);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred11_Python7161); if (state.failed) return ;\n\n }\n }", "public final void synpred10_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: ( EPRESSIONCHAR )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: EPRESSIONCHAR\n {\n match(input,EPRESSIONCHAR,FOLLOW_EPRESSIONCHAR_in_synpred10_expression199); if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"](\");\n boolean boolean0 = xPathLexer0.hasMoreChars();\n assertTrue(boolean0);\n }", "public void testSUBORDINARY7() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 39, \"tressure\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "public final void synpred13_ul_fragment() throws RecognitionException {\n\t\tExpr e =null;\n\n\t\t// ul.g:108:4: (e= expr SEMI )\n\t\t// ul.g:108:4: e= expr SEMI\n\t\t{\n\t\tpushFollow(FOLLOW_expr_in_synpred13_ul390);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,SEMI,FOLLOW_SEMI_in_synpred13_ul392); if (state.failed) return;\n\t\t}\n\n\t}", "public void testBEAST7() throws Exception {\n\t\tObject retval = execLexer(\"BEAST\", 166, \"horse\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"BEAST\", expecting, actual);\n\t}", "private Proof faxm8Gen(Expression s, Expression t) {\n return generateWithTerm(var(\"b\"), t, generateWithTerm(var(\"a\"), s, faxm8));\n }", "public interface AstIncreUnaryExpression extends AstUnaryExpression {\r\n}", "public final void synpred32_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_10=null;\n EObject lv_left_9_0 = null;\n\n EObject lv_right_11_0 = null;\n\n\n // InternalMyDsl.g:1261:3: ( ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1262:4: () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1262:4: ()\n // InternalMyDsl.g:1263:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1272:4: ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1274:6: lv_left_9_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_18);\n lv_left_9_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_10=(Token)match(input,32,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:1295:4: ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1297:6: lv_right_11_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_11_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public static void main(String[] args) {\n RegexParser regexParser = new RegexParser(new File(args[0]));\n regexParser.parseCharClasses();\n regexParser.parseTokens();\n regexParser.buildDFATable();\n // write DFA Table to file\n try {\n BufferedWriter tableWriter = new BufferedWriter(new FileWriter(new File(args[2])));\n for (int i = 0; i < regexParser.dfaTable.tableRows.size(); i++) {\n tableWriter.write(\"State\" + i);\n tableWriter.newLine();\n for (int j = 0; j < 95; j++) {\n //if (regexParser.dfaTable.tableRows.get(i).nextStates[j] != 1) {\n tableWriter.write(\" \" + (char)(j + 32) + \" \" + regexParser.dfaTable.tableRows.get(i).nextStates[j]);\n //}\n }\n tableWriter.newLine();\n }\n tableWriter.newLine();\n tableWriter.write(\"Accept States\");\n tableWriter.newLine();\n for (int j = 0; j < regexParser.dfaTable.tableRows.size(); j++) {\n for (int i = 0; i < regexParser.dfaTable.nfa.acceptStates.size(); i++) {\n if (regexParser.dfaTable.tableRows.get(j).nfaStates.contains(regexParser.dfaTable.nfa.acceptStates.get(i))) {\n tableWriter.write(\" \" + j);\n }\n }\n }\n tableWriter.close();\n }\n catch (Exception e) {\n System.out.println(\"Could not write to table file\");\n System.exit(0);\n }\n TableWalker tw = new TableWalker(regexParser.dfaTable, new File(args[1]), new File(args[3]));\n System.out.println(\"Success! Check your output files!\");\n//Part 2, piece 1: parsing the grammar\n LL1GrammarParser parser = new LL1GrammarParser(new File(args[4]), regexParser.specReader.tokens);\n parser.parseGrammar();\n\n//piece 2/3: first and follow sets \n System.out.println(\"Creating First and Follow Sets: \");\n\n LL1FFSets sets = new LL1FFSets(parser.rules);\n\n System.out.println(\"Working on the Parsing Table\");\n//piece 4/5: LL(1) parsing table and running it. Success/reject message here.\n LL1ParsingTable table = new LL1ParsingTable(sets, regexParser.specReader.tokens,tw.parsedTokens, parser.rules);\n System.out.println(table.run());\n\n\n }" ]
[ "0.61758643", "0.5981183", "0.5945085", "0.5760926", "0.55078894", "0.548581", "0.5430241", "0.54055387", "0.5394578", "0.534647", "0.5338158", "0.5313983", "0.522658", "0.5213188", "0.51800066", "0.51627415", "0.5116778", "0.51152635", "0.51127124", "0.5078295", "0.5042001", "0.5035968", "0.5021454", "0.5006556", "0.49844915", "0.4979229", "0.4968997", "0.49560818", "0.49468428", "0.4914157", "0.48950708", "0.48850262", "0.48778543", "0.48677737", "0.48467073", "0.48272762", "0.4820821", "0.4818833", "0.4814654", "0.48138717", "0.48097256", "0.48038843", "0.47993377", "0.47907993", "0.47837585", "0.47816986", "0.47709534", "0.47706947", "0.4767834", "0.47620526", "0.4758844", "0.4756507", "0.47068414", "0.4706563", "0.47038674", "0.46936816", "0.46846464", "0.4682529", "0.46820065", "0.46645233", "0.4645499", "0.46378952", "0.46374947", "0.46365058", "0.4620162", "0.46150124", "0.4613845", "0.46133646", "0.46130574", "0.46125683", "0.46054786", "0.46012193", "0.4597858", "0.45951238", "0.45912963", "0.45871514", "0.4585926", "0.4584182", "0.45841357", "0.45683715", "0.45638457", "0.45520782", "0.45498323", "0.45496958", "0.45495525", "0.45487723", "0.45470884", "0.45459563", "0.4544763", "0.4543329", "0.45417324", "0.4540616", "0.454027", "0.4535694", "0.45322052", "0.4531503", "0.45298648", "0.452656", "0.4524342", "0.45231935" ]
0.70258236
0
$ANTLR end synpred8_expression $ANTLR start synpred10_expression
public final void synpred10_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:45:35: ( EPRESSIONCHAR ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:45:35: EPRESSIONCHAR { match(input,EPRESSIONCHAR,FOLLOW_EPRESSIONCHAR_in_synpred10_expression199); if (state.failed) return ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ;\n\n }\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "public final void synpred11_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: ( nameExprTerm )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: nameExprTerm\n {\n pushFollow(FOLLOW_nameExprTerm_in_synpred11_expression222);\n nameExprTerm();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "Expression getActionSentence();", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "public final void synpred10_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:7: ( expr[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:8: expr[null] COMMA\n {\n pushFollow(FOLLOW_expr_in_synpred10_Python7017);\n expr(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred10_Python7020); if (state.failed) return ;\n\n }\n }", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "public void toGrammar() {\n System.out.println(\"<binary_expression> -> <arithmeitc_expression> <arithmetic_op> <arithmetic_expression>\");\n left.toGrammar();\n operator.toGrammar();\n right.toGrammar();\n prefix();\n }", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred3_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n \n Token token1 = xPathLexer0.not();\n assertEquals(\"O\", token1.getTokenText());\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"Ph7\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public final void synpred111_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ( ^( MINUS expr expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ^( MINUS expr expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_synpred111_AstValidator1949); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1951);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1953);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.pipe();\n xPathLexer0.slashes();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.number();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test160() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(\"h\", token0.getTokenText());\n \n xPathLexer0.not();\n Token token1 = xPathLexer0.nextToken();\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.leftParen();\n assertEquals(1, token2.getTokenType());\n assertEquals(\"S\", token2.getTokenText());\n \n Token token3 = xPathLexer0.dollar();\n assertEquals(26, token3.getTokenType());\n \n Token token4 = xPathLexer0.at();\n assertEquals(16, token4.getTokenType());\n assertEquals(\"~\", token4.getTokenText());\n \n Token token5 = xPathLexer0.not();\n assertEquals(\"8\", token5.getTokenText());\n \n Token token6 = xPathLexer0.nextToken();\n assertEquals(\"ux(wB\", token6.getTokenText());\n }", "public LiteralOPToken(String s, int nTypeCode)\n {\n super(s);\n m_nType = nTypeCode;\n setBindingPower(OPToken.PRECEDENCE_IDENTIFIER);\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "public interface Symbols {\n /* terminals */\n public static final int BAG = 68;\n public static final int RETRIEVE = 93;\n public static final int AS = 34;\n public static final int TIMES = 13;\n public static final int LCURLY = 54;\n public static final int TYPE = 58;\n public static final int LEAVESBY = 91;\n public static final int LOWEREQUALS = 33;\n public static final int LAZY_FAILURE = 97;\n public static final int CLOSEUNIQUEBY = 90;\n public static final int NAME = 7;\n public static final int ENUM = 70;\n public static final int FORSOME = 41;\n public static final int CATCH = 114;\n public static final int DATEPREC = 109;\n public static final int COMMA = 29;\n public static final int VIRTUAL = 99;\n public static final int RANDOM = 110;\n public static final int DOUBLE_LITERAL = 4;\n public static final int SUM = 48;\n public static final int THROW = 116;\n public static final int JOIN = 28;\n public static final int RPAREN = 19;\n public static final int ON_NAVIGATE = 106;\n public static final int STRUCT = 69;\n public static final int NOT_MATCH_STRING = 23;\n public static final int LPAREN = 18;\n public static final int NOW = 108;\n public static final int INTEGER_LITERAL = 2;\n public static final int NOT = 24;\n public static final int VIEW = 98;\n public static final int INSTANCE = 73;\n public static final int DIFFERENT = 21;\n public static final int DATE_LITERAL = 6;\n public static final int MIN = 43;\n public static final int THEN = 65;\n public static final int EXTERNAL = 67;\n public static final int RECORD = 57;\n public static final int SEROID = 120;\n public static final int REVERSE = 107;\n public static final int ON_UPDATE = 103;\n public static final int LOWER = 31;\n public static final int INSERTCOPY = 83;\n public static final int BOOLEAN_LITERAL = 5;\n public static final int TEMPORAL = 80;\n public static final int CLASS = 71;\n public static final int SEED = 101;\n public static final int IMPLEMENT = 95;\n public static final int MODULO = 17;\n public static final int UNIQUEREF = 47;\n public static final int PLUS = 10;\n public static final int FORALL = 42;\n public static final int DIVIDE = 14;\n public static final int EXISTS = 49;\n public static final int GREATEREQUALS = 32;\n public static final int WHILE = 84;\n public static final int UNION = 16;\n public static final int DELETE = 77;\n public static final int EXTENDS = 72;\n public static final int MODULE = 53;\n public static final int INTERFACE = 117;\n public static final int ASSIGN = 61;\n public static final int RSQUARE = 52;\n public static final int FOR = 86;\n public static final int DO = 85;\n public static final int SCHEMADEF = 96;\n public static final int MATCH_STRING = 22;\n public static final int GREATER = 30;\n public static final int RANGEAS = 119;\n public static final int MAX = 44;\n public static final int RETURN = 60;\n public static final int TRY = 113;\n public static final int ELSE = 66;\n public static final int DOTDOT = 50;\n public static final int BREAK = 87;\n public static final int DOT = 26;\n public static final int PERMANENT = 79;\n public static final int AVG = 45;\n public static final int TRANSACTION_ABORT = 112;\n public static final int STRING_LITERAL = 3;\n public static final int EOF = 0;\n public static final int SEMICOLON = 8;\n public static final int INTERSECT = 15;\n public static final int LSQUARE = 51;\n public static final int WHERE = 27;\n public static final int COUNT = 25;\n public static final int LOCAL = 81;\n public static final int IMPORT = 56;\n public static final int IS = 59;\n public static final int UNIQUE = 46;\n public static final int IN = 36;\n public static final int OR = 39;\n public static final int error = 1;\n public static final int HYPHEN = 11;\n public static final int LEAVESUNIQUEBY = 92;\n public static final int FINALLY = 115;\n public static final int CONTINUE = 88;\n public static final int INSTANCEOF = 74;\n public static final int IF = 64;\n public static final int CONTAINS = 37;\n public static final int COLON = 9;\n public static final int SUBTRACT = 12;\n public static final int CREATE = 78;\n public static final int DEREF = 62;\n public static final int FOREACH = 63;\n public static final int REF = 75;\n public static final int ON_DELETE = 104;\n public static final int DESEROID = 121;\n public static final int CLOSEBY = 89;\n public static final int RENAME = 122;\n public static final int UPDATE = 94;\n public static final int INSERT = 82;\n public static final int OBJECTS = 100;\n public static final int AND = 40;\n public static final int SESSION = 76;\n public static final int ON_RETRIEVE = 102;\n public static final int GROUPAS = 35;\n public static final int ON_NEW = 105;\n public static final int ORDERBY = 38;\n public static final int DISTINCT = 118;\n public static final int RCURLY = 55;\n public static final int EQUALS = 20;\n public static final int TRANSACTION_CAPABLE = 111;\n}", "@Override\n\tprotected void initPredicate() {\n\t\t\n\t\tString pred1 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * header::Entry<ele,header,header> & size=0 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,header,header> & first=last & size=1 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,nextF,prevF> * last::Entry<ele2,nextL,prevL> * lseg(nextF,first,last,prevL,size1) & prevF=header & nextL=header & size=2+size1\";\n\t\t\n\t\tString pred2 = \"pred lseg(next,first,last,prev,size) == next=last & prev=first & size=0 || \" +\n\t\t\t\t\"next::Entry<item,next1,prev1> * lseg(next1,next,last,prev,size1) & prev1=first & size=size1+1\";\n\t\t\n\t\t\n//\t\tString pred0 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * dll(header,size)\";\n//\t\tString pred1 = \"pred dll(header,size) == header::Entry<ele,header,header> & size=0 || header::Entry<ele,next,prev> * nndll(next,header,header,prev,size)\";\n//\t\tString pred2 = \"pred nndll(curr,prev,header,prevH,size) == curr::Entry<ele,header,prev> & prevH=curr & size=1 || curr::Entry<ele,next,prev> * nndll(next,curr,header,prevH,size1) & size=size1+1\";\n\t\t\t\t\n\t\tString pred = pred1 + \";\" + pred2;\n\t\tInitializer.initPredicate(pred);\n\t}", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public final void synpred32_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_10=null;\n EObject lv_left_9_0 = null;\n\n EObject lv_right_11_0 = null;\n\n\n // InternalMyDsl.g:1261:3: ( ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1262:4: () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1262:4: ()\n // InternalMyDsl.g:1263:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1272:4: ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1274:6: lv_left_9_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_18);\n lv_left_9_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_10=(Token)match(input,32,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:1295:4: ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1297:6: lv_right_11_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_11_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"y/F+oSztXWDMo}00{5-\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"/\", token1.getTokenText());\n assertEquals(11, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"F\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "public interface InputParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int TRUE = 5;\n /** RegularExpression Id. */\n int FALSE = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int INTEGER = 8;\n /** RegularExpression Id. */\n int STRING = 9;\n /** RegularExpression Id. */\n int CHARACTER = 10;\n /** RegularExpression Id. */\n int BOOLEAN = 11;\n /** RegularExpression Id. */\n int ASTERIX = 12;\n /** RegularExpression Id. */\n int COLON = 13;\n /** RegularExpression Id. */\n int ADT = 14;\n /** RegularExpression Id. */\n int SIGNATURES = 15;\n /** RegularExpression Id. */\n int EQUATIONS = 16;\n /** RegularExpression Id. */\n int PLUS = 17;\n /** RegularExpression Id. */\n int MINUS = 18;\n /** RegularExpression Id. */\n int ARROW = 19;\n /** RegularExpression Id. */\n int LESS_THAN = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int GREATER_THAN = 22;\n /** RegularExpression Id. */\n int HEX_ESCAPE = 23;\n /** RegularExpression Id. */\n int LEFT_PAREN = 24;\n /** RegularExpression Id. */\n int RIGHT_PAREN = 25;\n /** RegularExpression Id. */\n int UINT10 = 26;\n /** RegularExpression Id. */\n int ND = 27;\n /** RegularExpression Id. */\n int MC = 28;\n /** RegularExpression Id. */\n int ME = 29;\n /** RegularExpression Id. */\n int LU = 30;\n /** RegularExpression Id. */\n int LL = 31;\n /** RegularExpression Id. */\n int LT = 32;\n /** RegularExpression Id. */\n int LM = 33;\n /** RegularExpression Id. */\n int LO = 34;\n /** RegularExpression Id. */\n int MN = 35;\n /** RegularExpression Id. */\n int NL = 36;\n /** RegularExpression Id. */\n int NO = 37;\n /** RegularExpression Id. */\n int PD = 38;\n /** RegularExpression Id. */\n int PC = 39;\n /** RegularExpression Id. */\n int PO = 40;\n /** RegularExpression Id. */\n int SC = 41;\n /** RegularExpression Id. */\n int SM = 42;\n /** RegularExpression Id. */\n int SK = 43;\n /** RegularExpression Id. */\n int SO = 44;\n /** RegularExpression Id. */\n int CO = 45;\n /** RegularExpression Id. */\n int ID = 46;\n /** RegularExpression Id. */\n int PECULIAR_ID = 47;\n /** RegularExpression Id. */\n int INITIAL = 48;\n /** RegularExpression Id. */\n int SPECIAL_INITIAL = 49;\n /** RegularExpression Id. */\n int CONSTITUENT = 50;\n /** RegularExpression Id. */\n int SUBSEQUENT = 51;\n /** RegularExpression Id. */\n int SPECIAL_SUBSEQUENT = 52;\n /** RegularExpression Id. */\n int INLINE_HEX_ESCAPE = 53;\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 \"\\\"#t\\\"\",\n \"\\\"#f\\\"\",\n \"\\\"not\\\"\",\n \"\\\"int\\\"\",\n \"\\\"string\\\"\",\n \"\\\"character\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"*\\\"\",\n \"\\\":\\\"\",\n \"\\\"ADT:\\\"\",\n \"\\\"Signatures:\\\"\",\n \"\\\"Equations:\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"->\\\"\",\n \"\\\"<\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"\\\\\\\\x\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"<UINT10>\",\n \"<ND>\",\n \"<MC>\",\n \"<ME>\",\n \"<LU>\",\n \"<LL>\",\n \"<LT>\",\n \"<LM>\",\n \"<LO>\",\n \"<MN>\",\n \"<NL>\",\n \"<NO>\",\n \"<PD>\",\n \"<PC>\",\n \"<PO>\",\n \"<SC>\",\n \"<SM>\",\n \"<SK>\",\n \"<SO>\",\n \"<CO>\",\n \"<ID>\",\n \"<PECULIAR_ID>\",\n \"<INITIAL>\",\n \"<SPECIAL_INITIAL>\",\n \"<CONSTITUENT>\",\n \"<SUBSEQUENT>\",\n \"<SPECIAL_SUBSEQUENT>\",\n \"<INLINE_HEX_ESCAPE>\",\n };\n\n}", "public final void synpred13_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: ( REFERENCECHAR simpleExpr )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: REFERENCECHAR simpleExpr\n {\n match(input,REFERENCECHAR,FOLLOW_REFERENCECHAR_in_synpred13_expression246); if (state.failed) return ;\n pushFollow(FOLLOW_simpleExpr_in_synpred13_expression249);\n simpleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred11_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred11_Python7158);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred11_Python7161); if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"^r\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"^r\", token0.getTokenText());\n }", "public void testSUBORDINARY10() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 42, \"bend\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "public static void main(String[] args) {\r\n\r\n\tAlternation a = new Alternation();\r\n\t\r\n\ta.add(new Literal(\"steaming\"));\r\n\ta.add(new Literal(\"hot\"));\r\n\r\n\tRepetition adjectives = new Repetition(a);\r\n\r\n\tTokenAssembly ta = \r\n\t\tnew TokenAssembly(\"hot hot steaming hot coffee\");\r\n\t\r\n\tSystem.out.println(adjectives.bestMatch(ta));\r\n}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(\"oo\", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"fT\", token1.getTokenText());\n }", "private Literal findNextLiteral(String subquery, int startIndex) {\n\n\t\tint subLength = subquery.length();\n\t\tint lengthOut;\n\n\t\t// Skip past white space.\n\t\twhile (subquery.charAt(startIndex) == ' ') {\n\t\t\t++startIndex;\n\t\t}\n\n\t\t//determine if a phrase literal is next\n\t\tif (subquery.charAt(startIndex) == '\\\"') {\n\t\t\tstartIndex++;//skip first \\\"\n\t\t\tint phraseEnd = subquery.indexOf('\\\"', startIndex+1);//phrase ending\n\t\t\tif (phraseEnd >= 0) {\n\t\t\t\tlengthOut = phraseEnd - startIndex;\n\n\t\t\t\t//split up the terms within the phrase\n\t\t\t\tString[] splitPhrase = subquery.substring(startIndex, startIndex + lengthOut).split(\" \");\n\t\t\t\tList<Query> phraseTerms = new ArrayList<>();\n\t\t\t\tfor (int i = 0; i < splitPhrase.length; i++) {\n\t\t\t\t\t//locate a wildcard within the term\n\t\t\t\t\tint wildCard = splitPhrase[i].indexOf('*');\n\t\t\t\t\tif (wildCard >= 0) {\n\t\t\t\t\t\tphraseTerms.add(new WildcardLiteral(splitPhrase[i]));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphraseTerms.add(new TermLiteral(splitPhrase[i]));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// This is a phrase literal containing multiple terms.\n\t\t\t\treturn new Literal(\n\t\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\t\tnew PhraseLiteral(phraseTerms));\n\n\t\t\t}\n\n\t\t}\n\n\t\t// determine if a NEAR literal is next\n\t\t// ex. [baseball NEAR/2 angels]\n\t\tif (subquery.charAt(startIndex) == '[') {\n\t\t\tstartIndex++; // skip initial '['\n\t\t\tint nearEnd = subquery.indexOf(']', startIndex+1);\n\t\t\tif (nearEnd >= 0) {\n\t\t\t\tlengthOut = nearEnd - startIndex;\n\n\t\t\t\t// split literal into [ firstTerm, NEAR/k, secondTerm ]\n\t\t\t\tString[] splitNEAR = subquery.substring(startIndex, startIndex + lengthOut).split(\" \");\n\t\t\t\tList<Query> nearTerms = new ArrayList<>();\n\t\t\t\tint k = 0;\n\t\t\t\tfor (int i = 0; i < splitNEAR.length; i++) {\n\t\t\t\t\tif(i == 1){\n\t\t\t\t\t\t// second term is the NEAR/k, extract k\n\t\t\t\t\t\tk = Integer.parseInt(splitNEAR[i].substring(5));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// check for wildcard\n\t\t\t\t\t\tint wildCard = splitNEAR[i].indexOf('*');\n\t\t\t\t\t\tif(wildCard >= 0) {\n\t\t\t\t\t\t\t// wildcard literal\n\t\t\t\t\t\t\tnearTerms.add(new WildcardLiteral(splitNEAR[i]));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// term literal\n\t\t\t\t\t\t\tnearTerms.add(new TermLiteral(splitNEAR[i]));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\treturn new Literal(\n\t\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\t\tnew NearLiteral(nearTerms,k));\n\t\t\t}\n\n\t\t}\n\n\t\t// Locate the next space to find the end of this literal.\n\t\tint nextSpace = subquery.indexOf(' ', startIndex);\n\t\tif (nextSpace < 0) {\n\t\t\t// No more literals in this subquery.\n\t\t\tlengthOut = subLength - startIndex;\n\t\t}\n\t\telse {\n\t\t\tlengthOut = nextSpace - startIndex;\n\t\t}\n\n\t\t//locate a wildcard within the term\n\t\tint wildCard = subquery.substring(startIndex, startIndex + lengthOut).indexOf('*');\n\t\tif (wildCard >= 0) {\n\t\t\t// This is a term literal containing a single term.\n\t\t\treturn new Literal(\n\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\tnew WildcardLiteral(subquery.substring(startIndex, startIndex + lengthOut)));\n\t\t}\n\n\t\t// This is a term literal containing a single term.\n\t\treturn new Literal(\n\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\tnew TermLiteral(subquery.substring(startIndex, startIndex + lengthOut)));\n\n\t\t/*\n\t\tDone:\n\t\tInstead of assuming that we only have single-term literals, modify this method so it will create a PhraseLiteral\n\t\tobject if the first non-space character you find is a double-quote (\"). In this case, the literal is not ended\n\t\tby the next space character, but by the next double-quote character.\n\t\t */\n\n\t}", "public final void synpred10_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n\n // InternalMyDsl.g:320:3: ( ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt151=4;\n alt151 = dfa151.predict(input);\n switch (alt151) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "@Test(timeout = 4000)\n public void test100() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"hN\", token0.getTokenText());\n assertEquals(15, token0.getTokenType());\n \n xPathLexer0.dollar();\n xPathLexer0.not();\n Token token1 = xPathLexer0.leftParen();\n assertEquals(1, token1.getTokenType());\n assertEquals(\"M\", token1.getTokenText());\n \n Token token2 = xPathLexer0.dollar();\n assertEquals(\"~\", token2.getTokenText());\n assertEquals(26, token2.getTokenType());\n \n Token token3 = xPathLexer0.at();\n assertEquals(16, token3.getTokenType());\n assertEquals(\"8\", token3.getTokenText());\n \n Token token4 = xPathLexer0.not();\n assertEquals(\"u\", token4.getTokenText());\n assertEquals(23, token4.getTokenType());\n \n Token token5 = xPathLexer0.nextToken();\n assertEquals(\"x(wB\", token5.getTokenText());\n }", "public static void main(String[] args) throws Exception {\n\n SimpleCalcLexer lex = new SimpleCalcLexer(new ANTLRFileStream(args[0]));\n \tCommonTokenStream tokens = new CommonTokenStream(lex);\n\n // \tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\n SimpleCalcParser parser = new SimpleCalcParser(tokens);\n\n try {\n parser.expr();\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n }", "@Override\n public Object visit(PhraseExpr node) {\n node.setExprType(SemanticTools.PHRASE);\n this.currentPhraseExpr = node;\n if (node.getInstrument() != null) {\n node.getInstrument().accept(this);\n if (!node.getInstrument().getExprType().equals(SemanticTools.STRING)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be a String\"\n );\n } else {\n if (!SemanticTools.isValidInstrument(\n ((ConstStringExpr) node.getInstrument()).getConstant())\n ) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be of types: \" + SemanticTools.instruments\n );\n }\n }\n } else {\n // default value\n node.setInstrument(new ConstStringExpr(node.getLineNum(), \"piano\"));\n }\n if (node.getOctaveModifier() != null) {\n node.getOctaveModifier().accept(this);\n if (!node.getOctaveModifier().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be of type \" + SemanticTools.INT\n );\n } else {\n int octave = Integer.parseInt(\n ((ConstIntExpr) node.getOctaveModifier()).getConstant()\n );\n\n if (octave > SemanticTools.MAX_OCT || octave < SemanticTools.MIN_OCT) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be within the range \"\n + SemanticTools.MIN_OCT + \" to \"\n + SemanticTools.MAX_OCT\n );\n }\n }\n } else {\n // default value\n node.setOctaveModifier(new ConstIntExpr(node.getLineNum(), \"0\"));\n }\n if (node.getVolume() != null) {\n node.getVolume().accept(this);\n if (!node.getVolume().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be of type \" + SemanticTools.INT\n );\n } else {\n int vol = Integer.parseInt(\n ((ConstIntExpr) node.getVolume()).getConstant()\n );\n\n if (vol > 127 || vol < 0) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be in range 0-127\"\n );\n }\n }\n } else {\n //default value\n node.setVolume(new ConstIntExpr(node.getLineNum(), \"127\"));\n }\n node.getMeasureList().accept(this);\n return null;\n }", "public interface sym {\n /* terminals */\n public static final int SHORT = 47;\n public static final int ANDEQ = 94;\n public static final int IMPLEMENTS = 4;\n public static final int CONST = 27;\n public static final int BITNOT = 68;\n public static final int STRICTFP = 35;\n public static final int NOTEQ = 74;\n public static final int PLUSEQ = 90;\n public static final int RBRACK = 60;\n public static final int CATCH = 20;\n public static final int COMMA = 62;\n public static final int RBRACE = 58;\n public static final int THROW = 22;\n public static final int RPAREN = 56;\n public static final int LBRACK = 59;\n public static final int ANDAND = 75;\n public static final int NUMERO = 101;\n public static final int OROR = 76;\n public static final int DOUBLE = 51;\n public static final int LBRACE = 57;\n public static final int TRANSIENT = 32;\n public static final int LPAREN = 55;\n public static final int XOREQ = 96;\n public static final int PROTECTED = 37;\n public static final int FALSE = 54;\n public static final int NOT = 67;\n public static final int COMENTARIO = 102;\n public static final int FINAL = 29;\n public static final int FLOAT = 49;\n public static final int URSHIFTEQ = 45;\n public static final int PACKAGE = 25;\n public static final int MOD = 86;\n public static final int CLASS = 2;\n public static final int SUPER = 34;\n public static final int ABSTRACT = 28;\n public static final int TRUE = 53;\n public static final int NATIVE = 30;\n public static final int PLUS = 79;\n public static final int LONG = 50;\n public static final int QUESTION = 69;\n public static final int WHILE = 17;\n public static final int EQUAL = 64;\n public static final int EXTENDS = 3;\n public static final int INTERFACE = 5;\n public static final int CHAR = 46;\n public static final int BOOLEAN = 44;\n public static final int SWITCH = 16;\n public static final int DO = 11;\n public static final int FOR = 14;\n public static final int RSHIFTEQ = 99;\n public static final int GREATER = 65;\n public static final int DIV = 82;\n public static final int VOID = 40;\n public static final int MULT = 81;\n public static final int PUBLIC = 36;\n public static final int RETURN = 15;\n public static final int ELSE = 13;\n public static final int TRY = 19;\n public static final int GTEQ = 73;\n public static final int BREAK = 7;\n public static final int DOT = 63;\n public static final int INT = 48;\n public static final int THROWS = 23;\n public static final int EQEQ = 71;\n public static final int NULL = 41;\n public static final int EOF = 0;\n public static final int SEMICOLON = 61;\n public static final int THIS = 42;\n public static final int DEFAULT = 10;\n public static final int MULTEQ = 92;\n public static final int IMPORT = 24;\n public static final int MINUS = 80;\n public static final int LTEQ = 72;\n public static final int OR = 84;\n public static final int URSHIFT = 89;\n public static final int error = 1;\n public static final int SYNCHRONIZED = 31;\n public static final int DIVEQ = 93;\n public static final int LSHIFTEQ = 98;\n public static final int FINALLY = 21;\n public static final int CONTINUE = 9;\n public static final int IF = 12;\n public static final int INSTANCEOF = 43;\n public static final int ID = 100;\n public static final int MODEQ = 97;\n public static final int MINUSMINUS = 78;\n public static final int COLON = 70;\n public static final int ASSERT = 18;\n public static final int OREQ = 95;\n public static final int VOLATILE = 33;\n public static final int PLUSPLUS = 77;\n public static final int CASE = 8;\n public static final int NEW = 6;\n public static final int RSHIFT = 88;\n public static final int STRING = 52;\n public static final int LESS = 66;\n public static final int BYTE = 26;\n public static final int AND = 83;\n public static final int PRIVATE = 38;\n public static final int STATIC = 39;\n public static final int LSHIFT = 87;\n public static final int XOR = 85;\n public static final int MINUSEQ = 91;\n}", "public String getLHS()\n {\n return lhs;\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "public abstract int evalRPN(String[] tokens);", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n stringReader0.reset();\n stringReader0.ready();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n stringReader0.reset();\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n StringReader stringReader1 = new StringReader(\"call\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader1);\n streamTokenizer4.nextToken();\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader1);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer2);\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader1);\n streamTokenizer7.slashStarComments(true);\n streamTokenizer2.commentChar((-4));\n boolean boolean0 = jSTerm1.equals((JSPredicateForm) jSTerm0);\n assertTrue(boolean0);\n \n StringReader stringReader2 = new StringReader(\"c}^$\");\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader2);\n boolean boolean1 = jSTerm1.equals((JSPredicateForm) null);\n assertFalse(boolean1);\n }", "public StatementNode getStatementNodeOnTrue();", "@Test(timeout = 4000)\n public void test130() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"pDt&YchL\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"p\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Dt\", token1.getTokenText());\n }", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "public abstract PredicateExpr getNext();", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ji{:[5xw96\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"j\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"i\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"{:\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(3, token3.getTokenType());\n assertEquals(\"[\", token3.getTokenText());\n \n Token token4 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"5xw96\", token4.getTokenText());\n }", "public final ANTLRv3Parser.atom_return atom() throws RecognitionException {\r\n ANTLRv3Parser.atom_return retval = new ANTLRv3Parser.atom_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token op=null;\r\n Token RULE_REF110=null;\r\n Token ARG_ACTION111=null;\r\n ANTLRv3Parser.terminal_return terminal107 =null;\r\n\r\n ANTLRv3Parser.range_return range108 =null;\r\n\r\n ANTLRv3Parser.notSet_return notSet109 =null;\r\n\r\n\r\n CommonTree op_tree=null;\r\n CommonTree RULE_REF110_tree=null;\r\n CommonTree ARG_ACTION111_tree=null;\r\n RewriteRuleTokenStream stream_BANG=new RewriteRuleTokenStream(adaptor,\"token BANG\");\r\n RewriteRuleTokenStream stream_ROOT=new RewriteRuleTokenStream(adaptor,\"token ROOT\");\r\n RewriteRuleTokenStream stream_RULE_REF=new RewriteRuleTokenStream(adaptor,\"token RULE_REF\");\r\n RewriteRuleTokenStream stream_ARG_ACTION=new RewriteRuleTokenStream(adaptor,\"token ARG_ACTION\");\r\n RewriteRuleSubtreeStream stream_range=new RewriteRuleSubtreeStream(adaptor,\"rule range\");\r\n RewriteRuleSubtreeStream stream_notSet=new RewriteRuleSubtreeStream(adaptor,\"rule notSet\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:5: ( terminal | range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range ) | notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet ) | RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) ) )\r\n int alt54=4;\r\n switch ( input.LA(1) ) {\r\n case CHAR_LITERAL:\r\n {\r\n int LA54_1 = input.LA(2);\r\n\r\n if ( (LA54_1==RANGE) ) {\r\n alt54=2;\r\n }\r\n else if ( (LA54_1==ACTION||LA54_1==BANG||LA54_1==CHAR_LITERAL||(LA54_1 >= REWRITE && LA54_1 <= ROOT)||LA54_1==RULE_REF||LA54_1==SEMPRED||LA54_1==STRING_LITERAL||(LA54_1 >= TOKEN_REF && LA54_1 <= TREE_BEGIN)||(LA54_1 >= 68 && LA54_1 <= 71)||LA54_1==73||(LA54_1 >= 76 && LA54_1 <= 77)||LA54_1==80||LA54_1==91||LA54_1==93) ) {\r\n alt54=1;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case STRING_LITERAL:\r\n case TOKEN_REF:\r\n case 73:\r\n {\r\n alt54=1;\r\n }\r\n break;\r\n case 93:\r\n {\r\n alt54=3;\r\n }\r\n break;\r\n case RULE_REF:\r\n {\r\n alt54=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt54) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:9: terminal\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_terminal_in_atom1800);\r\n terminal107=terminal();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, terminal107.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:256:4: range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n {\r\n pushFollow(FOLLOW_range_in_atom1805);\r\n range108=range();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_range.add(range108.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:3: ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n int alt48=2;\r\n int LA48_0 = input.LA(1);\r\n\r\n if ( (LA48_0==BANG||LA48_0==ROOT) ) {\r\n alt48=1;\r\n }\r\n else if ( (LA48_0==ACTION||LA48_0==CHAR_LITERAL||LA48_0==REWRITE||LA48_0==RULE_REF||LA48_0==SEMPRED||LA48_0==STRING_LITERAL||(LA48_0 >= TOKEN_REF && LA48_0 <= TREE_BEGIN)||(LA48_0 >= 68 && LA48_0 <= 71)||LA48_0==73||LA48_0==76||LA48_0==80||LA48_0==91||LA48_0==93) ) {\r\n alt48=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 48, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt48) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n int alt47=2;\r\n int LA47_0 = input.LA(1);\r\n\r\n if ( (LA47_0==ROOT) ) {\r\n alt47=1;\r\n }\r\n else if ( (LA47_0==BANG) ) {\r\n alt47=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 47, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt47) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1815); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1819); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: range, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 257:21: -> ^( $op range )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:24: ^( $op range )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_range.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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:258:9: \r\n {\r\n // AST REWRITE\r\n // elements: range\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 if ( state.backtracking==0 ) {\r\n\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 // 258:9: -> range\r\n {\r\n adaptor.addChild(root_0, stream_range.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:260:7: notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n {\r\n pushFollow(FOLLOW_notSet_in_atom1853);\r\n notSet109=notSet();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_notSet.add(notSet109.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:3: ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n int alt50=2;\r\n int LA50_0 = input.LA(1);\r\n\r\n if ( (LA50_0==BANG||LA50_0==ROOT) ) {\r\n alt50=1;\r\n }\r\n else if ( (LA50_0==ACTION||LA50_0==CHAR_LITERAL||LA50_0==REWRITE||LA50_0==RULE_REF||LA50_0==SEMPRED||LA50_0==STRING_LITERAL||(LA50_0 >= TOKEN_REF && LA50_0 <= TREE_BEGIN)||(LA50_0 >= 68 && LA50_0 <= 71)||LA50_0==73||LA50_0==76||LA50_0==80||LA50_0==91||LA50_0==93) ) {\r\n alt50=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 50, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt50) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n int alt49=2;\r\n int LA49_0 = input.LA(1);\r\n\r\n if ( (LA49_0==ROOT) ) {\r\n alt49=1;\r\n }\r\n else if ( (LA49_0==BANG) ) {\r\n alt49=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 49, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt49) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1862); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1866); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: notSet, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 261:21: -> ^( $op notSet )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:24: ^( $op notSet )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_notSet.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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:262:9: \r\n {\r\n // AST REWRITE\r\n // elements: notSet\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 if ( state.backtracking==0 ) {\r\n\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 // 262:9: -> notSet\r\n {\r\n adaptor.addChild(root_0, stream_notSet.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:9: RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n {\r\n RULE_REF110=(Token)match(input,RULE_REF,FOLLOW_RULE_REF_in_atom1902); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RULE_REF.add(RULE_REF110);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ( ARG_ACTION )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==ARG_ACTION) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ARG_ACTION\r\n {\r\n ARG_ACTION111=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1904); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ARG_ACTION.add(ARG_ACTION111);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:3: ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==BANG||LA53_0==ROOT) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==ACTION||LA53_0==CHAR_LITERAL||LA53_0==REWRITE||LA53_0==RULE_REF||LA53_0==SEMPRED||LA53_0==STRING_LITERAL||(LA53_0 >= TOKEN_REF && LA53_0 <= TREE_BEGIN)||(LA53_0 >= 68 && LA53_0 <= 71)||LA53_0==73||LA53_0==76||LA53_0==80||LA53_0==91||LA53_0==93) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==ROOT) ) {\r\n alt52=1;\r\n }\r\n else if ( (LA52_0==BANG) ) {\r\n alt52=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1914); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1918); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: ARG_ACTION, op, RULE_REF\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 265:21: -> ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:24: ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, \r\n stream_RULE_REF.nextNode()\r\n );\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:39: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:9: \r\n {\r\n // AST REWRITE\r\n // elements: ARG_ACTION, RULE_REF\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 if ( state.backtracking==0 ) {\r\n\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 // 266:9: -> ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:12: ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_RULE_REF.nextNode()\r\n , root_1);\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:23: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\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 }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\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 }", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public interface LTLParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int KAS = 9;\n /** RegularExpression Id. */\n int KATE = 10;\n /** RegularExpression Id. */\n int KDATE = 11;\n /** RegularExpression Id. */\n int KEXISTS = 12;\n /** RegularExpression Id. */\n int KFORALL = 13;\n /** RegularExpression Id. */\n int KFORMULA = 14;\n /** RegularExpression Id. */\n int KIN = 15;\n /** RegularExpression Id. */\n int KNUMBER = 16;\n /** RegularExpression Id. */\n int KPI = 17;\n /** RegularExpression Id. */\n int KRENAME = 18;\n /** RegularExpression Id. */\n int KSET = 19;\n /** RegularExpression Id. */\n int KSTRING = 20;\n /** RegularExpression Id. */\n int KSUBFORMULA = 21;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 22;\n /** RegularExpression Id. */\n int REAL_LITERAL = 23;\n /** RegularExpression Id. */\n int EXPONENT = 24;\n /** RegularExpression Id. */\n int STRING_LITERAL = 25;\n /** RegularExpression Id. */\n int DESC_LITERAL = 26;\n /** RegularExpression Id. */\n int PIID = 27;\n /** RegularExpression Id. */\n int ATEID = 28;\n /** RegularExpression Id. */\n int ID = 29;\n /** RegularExpression Id. */\n int IDENTIFIER = 30;\n /** RegularExpression Id. */\n int STARTLETTER = 31;\n /** RegularExpression Id. */\n int LETTER = 32;\n /** RegularExpression Id. */\n int DIGIT = 33;\n /** RegularExpression Id. */\n int LPAREN = 34;\n /** RegularExpression Id. */\n int RPAREN = 35;\n /** RegularExpression Id. */\n int LBRACE = 36;\n /** RegularExpression Id. */\n int RBRACE = 37;\n /** RegularExpression Id. */\n int LBRACKET = 38;\n /** RegularExpression Id. */\n int RBRACKET = 39;\n /** RegularExpression Id. */\n int BAR = 40;\n /** RegularExpression Id. */\n int SEMICOLON = 41;\n /** RegularExpression Id. */\n int COMMA = 42;\n /** RegularExpression Id. */\n int DOT = 43;\n /** RegularExpression Id. */\n int COLON = 44;\n /** RegularExpression Id. */\n int ASSIGN = 45;\n /** RegularExpression Id. */\n int GT = 46;\n /** RegularExpression Id. */\n int LT = 47;\n /** RegularExpression Id. */\n int PNOT = 48;\n /** RegularExpression Id. */\n int SLASH = 49;\n /** RegularExpression Id. */\n int PLUS = 50;\n /** RegularExpression Id. */\n int MINUS = 51;\n /** RegularExpression Id. */\n int STAR = 52;\n /** RegularExpression Id. */\n int EQ = 53;\n /** RegularExpression Id. */\n int LE = 54;\n /** RegularExpression Id. */\n int GE = 55;\n /** RegularExpression Id. */\n int NE = 56;\n /** RegularExpression Id. */\n int REQ = 57;\n /** RegularExpression Id. */\n int POR = 58;\n /** RegularExpression Id. */\n int PAND = 59;\n /** RegularExpression Id. */\n int PIMPLIES = 60;\n /** RegularExpression Id. */\n int PBIIMPLIES = 61;\n /** RegularExpression Id. */\n int LALWAYS = 62;\n /** RegularExpression Id. */\n int LEVENTUALLY = 63;\n /** RegularExpression Id. */\n int LNEXTTIME = 64;\n /** RegularExpression Id. */\n int LUNTIL = 65;\n /** RegularExpression Id. */\n int URI = 66;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"#\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"<token of kind 8>\",\n \"\\\"as\\\"\",\n \"\\\"ate\\\"\",\n \"\\\"date\\\"\",\n \"\\\"exists\\\"\",\n \"\\\"forall\\\"\",\n \"\\\"formula\\\"\",\n \"\\\"in\\\"\",\n \"\\\"number\\\"\",\n \"\\\"pi\\\"\",\n \"\\\"rename\\\"\",\n \"\\\"set\\\"\",\n \"\\\"string\\\"\",\n \"\\\"subformula\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<REAL_LITERAL>\",\n \"<EXPONENT>\",\n \"<STRING_LITERAL>\",\n \"<DESC_LITERAL>\",\n \"<PIID>\",\n \"<ATEID>\",\n \"<ID>\",\n \"<IDENTIFIER>\",\n \"<STARTLETTER>\",\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 \"\\\"_O\\\"\",\n \"\\\"_U\\\"\",\n \"<URI>\",\n };\n\n}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.literal();\n assertNull(token0);\n \n char char0 = xPathLexer0.LA((-1));\n assertEquals('r', char0);\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "public interface AstIncreUnaryExpression extends AstUnaryExpression {\r\n}", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.rightParen();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Xr\\\"\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"Xr\", token0.getTokenText());\n }", "public void visit(Literal literal) {}", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"!9'|l*JR\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(23, token0.getTokenType());\n assertEquals(\"!\", token0.getTokenText());\n }" ]
[ "0.621927", "0.6060833", "0.5476968", "0.54108775", "0.5382181", "0.53339374", "0.53329825", "0.53274703", "0.5289433", "0.5214267", "0.5213027", "0.5181773", "0.5173307", "0.5152705", "0.5137148", "0.51150537", "0.51088697", "0.50986516", "0.50960034", "0.508756", "0.50810117", "0.5077023", "0.50671387", "0.50474834", "0.5041128", "0.5039647", "0.5012876", "0.50086826", "0.49932742", "0.49872723", "0.49846035", "0.49473938", "0.4940929", "0.4938977", "0.4922966", "0.4920337", "0.49161544", "0.49134535", "0.49129853", "0.49012482", "0.48937693", "0.4892817", "0.48887512", "0.48813844", "0.4869243", "0.48571157", "0.485582", "0.48401606", "0.48321638", "0.48170114", "0.48070416", "0.48059714", "0.48022962", "0.48015958", "0.48007765", "0.47936457", "0.47813982", "0.47803804", "0.47745204", "0.4769505", "0.4767796", "0.47618017", "0.47534746", "0.47526938", "0.47477198", "0.47467571", "0.4740624", "0.47294223", "0.4728537", "0.47175962", "0.47175086", "0.4717075", "0.47139814", "0.47138083", "0.4708819", "0.47061083", "0.47040898", "0.47027943", "0.4696578", "0.46941483", "0.46915635", "0.46901423", "0.46884143", "0.46882796", "0.46855107", "0.46851286", "0.4680008", "0.46747306", "0.46728742", "0.46708488", "0.46685553", "0.46659777", "0.4664827", "0.46638733", "0.46635807", "0.46622115", "0.4661952", "0.46564385", "0.46543586", "0.46512187" ]
0.55655354
2
$ANTLR end synpred10_expression $ANTLR start synpred11_expression
public final void synpred11_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:50:20: ( nameExprTerm ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:50:20: nameExprTerm { pushFollow(FOLLOW_nameExprTerm_in_synpred11_expression222); nameExprTerm(); state._fsp--; if (state.failed) return ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "public final void synpred11_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred11_Python7158);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred11_Python7161); if (state.failed) return ;\n\n }\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public final void synpred111_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ( ^( MINUS expr expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ^( MINUS expr expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_synpred111_AstValidator1949); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1951);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1953);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "public final void synpred3_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ;\n\n }\n }", "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred10_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: ( EPRESSIONCHAR )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: EPRESSIONCHAR\n {\n match(input,EPRESSIONCHAR,FOLLOW_EPRESSIONCHAR_in_synpred10_expression199); if (state.failed) return ;\n\n }\n }", "public final void synpred13_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: ( REFERENCECHAR simpleExpr )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: REFERENCECHAR simpleExpr\n {\n match(input,REFERENCECHAR,FOLLOW_REFERENCECHAR_in_synpred13_expression246); if (state.failed) return ;\n pushFollow(FOLLOW_simpleExpr_in_synpred13_expression249);\n simpleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "Expression getActionSentence();", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ;\n\n }\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "private void doRule11(DescartesToken token) {\n this.addChild(2, token.getLineNum());\n this.addChild(40, token.getLineNum());\n this.addChild(3, token.getLineNum());\n this.addChild(31, token.getLineNum());\n this.addChild(41, token.getLineNum());\n }", "public final void synpred10_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:7: ( expr[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:8: expr[null] COMMA\n {\n pushFollow(FOLLOW_expr_in_synpred10_Python7017);\n expr(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred10_Python7020); if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n \n Token token1 = xPathLexer0.not();\n assertEquals(\"O\", token1.getTokenText());\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"Ph7\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public static void main(String[] args) throws Exception {\n\n SimpleCalcLexer lex = new SimpleCalcLexer(new ANTLRFileStream(args[0]));\n \tCommonTokenStream tokens = new CommonTokenStream(lex);\n\n // \tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\n SimpleCalcParser parser = new SimpleCalcParser(tokens);\n\n try {\n parser.expr();\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "public LiteralOPToken(String s, int nTypeCode)\n {\n super(s);\n m_nType = nTypeCode;\n setBindingPower(OPToken.PRECEDENCE_IDENTIFIER);\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "public final EObject ruleExpression_11() throws RecognitionException {\n EObject current = null;\n int ruleExpression_11_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject this_Expression_1 = null;\n\n EObject this_TerminalExpression_3 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 102) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4397:28: ( ( (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 ) | this_TerminalExpression_3= ruleTerminalExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:1: ( (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 ) | this_TerminalExpression_3= ruleTerminalExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:1: ( (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 ) | this_TerminalExpression_3= ruleTerminalExpression )\n int alt74=2;\n alt74 = dfa74.predict(input);\n switch (alt74) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:2: (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:2: (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4399:2: otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5\n {\n otherlv_0=(Token)match(input,KEYWORD_4,FOLLOW_KEYWORD_4_in_ruleExpression_118817); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getExpression_11Access().getLeftParenthesisKeyword_0_0());\n \n }\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_11Access().getExpressionParserRuleCall_0_1()); \n \n }\n pushFollow(FOLLOW_ruleExpression_in_ruleExpression_118841);\n this_Expression_1=ruleExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_Expression_1;\n afterParserOrEnumRuleCall();\n \n }\n otherlv_2=(Token)match(input,KEYWORD_5,FOLLOW_KEYWORD_5_in_ruleExpression_118853); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getExpression_11Access().getRightParenthesisKeyword_0_2());\n \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4422:2: this_TerminalExpression_3= ruleTerminalExpression\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_11Access().getTerminalExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleTerminalExpression_in_ruleExpression_118884);\n this_TerminalExpression_3=ruleTerminalExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_TerminalExpression_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 \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 102, ruleExpression_11_StartIndex); }\n }\n return current;\n }", "public MMExptTupleMatcher() {\n this.conceptMatcher = new kb.matching.SynonymConceptMatcher();\n // Need to set synonyms right here\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred10_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n\n // InternalMyDsl.g:320:3: ( ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt151=4;\n alt151 = dfa151.predict(input);\n switch (alt151) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public StatementNode getStatementNodeOnTrue();", "public final void synpred116_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: ( const_expr )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: const_expr\n {\n pushFollow(FOLLOW_const_expr_in_synpred116_AstValidator2032);\n const_expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public void toGrammar() {\n System.out.println(\"<binary_expression> -> <arithmeitc_expression> <arithmetic_op> <arithmetic_expression>\");\n left.toGrammar();\n operator.toGrammar();\n right.toGrammar();\n prefix();\n }", "public final void synpred32_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_10=null;\n EObject lv_left_9_0 = null;\n\n EObject lv_right_11_0 = null;\n\n\n // InternalMyDsl.g:1261:3: ( ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1262:4: () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1262:4: ()\n // InternalMyDsl.g:1263:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1272:4: ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1274:6: lv_left_9_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_18);\n lv_left_9_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_10=(Token)match(input,32,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:1295:4: ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1297:6: lv_right_11_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_11_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final ANTLRv3Parser.atom_return atom() throws RecognitionException {\r\n ANTLRv3Parser.atom_return retval = new ANTLRv3Parser.atom_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token op=null;\r\n Token RULE_REF110=null;\r\n Token ARG_ACTION111=null;\r\n ANTLRv3Parser.terminal_return terminal107 =null;\r\n\r\n ANTLRv3Parser.range_return range108 =null;\r\n\r\n ANTLRv3Parser.notSet_return notSet109 =null;\r\n\r\n\r\n CommonTree op_tree=null;\r\n CommonTree RULE_REF110_tree=null;\r\n CommonTree ARG_ACTION111_tree=null;\r\n RewriteRuleTokenStream stream_BANG=new RewriteRuleTokenStream(adaptor,\"token BANG\");\r\n RewriteRuleTokenStream stream_ROOT=new RewriteRuleTokenStream(adaptor,\"token ROOT\");\r\n RewriteRuleTokenStream stream_RULE_REF=new RewriteRuleTokenStream(adaptor,\"token RULE_REF\");\r\n RewriteRuleTokenStream stream_ARG_ACTION=new RewriteRuleTokenStream(adaptor,\"token ARG_ACTION\");\r\n RewriteRuleSubtreeStream stream_range=new RewriteRuleSubtreeStream(adaptor,\"rule range\");\r\n RewriteRuleSubtreeStream stream_notSet=new RewriteRuleSubtreeStream(adaptor,\"rule notSet\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:5: ( terminal | range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range ) | notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet ) | RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) ) )\r\n int alt54=4;\r\n switch ( input.LA(1) ) {\r\n case CHAR_LITERAL:\r\n {\r\n int LA54_1 = input.LA(2);\r\n\r\n if ( (LA54_1==RANGE) ) {\r\n alt54=2;\r\n }\r\n else if ( (LA54_1==ACTION||LA54_1==BANG||LA54_1==CHAR_LITERAL||(LA54_1 >= REWRITE && LA54_1 <= ROOT)||LA54_1==RULE_REF||LA54_1==SEMPRED||LA54_1==STRING_LITERAL||(LA54_1 >= TOKEN_REF && LA54_1 <= TREE_BEGIN)||(LA54_1 >= 68 && LA54_1 <= 71)||LA54_1==73||(LA54_1 >= 76 && LA54_1 <= 77)||LA54_1==80||LA54_1==91||LA54_1==93) ) {\r\n alt54=1;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case STRING_LITERAL:\r\n case TOKEN_REF:\r\n case 73:\r\n {\r\n alt54=1;\r\n }\r\n break;\r\n case 93:\r\n {\r\n alt54=3;\r\n }\r\n break;\r\n case RULE_REF:\r\n {\r\n alt54=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt54) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:9: terminal\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_terminal_in_atom1800);\r\n terminal107=terminal();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, terminal107.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:256:4: range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n {\r\n pushFollow(FOLLOW_range_in_atom1805);\r\n range108=range();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_range.add(range108.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:3: ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n int alt48=2;\r\n int LA48_0 = input.LA(1);\r\n\r\n if ( (LA48_0==BANG||LA48_0==ROOT) ) {\r\n alt48=1;\r\n }\r\n else if ( (LA48_0==ACTION||LA48_0==CHAR_LITERAL||LA48_0==REWRITE||LA48_0==RULE_REF||LA48_0==SEMPRED||LA48_0==STRING_LITERAL||(LA48_0 >= TOKEN_REF && LA48_0 <= TREE_BEGIN)||(LA48_0 >= 68 && LA48_0 <= 71)||LA48_0==73||LA48_0==76||LA48_0==80||LA48_0==91||LA48_0==93) ) {\r\n alt48=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 48, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt48) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n int alt47=2;\r\n int LA47_0 = input.LA(1);\r\n\r\n if ( (LA47_0==ROOT) ) {\r\n alt47=1;\r\n }\r\n else if ( (LA47_0==BANG) ) {\r\n alt47=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 47, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt47) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1815); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1819); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: range, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 257:21: -> ^( $op range )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:24: ^( $op range )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_range.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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:258:9: \r\n {\r\n // AST REWRITE\r\n // elements: range\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 if ( state.backtracking==0 ) {\r\n\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 // 258:9: -> range\r\n {\r\n adaptor.addChild(root_0, stream_range.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:260:7: notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n {\r\n pushFollow(FOLLOW_notSet_in_atom1853);\r\n notSet109=notSet();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_notSet.add(notSet109.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:3: ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n int alt50=2;\r\n int LA50_0 = input.LA(1);\r\n\r\n if ( (LA50_0==BANG||LA50_0==ROOT) ) {\r\n alt50=1;\r\n }\r\n else if ( (LA50_0==ACTION||LA50_0==CHAR_LITERAL||LA50_0==REWRITE||LA50_0==RULE_REF||LA50_0==SEMPRED||LA50_0==STRING_LITERAL||(LA50_0 >= TOKEN_REF && LA50_0 <= TREE_BEGIN)||(LA50_0 >= 68 && LA50_0 <= 71)||LA50_0==73||LA50_0==76||LA50_0==80||LA50_0==91||LA50_0==93) ) {\r\n alt50=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 50, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt50) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n int alt49=2;\r\n int LA49_0 = input.LA(1);\r\n\r\n if ( (LA49_0==ROOT) ) {\r\n alt49=1;\r\n }\r\n else if ( (LA49_0==BANG) ) {\r\n alt49=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 49, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt49) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1862); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1866); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: notSet, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 261:21: -> ^( $op notSet )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:24: ^( $op notSet )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_notSet.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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:262:9: \r\n {\r\n // AST REWRITE\r\n // elements: notSet\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 if ( state.backtracking==0 ) {\r\n\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 // 262:9: -> notSet\r\n {\r\n adaptor.addChild(root_0, stream_notSet.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:9: RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n {\r\n RULE_REF110=(Token)match(input,RULE_REF,FOLLOW_RULE_REF_in_atom1902); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RULE_REF.add(RULE_REF110);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ( ARG_ACTION )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==ARG_ACTION) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ARG_ACTION\r\n {\r\n ARG_ACTION111=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1904); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ARG_ACTION.add(ARG_ACTION111);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:3: ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==BANG||LA53_0==ROOT) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==ACTION||LA53_0==CHAR_LITERAL||LA53_0==REWRITE||LA53_0==RULE_REF||LA53_0==SEMPRED||LA53_0==STRING_LITERAL||(LA53_0 >= TOKEN_REF && LA53_0 <= TREE_BEGIN)||(LA53_0 >= 68 && LA53_0 <= 71)||LA53_0==73||LA53_0==76||LA53_0==80||LA53_0==91||LA53_0==93) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==ROOT) ) {\r\n alt52=1;\r\n }\r\n else if ( (LA52_0==BANG) ) {\r\n alt52=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1914); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1918); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: ARG_ACTION, op, RULE_REF\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\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 // 265:21: -> ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:24: ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, \r\n stream_RULE_REF.nextNode()\r\n );\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:39: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\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 }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:9: \r\n {\r\n // AST REWRITE\r\n // elements: ARG_ACTION, RULE_REF\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 if ( state.backtracking==0 ) {\r\n\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 // 266:9: -> ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:12: ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_RULE_REF.nextNode()\r\n , root_1);\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:23: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\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 }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\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 }", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public void testAND1() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 225, \"and\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "ExprRule createExprRule();", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n stringReader0.reset();\n stringReader0.ready();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n stringReader0.reset();\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n StringReader stringReader1 = new StringReader(\"call\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader1);\n streamTokenizer4.nextToken();\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader1);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer2);\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader1);\n streamTokenizer7.slashStarComments(true);\n streamTokenizer2.commentChar((-4));\n boolean boolean0 = jSTerm1.equals((JSPredicateForm) jSTerm0);\n assertTrue(boolean0);\n \n StringReader stringReader2 = new StringReader(\"c}^$\");\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader2);\n boolean boolean1 = jSTerm1.equals((JSPredicateForm) null);\n assertFalse(boolean1);\n }", "public static void parseNatAsgn() {\n if (currToken.tokenType != Token.ID) {\n handleError(\"ID\");\n }\n else if( symbols.get(currToken.tokenString) != \"NAT\"){\n throw new Error(\"NAT type expected\");\n }\n else{\n sb.append(currToken.tokenString);\n getNextToken();\n if (currToken.tokenType != Token.ASSIGN) {\n handleError(\"ASSIGN\");\n }\n else{\n sb.append(\" = \");\n getNextToken();\n parseNatExp();\n }\n }\n }", "public void testAND3() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 227, \"+\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "public String getLHS()\n {\n return lhs;\n }", "public static void main(String[] args) {\r\n\r\n\tAlternation a = new Alternation();\r\n\t\r\n\ta.add(new Literal(\"steaming\"));\r\n\ta.add(new Literal(\"hot\"));\r\n\r\n\tRepetition adjectives = new Repetition(a);\r\n\r\n\tTokenAssembly ta = \r\n\t\tnew TokenAssembly(\"hot hot steaming hot coffee\");\r\n\t\r\n\tSystem.out.println(adjectives.bestMatch(ta));\r\n}", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "public final void mKEYWORD_11() throws RecognitionException {\n try {\n int _type = KEYWORD_11;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:71:12: ( '=' )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:71:14: '='\n {\n match('='); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "public LiteralOPToken(String s, int nTypeCode, String sNudASTName)\n {\n this(s, nTypeCode);\n m_sNudASTName = sNudASTName;\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }", "@Override\n\tprotected void initPredicate() {\n\t\t\n\t\tString pred1 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * header::Entry<ele,header,header> & size=0 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,header,header> & first=last & size=1 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,nextF,prevF> * last::Entry<ele2,nextL,prevL> * lseg(nextF,first,last,prevL,size1) & prevF=header & nextL=header & size=2+size1\";\n\t\t\n\t\tString pred2 = \"pred lseg(next,first,last,prev,size) == next=last & prev=first & size=0 || \" +\n\t\t\t\t\"next::Entry<item,next1,prev1> * lseg(next1,next,last,prev,size1) & prev1=first & size=size1+1\";\n\t\t\n\t\t\n//\t\tString pred0 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * dll(header,size)\";\n//\t\tString pred1 = \"pred dll(header,size) == header::Entry<ele,header,header> & size=0 || header::Entry<ele,next,prev> * nndll(next,header,header,prev,size)\";\n//\t\tString pred2 = \"pred nndll(curr,prev,header,prevH,size) == curr::Entry<ele,header,prev> & prevH=curr & size=1 || curr::Entry<ele,next,prev> * nndll(next,curr,header,prevH,size1) & size=size1+1\";\n\t\t\t\t\n\t\tString pred = pred1 + \";\" + pred2;\n\t\tInitializer.initPredicate(pred);\n\t}", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "public final ASTOperatorParser.atom_return atom() throws RecognitionException {\n ASTOperatorParser.atom_return retval = new ASTOperatorParser.atom_return();\n retval.start = input.LT(1);\n int atom_StartIndex = input.index();\n\n Object root_0 = null;\n\n Token INT10 = null;\n Token char_literal11 = null;\n Token char_literal13 = null;\n ParserRuleReturnScope expr12 = null;\n\n Object INT10_tree = null;\n Object char_literal11_tree = null;\n Object char_literal13_tree = null;\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 4)) {\n return retval;\n }\n\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:28:2: ( INT ^| '(' ! expr ')' !)\n int alt4 = 2;\n int LA4_0 = input.LA(1);\n if ((LA4_0 == INT)) {\n alt4 = 1;\n } else if ((LA4_0 == 6)) {\n alt4 = 2;\n }\n\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 4, 0, input);\n throw nvae;\n }\n\n switch (alt4) {\n case 1:\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:28:4: INT ^\n {\n root_0 = (Object) adaptor.nil();\n\n INT10 = (Token) match(input, INT, FOLLOW_INT_in_atom117);\n if (state.failed) return retval;\n if (state.backtracking == 0) {\n INT10_tree = (Object) adaptor.create(INT10);\n root_0 = (Object) adaptor.becomeRoot(INT10_tree, root_0);\n }\n\n }\n break;\n case 2:\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:29:4: '(' ! expr ')' !\n {\n root_0 = (Object) adaptor.nil();\n\n char_literal11 = (Token) match(input, 6, FOLLOW_6_in_atom123);\n if (state.failed) return retval;\n pushFollow(FOLLOW_expr_in_atom126);\n expr12 = expr();\n state._fsp--;\n if (state.failed) return retval;\n if (state.backtracking == 0)\n adaptor.addChild(root_0, expr12.getTree());\n\n char_literal13 = (Token) match(input, 7, FOLLOW_7_in_atom128);\n if (state.failed) return retval;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if (state.backtracking == 0) {\n retval.tree = (Object) adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n retval.tree = (Object) adaptor.errorNode(\n input,\n retval.start,\n input.LT(-1),\n re);\n } finally {\n // do for sure before leaving\n if (state.backtracking > 0) {\n memoize(input, 4, atom_StartIndex);\n }\n\n }\n return retval;\n }", "@Test(timeout = 4000)\n public void test160() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(\"h\", token0.getTokenText());\n \n xPathLexer0.not();\n Token token1 = xPathLexer0.nextToken();\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.leftParen();\n assertEquals(1, token2.getTokenType());\n assertEquals(\"S\", token2.getTokenText());\n \n Token token3 = xPathLexer0.dollar();\n assertEquals(26, token3.getTokenType());\n \n Token token4 = xPathLexer0.at();\n assertEquals(16, token4.getTokenType());\n assertEquals(\"~\", token4.getTokenText());\n \n Token token5 = xPathLexer0.not();\n assertEquals(\"8\", token5.getTokenText());\n \n Token token6 = xPathLexer0.nextToken();\n assertEquals(\"ux(wB\", token6.getTokenText());\n }", "public final void synpred3_Binding_fragment() throws RecognitionException { \n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:11: INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n {\n mINT(); if (state.failed) return ;\n match('.'); if (state.failed) return ;\n if ( (input.LA(1)>='\\u0000' && input.LA(1)<='-')||(input.LA(1)>='/' && input.LA(1)<='@')||(input.LA(1)>='[' && input.LA(1)<='^')||input.LA(1)=='`'||(input.LA(1)>='{' && input.LA(1)<='\\u00BF')||input.LA(1)=='\\u00D7'||input.LA(1)=='\\u00F7'||(input.LA(1)>='\\u0100' && input.LA(1)<='\\uFFFF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n }", "public abstract PredicateExpr getNext();", "public void testBEAST11() throws Exception {\n\t\tObject retval = execLexer(\"BEAST\", 170, \"owl\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"BEAST\", expecting, actual);\n\t}", "E13Rule createE13Rule();", "public void visit(Literal literal) {}", "public String visit(TrueLiteral n, LLVMRedux argu) throws Exception {\n return \"true\";\n }", "public final void synpred69_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_9=null;\n EObject lv_lhs_10_0 = null;\n\n Enumerator lv_operator_11_0 = null;\n\n EObject lv_expression_12_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2624:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2632:2: (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+\n int cnt135=0;\n loop135:\n do {\n int alt135=2;\n int LA135_0 = input.LA(1);\n\n if ( (LA135_0==KEYWORD_8) ) {\n alt135=1;\n }\n\n\n switch (alt135) {\n \tcase 1 :\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2633:2: otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t {\n \t otherlv_9=(Token)match(input,KEYWORD_8,FOLLOW_KEYWORD_8_in_synpred69_InternalMitraParser5221); if (state.failed) return ;\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2637:1: ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t {\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2639:3: lv_lhs_10_0= ruleVariableAccess\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getLhsVariableAccessParserRuleCall_4_1_1_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleVariableAccess_in_synpred69_InternalMitraParser5241);\n \t lv_lhs_10_0=ruleVariableAccess();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt135 >= 1 ) break loop135;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(135, input);\n throw eee;\n }\n cnt135++;\n } while (true);\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2655:4: ( (lv_operator_11_0= ruleAssignmentOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2657:3: lv_operator_11_0= ruleAssignmentOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getOperatorAssignmentOperatorEnumRuleCall_4_1_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleAssignmentOperator_in_synpred69_InternalMitraParser5264);\n lv_operator_11_0=ruleAssignmentOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2673:2: ( (lv_expression_12_0= ruleExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2675:3: lv_expression_12_0= ruleExpression\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getExpressionExpressionParserRuleCall_4_1_1_3_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_in_synpred69_InternalMitraParser5285);\n lv_expression_12_0=ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public final void synpred85_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ( () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3878:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3886:2: ( (lv_op_2_0= ruleEqualityOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3888:3: lv_op_2_0= ruleEqualityOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getOpEqualityOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleEqualityOperator_in_synpred85_InternalMitraParser7783);\n lv_op_2_0=ruleEqualityOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3904:2: ( (lv_rhs_3_0= ruleExpression_3 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3906:3: lv_rhs_3_0= ruleExpression_3\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getRhsExpression_3ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_3_in_synpred85_InternalMitraParser7804);\n lv_rhs_3_0=ruleExpression_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "@Test\r\n public void deriveFromBinaryXorAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M^=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH^=9\", \"(long,km^2/h)\");\r\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(\"oo\", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"fT\", token1.getTokenText());\n }", "public final void synpred1_css21_fragment() throws RecognitionException {\n // css21.g:123:10: ( esPred )\n // css21.g:123:11: esPred\n {\n pushFollow(FOLLOW_esPred_in_synpred1_css21637);\n esPred();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "public static EqQAtom parseExpression(String expression) throws ParseError {\n\t\tif (expression.contains(\"GEN\")) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t}\n\t\t\n\t\tint pos1 = expression.indexOf(\"=\");\n\t\tif (pos1==-1) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t\n\t\t}\n\t\tString var = expression.substring(0,pos1).trim();\n\t\tString ind = expression.substring(pos1+1).trim();\n\t\t\n\t\treturn new EqQAtom(ind, var);\n\t\t\n\t}", "public final void synpred5_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:7: ( test[null] COMMA test[null] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:8: test[null] COMMA test[null]\n {\n pushFollow(FOLLOW_test_in_synpred5_Python2388);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred5_Python2391); if (state.failed) return ;\n pushFollow(FOLLOW_test_in_synpred5_Python2393);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "@Override\n public Object visit(PhraseExpr node) {\n node.setExprType(SemanticTools.PHRASE);\n this.currentPhraseExpr = node;\n if (node.getInstrument() != null) {\n node.getInstrument().accept(this);\n if (!node.getInstrument().getExprType().equals(SemanticTools.STRING)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be a String\"\n );\n } else {\n if (!SemanticTools.isValidInstrument(\n ((ConstStringExpr) node.getInstrument()).getConstant())\n ) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be of types: \" + SemanticTools.instruments\n );\n }\n }\n } else {\n // default value\n node.setInstrument(new ConstStringExpr(node.getLineNum(), \"piano\"));\n }\n if (node.getOctaveModifier() != null) {\n node.getOctaveModifier().accept(this);\n if (!node.getOctaveModifier().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be of type \" + SemanticTools.INT\n );\n } else {\n int octave = Integer.parseInt(\n ((ConstIntExpr) node.getOctaveModifier()).getConstant()\n );\n\n if (octave > SemanticTools.MAX_OCT || octave < SemanticTools.MIN_OCT) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be within the range \"\n + SemanticTools.MIN_OCT + \" to \"\n + SemanticTools.MAX_OCT\n );\n }\n }\n } else {\n // default value\n node.setOctaveModifier(new ConstIntExpr(node.getLineNum(), \"0\"));\n }\n if (node.getVolume() != null) {\n node.getVolume().accept(this);\n if (!node.getVolume().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be of type \" + SemanticTools.INT\n );\n } else {\n int vol = Integer.parseInt(\n ((ConstIntExpr) node.getVolume()).getConstant()\n );\n\n if (vol > 127 || vol < 0) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be in range 0-127\"\n );\n }\n }\n } else {\n //default value\n node.setVolume(new ConstIntExpr(node.getLineNum(), \"127\"));\n }\n node.getMeasureList().accept(this);\n return null;\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n simpleNode0.setIdentifier(\"`n\\tw8u)p!WbK\");\n StringWriter stringWriter0 = new StringWriter(51);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"<=\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \">=\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n simpleNode0.setIdentifier(\"]\\\"\");\n simpleNode0.setIdentifier(\"<=\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n StringWriter stringWriter1 = new StringWriter();\n simpleNode0.setIdentifier(\"UUC^1taN`<+z\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.toString();\n JavaParser javaParser0 = new JavaParser(\"]\\\"\");\n simpleNode0.dump(\"ConditionalExpression\", stringWriter0);\n assertEquals(\"<Block>\\n <identifier>`n\\tw8u)p!WbK</identifier>\\n <identifier>]\\\"</identifier>\\n <identifier>*le</identifier>\\n <identifier>UUC^1taN`<+z</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "public void testAND2() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 226, \"&\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.pipe();\n xPathLexer0.slashes();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.number();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test130() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"pDt&YchL\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"p\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Dt\", token1.getTokenText());\n }" ]
[ "0.6603165", "0.6019425", "0.531262", "0.529349", "0.52853954", "0.52351284", "0.5226738", "0.5201473", "0.5172838", "0.5171697", "0.5150682", "0.51014864", "0.5085581", "0.5081065", "0.5066182", "0.50661063", "0.5063313", "0.5052338", "0.50494564", "0.49981228", "0.49861598", "0.49827468", "0.49825802", "0.49718213", "0.49649948", "0.49429026", "0.4942063", "0.49228913", "0.49138182", "0.49130693", "0.49119604", "0.4899821", "0.48727715", "0.486701", "0.48663092", "0.4843648", "0.4815465", "0.48123676", "0.48119947", "0.48105016", "0.4790773", "0.47873902", "0.47863504", "0.47814173", "0.47761685", "0.47699392", "0.47626683", "0.47544736", "0.47519112", "0.47475398", "0.47471556", "0.47410774", "0.473969", "0.4736065", "0.47354528", "0.47335294", "0.47321883", "0.47203064", "0.4719087", "0.46947563", "0.4688289", "0.4681418", "0.46801284", "0.4672128", "0.46717677", "0.46688557", "0.46618834", "0.4652084", "0.4650028", "0.4642872", "0.46406436", "0.4638179", "0.46263343", "0.4625346", "0.462397", "0.46160677", "0.4610673", "0.46081766", "0.4604323", "0.46042645", "0.46014005", "0.45976222", "0.45961434", "0.45925984", "0.4588509", "0.45883495", "0.45862606", "0.45844495", "0.458169", "0.45794696", "0.45789567", "0.4572478", "0.4567736", "0.45604897", "0.4560046", "0.45578256", "0.45540786", "0.45469424", "0.45375475", "0.45268226" ]
0.5654269
2
$ANTLR end synpred11_expression $ANTLR start synpred13_expression
public final void synpred13_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:55:5: ( REFERENCECHAR simpleExpr ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:55:5: REFERENCECHAR simpleExpr { match(input,REFERENCECHAR,FOLLOW_REFERENCECHAR_in_synpred13_expression246); if (state.failed) return ; pushFollow(FOLLOW_simpleExpr_in_synpred13_expression249); simpleExpr(); state._fsp--; if (state.failed) return ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "public final void synpred3_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ;\n\n }\n }", "E13Rule createE13Rule();", "Expression getActionSentence();", "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ;\n\n }\n }", "public final void synpred11_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: ( nameExprTerm )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: nameExprTerm\n {\n pushFollow(FOLLOW_nameExprTerm_in_synpred11_expression222);\n nameExprTerm();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred111_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ( ^( MINUS expr expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ^( MINUS expr expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_synpred111_AstValidator1949); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1951);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1953);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "public final void synpred11_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred11_Python7158);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred11_Python7161); if (state.failed) return ;\n\n }\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "public final void synpred13_ul_fragment() throws RecognitionException {\n\t\tExpr e =null;\n\n\t\t// ul.g:108:4: (e= expr SEMI )\n\t\t// ul.g:108:4: e= expr SEMI\n\t\t{\n\t\tpushFollow(FOLLOW_expr_in_synpred13_ul390);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,SEMI,FOLLOW_SEMI_in_synpred13_ul392); if (state.failed) return;\n\t\t}\n\n\t}", "public final void synpred27_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( ( '+' | '-' ) mult )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( '+' | '-' ) mult\n {\n if ( (input.LA(1)>=46 && input.LA(1)<=47) ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n pushFollow(FOLLOW_mult_in_synpred27_expression437);\n mult();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n stringReader0.reset();\n stringReader0.ready();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n stringReader0.reset();\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n StringReader stringReader1 = new StringReader(\"call\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader1);\n streamTokenizer4.nextToken();\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader1);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer2);\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader1);\n streamTokenizer7.slashStarComments(true);\n streamTokenizer2.commentChar((-4));\n boolean boolean0 = jSTerm1.equals((JSPredicateForm) jSTerm0);\n assertTrue(boolean0);\n \n StringReader stringReader2 = new StringReader(\"c}^$\");\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader2);\n boolean boolean1 = jSTerm1.equals((JSPredicateForm) null);\n assertFalse(boolean1);\n }", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "@Override\n public Object visit(PhraseExpr node) {\n node.setExprType(SemanticTools.PHRASE);\n this.currentPhraseExpr = node;\n if (node.getInstrument() != null) {\n node.getInstrument().accept(this);\n if (!node.getInstrument().getExprType().equals(SemanticTools.STRING)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be a String\"\n );\n } else {\n if (!SemanticTools.isValidInstrument(\n ((ConstStringExpr) node.getInstrument()).getConstant())\n ) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be of types: \" + SemanticTools.instruments\n );\n }\n }\n } else {\n // default value\n node.setInstrument(new ConstStringExpr(node.getLineNum(), \"piano\"));\n }\n if (node.getOctaveModifier() != null) {\n node.getOctaveModifier().accept(this);\n if (!node.getOctaveModifier().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be of type \" + SemanticTools.INT\n );\n } else {\n int octave = Integer.parseInt(\n ((ConstIntExpr) node.getOctaveModifier()).getConstant()\n );\n\n if (octave > SemanticTools.MAX_OCT || octave < SemanticTools.MIN_OCT) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be within the range \"\n + SemanticTools.MIN_OCT + \" to \"\n + SemanticTools.MAX_OCT\n );\n }\n }\n } else {\n // default value\n node.setOctaveModifier(new ConstIntExpr(node.getLineNum(), \"0\"));\n }\n if (node.getVolume() != null) {\n node.getVolume().accept(this);\n if (!node.getVolume().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be of type \" + SemanticTools.INT\n );\n } else {\n int vol = Integer.parseInt(\n ((ConstIntExpr) node.getVolume()).getConstant()\n );\n\n if (vol > 127 || vol < 0) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be in range 0-127\"\n );\n }\n }\n } else {\n //default value\n node.setVolume(new ConstIntExpr(node.getLineNum(), \"127\"));\n }\n node.getMeasureList().accept(this);\n return null;\n }", "public MMExptTupleMatcher() {\n this.conceptMatcher = new kb.matching.SynonymConceptMatcher();\n // Need to set synonyms right here\n }", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "@Test\n public void example13 () throws Exception {\n Map<String, Stmt> inputs = example2setup();\n conn.setNamespace(\"ex\", \"http://example.org/people/\");\n conn.setNamespace(\"ont\", \"http://example.org/ontology/\");\n String prefix = \"PREFIX ont: \" + \"<http://example.org/ontology/>\\n\";\n \n String queryString = \"select ?s ?p ?o where { ?s ?p ?o} \";\n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"SELECT result:\", inputs.values(),\n statementSet(tupleQuery.evaluate()));\n \n assertTrue(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"Alice\\\" } \").evaluate());\n assertFalse(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"NOT Alice\\\" } \").evaluate());\n \n queryString = \"construct {?s ?p ?o} where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery constructQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Construct result\",\n mapKeep(new String[] {\"an\"}, inputs).values(),\n statementSet(constructQuery.evaluate()));\n \n queryString = \"describe ?s where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery describeQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Describe result\",\n mapKeep(new String[] {\"an\", \"at\"}, inputs).values(),\n statementSet(describeQuery.evaluate()));\n }", "public final void synpred10_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n\n // InternalMyDsl.g:320:3: ( ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt151=4;\n alt151 = dfa151.predict(input);\n switch (alt151) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public StatementNode getStatementNodeOnTrue();", "public final void synpred10_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: ( EPRESSIONCHAR )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: EPRESSIONCHAR\n {\n match(input,EPRESSIONCHAR,FOLLOW_EPRESSIONCHAR_in_synpred10_expression199); if (state.failed) return ;\n\n }\n }", "public final void synpred69_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_9=null;\n EObject lv_lhs_10_0 = null;\n\n Enumerator lv_operator_11_0 = null;\n\n EObject lv_expression_12_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2624:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2632:2: (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+\n int cnt135=0;\n loop135:\n do {\n int alt135=2;\n int LA135_0 = input.LA(1);\n\n if ( (LA135_0==KEYWORD_8) ) {\n alt135=1;\n }\n\n\n switch (alt135) {\n \tcase 1 :\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2633:2: otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t {\n \t otherlv_9=(Token)match(input,KEYWORD_8,FOLLOW_KEYWORD_8_in_synpred69_InternalMitraParser5221); if (state.failed) return ;\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2637:1: ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t {\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2639:3: lv_lhs_10_0= ruleVariableAccess\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getLhsVariableAccessParserRuleCall_4_1_1_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleVariableAccess_in_synpred69_InternalMitraParser5241);\n \t lv_lhs_10_0=ruleVariableAccess();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt135 >= 1 ) break loop135;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(135, input);\n throw eee;\n }\n cnt135++;\n } while (true);\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2655:4: ( (lv_operator_11_0= ruleAssignmentOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2657:3: lv_operator_11_0= ruleAssignmentOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getOperatorAssignmentOperatorEnumRuleCall_4_1_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleAssignmentOperator_in_synpred69_InternalMitraParser5264);\n lv_operator_11_0=ruleAssignmentOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2673:2: ( (lv_expression_12_0= ruleExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2675:3: lv_expression_12_0= ruleExpression\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getExpressionExpressionParserRuleCall_4_1_1_3_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_in_synpred69_InternalMitraParser5285);\n lv_expression_12_0=ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public void testNUMWORDS13() throws Exception {\n\t\tObject retval = execLexer(\"NUMWORDS\", 258, \"seven\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"NUMWORDS\", expecting, actual);\n\t}", "public final void synpred10_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:7: ( expr[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1517:8: expr[null] COMMA\n {\n pushFollow(FOLLOW_expr_in_synpred10_Python7017);\n expr(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred10_Python7020); if (state.failed) return ;\n\n }\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(18, token0.getTokenType());\n }", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public final void synpred116_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: ( const_expr )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: const_expr\n {\n pushFollow(FOLLOW_const_expr_in_synpred116_AstValidator2032);\n const_expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n \n Token token1 = xPathLexer0.not();\n assertEquals(\"O\", token1.getTokenText());\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"Ph7\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "@Test\n public void testPhrase() {\n assertQ(req(\"q\",\"text:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='1']\"\n );\n // should generate a query of (now OR cow) and match both docs\n assertQ(req(\"q\",\"text_np:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='2']\"\n );\n }", "protected void emit_Precedence___HasKeyword_13_0_OccurredKeyword_13_1__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "public final void synpred1_css21_fragment() throws RecognitionException {\n // css21.g:123:10: ( esPred )\n // css21.g:123:11: esPred\n {\n pushFollow(FOLLOW_esPred_in_synpred1_css21637);\n esPred();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "public void setAttr13(String attr13) {\n this.attr13 = attr13;\n }", "@Test(timeout = 4000)\n public void test130() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"pDt&YchL\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"p\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Dt\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public final boolean synpred1_PrePro() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred1_PrePro_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "public void testBEAST13() throws Exception {\n\t\tObject retval = execLexer(\"BEAST\", 172, \"lizard\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"BEAST\", expecting, actual);\n\t}", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "@Override\n public Predicate generateOutputStructure(Predicate predicate) {\n Predicate modifiedPredicate = new Predicate(predicate.getPredicateName());\n phrase = nlgFactory.createClause();\n //create phrase using the annotations of each predicate element describing its function in the sentence\n for (PredicateElement element : predicate.getElements()) {\n if (element != null && element.getPredicateElementAnnotation() != null) {\n PredicateElementAnnotation elementAnnotation = element.getPredicateElementAnnotation();\n if (elementAnnotation.equals(PredicateElementAnnotation.subject)) {\n phrase.setSubject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.verb)) {\n phrase.setVerb(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.directObject)) {\n phrase.setObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.indirectObject)) {\n phrase.setIndirectObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.complement)) {\n phrase.setComplement(element.toString());\n }\n }\n }\n //get annotation which affect whole predicate and use them to create correct type of phrase\n if (predicate.getPredicateAnnotations() != null) {\n List<PredicateAnnotation> predicateAnnotations = predicate.getPredicateAnnotations();\n if (predicateAnnotations.contains(PredicateAnnotation.NEGATION)) {\n phrase.setFeature(Feature.NEGATED, true);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.YES_NO)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW_MANY)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW_MANY);\n }\n if (predicateAnnotations.contains((PredicateAnnotation.IMPERATIVE))) {\n phrase.setFeature(Feature.FORM, Form.IMPERATIVE);\n }\n }\n //create the output sentence\n String resultString = realiser.realiseSentence(phrase);\n setOutputStructure(resultString);\n //split output structure into its elements\n String resStructure = phrase.getParent().getFeatureAsString((\"textComponents\"));\n resStructure = resStructure.replace(\"[\", \"\");\n resStructure = resStructure.replace(\"]\", \"\");\n ArrayList<String> outputOrderList = new ArrayList<>();\n String[] resSplit = resStructure.split(\",\");\n for (int i = 0; i < resSplit.length; i++) {\n outputOrderList.add(resSplit[i].trim());\n }\n //create new predicate element list\n ArrayList<PredicateElement> modifiedPredicateElementList = new ArrayList<>();\n //use this orderList as new predicate element list -> order important for planning\n boolean elementAlreadyAdded = false;\n for (String outputOrderElement : outputOrderList) {\n //keep old predicate if worldobjectid and type were already set (\"I\", \"you\")\n for(PredicateElement element: predicate.getElements()) {\n if(element.getWorldObjectId() != null && element.toString().equals(outputOrderElement)) {\n modifiedPredicateElementList.add(element);\n elementAlreadyAdded = true;\n break;\n }\n }\n if(elementAlreadyAdded) {\n elementAlreadyAdded = false;\n continue;\n }\n modifiedPredicateElementList.add(new StringPredicateElement(outputOrderElement));\n }\n if(phrase.hasFeature(Feature.INTERROGATIVE_TYPE)) {\n modifiedPredicateElementList.add(new StringPredicateElement(\"?\"));\n }else {\n modifiedPredicateElementList.add(new StringPredicateElement(\".\"));\n }\n //set new elements for the modified predicate\n modifiedPredicate.setElements(modifiedPredicateElementList.toArray(new StringPredicateElement[modifiedPredicateElementList.size()]));\n return modifiedPredicate;\n }", "public final void synpred4_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:668:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:668:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred4_Python2289);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred4_Python2292); if (state.failed) return ;\n\n }\n }", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred5_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:7: ( test[null] COMMA test[null] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:8: test[null] COMMA test[null]\n {\n pushFollow(FOLLOW_test_in_synpred5_Python2388);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred5_Python2391); if (state.failed) return ;\n pushFollow(FOLLOW_test_in_synpred5_Python2393);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred91_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_2=null;\n EObject lv_type_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4345:2: ( () otherlv_2= KEYWORD_96 ( (lv_type_3_0= ruleType ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4345:2: () otherlv_2= KEYWORD_96 ( (lv_type_3_0= ruleType ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4345:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4346:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n otherlv_2=(Token)match(input,KEYWORD_96,FOLLOW_KEYWORD_96_in_synpred91_InternalMitraParser8711); if (state.failed) return ;\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4359:1: ( (lv_type_3_0= ruleType ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4360:1: (lv_type_3_0= ruleType )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4360:1: (lv_type_3_0= ruleType )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4361:3: lv_type_3_0= ruleType\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_9Access().getTypeTypeParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleType_in_synpred91_InternalMitraParser8731);\n lv_type_3_0=ruleType();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "public final void synpred32_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_10=null;\n EObject lv_left_9_0 = null;\n\n EObject lv_right_11_0 = null;\n\n\n // InternalMyDsl.g:1261:3: ( ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1262:4: () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1262:4: ()\n // InternalMyDsl.g:1263:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1272:4: ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1274:6: lv_left_9_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_18);\n lv_left_9_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_10=(Token)match(input,32,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:1295:4: ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1297:6: lv_right_11_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_11_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "private Term parseTerm(final boolean required) throws ParseException {\n return parseAssign(required);\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "private static void verifEnt() {\r\n\t\tif (tCour != ENT)\r\n\t\t\tUtilLex.messErr(\"expression entiere attendue\");\r\n\t}", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "HornSentence(Literal head, HashSet premises){\n this.head = head;\n this.premises = new HashSet(premises);\n }", "public final void synpred115_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:416:8: ( ^( CAST_EXPR type expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:416:8: ^( CAST_EXPR type expr )\n {\n match(input,CAST_EXPR,FOLLOW_CAST_EXPR_in_synpred115_AstValidator2017); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_type_in_synpred115_AstValidator2019);\n type();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred115_AstValidator2021);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "private boolean grammar() {\r\n return skip() && rules() && MARK(END_OF_TEXT) && EOT();\r\n }", "public static void main(String[] args) throws Exception {\n\n SimpleCalcLexer lex = new SimpleCalcLexer(new ANTLRFileStream(args[0]));\n \tCommonTokenStream tokens = new CommonTokenStream(lex);\n\n // \tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\n SimpleCalcParser parser = new SimpleCalcParser(tokens);\n\n try {\n parser.expr();\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!%cD=EVjn`\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.curLexState = 464;\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, token0.kind);\n assertEquals(\"\", token0.toString());\n }", "@Test(timeout = 4000)\n public void test151() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"9M4i+yR.T\");\n Token token0 = xPathLexer0.number();\n assertEquals(\"9\", token0.getTokenText());\n assertEquals(30, token0.getTokenType());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"M\", token1.getTokenText());\n \n Token token2 = xPathLexer0.at();\n assertEquals(16, token2.getTokenType());\n assertEquals(\"4\", token2.getTokenText());\n \n Token token3 = xPathLexer0.not();\n assertEquals(\"i\", token3.getTokenText());\n assertEquals(23, token3.getTokenType());\n \n Token token4 = xPathLexer0.nextToken();\n assertEquals(\"+\", token4.getTokenText());\n assertEquals(5, token4.getTokenType());\n \n Token token5 = xPathLexer0.nextToken();\n assertEquals(\"yR.T\", token5.getTokenText());\n assertEquals(15, token5.getTokenType());\n }", "public final EObject ruleExpression_11() throws RecognitionException {\n EObject current = null;\n int ruleExpression_11_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject this_Expression_1 = null;\n\n EObject this_TerminalExpression_3 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 102) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4397:28: ( ( (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 ) | this_TerminalExpression_3= ruleTerminalExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:1: ( (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 ) | this_TerminalExpression_3= ruleTerminalExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:1: ( (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 ) | this_TerminalExpression_3= ruleTerminalExpression )\n int alt74=2;\n alt74 = dfa74.predict(input);\n switch (alt74) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:2: (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4398:2: (otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4399:2: otherlv_0= KEYWORD_4 this_Expression_1= ruleExpression otherlv_2= KEYWORD_5\n {\n otherlv_0=(Token)match(input,KEYWORD_4,FOLLOW_KEYWORD_4_in_ruleExpression_118817); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getExpression_11Access().getLeftParenthesisKeyword_0_0());\n \n }\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_11Access().getExpressionParserRuleCall_0_1()); \n \n }\n pushFollow(FOLLOW_ruleExpression_in_ruleExpression_118841);\n this_Expression_1=ruleExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_Expression_1;\n afterParserOrEnumRuleCall();\n \n }\n otherlv_2=(Token)match(input,KEYWORD_5,FOLLOW_KEYWORD_5_in_ruleExpression_118853); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getExpression_11Access().getRightParenthesisKeyword_0_2());\n \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4422:2: this_TerminalExpression_3= ruleTerminalExpression\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpression_11Access().getTerminalExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleTerminalExpression_in_ruleExpression_118884);\n this_TerminalExpression_3=ruleTerminalExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_TerminalExpression_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 \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 102, ruleExpression_11_StartIndex); }\n }\n return current;\n }", "public final void mT__31() throws RecognitionException {\n try {\n int _type = T__31;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalReqLNG.g:30:7: ( 'Synonyms' )\n // InternalReqLNG.g:30:9: 'Synonyms'\n {\n match(\"Synonyms\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "boolean isSyn();", "public final void synpred3_Binding_fragment() throws RecognitionException { \n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:11: INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n {\n mINT(); if (state.failed) return ;\n match('.'); if (state.failed) return ;\n if ( (input.LA(1)>='\\u0000' && input.LA(1)<='-')||(input.LA(1)>='/' && input.LA(1)<='@')||(input.LA(1)>='[' && input.LA(1)<='^')||input.LA(1)=='`'||(input.LA(1)>='{' && input.LA(1)<='\\u00BF')||input.LA(1)=='\\u00D7'||input.LA(1)=='\\u00F7'||(input.LA(1)>='\\u0100' && input.LA(1)<='\\uFFFF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "public void setMlSdef13(String mlSdef13) {\n this.mlSdef13 = mlSdef13;\n }", "@Test\r\n public void deriveFromBinaryXorAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M^=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH^=9\", \"(long,km^2/h)\");\r\n }", "public static EqQAtom parseExpression(String expression) throws ParseError {\n\t\tif (expression.contains(\"GEN\")) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t}\n\t\t\n\t\tint pos1 = expression.indexOf(\"=\");\n\t\tif (pos1==-1) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t\n\t\t}\n\t\tString var = expression.substring(0,pos1).trim();\n\t\tString ind = expression.substring(pos1+1).trim();\n\t\t\n\t\treturn new EqQAtom(ind, var);\n\t\t\n\t}", "@Test\n\tpublic void testP2(){\n\t\tList<Token> list = pa.getTokens(str);\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n\t\tfor(Token t : list){\n\t\t\tSystem.out.println(t.toString());\n\t\t}\n\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n\t\tboolean a = false;\n\t\ttry {\n\t\t\ta = pa.runSentence(str,null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"end res : \"+a);\n\t}", "private boolean commandAnalyzerLR(List<Token> lineLexTokens) {\r\n\t\tToken cmdToken = lineLexTokens.get(0);\r\n\t\t// command declaration must have NUM_PARAM_CMD parameters\r\n\t\tif (lineLexTokens.size()!= NUM_PARAMS_CMD) {\r\n\t\t\tlog.error(\"Command '\" + cmdToken.value + \"' must contain \" \r\n\t\t\t\t\t+ NUM_PARAMS_CMD + \" parameters.\", new ParserException());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tToken valToken = lineLexTokens.get(1);\r\n\t\tString lineLex = cmdToken.lexSymbol + \r\n\t\t\t\t valToken.lexSymbol;\r\n\t\tString regex = \"\"; // regular expression\r\n\r\n\t\t// Check the syntax of this command declaration \r\n\t\tKeywords cmdKeyword = Keywords.lookup(cmdToken.value);\r\n\t\t\r\n\t\t// default error message\r\n\t\tfinal String errMsg = \"Command declaration '\" + cmdToken.value + \r\n\t\t \t\t\t \t\"' is in a wrong format.\";\r\n\t\t\r\n\t\tswitch(cmdKeyword){\r\n\t\t\tcase _COORD_SYSTEM:\r\n\t\t\t\t// \"\\\\$cmd$space\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.CoordinateSysSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check coordinates system types \"\r\n\t\t\t\t\t\t\t+ \"definition.\", new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase _SPATIAL_DIM:\r\n\t\t\t\t// \"\\\\$cmd[1-3]\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \"[1-3]\";\r\n\t\t\t\tString dimCmd = cmdToken.lexSymbol + valToken.value;\r\n\t\t\t\tif (!dimCmd.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Dimensions must be 1, 2 or 3.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase _IGNORE_LINES:\r\n\t\t\t\t// \"\\\\$cmd[1-9,15,18]\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \r\n\t\t\t\t \"\\\\[[^,]{0}(,{0,1}[0-9]|,{0,1}[0-9]\\\\-[0-9])+\\\\]\";\r\n\t\t\t\tString ignoreCmd = cmdToken.lexSymbol + valToken.value;\r\n\t\t\t\tif (!ignoreCmd.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg, new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\tcase _AUTO_ID:\r\n\t\t\t\t// \"\\\\$cmd\\\\$str\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.StringSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check ID prefix declaration.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase _IGNORE_ATTR:\r\n\t\t\t\t// \"\\\\$cmd\\\\$delim\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check attribute delimiter.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase _RECORDS_DELIM:\t\r\n\t\t\t\t// \"\\\\$cmd\\\\$delim\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check records delimiter.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase _DECIMAL_PREC:\r\n\t\t\t\t// \"\\\\$cmd\\\\d+\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \"\\\\d+\";\r\n\t\t\t\tString precisionCmd = cmdToken.lexSymbol + valToken.value;\r\n\t\t\t\tif (!precisionCmd.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Decimal precision must be an \"\r\n\t\t\t\t\t\t\t+ \"integer number.\", new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\t// default format for commands\r\n\t\t\t\t// \"\\\\$cmd(\\\\$str|\\\\$delim)\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \r\n\t\t\t\t\t \"(\\\\\"+Symbols.StringSymbol + \"|\" +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol + \")\";\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg, new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// no syntax error in this command declaration\r\n\t\treturn true;\r\n\t}", "public void expression(Node n_parent) {\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: expression::if- \"+n_parent.getData());\r\n\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.simpleExpression(makeown);\r\n\r\n //compNode = expressionNode.addChild(\"Compare\");\r\n //Node n_connect =\r\n this.restExpression(n_parent,n_factor);\r\n //n_parent.setNodeChild(n_connect);\r\n }\r\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "public final void synpred1_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:7: ( LPAREN fpdef[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:527:8: LPAREN fpdef[null] COMMA\n {\n match(input,LPAREN,FOLLOW_LPAREN_in_synpred1_Python1249); if (state.failed) return ;\n pushFollow(FOLLOW_fpdef_in_synpred1_Python1251);\n fpdef(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred1_Python1254); if (state.failed) return ;\n\n }\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "public final void synpred26_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_11=null;\n EObject lv_operand_12_0 = null;\n\n\n // InternalMyDsl.g:953:3: ( ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:953:3: ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:953:3: ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:954:4: () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:954:4: ()\n // InternalMyDsl.g:955:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n otherlv_11=(Token)match(input,28,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:968:4: ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:969:5: (lv_operand_12_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:969:5: (lv_operand_12_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:970:6: lv_operand_12_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandBooleanOrOCLLiteralParserRuleCall_4_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_12_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred23_InternalMyDsl_fragment() throws RecognitionException { \n EObject lv_operand_3_0 = null;\n\n\n // InternalMyDsl.g:849:3: ( ( () ( (lv_operand_3_0= ruleSequence ) ) ) )\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n // InternalMyDsl.g:850:4: () ( (lv_operand_3_0= ruleSequence ) )\n {\n // InternalMyDsl.g:850:4: ()\n // InternalMyDsl.g:851:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:860:4: ( (lv_operand_3_0= ruleSequence ) )\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n {\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n // InternalMyDsl.g:862:6: lv_operand_3_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_3_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred24_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_6=null;\n EObject lv_operand_5_0 = null;\n\n\n // InternalMyDsl.g:881:3: ( ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' ) )\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n {\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n // InternalMyDsl.g:882:4: () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!'\n {\n // InternalMyDsl.g:882:4: ()\n // InternalMyDsl.g:883:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:892:4: ( (lv_operand_5_0= ruleSequence ) )\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n {\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n // InternalMyDsl.g:894:6: lv_operand_5_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_15);\n lv_operand_5_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_6=(Token)match(input,26,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void mKEYWORD_13() throws RecognitionException {\n try {\n int _type = KEYWORD_13;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:75:12: ( '@' )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:75:14: '@'\n {\n match('@'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "public abstract List<EventRule> getEventRulesOfSentence();", "protected void emit_ConstantExpression_binary___NswKeyword_0_0_1_1_or_NuwKeyword_0_0_1_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\n\t\tacceptNodes(transition, nodes);\n\t}", "private SingleRuleBuilder or(boolean negate, String predicate, String... variables) {\n literals.add( new MLNText.Literal(!negate, predicate, variables[0], variables[1]));\n return this;\n }" ]
[ "0.6263018", "0.5724687", "0.5436869", "0.53742343", "0.53650206", "0.5320306", "0.5303953", "0.5236332", "0.52119964", "0.5182972", "0.5135694", "0.5078574", "0.50735015", "0.5035651", "0.50062126", "0.49973258", "0.49683705", "0.49635056", "0.492764", "0.49074522", "0.4896314", "0.48952258", "0.48807636", "0.48639557", "0.48597947", "0.48148796", "0.48109022", "0.47960502", "0.47759506", "0.47239244", "0.47177738", "0.4710497", "0.46897316", "0.4689272", "0.46842754", "0.468084", "0.46792233", "0.46655628", "0.46572956", "0.4655317", "0.46546543", "0.46533906", "0.46513587", "0.46489164", "0.46213937", "0.4621169", "0.46046865", "0.46013767", "0.46008387", "0.4597805", "0.45715335", "0.4569457", "0.45694014", "0.456681", "0.45598269", "0.45560762", "0.45457843", "0.4544091", "0.45380467", "0.4529704", "0.45267764", "0.4518248", "0.4514159", "0.45109242", "0.45095265", "0.45090094", "0.45069507", "0.4501721", "0.44987905", "0.44970474", "0.4496067", "0.4482365", "0.448173", "0.4461926", "0.4461873", "0.4455857", "0.44480854", "0.44475", "0.4445727", "0.44446695", "0.44443673", "0.4443256", "0.4436625", "0.4431456", "0.44163543", "0.44123188", "0.44107", "0.44092405", "0.44080773", "0.44044977", "0.44033584", "0.43979487", "0.4396926", "0.43966135", "0.4395556", "0.4395377", "0.4392353", "0.43916535", "0.43884405", "0.43873328" ]
0.5627854
2
$ANTLR end synpred13_expression $ANTLR start synpred27_expression
public final void synpred27_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:80:11: ( ( '+' | '-' ) mult ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:80:11: ( '+' | '-' ) mult { if ( (input.LA(1)>=46 && input.LA(1)<=47) ) { input.consume(); state.errorRecovery=false;state.failed=false; } else { if (state.backtracking>0) {state.failed=true; return ;} MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } pushFollow(FOLLOW_mult_in_synpred27_expression437); mult(); state._fsp--; if (state.failed) return ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred7_expression163); if (state.failed) return ;\n\n }\n }", "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred3_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n {\n match(input,STRING,FOLLOW_STRING_in_synpred3_expression111); if (state.failed) return ;\n\n }\n }", "public final void synpred13_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: ( REFERENCECHAR simpleExpr )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:55:5: REFERENCECHAR simpleExpr\n {\n match(input,REFERENCECHAR,FOLLOW_REFERENCECHAR_in_synpred13_expression246); if (state.failed) return ;\n pushFollow(FOLLOW_simpleExpr_in_synpred13_expression249);\n simpleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred4_QL() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred4_QL_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "Expression getActionSentence();", "public final void synpred11_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: ( nameExprTerm )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:50:20: nameExprTerm\n {\n pushFollow(FOLLOW_nameExprTerm_in_synpred11_expression222);\n nameExprTerm();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred13_ul_fragment() throws RecognitionException {\n\t\tExpr e =null;\n\n\t\t// ul.g:108:4: (e= expr SEMI )\n\t\t// ul.g:108:4: e= expr SEMI\n\t\t{\n\t\tpushFollow(FOLLOW_expr_in_synpred13_ul390);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,SEMI,FOLLOW_SEMI_in_synpred13_ul392); if (state.failed) return;\n\t\t}\n\n\t}", "public final void synpred84_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ( () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: () ( (lv_op_2_0= ruleBooleanOperator ) ) ( (lv_rhs_3_0= ruleExpression_2 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3799:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3800:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3808:2: ( (lv_op_2_0= ruleBooleanOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3809:1: (lv_op_2_0= ruleBooleanOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3810:3: lv_op_2_0= ruleBooleanOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getOpBooleanOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBooleanOperator_in_synpred84_InternalMitraParser7632);\n lv_op_2_0=ruleBooleanOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3826:2: ( (lv_rhs_3_0= ruleExpression_2 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3827:1: (lv_rhs_3_0= ruleExpression_2 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3828:3: lv_rhs_3_0= ruleExpression_2\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_1Access().getRhsExpression_2ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_2_in_synpred84_InternalMitraParser7653);\n lv_rhs_3_0=ruleExpression_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred1_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: ( stringExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n {\n pushFollow(FOLLOW_stringExpression_in_synpred1_expression98);\n stringExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "public final boolean synpred5_Python() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred5_Python_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public MMExptTupleMatcher() {\n this.conceptMatcher = new kb.matching.SynonymConceptMatcher();\n // Need to set synonyms right here\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "protected void emit_Precedence___HasKeyword_13_0_OccurredKeyword_13_1__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "@Override\n public Object visit(PhraseExpr node) {\n node.setExprType(SemanticTools.PHRASE);\n this.currentPhraseExpr = node;\n if (node.getInstrument() != null) {\n node.getInstrument().accept(this);\n if (!node.getInstrument().getExprType().equals(SemanticTools.STRING)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be a String\"\n );\n } else {\n if (!SemanticTools.isValidInstrument(\n ((ConstStringExpr) node.getInstrument()).getConstant())\n ) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be of types: \" + SemanticTools.instruments\n );\n }\n }\n } else {\n // default value\n node.setInstrument(new ConstStringExpr(node.getLineNum(), \"piano\"));\n }\n if (node.getOctaveModifier() != null) {\n node.getOctaveModifier().accept(this);\n if (!node.getOctaveModifier().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be of type \" + SemanticTools.INT\n );\n } else {\n int octave = Integer.parseInt(\n ((ConstIntExpr) node.getOctaveModifier()).getConstant()\n );\n\n if (octave > SemanticTools.MAX_OCT || octave < SemanticTools.MIN_OCT) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be within the range \"\n + SemanticTools.MIN_OCT + \" to \"\n + SemanticTools.MAX_OCT\n );\n }\n }\n } else {\n // default value\n node.setOctaveModifier(new ConstIntExpr(node.getLineNum(), \"0\"));\n }\n if (node.getVolume() != null) {\n node.getVolume().accept(this);\n if (!node.getVolume().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be of type \" + SemanticTools.INT\n );\n } else {\n int vol = Integer.parseInt(\n ((ConstIntExpr) node.getVolume()).getConstant()\n );\n\n if (vol > 127 || vol < 0) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be in range 0-127\"\n );\n }\n }\n } else {\n //default value\n node.setVolume(new ConstIntExpr(node.getLineNum(), \"127\"));\n }\n node.getMeasureList().accept(this);\n return null;\n }", "public final void synpred10_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n\n // InternalMyDsl.g:320:3: ( ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt151=4;\n alt151 = dfa151.predict(input);\n switch (alt151) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred10_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: ( EPRESSIONCHAR )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:45:35: EPRESSIONCHAR\n {\n match(input,EPRESSIONCHAR,FOLLOW_EPRESSIONCHAR_in_synpred10_expression199); if (state.failed) return ;\n\n }\n }", "public final void synpred8_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:7: ( test[null] COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1490:8: test[null] COLON\n {\n pushFollow(FOLLOW_test_in_synpred8_Python6821);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COLON,FOLLOW_COLON_in_synpred8_Python6824); if (state.failed) return ;\n\n }\n }", "public final void synpred3_Binding_fragment() throws RecognitionException { \n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:9: ( INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2956:11: INT '.' ~ ( '.' | 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n {\n mINT(); if (state.failed) return ;\n match('.'); if (state.failed) return ;\n if ( (input.LA(1)>='\\u0000' && input.LA(1)<='-')||(input.LA(1)>='/' && input.LA(1)<='@')||(input.LA(1)>='[' && input.LA(1)<='^')||input.LA(1)=='`'||(input.LA(1)>='{' && input.LA(1)<='\\u00BF')||input.LA(1)=='\\u00D7'||input.LA(1)=='\\u00F7'||(input.LA(1)>='\\u0100' && input.LA(1)<='\\uFFFF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n }", "public final void synpred7_QL_fragment() throws RecognitionException {\n Expr expr =null;\n\n Body b1 =null;\n\n Body b2 =null;\n\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: ( 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}' )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:84:3: 'if' '(' expr= orExpr ')' '{' b1= body '}' 'else' '{' b2= body '}'\n {\n match(input,32,FOLLOW_32_in_synpred7_QL260); if (state.failed) return ;\n\n match(input,18,FOLLOW_18_in_synpred7_QL262); if (state.failed) return ;\n\n pushFollow(FOLLOW_orExpr_in_synpred7_QL266);\n expr=orExpr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,19,FOLLOW_19_in_synpred7_QL268); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL270); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL273);\n b1=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL274); if (state.failed) return ;\n\n match(input,30,FOLLOW_30_in_synpred7_QL276); if (state.failed) return ;\n\n match(input,33,FOLLOW_33_in_synpred7_QL278); if (state.failed) return ;\n\n pushFollow(FOLLOW_body_in_synpred7_QL282);\n b2=body();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input,35,FOLLOW_35_in_synpred7_QL283); if (state.failed) return ;\n\n }\n\n }", "E13Rule createE13Rule();", "public final void synpred111_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ( ^( MINUS expr expr ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:412:8: ^( MINUS expr expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_synpred111_AstValidator1949); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1951);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n pushFollow(FOLLOW_expr_in_synpred111_AstValidator1953);\n expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }", "public final void synpred1_InternalStl_fragment() throws RecognitionException { \n // InternalStl.g:1699:5: ( '.' )\n // InternalStl.g:1699:6: '.'\n {\n match(input,35,FOLLOW_2); if (state.failed) return ;\n\n }\n }", "public final void mKEYWORD_27() throws RecognitionException {\n try {\n int _type = KEYWORD_27;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:29:12: ( ( 'V' | 'v' ) ( 'E' | 'e' ) ( 'R' | 'r' ) ( 'I' | 'i' ) ( 'F' | 'f' ) ( 'Y' | 'y' ) )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:29:14: ( 'V' | 'v' ) ( 'E' | 'e' ) ( 'R' | 'r' ) ( 'I' | 'i' ) ( 'F' | 'f' ) ( 'Y' | 'y' )\n {\n if ( input.LA(1)=='V'||input.LA(1)=='v' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='E'||input.LA(1)=='e' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='R'||input.LA(1)=='r' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='I'||input.LA(1)=='i' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='F'||input.LA(1)=='f' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='Y'||input.LA(1)=='y' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void synpred1_css21_fragment() throws RecognitionException {\n // css21.g:123:10: ( esPred )\n // css21.g:123:11: esPred\n {\n pushFollow(FOLLOW_esPred_in_synpred1_css21637);\n esPred();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "public final void synpred24_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_6=null;\n EObject lv_operand_5_0 = null;\n\n\n // InternalMyDsl.g:881:3: ( ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' ) )\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n {\n // InternalMyDsl.g:881:3: ( () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!' )\n // InternalMyDsl.g:882:4: () ( (lv_operand_5_0= ruleSequence ) ) otherlv_6= '!'\n {\n // InternalMyDsl.g:882:4: ()\n // InternalMyDsl.g:883:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:892:4: ( (lv_operand_5_0= ruleSequence ) )\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n {\n // InternalMyDsl.g:893:5: (lv_operand_5_0= ruleSequence )\n // InternalMyDsl.g:894:6: lv_operand_5_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_15);\n lv_operand_5_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_6=(Token)match(input,26,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "public final void synpred9_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:7: ( COLON )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1495:8: COLON\n {\n match(input,COLON,FOLLOW_COLON_in_synpred9_Python6872); if (state.failed) return ;\n\n }\n }", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public final void synpred1_InternalSText_fragment() throws RecognitionException { \r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1584:6: ( '[' )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1584:8: '['\r\n {\r\n match(input,35,FOLLOW_35_in_synpred1_InternalSText3387); if (state.failed) return ;\r\n\r\n }\r\n }", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(18, token0.getTokenType());\n }", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "public final boolean synpred1_InternalSText() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred1_InternalSText_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "public final void synpred69_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_9=null;\n EObject lv_lhs_10_0 = null;\n\n Enumerator lv_operator_11_0 = null;\n\n EObject lv_expression_12_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:6: ( () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: () (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+ ( (lv_operator_11_0= ruleAssignmentOperator ) ) ( (lv_expression_12_0= ruleExpression ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2623:7: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2624:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2632:2: (otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) ) )+\n int cnt135=0;\n loop135:\n do {\n int alt135=2;\n int LA135_0 = input.LA(1);\n\n if ( (LA135_0==KEYWORD_8) ) {\n alt135=1;\n }\n\n\n switch (alt135) {\n \tcase 1 :\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2633:2: otherlv_9= KEYWORD_8 ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t {\n \t otherlv_9=(Token)match(input,KEYWORD_8,FOLLOW_KEYWORD_8_in_synpred69_InternalMitraParser5221); if (state.failed) return ;\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2637:1: ( (lv_lhs_10_0= ruleVariableAccess ) )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t {\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2638:1: (lv_lhs_10_0= ruleVariableAccess )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2639:3: lv_lhs_10_0= ruleVariableAccess\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getLhsVariableAccessParserRuleCall_4_1_1_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleVariableAccess_in_synpred69_InternalMitraParser5241);\n \t lv_lhs_10_0=ruleVariableAccess();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt135 >= 1 ) break loop135;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(135, input);\n throw eee;\n }\n cnt135++;\n } while (true);\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2655:4: ( (lv_operator_11_0= ruleAssignmentOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2656:1: (lv_operator_11_0= ruleAssignmentOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2657:3: lv_operator_11_0= ruleAssignmentOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getOperatorAssignmentOperatorEnumRuleCall_4_1_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleAssignmentOperator_in_synpred69_InternalMitraParser5264);\n lv_operator_11_0=ruleAssignmentOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2673:2: ( (lv_expression_12_0= ruleExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2674:1: (lv_expression_12_0= ruleExpression )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:2675:3: lv_expression_12_0= ruleExpression\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStatementExpressionAccess().getExpressionExpressionParserRuleCall_4_1_1_3_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_in_synpred69_InternalMitraParser5285);\n lv_expression_12_0=ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred11_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:7: ( test[null] COMMA )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1539:8: test[null] COMMA\n {\n pushFollow(FOLLOW_test_in_synpred11_Python7158);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred11_Python7161); if (state.failed) return ;\n\n }\n }", "public abstract PredicateExpr getNext();", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n stringReader0.reset();\n stringReader0.ready();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n stringReader0.reset();\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n StringReader stringReader1 = new StringReader(\"call\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader1);\n streamTokenizer4.nextToken();\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader1);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer2);\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader1);\n streamTokenizer7.slashStarComments(true);\n streamTokenizer2.commentChar((-4));\n boolean boolean0 = jSTerm1.equals((JSPredicateForm) jSTerm0);\n assertTrue(boolean0);\n \n StringReader stringReader2 = new StringReader(\"c}^$\");\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader2);\n boolean boolean1 = jSTerm1.equals((JSPredicateForm) null);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test\n public void testPhrase() {\n assertQ(req(\"q\",\"text:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='1']\"\n );\n // should generate a query of (now OR cow) and match both docs\n assertQ(req(\"q\",\"text_np:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='2']\"\n );\n }", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "boolean isSyn();", "public final void synpred91_InternalMitraParser_fragment() throws RecognitionException { \n Token otherlv_2=null;\n EObject lv_type_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4345:2: ( () otherlv_2= KEYWORD_96 ( (lv_type_3_0= ruleType ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4345:2: () otherlv_2= KEYWORD_96 ( (lv_type_3_0= ruleType ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4345:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4346:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n otherlv_2=(Token)match(input,KEYWORD_96,FOLLOW_KEYWORD_96_in_synpred91_InternalMitraParser8711); if (state.failed) return ;\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4359:1: ( (lv_type_3_0= ruleType ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4360:1: (lv_type_3_0= ruleType )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4360:1: (lv_type_3_0= ruleType )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4361:3: lv_type_3_0= ruleType\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_9Access().getTypeTypeParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleType_in_synpred91_InternalMitraParser8731);\n lv_type_3_0=ruleType();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred1_InternalStl() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred1_InternalStl_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }", "public StatementNode getStatementNodeOnTrue();", "private boolean isPreEvalSymobl()\r\n\t{\r\n\t\t//if the expression is empty return false\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn false;\r\n\t\tString lastChar = expression.substring(expression.length() - 1, expression.length());\r\n\t\tfor(String str : evalSymbol)\r\n\t\t\tif(str.equals(lastChar))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "public final void synpred6_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: nameExpression\n {\n pushFollow(FOLLOW_nameExpression_in_synpred6_expression160);\n nameExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final boolean synpred1_PrePro() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred1_PrePro_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "@Test\n public void example13 () throws Exception {\n Map<String, Stmt> inputs = example2setup();\n conn.setNamespace(\"ex\", \"http://example.org/people/\");\n conn.setNamespace(\"ont\", \"http://example.org/ontology/\");\n String prefix = \"PREFIX ont: \" + \"<http://example.org/ontology/>\\n\";\n \n String queryString = \"select ?s ?p ?o where { ?s ?p ?o} \";\n TupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"SELECT result:\", inputs.values(),\n statementSet(tupleQuery.evaluate()));\n \n assertTrue(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"Alice\\\" } \").evaluate());\n assertFalse(\"Boolean result\",\n conn.prepareBooleanQuery(QueryLanguage.SPARQL,\n prefix + \n \"ask { ?s ont:name \\\"NOT Alice\\\" } \").evaluate());\n \n queryString = \"construct {?s ?p ?o} where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery constructQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Construct result\",\n mapKeep(new String[] {\"an\"}, inputs).values(),\n statementSet(constructQuery.evaluate()));\n \n queryString = \"describe ?s where { ?s ?p ?o . filter (?o = \\\"Alice\\\") } \";\n GraphQuery describeQuery = conn.prepareGraphQuery(QueryLanguage.SPARQL, queryString);\n assertSetsEqual(\"Describe result\",\n mapKeep(new String[] {\"an\", \"at\"}, inputs).values(),\n statementSet(describeQuery.evaluate()));\n }", "public final void synpred21_ul_fragment() throws RecognitionException {\n\t\tId i =null;\n\t\tExpr e =null;\n\n\t\t// ul.g:115:4: (i= id '=' e= expr SEMI )\n\t\t// ul.g:115:4: i= id '=' e= expr SEMI\n\t\t{\n\t\tpushFollow(FOLLOW_id_in_synpred21_ul521);\n\t\ti=id();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,36,FOLLOW_36_in_synpred21_ul523); if (state.failed) return;\n\t\tpushFollow(FOLLOW_expr_in_synpred21_ul529);\n\t\te=expr();\n\t\tstate._fsp--;\n\t\tif (state.failed) return;\n\t\tmatch(input,SEMI,FOLLOW_SEMI_in_synpred21_ul531); if (state.failed) return;\n\t\t}\n\n\t}", "public final void synpred7_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:9: ( IF or_test[null] ORELSE )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1031:10: IF or_test[null] ORELSE\n {\n match(input,IF,FOLLOW_IF_in_synpred7_Python4191); if (state.failed) return ;\n pushFollow(FOLLOW_or_test_in_synpred7_Python4193);\n or_test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,ORELSE,FOLLOW_ORELSE_in_synpred7_Python4196); if (state.failed) return ;\n\n }\n }", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "public void testBEAST13() throws Exception {\n\t\tObject retval = execLexer(\"BEAST\", 172, \"lizard\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"BEAST\", expecting, actual);\n\t}", "public final void synpred27_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n EObject lv_operand_15_0 = null;\n\n\n // InternalMyDsl.g:989:3: ( ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) ) )\n // InternalMyDsl.g:989:3: ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:989:3: ( () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) ) )\n // InternalMyDsl.g:990:4: () otherlv_14= 'never' ( (lv_operand_15_0= ruleSequence ) )\n {\n // InternalMyDsl.g:990:4: ()\n // InternalMyDsl.g:991:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n otherlv_14=(Token)match(input,28,FOLLOW_16); if (state.failed) return ;\n // InternalMyDsl.g:1004:4: ( (lv_operand_15_0= ruleSequence ) )\n // InternalMyDsl.g:1005:5: (lv_operand_15_0= ruleSequence )\n {\n // InternalMyDsl.g:1005:5: (lv_operand_15_0= ruleSequence )\n // InternalMyDsl.g:1006:6: lv_operand_15_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_5_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_15_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "private boolean grammar() {\r\n return skip() && rules() && MARK(END_OF_TEXT) && EOT();\r\n }", "public final boolean synpred33_ul() {\n\t\tstate.backtracking++;\n\t\tint start = input.mark();\n\t\ttry {\n\t\t\tsynpred33_ul_fragment(); // can never throw exception\n\t\t} catch (RecognitionException re) {\n\t\t\tSystem.err.println(\"impossible: \"+re);\n\t\t}\n\t\tboolean success = !state.failed;\n\t\tinput.rewind(start);\n\t\tstate.backtracking--;\n\t\tstate.failed=false;\n\t\treturn success;\n\t}", "public final void synpred2_css21_fragment() throws RecognitionException {\n // css21.g:125:8: ( esPred )\n // css21.g:125:9: esPred\n {\n pushFollow(FOLLOW_esPred_in_synpred2_css21661);\n esPred();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public final void synpred29_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_20=null;\n EObject lv_operand_21_0 = null;\n\n\n // InternalMyDsl.g:1061:3: ( ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:1061:3: ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1061:3: ( () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1062:4: () otherlv_20= 'eventually!' ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1062:4: ()\n // InternalMyDsl.g:1063:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n otherlv_20=(Token)match(input,30,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:1076:4: ( (lv_operand_21_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1077:5: (lv_operand_21_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1077:5: (lv_operand_21_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1078:6: lv_operand_21_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandBooleanOrOCLLiteralParserRuleCall_7_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_21_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void mT__27() throws RecognitionException {\n try {\n int _type = T__27;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:27:7: ( '(' )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:27:9: '('\n {\n match('('); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void synpred23_InternalMyDsl_fragment() throws RecognitionException { \n EObject lv_operand_3_0 = null;\n\n\n // InternalMyDsl.g:849:3: ( ( () ( (lv_operand_3_0= ruleSequence ) ) ) )\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n // InternalMyDsl.g:850:4: () ( (lv_operand_3_0= ruleSequence ) )\n {\n // InternalMyDsl.g:850:4: ()\n // InternalMyDsl.g:851:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:860:4: ( (lv_operand_3_0= ruleSequence ) )\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n {\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n // InternalMyDsl.g:862:6: lv_operand_3_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_3_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Override\n public Expression translateSyntacticSugar() {\n return new Condition(this.e1, BooleanConstant.TRUE, this.e2);\n }", "public final void synpred36_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_26=null;\n EObject lv_left_25_0 = null;\n\n EObject lv_right_27_0 = null;\n\n\n // InternalMyDsl.g:1481:3: ( ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:1481:3: ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:1481:3: ( () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) ) )\n // InternalMyDsl.g:1482:4: () ( (lv_left_25_0= ruleSequence ) ) otherlv_26= '|->' ( (lv_right_27_0= ruleProperty ) )\n {\n // InternalMyDsl.g:1482:4: ()\n // InternalMyDsl.g:1483:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1492:4: ( (lv_left_25_0= ruleSequence ) )\n // InternalMyDsl.g:1493:5: (lv_left_25_0= ruleSequence )\n {\n // InternalMyDsl.g:1493:5: (lv_left_25_0= ruleSequence )\n // InternalMyDsl.g:1494:6: lv_left_25_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftSequenceParserRuleCall_6_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_22);\n lv_left_25_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_26=(Token)match(input,36,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:1515:4: ( (lv_right_27_0= ruleProperty ) )\n // InternalMyDsl.g:1516:5: (lv_right_27_0= ruleProperty )\n {\n // InternalMyDsl.g:1516:5: (lv_right_27_0= ruleProperty )\n // InternalMyDsl.g:1517:6: lv_right_27_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightPropertyParserRuleCall_6_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_27_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public final void synpred32_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_10=null;\n EObject lv_left_9_0 = null;\n\n EObject lv_right_11_0 = null;\n\n\n // InternalMyDsl.g:1261:3: ( ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1261:3: ( () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1262:4: () ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) ) otherlv_10= '<->' ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1262:4: ()\n // InternalMyDsl.g:1263:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1272:4: ( (lv_left_9_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1273:5: (lv_left_9_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1274:6: lv_left_9_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_2_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_18);\n lv_left_9_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_10=(Token)match(input,32,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:1295:4: ( (lv_right_11_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1296:5: (lv_right_11_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1297:6: lv_right_11_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_11_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "private static void verifEnt() {\r\n\t\tif (tCour != ENT)\r\n\t\t\tUtilLex.messErr(\"expression entiere attendue\");\r\n\t}", "public final void mT__31() throws RecognitionException {\n try {\n int _type = T__31;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalReqLNG.g:30:7: ( 'Synonyms' )\n // InternalReqLNG.g:30:9: 'Synonyms'\n {\n match(\"Synonyms\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void synpred85_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ( () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpression_3 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3877:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3878:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3886:2: ( (lv_op_2_0= ruleEqualityOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3887:1: (lv_op_2_0= ruleEqualityOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3888:3: lv_op_2_0= ruleEqualityOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getOpEqualityOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleEqualityOperator_in_synpred85_InternalMitraParser7783);\n lv_op_2_0=ruleEqualityOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3904:2: ( (lv_rhs_3_0= ruleExpression_3 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3905:1: (lv_rhs_3_0= ruleExpression_3 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3906:3: lv_rhs_3_0= ruleExpression_3\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_2Access().getRhsExpression_3ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_3_in_synpred85_InternalMitraParser7804);\n lv_rhs_3_0=ruleExpression_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void mT__27() throws RecognitionException {\r\n try {\r\n final int _type = SparqlMarcoLexer.T__27;\r\n final int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n this.match('}');\r\n this.state.type = _type;\r\n this.state.channel = _channel;\r\n } finally {\r\n }\r\n }", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "String WHERE() { return yyline+\"/\"+yycolumn+\"(\"+yychar+\")\" ;}", "@Override\n public Predicate generateOutputStructure(Predicate predicate) {\n Predicate modifiedPredicate = new Predicate(predicate.getPredicateName());\n phrase = nlgFactory.createClause();\n //create phrase using the annotations of each predicate element describing its function in the sentence\n for (PredicateElement element : predicate.getElements()) {\n if (element != null && element.getPredicateElementAnnotation() != null) {\n PredicateElementAnnotation elementAnnotation = element.getPredicateElementAnnotation();\n if (elementAnnotation.equals(PredicateElementAnnotation.subject)) {\n phrase.setSubject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.verb)) {\n phrase.setVerb(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.directObject)) {\n phrase.setObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.indirectObject)) {\n phrase.setIndirectObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.complement)) {\n phrase.setComplement(element.toString());\n }\n }\n }\n //get annotation which affect whole predicate and use them to create correct type of phrase\n if (predicate.getPredicateAnnotations() != null) {\n List<PredicateAnnotation> predicateAnnotations = predicate.getPredicateAnnotations();\n if (predicateAnnotations.contains(PredicateAnnotation.NEGATION)) {\n phrase.setFeature(Feature.NEGATED, true);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.YES_NO)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW_MANY)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW_MANY);\n }\n if (predicateAnnotations.contains((PredicateAnnotation.IMPERATIVE))) {\n phrase.setFeature(Feature.FORM, Form.IMPERATIVE);\n }\n }\n //create the output sentence\n String resultString = realiser.realiseSentence(phrase);\n setOutputStructure(resultString);\n //split output structure into its elements\n String resStructure = phrase.getParent().getFeatureAsString((\"textComponents\"));\n resStructure = resStructure.replace(\"[\", \"\");\n resStructure = resStructure.replace(\"]\", \"\");\n ArrayList<String> outputOrderList = new ArrayList<>();\n String[] resSplit = resStructure.split(\",\");\n for (int i = 0; i < resSplit.length; i++) {\n outputOrderList.add(resSplit[i].trim());\n }\n //create new predicate element list\n ArrayList<PredicateElement> modifiedPredicateElementList = new ArrayList<>();\n //use this orderList as new predicate element list -> order important for planning\n boolean elementAlreadyAdded = false;\n for (String outputOrderElement : outputOrderList) {\n //keep old predicate if worldobjectid and type were already set (\"I\", \"you\")\n for(PredicateElement element: predicate.getElements()) {\n if(element.getWorldObjectId() != null && element.toString().equals(outputOrderElement)) {\n modifiedPredicateElementList.add(element);\n elementAlreadyAdded = true;\n break;\n }\n }\n if(elementAlreadyAdded) {\n elementAlreadyAdded = false;\n continue;\n }\n modifiedPredicateElementList.add(new StringPredicateElement(outputOrderElement));\n }\n if(phrase.hasFeature(Feature.INTERROGATIVE_TYPE)) {\n modifiedPredicateElementList.add(new StringPredicateElement(\"?\"));\n }else {\n modifiedPredicateElementList.add(new StringPredicateElement(\".\"));\n }\n //set new elements for the modified predicate\n modifiedPredicate.setElements(modifiedPredicateElementList.toArray(new StringPredicateElement[modifiedPredicateElementList.size()]));\n return modifiedPredicate;\n }", "public final void synpred14_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_28=null;\n Token otherlv_30=null;\n Token otherlv_31=null;\n EObject lv_left_23_0 = null;\n\n EObject lv_left_24_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_29_0 = null;\n\n EObject lv_right_32_0 = null;\n\n\n // InternalMyDsl.g:457:3: ( ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:457:3: ( () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:458:4: () ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) ) otherlv_31= 'abort' ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:458:4: ()\n // InternalMyDsl.g:459:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:468:4: ( ( (lv_left_23_0= ruleUnaryProperty ) ) | ( (lv_left_24_0= ruleBinaryProperty ) ) | (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' ) | (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' ) )\n int alt152=4;\n alt152 = dfa152.predict(input);\n switch (alt152) {\n case 1 :\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:469:5: ( (lv_left_23_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:470:6: (lv_left_23_0= ruleUnaryProperty )\n // InternalMyDsl.g:471:7: lv_left_23_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_23_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:489:5: ( (lv_left_24_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:490:6: (lv_left_24_0= ruleBinaryProperty )\n // InternalMyDsl.g:491:7: lv_left_24_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_12);\n lv_left_24_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n {\n // InternalMyDsl.g:509:5: (otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')' )\n // InternalMyDsl.g:510:6: otherlv_25= '(' ( (lv_left_26_0= ruleUnaryProperty ) ) otherlv_27= ')'\n {\n otherlv_25=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:514:6: ( (lv_left_26_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:515:7: (lv_left_26_0= ruleUnaryProperty )\n // InternalMyDsl.g:516:8: lv_left_26_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_26_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_27=(Token)match(input,21,FOLLOW_12); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n {\n // InternalMyDsl.g:539:5: (otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')' )\n // InternalMyDsl.g:540:6: otherlv_28= '(' ( (lv_left_29_0= ruleBinaryProperty ) ) otherlv_30= ')'\n {\n otherlv_28=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:544:6: ( (lv_left_29_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:545:7: (lv_left_29_0= ruleBinaryProperty )\n // InternalMyDsl.g:546:8: lv_left_29_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_2_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_29_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_30=(Token)match(input,21,FOLLOW_12); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_31=(Token)match(input,24,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:573:4: ( (lv_right_32_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:574:5: (lv_right_32_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:575:6: lv_right_32_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_2_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public interface SubstPred extends Reason {\r\n\r\n /**\r\n * Get this reason.\r\n *\r\n * @return This reason.\r\n */\r\n public SubstPred getSubstPred();\r\n\r\n /**\r\n * Get reference to already proven formula.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public String getReference();\r\n\r\n /**\r\n * Get predicate variable (with subject variables as parameters) that should be replaced.\r\n *\r\n * @return Reference to previously proved formula.\r\n */\r\n public Element getPredicateVariable();\r\n\r\n /**\r\n * Get substitute formula. Must contain the subject variables from\r\n * {@link #getPredicateVariable()}.\r\n *\r\n * @return Replacement term.\r\n */\r\n public Element getSubstituteFormula();\r\n\r\n}", "public String getPredicateSymbol()\n {\n return predicateSymbol;\n }", "public final void synpred26_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_11=null;\n EObject lv_operand_12_0 = null;\n\n\n // InternalMyDsl.g:953:3: ( ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:953:3: ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:953:3: ( () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:954:4: () otherlv_11= 'never' ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:954:4: ()\n // InternalMyDsl.g:955:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n otherlv_11=(Token)match(input,28,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:968:4: ( (lv_operand_12_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:969:5: (lv_operand_12_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:969:5: (lv_operand_12_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:970:6: lv_operand_12_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandBooleanOrOCLLiteralParserRuleCall_4_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_12_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred74_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_27=null;\n Token otherlv_29=null;\n Token otherlv_30=null;\n Token otherlv_33=null;\n Token otherlv_35=null;\n EObject lv_left_25_0 = null;\n\n EObject lv_left_26_0 = null;\n\n EObject lv_left_28_0 = null;\n\n EObject lv_right_31_0 = null;\n\n EObject lv_right_32_0 = null;\n\n EObject lv_right_34_0 = null;\n\n\n // InternalMyDsl.g:2978:3: ( ( () ( ( (lv_left_25_0= ruleRepeatedSERE ) ) | ( (lv_left_26_0= ruleBracedSERE ) ) | (otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')' ) ) otherlv_30= '&&' ( ( (lv_right_31_0= ruleRepeatedSERE ) ) | ( (lv_right_32_0= ruleBracedSERE ) ) | (otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')' ) ) ) )\n // InternalMyDsl.g:2978:3: ( () ( ( (lv_left_25_0= ruleRepeatedSERE ) ) | ( (lv_left_26_0= ruleBracedSERE ) ) | (otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')' ) ) otherlv_30= '&&' ( ( (lv_right_31_0= ruleRepeatedSERE ) ) | ( (lv_right_32_0= ruleBracedSERE ) ) | (otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')' ) ) )\n {\n // InternalMyDsl.g:2978:3: ( () ( ( (lv_left_25_0= ruleRepeatedSERE ) ) | ( (lv_left_26_0= ruleBracedSERE ) ) | (otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')' ) ) otherlv_30= '&&' ( ( (lv_right_31_0= ruleRepeatedSERE ) ) | ( (lv_right_32_0= ruleBracedSERE ) ) | (otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')' ) ) )\n // InternalMyDsl.g:2979:4: () ( ( (lv_left_25_0= ruleRepeatedSERE ) ) | ( (lv_left_26_0= ruleBracedSERE ) ) | (otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')' ) ) otherlv_30= '&&' ( ( (lv_right_31_0= ruleRepeatedSERE ) ) | ( (lv_right_32_0= ruleBracedSERE ) ) | (otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')' ) )\n {\n // InternalMyDsl.g:2979:4: ()\n // InternalMyDsl.g:2980:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:2989:4: ( ( (lv_left_25_0= ruleRepeatedSERE ) ) | ( (lv_left_26_0= ruleBracedSERE ) ) | (otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')' ) )\n int alt163=3;\n alt163 = dfa163.predict(input);\n switch (alt163) {\n case 1 :\n // InternalMyDsl.g:2990:5: ( (lv_left_25_0= ruleRepeatedSERE ) )\n {\n // InternalMyDsl.g:2990:5: ( (lv_left_25_0= ruleRepeatedSERE ) )\n // InternalMyDsl.g:2991:6: (lv_left_25_0= ruleRepeatedSERE )\n {\n // InternalMyDsl.g:2991:6: (lv_left_25_0= ruleRepeatedSERE )\n // InternalMyDsl.g:2992:7: lv_left_25_0= ruleRepeatedSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryCompoundSEREAccess().getLeftRepeatedSEREParserRuleCall_2_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_37);\n lv_left_25_0=ruleRepeatedSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:3010:5: ( (lv_left_26_0= ruleBracedSERE ) )\n {\n // InternalMyDsl.g:3010:5: ( (lv_left_26_0= ruleBracedSERE ) )\n // InternalMyDsl.g:3011:6: (lv_left_26_0= ruleBracedSERE )\n {\n // InternalMyDsl.g:3011:6: (lv_left_26_0= ruleBracedSERE )\n // InternalMyDsl.g:3012:7: lv_left_26_0= ruleBracedSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryCompoundSEREAccess().getLeftBracedSEREParserRuleCall_2_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_37);\n lv_left_26_0=ruleBracedSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:3030:5: (otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')' )\n {\n // InternalMyDsl.g:3030:5: (otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')' )\n // InternalMyDsl.g:3031:6: otherlv_27= '(' ( (lv_left_28_0= ruleBinaryCompoundSERE ) ) otherlv_29= ')'\n {\n otherlv_27=(Token)match(input,20,FOLLOW_16); if (state.failed) return ;\n // InternalMyDsl.g:3035:6: ( (lv_left_28_0= ruleBinaryCompoundSERE ) )\n // InternalMyDsl.g:3036:7: (lv_left_28_0= ruleBinaryCompoundSERE )\n {\n // InternalMyDsl.g:3036:7: (lv_left_28_0= ruleBinaryCompoundSERE )\n // InternalMyDsl.g:3037:8: lv_left_28_0= ruleBinaryCompoundSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryCompoundSEREAccess().getLeftBinaryCompoundSEREParserRuleCall_2_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_28_0=ruleBinaryCompoundSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_29=(Token)match(input,21,FOLLOW_37); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_30=(Token)match(input,51,FOLLOW_16); if (state.failed) return ;\n // InternalMyDsl.g:3064:4: ( ( (lv_right_31_0= ruleRepeatedSERE ) ) | ( (lv_right_32_0= ruleBracedSERE ) ) | (otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')' ) )\n int alt164=3;\n alt164 = dfa164.predict(input);\n switch (alt164) {\n case 1 :\n // InternalMyDsl.g:3065:5: ( (lv_right_31_0= ruleRepeatedSERE ) )\n {\n // InternalMyDsl.g:3065:5: ( (lv_right_31_0= ruleRepeatedSERE ) )\n // InternalMyDsl.g:3066:6: (lv_right_31_0= ruleRepeatedSERE )\n {\n // InternalMyDsl.g:3066:6: (lv_right_31_0= ruleRepeatedSERE )\n // InternalMyDsl.g:3067:7: lv_right_31_0= ruleRepeatedSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryCompoundSEREAccess().getRightRepeatedSEREParserRuleCall_2_3_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_31_0=ruleRepeatedSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:3085:5: ( (lv_right_32_0= ruleBracedSERE ) )\n {\n // InternalMyDsl.g:3085:5: ( (lv_right_32_0= ruleBracedSERE ) )\n // InternalMyDsl.g:3086:6: (lv_right_32_0= ruleBracedSERE )\n {\n // InternalMyDsl.g:3086:6: (lv_right_32_0= ruleBracedSERE )\n // InternalMyDsl.g:3087:7: lv_right_32_0= ruleBracedSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryCompoundSEREAccess().getRightBracedSEREParserRuleCall_2_3_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_32_0=ruleBracedSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:3105:5: (otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')' )\n {\n // InternalMyDsl.g:3105:5: (otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')' )\n // InternalMyDsl.g:3106:6: otherlv_33= '(' ( (lv_right_34_0= ruleBinaryCompoundSERE ) ) otherlv_35= ')'\n {\n otherlv_33=(Token)match(input,20,FOLLOW_16); if (state.failed) return ;\n // InternalMyDsl.g:3110:6: ( (lv_right_34_0= ruleBinaryCompoundSERE ) )\n // InternalMyDsl.g:3111:7: (lv_right_34_0= ruleBinaryCompoundSERE )\n {\n // InternalMyDsl.g:3111:7: (lv_right_34_0= ruleBinaryCompoundSERE )\n // InternalMyDsl.g:3112:8: lv_right_34_0= ruleBinaryCompoundSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryCompoundSEREAccess().getRightBinaryCompoundSEREParserRuleCall_2_3_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_right_34_0=ruleBinaryCompoundSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_35=(Token)match(input,21,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n }", "public void testAND3() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 227, \"+\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}", "HornSentence(Literal head, HashSet premises){\n this.head = head;\n this.premises = new HashSet(premises);\n }", "public final void synpred5_Python_fragment() throws RecognitionException { \n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:7: ( test[null] COMMA test[null] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:689:8: test[null] COMMA test[null]\n {\n pushFollow(FOLLOW_test_in_synpred5_Python2388);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n match(input,COMMA,FOLLOW_COMMA_in_synpred5_Python2391); if (state.failed) return ;\n pushFollow(FOLLOW_test_in_synpred5_Python2393);\n test(null);\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public final void synpred33_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n EObject lv_left_13_0 = null;\n\n EObject lv_right_15_0 = null;\n\n\n // InternalMyDsl.g:1316:3: ( ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) ) )\n // InternalMyDsl.g:1316:3: ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) )\n {\n // InternalMyDsl.g:1316:3: ( () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) ) )\n // InternalMyDsl.g:1317:4: () ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) ) otherlv_14= 'until_' ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) )\n {\n // InternalMyDsl.g:1317:4: ()\n // InternalMyDsl.g:1318:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1327:4: ( (lv_left_13_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1328:5: (lv_left_13_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1328:5: (lv_left_13_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1329:6: lv_left_13_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getLeftBooleanOrOCLLiteralParserRuleCall_3_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_19);\n lv_left_13_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_14=(Token)match(input,33,FOLLOW_13); if (state.failed) return ;\n // InternalMyDsl.g:1350:4: ( (lv_right_15_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:1351:5: (lv_right_15_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:1351:5: (lv_right_15_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:1352:6: lv_right_15_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getBinaryPropertyAccess().getRightBooleanOrOCLLiteralParserRuleCall_3_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_15_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "public final boolean synpred2_css21() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred2_css21_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }" ]
[ "0.6209005", "0.6095873", "0.58886313", "0.5640156", "0.5610652", "0.54973984", "0.53527623", "0.53344154", "0.53017175", "0.52653974", "0.5206533", "0.51728004", "0.5164655", "0.5118792", "0.5095971", "0.5065455", "0.5056458", "0.50536454", "0.5040415", "0.50338167", "0.5033114", "0.50230986", "0.4981216", "0.49795094", "0.4962269", "0.49560425", "0.49409837", "0.49303746", "0.49230102", "0.4910576", "0.49075624", "0.49040973", "0.48810565", "0.486217", "0.48486555", "0.48475978", "0.48142162", "0.48138613", "0.48101017", "0.48041922", "0.48021805", "0.4796516", "0.47944114", "0.47809103", "0.47771093", "0.47708502", "0.4767433", "0.47597843", "0.47533616", "0.4734313", "0.47144836", "0.47114903", "0.47078618", "0.47053504", "0.47007495", "0.46952227", "0.4691815", "0.46905345", "0.46811777", "0.4676412", "0.4674294", "0.4673715", "0.46716657", "0.4670524", "0.46703264", "0.4666778", "0.4666005", "0.4659666", "0.465272", "0.46487445", "0.46405333", "0.46403298", "0.46393186", "0.4636622", "0.4628858", "0.46288377", "0.46230197", "0.46205908", "0.4619512", "0.4614325", "0.46119684", "0.46103266", "0.46097967", "0.46071103", "0.45783788", "0.4576713", "0.45753008", "0.4567188", "0.45621246", "0.45608637", "0.45577508", "0.4555712", "0.45489168", "0.45434782", "0.4536469", "0.45345068", "0.4531895", "0.45148087", "0.45091367", "0.4505991" ]
0.559174
5
$ANTLR end synpred27_expression Delegated rules
public final boolean synpred11_expression() { state.backtracking++; int start = input.mark(); try { synpred11_expression_fragment(); // can never throw exception } catch (RecognitionException re) { System.err.println("impossible: "+re); } boolean success = !state.failed; input.rewind(start); state.backtracking--; state.failed=false; return success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "protected LR1_Grammar() {\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public void toGrammar() {\n System.out.println(\"<binary_expression> -> <arithmeitc_expression> <arithmetic_op> <arithmetic_expression>\");\n left.toGrammar();\n operator.toGrammar();\n right.toGrammar();\n prefix();\n }", "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )* ( nameExpression )+ ( STRING )*\n {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( STRING )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==STRING) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression157); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:14: ( nameExpression )+\n int cnt24=0;\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==EPRESSIONCHAR) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: nameExpression\n \t {\n \t pushFollow(FOLLOW_nameExpression_in_synpred8_expression160);\n \t nameExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt24 >= 1 ) break loop24;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(24, input);\n throw eee;\n }\n cnt24++;\n } while (true);\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==STRING) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:0:0: STRING\n \t {\n \t match(input,STRING,FOLLOW_STRING_in_synpred8_expression163); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n }\n }", "ExprRule createExprRule();", "Expression getActionSentence();", "@Override\n public String getParsedGrammar() {\n return \"<arithmetic_expression> -> id\\n\";\n }", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "@Override\n public R visit(Rule n, A argu) {\n R _ret = null;\n n.consequent.accept(this, argu);\n n.nodeToken.accept(this, argu);\n n.antecedent.accept(this, argu);\n return _ret;\n }", "public interface LLkGrammarAnalyzer extends GrammarAnalyzer {\n\n\n public boolean deterministic(AlternativeBlock blk);\n\n public boolean deterministic(OneOrMoreBlock blk);\n\n public boolean deterministic(ZeroOrMoreBlock blk);\n\n public Lookahead FOLLOW(int k, RuleEndElement end);\n\n public Lookahead look(int k, ActionElement action);\n\n public Lookahead look(int k, AlternativeBlock blk);\n\n public Lookahead look(int k, BlockEndElement end);\n\n public Lookahead look(int k, CharLiteralElement atom);\n\n public Lookahead look(int k, CharRangeElement end);\n\n public Lookahead look(int k, GrammarAtom atom);\n\n public Lookahead look(int k, OneOrMoreBlock blk);\n\n public Lookahead look(int k, RuleBlock blk);\n\n public Lookahead look(int k, RuleEndElement end);\n\n public Lookahead look(int k, RuleRefElement rr);\n\n public Lookahead look(int k, StringLiteralElement atom);\n\n public Lookahead look(int k, SynPredBlock blk);\n\n public Lookahead look(int k, TokenRangeElement end);\n\n public Lookahead look(int k, TreeElement end);\n\n public Lookahead look(int k, WildcardElement wc);\n\n public Lookahead look(int k, ZeroOrMoreBlock blk);\n\n public Lookahead look(int k, String rule);\n\n public void setGrammar(Grammar g);\n\n public boolean subruleCanBeInverted(AlternativeBlock blk, boolean forLexer);\n}", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\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 \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "@Override\n\tpublic Object visit(ASTFParen node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\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 \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "@Override\n public Object visit(PhraseExpr node) {\n node.setExprType(SemanticTools.PHRASE);\n this.currentPhraseExpr = node;\n if (node.getInstrument() != null) {\n node.getInstrument().accept(this);\n if (!node.getInstrument().getExprType().equals(SemanticTools.STRING)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be a String\"\n );\n } else {\n if (!SemanticTools.isValidInstrument(\n ((ConstStringExpr) node.getInstrument()).getConstant())\n ) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be of types: \" + SemanticTools.instruments\n );\n }\n }\n } else {\n // default value\n node.setInstrument(new ConstStringExpr(node.getLineNum(), \"piano\"));\n }\n if (node.getOctaveModifier() != null) {\n node.getOctaveModifier().accept(this);\n if (!node.getOctaveModifier().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be of type \" + SemanticTools.INT\n );\n } else {\n int octave = Integer.parseInt(\n ((ConstIntExpr) node.getOctaveModifier()).getConstant()\n );\n\n if (octave > SemanticTools.MAX_OCT || octave < SemanticTools.MIN_OCT) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be within the range \"\n + SemanticTools.MIN_OCT + \" to \"\n + SemanticTools.MAX_OCT\n );\n }\n }\n } else {\n // default value\n node.setOctaveModifier(new ConstIntExpr(node.getLineNum(), \"0\"));\n }\n if (node.getVolume() != null) {\n node.getVolume().accept(this);\n if (!node.getVolume().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be of type \" + SemanticTools.INT\n );\n } else {\n int vol = Integer.parseInt(\n ((ConstIntExpr) node.getVolume()).getConstant()\n );\n\n if (vol > 127 || vol < 0) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be in range 0-127\"\n );\n }\n }\n } else {\n //default value\n node.setVolume(new ConstIntExpr(node.getLineNum(), \"127\"));\n }\n node.getMeasureList().accept(this);\n return null;\n }", "public RuleBuilder endRule(double weight) {\n if( literals.size() > 0 ) {\n mlnText.rules.add(new MLNText.Rule(weight, literals));\n }\n return new RuleBuilder();\n }", "public BNFrule()\n {\n lhs = \"\";\n rhsSymbols = new ArrayList<String>();\n }", "public abstract PredicateExpr getNext();", "@Test\n public void testFromWithTernaryFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from (isFull ? $cheesery : $market) ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from (isFull ? $cheesery : $market)\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "StatementRule createStatementRule();", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}", "public void parse(Lexer lex);", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "private boolean grammar() {\r\n return skip() && rules() && MARK(END_OF_TEXT) && EOT();\r\n }", "@Override\n\tpublic void visit(RegExpMatchOperator arg0) {\n\t\t\n\t}", "public interface AstIncreUnaryExpression extends AstUnaryExpression {\r\n}", "AxiomDeclRule createAxiomDeclRule();", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected LR1_Grammar(Grammar grammar) {\n\t\tsuper(grammar);\n\t\tSet follow = new Set(1);\n\t\tfollow.append(END_OF_SOURCE);\n\t\tthis.start.follow = follow;\n\t}", "public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}", "@Override\n\tpublic Object visit(ASTExpon node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.getOperator() == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Object of type \" + node.getClass()\n\t\t\t\t\t+ \" expected to have an operator, none was found\");\n\t\t\treturn semantics;\n\t\t}\n\t\tfor (int i = 0; i < node.jjtGetNumChildren(); i++)\n\t\t{\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, semantics);\n\t\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID)\n\t\t\t\t.isValid())\n\t\t\t{\n\t\t\t\treturn semantics;\n\t\t\t}\n\t\t\t/*\n\t\t\t * Note: We only implement ^ for Number.class today. This is a\n\t\t\t * \"known\" limitation, but would be nice to escape. However, this\n\t\t\t * means we can't shortcut the item in evaluate... (see\n\t\t\t * EvaluationVisitor)\n\t\t\t */\n\t\t\tClass<?> format =\n\t\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t\t.getFormat();\n\t\t\tif (!format.equals(NUMBER_CLASS))\n\t\t\t{\n\t\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\t\"Parse Error: Invalid Value Format: \" + format\n\t\t\t\t\t\t+ \" found in \"\n\t\t\t\t\t\t+ node.jjtGetChild(i).getClass().getName()\n\t\t\t\t\t\t+ \" found in location requiring a\"\n\t\t\t\t\t\t+ \" Number (class cannot be evaluated)\");\n\t\t\t}\n\t\t}\n\t\treturn semantics;\n\t}", "E13Rule createE13Rule();", "@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "public final void synpred6_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n EObject lv_left_1_0 = null;\n\n EObject lv_left_2_0 = null;\n\n EObject lv_left_4_0 = null;\n\n EObject lv_left_7_0 = null;\n\n EObject lv_right_10_0 = null;\n\n\n // InternalMyDsl.g:183:3: ( ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:183:3: ( () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) ) )\n // InternalMyDsl.g:184:4: () ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) ) otherlv_9= 'and' ( (lv_right_10_0= ruleProperty ) )\n {\n // InternalMyDsl.g:184:4: ()\n // InternalMyDsl.g:185:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:194:4: ( ( (lv_left_1_0= ruleUnaryProperty ) ) | ( (lv_left_2_0= ruleBinaryProperty ) ) | (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' ) | (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' ) )\n int alt150=4;\n alt150 = dfa150.predict(input);\n switch (alt150) {\n case 1 :\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:195:5: ( (lv_left_1_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:196:6: (lv_left_1_0= ruleUnaryProperty )\n // InternalMyDsl.g:197:7: lv_left_1_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_1_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:215:5: ( (lv_left_2_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:216:6: (lv_left_2_0= ruleBinaryProperty )\n // InternalMyDsl.g:217:7: lv_left_2_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_6);\n lv_left_2_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n {\n // InternalMyDsl.g:235:5: (otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')' )\n // InternalMyDsl.g:236:6: otherlv_3= '(' ( (lv_left_4_0= ruleUnaryProperty ) ) otherlv_5= ')'\n {\n otherlv_3=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:240:6: ( (lv_left_4_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:241:7: (lv_left_4_0= ruleUnaryProperty )\n // InternalMyDsl.g:242:8: lv_left_4_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_0_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_4_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n {\n // InternalMyDsl.g:265:5: (otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')' )\n // InternalMyDsl.g:266:6: otherlv_6= '(' ( (lv_left_7_0= ruleBinaryProperty ) ) otherlv_8= ')'\n {\n otherlv_6=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:270:6: ( (lv_left_7_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:271:7: (lv_left_7_0= ruleBinaryProperty )\n // InternalMyDsl.g:272:8: lv_left_7_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_0_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_7_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,21,FOLLOW_6); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_9=(Token)match(input,22,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:299:4: ( (lv_right_10_0= ruleProperty ) )\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n {\n // InternalMyDsl.g:300:5: (lv_right_10_0= ruleProperty )\n // InternalMyDsl.g:301:6: lv_right_10_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_10_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "public final EObject ruleEndExpression() throws RecognitionException {\n EObject current = null;\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6172:6: ( ( () 'end' ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6173:1: ( () 'end' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6173:1: ( () 'end' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6173:2: () 'end'\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6173:2: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6174:5: \n {\n \n temp=factory.create(grammarAccess.getEndExpressionAccess().getEndExpressionAction_0().getType().getClassifier());\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getEndExpressionAccess().getEndExpressionAction_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n match(input,57,FOLLOW_57_in_ruleEndExpression10787); \n\n createLeafNode(grammarAccess.getEndExpressionAccess().getEndKeyword_1(), null); \n \n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "protected IElementType delegateLexing() {\n yypushback(yylength());\n syncPerlLexer();\n try {\n IElementType result = myPerlLexer.advance();\n CommentEndCalculator commentEndCalculator = getCommentEndCalculator();\n if (commentEndCalculator != null && (result == COMMENT_LINE || result == COMMENT_ANNOTATION)) {\n int endIndex = commentEndCalculator.getCommentEndOffset(myPerlLexer.yytext());\n if (endIndex > -1) {\n myPerlLexer.setTokenEnd(myPerlLexer.getTokenStart() + endIndex);\n }\n }\n syncMainLexer();\n return result;\n }\n catch (Exception ignore) {\n }\n throw new RuntimeException(\"Something bad happened\");\n }", "public Token nextToken() throws TokenStreamException\r\n {\r\n Token token = null;\r\n int type;\r\n\r\n int returnCount = 0;\r\n /*\r\n * First skip over whitespace/comments\r\n */\r\n do {\r\n token = getNextToken();\r\n type = token.getType();\r\n\r\n if (type == MExprANTLRParserTokenTypes.WHITESPACE) {\r\n if (\"\\n\".equals(token.getText()))\r\n returnCount++;\r\n }\r\n \r\n \r\n } while ((!tokenIndexStore_ && type == MExprANTLRParserTokenTypes.COMMENT)\r\n || type == MExprANTLRParserTokenTypes.WHITESPACE \r\n || fTypesetParse && whiteSpaceTypeset(token));\r\n\r\n /*\r\n * Now check for semi as the last token.\r\n */\r\n if (lastExprToken != null\r\n && lastExprToken.getType() == MExprANTLRParserTokenTypes.SEMI)\r\n token = fixSEMI(token, returnCount > 0 && nestingLevel == 0);\r\n\r\n boolean incrementNestingLevel = false;\r\n int lastNestingLevel = nestingLevel;\r\n /*\r\n * Now fix up individual tokens.\r\n */\r\n switch (token.getType()) {\r\n \tcase MExprANTLRParserTokenTypes.LONGNAME:\r\n \t\ttoken = fixLongName( token);\r\n \t\tbreak;\r\n \r\n case MExprANTLRParserTokenTypes.MINUS:\r\n if (!tokenCanEnd(lastExprToken) || tokenIsPrefix(lastExprToken))\r\n token.setType(MExprANTLRParserTokenTypes.UNARYMINUS);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.PLUS:\r\n if (!tokenCanEnd(lastExprToken) || tokenIsPrefix(lastExprToken))\r\n token.setType(MExprANTLRParserTokenTypes.UNARYPLUS);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.AMP:\r\n token = fixPostfix(\"AMPXX\", MExprANTLRParserTokenTypes.AMPINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.DERIVATIVE:\r\n token = fixPostfix(\"DERIVATIVEXX\", MExprANTLRParserTokenTypes.DERIVATIVEINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.SET:\r\n token = fixSET(token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.REPEATED:\r\n token = fixPostfix(\"REPEATEDXX\", MExprANTLRParserTokenTypes.REPEATEDINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.REPEATEDNULL:\r\n token = fixPostfix(\"REPEATEDNULLXX\", MExprANTLRParserTokenTypes.REPEATEDNULLINFIX,\r\n token);\r\n break;\r\n\r\n\t/*\r\n\t * Convert EXCLAM into prefix NOT or postfix FACTORIAL.\r\n\t * \r\n\t * Turns into NOT if lastToken is an infix or a prefix.\r\n\t * If lastToken can end or is not a prefix becomes NOT\r\n\t * a + !b, + ! a, \r\n\t * \r\n * Also if last token can end and we have returnCount/lastNestingLevel\r\n * set then we will be inserting a PACKAGE token and this will become \r\n * NOT, so the real test is (a + b) || !a || !c which equals b || !a || !c\r\n */\r\n case MExprANTLRParserTokenTypes.EXCLAM:\r\n if ((returnCount > 0 && lastNestingLevel <= 0) || !tokenCanEnd(lastExprToken) || tokenIsPrefix( lastExprToken)) {\r\n token.setType(MExprANTLRParserTokenTypes.NOT);\r\n }\r\n else {\r\n \ttoken = fixPostfix(\"EXCLAM\", MExprANTLRParserTokenTypes.NOTINFIX,\r\n token);\r\n }\r\n break;\r\n \r\n /*\r\n * See EXCLAM\r\n */\r\n case MExprANTLRParserTokenTypes.EXCLAM2:\r\n if ((returnCount > 0 && lastNestingLevel <= 0) || !tokenCanEnd(lastExprToken) || tokenIsPrefix(lastExprToken)) {\r\n token.setType(MExprANTLRParserTokenTypes.NOTNOT);\r\n }\r\n else {\r\n \ttoken = fixPostfix(\"EXCLAM2\", MExprANTLRParserTokenTypes.NOTNOTINFIX,\r\n token);\r\n }\r\n break;\r\n \r\n\r\n case MExprANTLRParserTokenTypes.PLUSPLUS:\r\n if (tokenCanEnd(lastExprToken) && !tokenIsPrefix(lastExprToken))\r\n token = fixPostfix(\"PLUSPLUSXX\", MExprANTLRParserTokenTypes.PLUSPLUSINFIX,\r\n token);\r\n break;\r\n \r\n case MExprANTLRParserTokenTypes.MINUSMINUS:\r\n if (tokenCanEnd(lastExprToken) && !tokenIsPrefix(lastExprToken))\r\n token = fixPostfix(\"MINUSMINUSXX\", MExprANTLRParserTokenTypes.MINUSMINUSINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.COMMA:\r\n token = fixThisComma(token);\r\n break;\r\n\r\n\r\n case MExprANTLRParserTokenTypes.LPAREN:\r\n case MExprANTLRParserTokenTypes.LBRACE:\r\n case MExprANTLRParserTokenTypes.LBRACKET:\r\n \tincrementNestingLevel = true;\r\n break;\r\n\r\n \r\n case MExprANTLRParserTokenTypes.RPAREN:\r\n nestingLevel--;\r\n \tbreak;\r\n\r\n case MExprANTLRParserTokenTypes.RBRACE:\r\n case MExprANTLRParserTokenTypes.RBRACKET:\r\n \ttoken = fixLastComma( token);\r\n \tif ( token.getType() != MExprANTLRParserTokenTypes.NULLID)\r\n \t\tnestingLevel--;\r\n \t\tbreak;\r\n \r\n case MExprANTLRParserTokenTypes.ID:\r\n token = fixID( token);\r\n \tbreak;\r\n \r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n token = fixBLANK( token);\r\n \tbreak;\r\n\r\n case MExprANTLRParserTokenTypes.EQUALEXCLAM:\r\n \ttoken = fixEQUALEXCLAM( token);\r\n \tbreak;\r\n\r\n case MExprANTLRParserTokenTypes.TYPESETOPEN:\r\n token = fixTypesetOpen(token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.TYPESETSPACE:\r\n return nextToken();\r\n\r\n }\r\n\r\n /*\r\n * The test for Comment is here because tokenCanStart does not \r\n * return True for Comment (this would mess up all sorts of \r\n * other things).\r\n * \r\n * If this changes see EXCLAM\r\n */\r\n if (returnCount > 0 && lastNestingLevel <= 0 && tokenCanEnd(lastExprToken)\r\n //&& (tokenCanStart(token) || \r\n //\t\ttoken.getType() == MExprANTLRParserTokenTypes.COMMENT)\r\n ) {\r\n pushToken(token);\r\n int lim = getLimit( lastExprToken, token);\r\n token = makeToken(MExprANTLRParserTokenTypes.PACKAGE, \"Package\", lastExprToken);\r\n setLimit( token, lim);\r\n nestingLevel = 0;\r\n }\r\n else if ( incrementNestingLevel) {\r\n \tnestingLevel++;\r\n }\r\n \r\n if ( token.getType() != MExprANTLRParserTokenTypes.COMMENT) {\r\n \tlastExprToken = token;\r\n }\r\n \r\n//\t\t// LOCATION: added this\r\n // this must happen here instead of the ExprLexer because this TokenStream\r\n // changes the token count;\r\n if ( tokenIndexStore_)\r\n \t((MExprToken)token).tokenIndex_ = currTokenIndex_++;\r\n else\r\n \t((MExprToken)token).tokenIndex_ = -1;\r\n return token;\r\n }", "public PropositionalParser() {\n\t\t\tfinal Sentence trueSentence = super.parse(Logic.TRUE);\n\t\t\tthis.exprToSentence = new HashMap<>();\n\t\t\tthis.exprToSentence.put(Logic.TRUE, trueSentence);\n\t\t\tthis.exprToSentence.put(\"\", trueSentence);\n\t\t}", "public interface RuleConstruction extends SelectRule, DeleteRule, UpdateRule {\n\n /**\n * Check whether word is key-word\n *\n * @param word - word\n * @return false - word is not key-word\n * true - word is key-word\n */\n boolean isNotKeyWord(String word);\n\n /**\n * Check whether word is By-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isByCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is And-word or Or-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isAndOrCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is Between-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isBetweenCorrect(int currentIndex, List<String> words);\n}", "public static void main(String[] args) throws Exception {\n\n SimpleCalcLexer lex = new SimpleCalcLexer(new ANTLRFileStream(args[0]));\n \tCommonTokenStream tokens = new CommonTokenStream(lex);\n\n // \tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\n SimpleCalcParser parser = new SimpleCalcParser(tokens);\n\n try {\n parser.expr();\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Test\n public void testFromFollowedByQuery() throws Exception {\n final String text = \"rule X when Cheese() from $cheesery ?person( \\\"Mark\\\", 42; ) then end\";\n RuleDescr rule = ((RuleDescr) (parse(\"rule\", text)));\n TestCase.assertFalse(parser.getErrors().toString(), parser.hasErrors());\n PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"Cheese\", pattern.getObjectType());\n TestCase.assertEquals(\"from $cheesery\", pattern.getSource().getText());\n TestCase.assertFalse(pattern.isQuery());\n pattern = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"person\", pattern.getObjectType());\n TestCase.assertTrue(pattern.isQuery());\n }", "public final void synpred86_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ( () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: () ( (lv_op_2_0= ruleRelationalOperator ) ) ( (lv_rhs_3_0= ruleExpression_5 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3955:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3956:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3964:2: ( (lv_op_2_0= ruleRelationalOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3965:1: (lv_op_2_0= ruleRelationalOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3966:3: lv_op_2_0= ruleRelationalOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getOpRelationalOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleRelationalOperator_in_synpred86_InternalMitraParser7934);\n lv_op_2_0=ruleRelationalOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3982:2: ( (lv_rhs_3_0= ruleExpression_5 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3983:1: (lv_rhs_3_0= ruleExpression_5 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3984:3: lv_rhs_3_0= ruleExpression_5\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_3Access().getRhsExpression_5ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_5_in_synpred86_InternalMitraParser7955);\n lv_rhs_3_0=ruleExpression_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n }\r\n boolean success = !state.failed;\r\n input.rewind(start);\r\n state.backtracking--;\r\n state.failed=false;\r\n return success;\r\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "E9Rule createE9Rule();", "public BindingLexer() {;}", "@Override\n public final void bottomup() {\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:73:5:\n // ( | standaloneExpression | expressionRoot | incompleteAxiom |\n // incompleteExpression | axiom )\n int alt1 = 6;\n switch (input.LA(1)) {\n case EOF: {\n alt1 = 1;\n }\n break;\n case STANDALONE_EXPRESSION: {\n alt1 = 2;\n }\n break;\n case EXPRESSION: {\n alt1 = 3;\n }\n break;\n case INCOMPLETE_TYPE_ASSERTION:\n case INCOMPLETE_ROLE_ASSERTION:\n case INCOMPLETE_UNARY_AXIOM:\n case INCOMPLETE_SUB_CLASS_AXIOM:\n case INCOMPLETE_EQUIVALENT_TO_AXIOM:\n case INCOMPLETE_DISJOINT_WITH_AXIOM:\n case INCOMPLETE_SUB_PROPERTY_AXIOM:\n case INCOMPLETE_SAME_AS_AXIOM:\n case INCOMPLETE_DIFFERENT_FROM_AXIOM:\n case INCOMPLETE_DOMAIN:\n case INCOMPLETE_RANGE:\n case INCOMPLETE_INVERSE_OF: {\n alt1 = 4;\n }\n break;\n case INCOMPLETE_PROPERTY_CHAIN:\n case INCOMPLETE_DISJUNCTION:\n case INCOMPLETE_EXPRESSION: {\n alt1 = 5;\n }\n break;\n case INVERSE_OF:\n case DOMAIN:\n case RANGE:\n case SUB_CLASS_AXIOM:\n case EQUIVALENT_TO_AXIOM:\n case DISJOINT_WITH_AXIOM:\n case SUB_PROPERTY_AXIOM:\n case SAME_AS_AXIOM:\n case DIFFERENT_FROM_AXIOM:\n case UNARY_AXIOM:\n case NEGATED_ASSERTION:\n case TYPE_ASSERTION:\n case ROLE_ASSERTION: {\n alt1 = 6;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 1, 0, input);\n throw nvae;\n }\n switch (alt1) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:5:\n {}\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:74:7:\n // standaloneExpression\n {\n pushFollow(FOLLOW_standaloneExpression_in_bottomup87);\n standaloneExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:75:8:\n // expressionRoot\n {\n pushFollow(FOLLOW_expressionRoot_in_bottomup96);\n expressionRoot();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:76:9:\n // incompleteAxiom\n {\n pushFollow(FOLLOW_incompleteAxiom_in_bottomup107);\n incompleteAxiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 5:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:77:9:\n // incompleteExpression\n {\n pushFollow(FOLLOW_incompleteExpression_in_bottomup117);\n incompleteExpression();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n case 6:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:78:8:\n // axiom\n {\n pushFollow(FOLLOW_axiom_in_bottomup126);\n axiom();\n state._fsp--;\n if (state.failed) {\n return;\n }\n }\n break;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return;\n }", "public void run()\n{\n yyparse();\n}", "public void run()\n{\n yyparse();\n}", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "NextDeclRule createNextDeclRule();", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "public abstract List<EventRule> getEventRulesOfSentence();", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "Rule(String lhs, String rhs) {\r\n this.index = nextIndex++;\r\n this.lhs = new Symbol(lhs);\r\n String[] split = rhs.split(\"[ \\t]+\");\r\n for (String part : split) {\r\n part = part.trim();\r\n if (!part.isEmpty()) this.rhs.add(new Symbol(part));\r\n }\r\n }", "public GrammarRule(String left, ArrayList<String> rhs, double weight){\n\t\tthis.lhs = left;\n\t\tthis.rhs = rhs;\n\t\tthis.weight = weight;\n\t}", "DeclRule createDeclRule();", "public TriplePattern getPredicateBasedTriplePattern( String pred ) ;", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "public interface EventsHandler {\n\n /**\n * Receive a token value, even for a token that was\n * annotated with {@link Fragment} : the handler has\n * to check the state of the token value to process\n * it properly.\n *\n * @param value The token value\n */\n void receive(TokenValue<?> value);\n\n /**\n * Receive a rule start event, even for a rule that was\n * annotated with {@link Fragment} : the handler has\n * to check the state of the token value to process\n * it properly.\n *\n * @param ruleStart The rule start event\n */\n void receive(RuleStart ruleStart);\n\n /**\n * Receive a rule end event, even for a rule that was\n * annotated with {@link Fragment} : the handler has\n * to check the state of the token value to process\n * it properly.\n *\n * @param ruleEnd The rule end event\n */\n void receive(RuleEnd ruleEnd);\n\n /**\n * Return this event receiver as a rewindable handler.\n *\n * @return A handler with rewindable capabilities.\n *\n * @see Rewindable\n */\n default Handler asHandler() {\n return new HandlerBuffer(this);\n }\n\n /**\n * Event fired when a rule starts.\n *\n * @author Philippe Poulard\n */\n class RuleStart extends RuleEvent<Rule> {\n\n /**\n * Create a rule start event.\n *\n * @param rule The rule that is starting.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n *\n * @see #getPosition()\n */\n public RuleStart(Rule rule, Trackable trackable) {\n super(rule, trackable);\n }\n\n @Override\n public void emit(EventsHandler handler) {\n handler.receive(this);\n }\n\n }\n\n /**\n * Event fired when a rule ends ; indicates whether\n * the rule was fulfilled or not.\n *\n * @author Philippe Poulard\n */\n class RuleEnd extends RuleEvent<Rule> {\n\n /**\n * Indicates whether this rule was fulfilled or not.\n */\n public boolean matched;\n\n /**\n * Create a rule end event.\n *\n * @param rule The rule that is ending.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n * @param matched <code>true</code> for a rule\n * that matched the input, <code>false</code>\n * otherwise.\n *\n * @see #getPosition()\n */\n public RuleEnd(Rule rule, Trackable trackable, boolean matched) {\n super(rule, trackable);\n this.matched = matched;\n }\n\n @Override\n public void emit(EventsHandler handler) {\n handler.receive(this);\n }\n }\n\n /**\n * When a rule or token is matched while parsing.\n *\n * A token is somewhat atomic, but a rule is matched\n * in two phases : when entering the rule and when\n * exiting the rule ; on exit, a boolean indicates\n * whether the rule was fulfilled or not.\n *\n * @author Philippe Poulard\n *\n * @param <R> <code>Rule</code> or <code>Token</code>\n */\n abstract class RuleEvent<R extends Rule> implements Trackable {\n\n Optional<Position> pos;\n R rule;\n\n /**\n * Create a rule/token event.\n *\n * @param rule The actual rule or token.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n *\n * @see #getPosition()\n */\n public RuleEvent(R rule, Trackable trackable) {\n this.rule = rule;\n this.pos = trackable.getPosition();\n }\n\n /**\n * Return the token/rule that built this value.\n *\n * @return The token/rule.\n */\n public R getRule() {\n return this.rule;\n }\n\n /**\n * A position is available if the scanner tracks it.\n *\n * @return The position, when available.\n *\n * @see TrackableScanner\n */\n @Override\n public Optional<Position> getPosition() {\n return this.pos;\n }\n\n /**\n * Emit this event to the target handler.\n *\n * @param handler The target handler.\n */\n public abstract void emit(EventsHandler handler);\n\n @Override\n public String toString() {\n return this.rule.getName();\n }\n\n }\n\n /**\n * A wrapper of a parsed value, the token that creates it,\n * and the position where the value was found when\n * available.\n *\n * @author Philippe Poulard\n *\n * @param <T> The type of the value.\n */\n class TokenValue<T> extends RuleEvent<Token> {\n\n T value;\n\n /**\n * Wrap a value that was read.\n *\n * @param token The token that create this value.\n * @param value The actual value.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n *\n * @see #getPosition()\n */\n public TokenValue(Token token, T value, Trackable trackable) {\n super(token, trackable);\n this.value = value;\n }\n\n /**\n * Return the value that was read.\n *\n * @param <V> The type of the value.\n *\n * @return The value.\n */\n @SuppressWarnings(\"unchecked\")\n public <V> V getValue() {\n return (V) this.value;\n }\n\n @SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n this.value = (T) value;\n }\n\n /**\n * Return the type of the value.\n *\n * @return The type.\n */\n public Class<?> getType() {\n return this.value.getClass();\n }\n\n @Override\n public String toString() {\n return this.value.toString();\n }\n\n @Override\n public void emit(EventsHandler handler) {\n handler.receive(this);\n }\n }\n\n /**\n * A string as the token value.\n *\n * @author Philippe Poulard\n */\n class StringValue extends TokenValue<String> {\n\n /**\n * Create a string token value.\n *\n * @param token The token in the grammar that produced that value.\n * @param value The actual value.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n */\n public StringValue(Token token, String value, Trackable trackable) {\n super(token, value, trackable);\n }\n\n /**\n * Create a string token value.\n *\n * @param token The token in the grammar that produced that value.\n * @param value The actual value as a Unicode codepoint.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n */\n public StringValue(Token token, int value, Trackable trackable) {\n super(token, new String(Character.toChars(value)), trackable);\n }\n\n /**\n * Create a string token value.\n *\n * @param value The actual value.\n * @param otherValue Get the token and the trackable from the\n * other value to set in this string value.\n */\n public StringValue(String value, TokenValue<?> otherValue) {\n super(otherValue.getRule(), value, otherValue);\n }\n\n /**\n * Create a string token value.\n *\n * @param value The actual value as a Unicode codepoint.\n * @param otherValue Get the token and the trackable from the\n * other value to set in this string value.\n */\n public StringValue(int value, TokenValue<?> otherValue) {\n super(otherValue.getRule(), new String(Character.toChars(value)), otherValue);\n }\n\n }\n\n /**\n * A number as the token value.\n *\n * @author Philippe Poulard\n */\n class NumberValue extends TokenValue<Number> {\n\n /**\n * Create a number token value.\n *\n * @param token The token in the grammar that produced that value.\n * @param value The actual value.\n * @param trackable The scanner from which the value was read.\n * If the scanner is a trackable scanner, informations\n * about the position of the value will be available.\n */\n public NumberValue(Token token, Number value, Trackable trackable) {\n super(token, value, trackable);\n }\n\n @Override\n public Class<Number> getType() {\n return Number.class;\n }\n\n }\n\n}", "public final void expression() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:2: ( ( EQUAL ) | ( LT ) | ( GT ) | ( LTGT ) | ( AND ) | ( OR ) )\r\n int alt52=6;\r\n switch ( input.LA(1) ) {\r\n case EQUAL:\r\n {\r\n alt52=1;\r\n }\r\n break;\r\n case LT:\r\n {\r\n alt52=2;\r\n }\r\n break;\r\n case GT:\r\n {\r\n alt52=3;\r\n }\r\n break;\r\n case LTGT:\r\n {\r\n alt52=4;\r\n }\r\n break;\r\n case AND:\r\n {\r\n alt52=5;\r\n }\r\n break;\r\n case OR:\r\n {\r\n alt52=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:4: ( EQUAL )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:174:5: EQUAL\r\n {\r\n match(input,EQUAL,FOLLOW_EQUAL_in_expression1015); \r\n out(\"=\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:4: ( LT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:175:5: LT\r\n {\r\n match(input,LT,FOLLOW_LT_in_expression1024); \r\n out(\"<\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:4: ( GT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:176:5: GT\r\n {\r\n match(input,GT,FOLLOW_GT_in_expression1033); \r\n out(\">\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:4: ( LTGT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:177:5: LTGT\r\n {\r\n match(input,LTGT,FOLLOW_LTGT_in_expression1043); \r\n out(\"<>\");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:4: ( AND )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:178:5: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_expression1052); \r\n out(\" AND \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:4: ( OR )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:179:5: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_expression1062); \r\n out(\" OR \");\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public interface RecursiveDescentParser\n{\n\n /**\n * Parses a regular expression and returns an NFA that describes that regular expression.\n * @return an NFA describing the regular expression that was parsed\n * @throws ParseException\n */\n public NFA parse() throws ParseException;\n\n}", "public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;", "@Override\r\n\tpublic void visit(UnaryExpression unaryExpression) {\n\r\n\t}", "public final void synpred27_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( ( '+' | '-' ) mult )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:80:11: ( '+' | '-' ) mult\n {\n if ( (input.LA(1)>=46 && input.LA(1)<=47) ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n pushFollow(FOLLOW_mult_in_synpred27_expression437);\n mult();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "protected void emit_Add___AsteriskKeyword_3_0_1_or_QuestionMarkKeyword_3_0_0_or___FullStopKeyword_3_1_0_IDTerminalRuleCall_3_1_1____q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {\r\n\t\tacceptNodes(transition, nodes);\r\n\t}", "public interface PredicateBinaryExpr extends BinaryExpr {\r\n /**\r\n * Returns the wildcard operator.\r\n * \r\n * @return the wildcard operator.\r\n */\r\n public PredicateOperator getOperator();\r\n\r\n /**\r\n * Returns the property.\r\n * \r\n * @return the property.\r\n */\r\n public Property getProperty();\r\n\r\n /**\r\n * Returns the string representation of the path qualified property.\r\n * \r\n * @return the string representation of the path qualified property\r\n */\r\n public String getPropertyPath();\r\n\r\n /**\r\n * Returns the query literal\r\n * \r\n * @return the query literal\r\n */\r\n public Literal getLiteral();\r\n}", "public final ANTLRv3Parser.rule_return rule() throws RecognitionException {\r\n rule_stack.push(new rule_scope());\r\n ANTLRv3Parser.rule_return retval = new ANTLRv3Parser.rule_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token modifier=null;\r\n Token arg=null;\r\n Token rt=null;\r\n Token DOC_COMMENT39=null;\r\n Token string_literal40=null;\r\n Token string_literal41=null;\r\n Token string_literal42=null;\r\n Token string_literal43=null;\r\n Token char_literal45=null;\r\n Token string_literal46=null;\r\n Token char_literal51=null;\r\n Token char_literal53=null;\r\n ANTLRv3Parser.id_return id44 =null;\r\n\r\n ANTLRv3Parser.throwsSpec_return throwsSpec47 =null;\r\n\r\n ANTLRv3Parser.optionsSpec_return optionsSpec48 =null;\r\n\r\n ANTLRv3Parser.ruleScopeSpec_return ruleScopeSpec49 =null;\r\n\r\n ANTLRv3Parser.ruleAction_return ruleAction50 =null;\r\n\r\n ANTLRv3Parser.altList_return altList52 =null;\r\n\r\n ANTLRv3Parser.exceptionGroup_return exceptionGroup54 =null;\r\n\r\n\r\n CommonTree modifier_tree=null;\r\n CommonTree arg_tree=null;\r\n CommonTree rt_tree=null;\r\n CommonTree DOC_COMMENT39_tree=null;\r\n CommonTree string_literal40_tree=null;\r\n CommonTree string_literal41_tree=null;\r\n CommonTree string_literal42_tree=null;\r\n CommonTree string_literal43_tree=null;\r\n CommonTree char_literal45_tree=null;\r\n CommonTree string_literal46_tree=null;\r\n CommonTree char_literal51_tree=null;\r\n CommonTree char_literal53_tree=null;\r\n RewriteRuleTokenStream stream_DOC_COMMENT=new RewriteRuleTokenStream(adaptor,\"token DOC_COMMENT\");\r\n RewriteRuleTokenStream stream_RET=new RewriteRuleTokenStream(adaptor,\"token RET\");\r\n RewriteRuleTokenStream stream_BANG=new RewriteRuleTokenStream(adaptor,\"token BANG\");\r\n RewriteRuleTokenStream stream_FRAGMENT=new RewriteRuleTokenStream(adaptor,\"token FRAGMENT\");\r\n RewriteRuleTokenStream stream_86=new RewriteRuleTokenStream(adaptor,\"token 86\");\r\n RewriteRuleTokenStream stream_87=new RewriteRuleTokenStream(adaptor,\"token 87\");\r\n RewriteRuleTokenStream stream_74=new RewriteRuleTokenStream(adaptor,\"token 74\");\r\n RewriteRuleTokenStream stream_88=new RewriteRuleTokenStream(adaptor,\"token 88\");\r\n RewriteRuleTokenStream stream_ARG_ACTION=new RewriteRuleTokenStream(adaptor,\"token ARG_ACTION\");\r\n RewriteRuleTokenStream stream_76=new RewriteRuleTokenStream(adaptor,\"token 76\");\r\n RewriteRuleSubtreeStream stream_id=new RewriteRuleSubtreeStream(adaptor,\"rule id\");\r\n RewriteRuleSubtreeStream stream_exceptionGroup=new RewriteRuleSubtreeStream(adaptor,\"rule exceptionGroup\");\r\n RewriteRuleSubtreeStream stream_throwsSpec=new RewriteRuleSubtreeStream(adaptor,\"rule throwsSpec\");\r\n RewriteRuleSubtreeStream stream_ruleScopeSpec=new RewriteRuleSubtreeStream(adaptor,\"rule ruleScopeSpec\");\r\n RewriteRuleSubtreeStream stream_optionsSpec=new RewriteRuleSubtreeStream(adaptor,\"rule optionsSpec\");\r\n RewriteRuleSubtreeStream stream_altList=new RewriteRuleSubtreeStream(adaptor,\"rule altList\");\r\n RewriteRuleSubtreeStream stream_ruleAction=new RewriteRuleSubtreeStream(adaptor,\"rule ruleAction\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:157: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\\\"] ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:157:4: ( DOC_COMMENT )? (modifier= ( 'protected' | 'public' | 'private' | 'fragment' ) )? id ( '!' )? (arg= ARG_ACTION )? ( 'returns' rt= ARG_ACTION )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* ':' altList ';' ( exceptionGroup )?\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:157:4: ( DOC_COMMENT )?\r\n int alt15=2;\r\n int LA15_0 = input.LA(1);\r\n\r\n if ( (LA15_0==DOC_COMMENT) ) {\r\n alt15=1;\r\n }\r\n switch (alt15) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:157:4: DOC_COMMENT\r\n {\r\n DOC_COMMENT39=(Token)match(input,DOC_COMMENT,FOLLOW_DOC_COMMENT_in_rule870); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_DOC_COMMENT.add(DOC_COMMENT39);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:3: (modifier= ( 'protected' | 'public' | 'private' | 'fragment' ) )?\r\n int alt17=2;\r\n int LA17_0 = input.LA(1);\r\n\r\n if ( (LA17_0==FRAGMENT||(LA17_0 >= 86 && LA17_0 <= 88)) ) {\r\n alt17=1;\r\n }\r\n switch (alt17) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:5: modifier= ( 'protected' | 'public' | 'private' | 'fragment' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:14: ( 'protected' | 'public' | 'private' | 'fragment' )\r\n int alt16=4;\r\n switch ( input.LA(1) ) {\r\n case 87:\r\n {\r\n alt16=1;\r\n }\r\n break;\r\n case 88:\r\n {\r\n alt16=2;\r\n }\r\n break;\r\n case 86:\r\n {\r\n alt16=3;\r\n }\r\n break;\r\n case FRAGMENT:\r\n {\r\n alt16=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 16, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt16) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:15: 'protected'\r\n {\r\n string_literal40=(Token)match(input,87,FOLLOW_87_in_rule880); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_87.add(string_literal40);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:27: 'public'\r\n {\r\n string_literal41=(Token)match(input,88,FOLLOW_88_in_rule882); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_88.add(string_literal41);\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:36: 'private'\r\n {\r\n string_literal42=(Token)match(input,86,FOLLOW_86_in_rule884); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_86.add(string_literal42);\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:46: 'fragment'\r\n {\r\n string_literal43=(Token)match(input,FRAGMENT,FOLLOW_FRAGMENT_in_rule886); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_FRAGMENT.add(string_literal43);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n pushFollow(FOLLOW_id_in_rule894);\r\n id44=id();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_id.add(id44.getTree());\r\n\r\n if ( state.backtracking==0 ) {((rule_scope)rule_stack.peek()).name = (id44!=null?input.toString(id44.start,id44.stop):null);}\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:160:3: ( '!' )?\r\n int alt18=2;\r\n int LA18_0 = input.LA(1);\r\n\r\n if ( (LA18_0==BANG) ) {\r\n alt18=1;\r\n }\r\n switch (alt18) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:160:3: '!'\r\n {\r\n char_literal45=(Token)match(input,BANG,FOLLOW_BANG_in_rule900); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(char_literal45);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:161:3: (arg= ARG_ACTION )?\r\n int alt19=2;\r\n int LA19_0 = input.LA(1);\r\n\r\n if ( (LA19_0==ARG_ACTION) ) {\r\n alt19=1;\r\n }\r\n switch (alt19) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:161:5: arg= ARG_ACTION\r\n {\r\n arg=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rule909); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ARG_ACTION.add(arg);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:162:3: ( 'returns' rt= ARG_ACTION )?\r\n int alt20=2;\r\n int LA20_0 = input.LA(1);\r\n\r\n if ( (LA20_0==RET) ) {\r\n alt20=1;\r\n }\r\n switch (alt20) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:162:5: 'returns' rt= ARG_ACTION\r\n {\r\n string_literal46=(Token)match(input,RET,FOLLOW_RET_in_rule918); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RET.add(string_literal46);\r\n\r\n\r\n rt=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rule922); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ARG_ACTION.add(rt);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:3: ( throwsSpec )?\r\n int alt21=2;\r\n int LA21_0 = input.LA(1);\r\n\r\n if ( (LA21_0==89) ) {\r\n alt21=1;\r\n }\r\n switch (alt21) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:3: throwsSpec\r\n {\r\n pushFollow(FOLLOW_throwsSpec_in_rule930);\r\n throwsSpec47=throwsSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_throwsSpec.add(throwsSpec47.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:15: ( optionsSpec )?\r\n int alt22=2;\r\n int LA22_0 = input.LA(1);\r\n\r\n if ( (LA22_0==OPTIONS) ) {\r\n alt22=1;\r\n }\r\n switch (alt22) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:15: optionsSpec\r\n {\r\n pushFollow(FOLLOW_optionsSpec_in_rule933);\r\n optionsSpec48=optionsSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_optionsSpec.add(optionsSpec48.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:28: ( ruleScopeSpec )?\r\n int alt23=2;\r\n int LA23_0 = input.LA(1);\r\n\r\n if ( (LA23_0==SCOPE) ) {\r\n alt23=1;\r\n }\r\n switch (alt23) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:28: ruleScopeSpec\r\n {\r\n pushFollow(FOLLOW_ruleScopeSpec_in_rule936);\r\n ruleScopeSpec49=ruleScopeSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_ruleScopeSpec.add(ruleScopeSpec49.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:43: ( ruleAction )*\r\n loop24:\r\n do {\r\n int alt24=2;\r\n int LA24_0 = input.LA(1);\r\n\r\n if ( (LA24_0==AT) ) {\r\n alt24=1;\r\n }\r\n\r\n\r\n switch (alt24) {\r\n \tcase 1 :\r\n \t // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:163:43: ruleAction\r\n \t {\r\n \t pushFollow(FOLLOW_ruleAction_in_rule939);\r\n \t ruleAction50=ruleAction();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) stream_ruleAction.add(ruleAction50.getTree());\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop24;\r\n }\r\n } while (true);\r\n\r\n\r\n char_literal51=(Token)match(input,74,FOLLOW_74_in_rule944); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_74.add(char_literal51);\r\n\r\n\r\n pushFollow(FOLLOW_altList_in_rule946);\r\n altList52=altList();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_altList.add(altList52.getTree());\r\n\r\n char_literal53=(Token)match(input,76,FOLLOW_76_in_rule948); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_76.add(char_literal53);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:165:3: ( exceptionGroup )?\r\n int alt25=2;\r\n int LA25_0 = input.LA(1);\r\n\r\n if ( ((LA25_0 >= 81 && LA25_0 <= 82)) ) {\r\n alt25=1;\r\n }\r\n switch (alt25) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:165:3: exceptionGroup\r\n {\r\n pushFollow(FOLLOW_exceptionGroup_in_rule952);\r\n exceptionGroup54=exceptionGroup();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_exceptionGroup.add(exceptionGroup54.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: arg, RET, id, ruleScopeSpec, throwsSpec, ruleAction, altList, optionsSpec, exceptionGroup, rt\r\n // token labels: arg, rt\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_arg=new RewriteRuleTokenStream(adaptor,\"token arg\",arg);\r\n RewriteRuleTokenStream stream_rt=new RewriteRuleTokenStream(adaptor,\"token rt\",rt);\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 // 166:6: -> ^( RULE id ( ^( ARG[$arg] $arg) )? ( ^( 'returns' $rt) )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* altList ( exceptionGroup )? EOR[\\\"EOR\\\"] )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:166:9: ^( RULE id ( ^( ARG[$arg] $arg) )? ( ^( 'returns' $rt) )? ( throwsSpec )? ( optionsSpec )? ( ruleScopeSpec )? ( ruleAction )* altList ( exceptionGroup )? EOR[\\\"EOR\\\"] )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(RULE, \"RULE\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_id.nextTree());\r\n\r\n adaptor.addChild(root_1, modifier!=null?adaptor.create(modifier):null);\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:166:67: ( ^( ARG[$arg] $arg) )?\r\n if ( stream_arg.hasNext() ) {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:166:67: ^( ARG[$arg] $arg)\r\n {\r\n CommonTree root_2 = (CommonTree)adaptor.nil();\r\n root_2 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(ARG, arg)\r\n , root_2);\r\n\r\n adaptor.addChild(root_2, stream_arg.nextNode());\r\n\r\n adaptor.addChild(root_1, root_2);\r\n }\r\n\r\n }\r\n stream_arg.reset();\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:166:86: ( ^( 'returns' $rt) )?\r\n if ( stream_RET.hasNext()||stream_rt.hasNext() ) {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:166:86: ^( 'returns' $rt)\r\n {\r\n CommonTree root_2 = (CommonTree)adaptor.nil();\r\n root_2 = (CommonTree)adaptor.becomeRoot(\r\n stream_RET.nextNode()\r\n , root_2);\r\n\r\n adaptor.addChild(root_2, stream_rt.nextNode());\r\n\r\n adaptor.addChild(root_1, root_2);\r\n }\r\n\r\n }\r\n stream_RET.reset();\r\n stream_rt.reset();\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:167:9: ( throwsSpec )?\r\n if ( stream_throwsSpec.hasNext() ) {\r\n adaptor.addChild(root_1, stream_throwsSpec.nextTree());\r\n\r\n }\r\n stream_throwsSpec.reset();\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:167:21: ( optionsSpec )?\r\n if ( stream_optionsSpec.hasNext() ) {\r\n adaptor.addChild(root_1, stream_optionsSpec.nextTree());\r\n\r\n }\r\n stream_optionsSpec.reset();\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:167:34: ( ruleScopeSpec )?\r\n if ( stream_ruleScopeSpec.hasNext() ) {\r\n adaptor.addChild(root_1, stream_ruleScopeSpec.nextTree());\r\n\r\n }\r\n stream_ruleScopeSpec.reset();\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:167:49: ( ruleAction )*\r\n while ( stream_ruleAction.hasNext() ) {\r\n adaptor.addChild(root_1, stream_ruleAction.nextTree());\r\n\r\n }\r\n stream_ruleAction.reset();\r\n\r\n adaptor.addChild(root_1, stream_altList.nextTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:169:9: ( exceptionGroup )?\r\n if ( stream_exceptionGroup.hasNext() ) {\r\n adaptor.addChild(root_1, stream_exceptionGroup.nextTree());\r\n\r\n }\r\n stream_exceptionGroup.reset();\r\n\r\n adaptor.addChild(root_1, \r\n (CommonTree)adaptor.create(EOR, \"EOR\")\r\n );\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 }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\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 rule_stack.pop();\r\n }\r\n return retval;\r\n }", "LogicExpression getRightExp();", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "@Override\n\tpublic void notationDecl(String arg0, String arg1, String arg2)\n\t\t\tthrows SAXException {\n\n\t}", "public final void synpred87_InternalMitraParser_fragment() throws RecognitionException { \n Enumerator lv_op_2_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ( () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: () ( (lv_op_2_0= ruleMathOperator ) ) ( (lv_rhs_3_0= ruleExpression_6 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4033:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4034:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4042:2: ( (lv_op_2_0= ruleMathOperator ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4043:1: (lv_op_2_0= ruleMathOperator )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4044:3: lv_op_2_0= ruleMathOperator\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getOpMathOperatorEnumRuleCall_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleMathOperator_in_synpred87_InternalMitraParser8085);\n lv_op_2_0=ruleMathOperator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4060:2: ( (lv_rhs_3_0= ruleExpression_6 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4061:1: (lv_rhs_3_0= ruleExpression_6 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4062:3: lv_rhs_3_0= ruleExpression_6\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpression_5Access().getRhsExpression_6ParserRuleCall_1_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_6_in_synpred87_InternalMitraParser8106);\n lv_rhs_3_0=ruleExpression_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "public final void synpred10_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_20=null;\n EObject lv_left_12_0 = null;\n\n EObject lv_left_13_0 = null;\n\n EObject lv_left_15_0 = null;\n\n EObject lv_left_18_0 = null;\n\n EObject lv_right_21_0 = null;\n\n\n // InternalMyDsl.g:320:3: ( ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) ) )\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n {\n // InternalMyDsl.g:320:3: ( () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) ) )\n // InternalMyDsl.g:321:4: () ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) ) otherlv_20= 'or' ( (lv_right_21_0= ruleProperty ) )\n {\n // InternalMyDsl.g:321:4: ()\n // InternalMyDsl.g:322:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:331:4: ( ( (lv_left_12_0= ruleUnaryProperty ) ) | ( (lv_left_13_0= ruleBinaryProperty ) ) | (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' ) | (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' ) )\n int alt151=4;\n alt151 = dfa151.predict(input);\n switch (alt151) {\n case 1 :\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n {\n // InternalMyDsl.g:332:5: ( (lv_left_12_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:333:6: (lv_left_12_0= ruleUnaryProperty )\n // InternalMyDsl.g:334:7: lv_left_12_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_12_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n {\n // InternalMyDsl.g:352:5: ( (lv_left_13_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:353:6: (lv_left_13_0= ruleBinaryProperty )\n // InternalMyDsl.g:354:7: lv_left_13_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_11);\n lv_left_13_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n {\n // InternalMyDsl.g:372:5: (otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')' )\n // InternalMyDsl.g:373:6: otherlv_14= '(' ( (lv_left_15_0= ruleUnaryProperty ) ) otherlv_16= ')'\n {\n otherlv_14=(Token)match(input,20,FOLLOW_7); if (state.failed) return ;\n // InternalMyDsl.g:377:6: ( (lv_left_15_0= ruleUnaryProperty ) )\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n {\n // InternalMyDsl.g:378:7: (lv_left_15_0= ruleUnaryProperty )\n // InternalMyDsl.g:379:8: lv_left_15_0= ruleUnaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftUnaryPropertyParserRuleCall_1_1_2_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_15_0=ruleUnaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n {\n // InternalMyDsl.g:402:5: (otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')' )\n // InternalMyDsl.g:403:6: otherlv_17= '(' ( (lv_left_18_0= ruleBinaryProperty ) ) otherlv_19= ')'\n {\n otherlv_17=(Token)match(input,20,FOLLOW_9); if (state.failed) return ;\n // InternalMyDsl.g:407:6: ( (lv_left_18_0= ruleBinaryProperty ) )\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n {\n // InternalMyDsl.g:408:7: (lv_left_18_0= ruleBinaryProperty )\n // InternalMyDsl.g:409:8: lv_left_18_0= ruleBinaryProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getLeftBinaryPropertyParserRuleCall_1_1_3_1_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_left_18_0=ruleBinaryProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_19=(Token)match(input,21,FOLLOW_11); if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,23,FOLLOW_10); if (state.failed) return ;\n // InternalMyDsl.g:436:4: ( (lv_right_21_0= ruleProperty ) )\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n {\n // InternalMyDsl.g:437:5: (lv_right_21_0= ruleProperty )\n // InternalMyDsl.g:438:6: lv_right_21_0= ruleProperty\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getPropertyAccess().getRightPropertyParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_right_21_0=ruleProperty();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "private String E() throws SyntaxException, ParserException {\n\t\tswitch (current) {\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\t\t// E -> L\n\t\t\t\treturn L();\n\t\t\tcase '(':\n\t\t\t\t// E -> (S)\n\t\t\t\teat('(');\n\t\t\t\tString pe = S();\n\t\t\t\teat(')');\n\t\t\t\treturn pe;\n\t\t\tdefault:\n\t\t\t\tthrow new SyntaxException(ErrorType.NO_RULE,current);\n\t\t}\n\t}", "LogicExpression getExpr();", "public void testSUBORDINARY6() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 38, \"orle\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "public final void synpred6_InternalJavaJRExpression_fragment() throws RecognitionException { \n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:3: ( ( () ( ( ruleRelationalOp ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:4: ( () ( ( ruleRelationalOp ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:4: ( () ( ( ruleRelationalOp ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:5: () ( ( ruleRelationalOp ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:565:5: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:566:1: \n {\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:566:2: ( ( ruleRelationalOp ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:567:1: ( ruleRelationalOp )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:567:1: ( ruleRelationalOp )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:568:1: ruleRelationalOp\n {\n pushFollow(FOLLOW_ruleRelationalOp_in_synpred6_InternalJavaJRExpression1299);\n ruleRelationalOp();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }", "private TreatExpression() {\r\n }", "boolean tokenCanEnd(Token token)\r\n {\r\n if (token == null)\r\n return false;\r\n int type = token.getType();\r\n switch (type) {\r\n \tcase MExprANTLRParserTokenTypes.NOT:\r\n \tcase MExprANTLRParserTokenTypes.NOTNOT:\r\n case MExprANTLRParserTokenTypes.RBRACE:\r\n case MExprANTLRParserTokenTypes.RBRACKET:\r\n case MExprANTLRParserTokenTypes.RPAREN:\r\n case MExprANTLRParserTokenTypes.INT: \r\n case MExprANTLRParserTokenTypes.REAL:\r\n case MExprANTLRParserTokenTypes.ID:\r\n case MExprANTLRParserTokenTypes.NULLID:\r\n case MExprANTLRParserTokenTypes.POSTFIXID:\r\n case MExprANTLRParserTokenTypes.STRING:\r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.IDBLANK1:\r\n case MExprANTLRParserTokenTypes.BLANKID1:\r\n case MExprANTLRParserTokenTypes.IDBLANKID1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.IDBLANK2:\r\n case MExprANTLRParserTokenTypes.BLANKID2:\r\n case MExprANTLRParserTokenTypes.IDBLANKID2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n case MExprANTLRParserTokenTypes.IDBLANK3:\r\n case MExprANTLRParserTokenTypes.BLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKDOT:\r\n case MExprANTLRParserTokenTypes.BLANKDOT:\r\n case MExprANTLRParserTokenTypes.SLOT: \r\n case MExprANTLRParserTokenTypes.TYPESETEXPR:\r\n case MExprANTLRParserTokenTypes.GET:\r\n case MExprANTLRParserTokenTypes.PUT:\r\n case MExprANTLRParserTokenTypes.PERCENT:\r\n case MExprANTLRParserTokenTypes.PERCENTNUMBER:\r\n \t return true;\r\n }\r\n\r\n return false;\r\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "private Term parseImpl() throws ParseException {\n final Term expr = parseTerm(false);\n final int tt = _tokenizer.next();\n if (tt != Tokenizer.TT_EOS) {\n reportError(\"Incomplete expression.\"); /*I18N*/\n }\n return expr;\n }", "public void testSUBORDINARY4() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY\", 36, \"flaunches\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY\", expecting, actual);\n\t}", "void expr() throws IOException {\n\t\tinput = input+(char)lookahead;\n\t\tterm();\n\t\trest();\n\t\tprintPostfix();\n\t}", "public String visit(ExpressionTerm n, String s) {\n n.f1.accept(this, null);\n return null;\n }", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "@Override\n public Expression translateSyntacticSugar() {\n return new Condition(this.e1, BooleanConstant.TRUE, this.e2);\n }", "public void parse(StreamTokenizer st, Visitor v, Transitions tr) {\n\t\t\ttry {\n\t\t\t\tint tokType;\n\n\t\t\t\twhile (_state != States.end) {\n\t\t\t\t\ttokType = st.nextToken();\n\n\t\t\t\t\tif (tokType == StreamTokenizer.TT_EOF) {\n\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\"Clauses: premature EOF in TransitionsParser\");\n\t\t\t\t\t}\n\t\t\t\t\tswitch (_state) {\n\t\t\t\t\tcase start:\n\t\t\t\t\t\tif (!isActionId(st)) {\n\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\"Clauses: head of clause was not an action id (lowercase word): \"\n\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// For example, the \"a\" in \"a -> B\"\n\t\t\t\t\t\t_lastAction = st.sval;\n\t\t\t\t\t\t_state = States.head;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase head:\n\t\t\t\t\t\tif ('-' != tokType) {\n\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\"Clauses: arrow did not follow head of clause: \"\n\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttokType = st.nextToken();\n\t\t\t\t\t\t\tif ('>' != tokType) {\n\t\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\t\"Clauses: arrow did not follow head of clause: -\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// The \"->\" in \"a -> B\"\n\t\t\t\t\t\t_state = States.tail;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase tail:\n\t\t\t\t\t\tif (!isStateId(st)) {\n\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\"Clauses: head of clause was not a state identifier (uppercase word): \"\n\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// The \"B\" in \"a -> B\"\n\t\t\t\t\t\t_state = States.clause;\n\t\t\t\t\t\tv.setTransition(tr._stateName, _lastAction, st.sval);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase clause:\n\t\t\t\t\t\tif ('|' == tokType) {\n\t\t\t\t\t\t\t_state = States.start;\n\t\t\t\t\t\t} else if (')' == tokType) {\n\t\t\t\t\t\t\tst.pushBack();\n\t\t\t\t\t\t\t_state = States.end;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\"Clauses: did not find '|' or end of clause: \"\n\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new Exception(\"Clauses: unhandled state: \"\n\t\t\t\t\t\t\t\t+ _state);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\"Clauses: IOException while getting next clause token\",\n\t\t\t\t\t\tex);\n\t\t\t}\n\t\t}", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "Rule createRule();", "Rule createRule();" ]
[ "0.54672456", "0.53212905", "0.53168184", "0.53136677", "0.5304619", "0.5284456", "0.5276039", "0.5263587", "0.52333", "0.5232105", "0.5202607", "0.5199597", "0.5162636", "0.51422787", "0.5141337", "0.5118676", "0.51108354", "0.51045907", "0.50989", "0.50713074", "0.50682104", "0.5009414", "0.5007572", "0.5006282", "0.50056684", "0.50049293", "0.49778968", "0.4977025", "0.49754766", "0.49630576", "0.4959914", "0.49494272", "0.4944799", "0.49440962", "0.4940256", "0.49078846", "0.48712197", "0.48694038", "0.48632926", "0.48611", "0.48541692", "0.4844182", "0.48440647", "0.48428077", "0.48410785", "0.4840366", "0.4834084", "0.48270428", "0.48183706", "0.4816404", "0.48128217", "0.48122576", "0.47955495", "0.4782888", "0.47778928", "0.47778928", "0.47691625", "0.47690377", "0.47621408", "0.47594434", "0.47479838", "0.4744126", "0.4740646", "0.4734759", "0.47293735", "0.47238865", "0.47206497", "0.47142786", "0.47129282", "0.47120973", "0.47041047", "0.4704042", "0.4696687", "0.46950978", "0.46895188", "0.46770442", "0.46761805", "0.46756682", "0.466517", "0.4665106", "0.46588778", "0.46566516", "0.4655089", "0.46420226", "0.46398637", "0.46358228", "0.46310747", "0.46222335", "0.4618892", "0.4617066", "0.4605878", "0.46055627", "0.45979953", "0.45968023", "0.45904347", "0.4589878", "0.45866594", "0.4586538", "0.4575922", "0.4575922" ]
0.5135861
15
The persistence interface for the interview schedule service. Caching information and settings can be found in portal.properties
public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found. * * @param vacancyCandidateId the vacancy candidate ID * @param interviewId the interview ID * @return the matching interview schedule * @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param vacancyCandidateId the vacancy candidate ID * @param interviewId the interview ID * @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param vacancyCandidateId the vacancy candidate ID * @param interviewId the interview ID * @param retrieveFromCache whether to use the finder cache * @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database. * * @param vacancyCandidateId the vacancy candidate ID * @param interviewId the interview ID * @return the interview schedule that was removed * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @param interviewId the interview ID * @return the number of matching interview schedules * @throws SystemException if a system exception occurred */ public int countByVacancyCandidateAndInterview(long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found. * * @param vacancyCandidateId the vacancy candidate ID * @param status the status * @return the matching interview schedule * @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param vacancyCandidateId the vacancy candidate ID * @param status the status * @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param vacancyCandidateId the vacancy candidate ID * @param status the status * @param retrieveFromCache whether to use the finder cache * @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database. * * @param vacancyCandidateId the vacancy candidate ID * @param status the status * @return the interview schedule that was removed * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @param status the status * @return the number of matching interview schedules * @throws SystemException if a system exception occurred */ public int countByVacancyCandidateAndStatus(long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the interview schedules where vacancyCandidateId = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @return the matching interview schedules * @throws SystemException if a system exception occurred */ public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate( long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the interview schedules where vacancyCandidateId = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param vacancyCandidateId the vacancy candidate ID * @param start the lower bound of the range of interview schedules * @param end the upper bound of the range of interview schedules (not inclusive) * @return the range of matching interview schedules * @throws SystemException if a system exception occurred */ public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate( long vacancyCandidateId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param vacancyCandidateId the vacancy candidate ID * @param start the lower bound of the range of interview schedules * @param end the upper bound of the range of interview schedules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching interview schedules * @throws SystemException if a system exception occurred */ public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate( long vacancyCandidateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching interview schedule * @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching interview schedule * @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;. * * @param interviewScheduleId the primary key of the current interview schedule * @param vacancyCandidateId the vacancy candidate ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next interview schedule * @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext( long interviewScheduleId, long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Removes all the interview schedules where vacancyCandidateId = &#63; from the database. * * @param vacancyCandidateId the vacancy candidate ID * @throws SystemException if a system exception occurred */ public void removeByVacancyCandidate(long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of interview schedules where vacancyCandidateId = &#63;. * * @param vacancyCandidateId the vacancy candidate ID * @return the number of matching interview schedules * @throws SystemException if a system exception occurred */ public int countByVacancyCandidate(long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException; /** * Caches the interview schedule in the entity cache if it is enabled. * * @param interviewSchedule the interview schedule */ public void cacheResult( vn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule); /** * Caches the interview schedules in the entity cache if it is enabled. * * @param interviewSchedules the interview schedules */ public void cacheResult( java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules); /** * Creates a new interview schedule with the primary key. Does not add the interview schedule to the database. * * @param interviewScheduleId the primary key for the new interview schedule * @return the new interview schedule */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create( long interviewScheduleId); /** * Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners. * * @param interviewScheduleId the primary key of the interview schedule * @return the interview schedule that was removed * @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove( long interviewScheduleId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; public vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl( vn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found. * * @param interviewScheduleId the primary key of the interview schedule * @return the interview schedule * @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey( long interviewScheduleId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; /** * Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found. * * @param interviewScheduleId the primary key of the interview schedule * @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found * @throws SystemException if a system exception occurred */ public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey( long interviewScheduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the interview schedules. * * @return the interview schedules * @throws SystemException if a system exception occurred */ public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the interview schedules. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of interview schedules * @param end the upper bound of the range of interview schedules (not inclusive) * @return the range of interview schedules * @throws SystemException if a system exception occurred */ public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the interview schedules. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of interview schedules * @param end the upper bound of the range of interview schedules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of interview schedules * @throws SystemException if a system exception occurred */ public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the interview schedules from the database. * * @throws SystemException if a system exception occurred */ public void removeAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of interview schedules. * * @return the number of interview schedules * @throws SystemException if a system exception occurred */ public int countAll() throws com.liferay.portal.kernel.exception.SystemException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract FHIRPersistence getPersistenceImpl() throws Exception;", "public IPersistence<T> getPersistence();", "public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }", "public interface PresentationManager extends CleanupableService {\n\n public static final String PRESENTATION_PROPERTIES_FOLDER = \"portfolioPropertyForms\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_DISPNAME = \"portfolioPropertyForms.displayName\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_DESC = \"portfolioPropertyForms.description\";\n public static final String PORTFOLIO_INTERACTION_FOLDER_DISPNAME = \"portfolioInteraction.displayName\";\n public static final String PORTFOLIO_INTERACTION_FOLDER_DESC = \"portfolioInteraction.description\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_PATH = \"/\" + PRESENTATION_PROPERTIES_FOLDER + \"/\";\n public static final String PRESENTATION_MESSAGE_BUNDLE = \"org.theospi.portfolio.presentation.bundle.Messages\";\n \n public static final String PRESENTATION_FORMS_FOLDER = \"portfolioForms\";\n public static final String PRESENTATION_FORMS_FOLDER_DISPNAME = \"portfolioForms.displayName\";\n public static final String PRESENTATION_FORMS_FOLDER_DESC = \"portfolioForms.description\";\n \n public static final String PRESENTATION_VIEW_ALL = \"all\";\n public static final String PRESENTATION_VIEW_HIDDEN = \"hidden\";\n public static final String PRESENTATION_VIEW_VISIBLE = \"visible\"; // not hidden\n\n \n public PresentationTemplate storeTemplate(PresentationTemplate template);\n public PresentationTemplate storeTemplate(PresentationTemplate template, boolean checkAuthz, boolean updateDates);\n \n public boolean deletePresentationTemplate(Id id);\n public void deletePresentationLayout(Id id);\n\n public PresentationTemplate getPresentationTemplate(Id id);\n\n public PresentationItemDefinition getPresentationItemDefinition(Id item);\n\n public void deletePresentationItem(Id item);\n\n public Presentation getPresentation(Id id);\n public Presentation getPresentation(Id id, boolean checkAuth);\n public Presentation getLightweightPresentation(Id id);\n\n public Presentation storePresentation(Presentation presentation);\n public Presentation storePresentation(Presentation presentation, boolean checkAuthz, boolean updateDates);\n \n public void deletePresentation(Id presentation);\n\n public PresentationItem getPresentationItem(Id itemDef);\n\n public void updateItemDefintion(PresentationItemDefinition itemDef);\n\n public void deletePresentationItemDefinition(Id itemDef);\n\n public TemplateFileRef getTemplateFileRef(Id refId);\n public void updateTemplateFileRef(TemplateFileRef ref);\n public void deleteTemplateFileRef(Id refId);\n\n /**\n * returns a list of all presentation templates owned by agent.\n *\n * @param owner\n * @return\n */\n public Collection findTemplatesByOwner(Agent owner);\n\n /**\n * returns a list of all presentation templates owned by agent within the given siteId.\n *\n * @param owner\n * @return\n */\n public Collection findTemplatesByOwner(Agent owner, String siteId);\n\n public Collection findPublishedTemplates(String siteId);\n\n public Collection findGlobalTemplates();\n\n public Collection findPublishedTemplates();\n\n public Collection findPublishedLayouts(String siteId);\n public Collection findLayoutsByOwner(Agent owner, String siteId);\n public Collection findMyGlobalLayouts();\n public Collection findAllGlobalLayouts();\n\n public PresentationLayout storeLayout(PresentationLayout layout);\n public PresentationLayout storeLayout(PresentationLayout layout, boolean checkAuthz);\n \n public PresentationLayout getPresentationLayout(Id layoutId);\n \n public List getPresentationPagesByPresentation(Id presentationId);\n public PresentationPage getPresentationPage(Id id);\n public Document getPresentationLayoutAsXml(Presentation presentation, String pageId);\n \n /**\n * Creates an xml document represenation of the requested page from the \n * presentation passed in.\n * \n * @param presentation\n * @param pageId\n * @return xml representation of the requested page or null\n */\n public Document getPresentationPreviewLayoutAsXml(Presentation presentation, String pageId);\n\n /**\n * Return a list presentation ids of all publicly shared presentations (optionally filtered by site)\n *\n * @param siteId return only from this site if specified (may be null)\n * @return collection of presentations\n */\n public Collection findPublicPresentations(String siteId);\n\n /**\n * Return a list presentation ids of all publicly shared presentations (optionally filtered by toolId)\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findPublicPresentations(Agent viewer, String toolId, String showHidden);\n\n /** Return the XML document string corresponding to the specified public portfolio's propertyForm\n ** (portfolio must be publicly viewable).\n **\n ** @param portfolioId public portfolio\n ** @return XML document string or null if error\n **/\n public String getPublicPropertyForm( Presentation presentation );\n\n /**\n * Return a list of all presentations agent can view, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findAllPresentations(Agent viewer, String toolId, String showHidden);\n\n /**\n * Return a unrestricted list of presentations for given toolId\n * Portfolios returned may be unpublished/inactive/unshared, but the current user is not the owner\n * User must have permission and portfolio.unrestricted.view must be enabled\n *\n * @param owner current user\n * @param toolId current tool \n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);\n \n /**\n * Return a list of presentation shared with agent, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findSharedPresentations(Agent viewer, String toolId, String showHidden);\n \n /**\n * Return a list of all presentation owned by agent, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findOwnerPresentations(Agent owner, String toolId, String showHidden);\n\n public void createComment(PresentationComment comment);\n public void createComment(PresentationComment comment, boolean checkAuthz, boolean updateDates);\n\n public List getPresentationComments(Id presentationId, Agent viewer);\n\n public PresentationComment getPresentationComment(Id id);\n\n public void deletePresentationComment(PresentationComment comment);\n\n public void updatePresentationComment(PresentationComment oldComment);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param sortBy\n * @return\n */\n public List getOwnerComments(Agent owner, CommentSortBy sortBy);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param toolId\n * @param sortBy\n * @param excludeOwner - set to true to exclude comments created by the owner\n * @return\n */\n public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy, boolean excludeOwner);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param toolId\n * @param sortBy\n * @return\n */\n public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy);\n\n public List getCreatorComments(Agent creator, CommentSortBy sortBy);\n\n /**\n * returns list of comments created by creator in given tool.\n * @param creator\n * @param toolId\n * @param sortBy\n * @return\n */\n public List getCreatorComments(Agent creator, String toolId, CommentSortBy sortBy);\n\n public PresentationTemplate copyTemplate(Id templateId);\n\n public String packageTemplateForExport(Id templateId, OutputStream os) throws IOException;\n\n public PresentationTemplate uploadTemplate(String templateFileName, String toContext, InputStream zipFileStream) throws IOException;\n\n public void storePresentationLog(PresentationLog log);\n\n public Collection findLogsByPresID(Id presID);\n\t\n public Presentation findPresentationByLogID(Id presID);\n\n public Collection getPresentationItems(Id artifactId);\n\n public Collection getPresentationsBasedOnTemplateFileRef(Id artifactId);\n\n public Collection findPresentationsByTool(Id id);\n \n public Node getNode(Id artifactId);\n\n public Node getNode(Reference ref);\n\n /**\n * Get node within the context of this presentation\n * @param ref\n * @param presentation\n * @return\n */\n public Node getNode(Reference ref, Presentation presentation);\n public Node getNode(Id artifactId, Presentation presentation);\n\n public Node getNode(Id artifactId, PresentationLayout layout);\n\n public ContentResourceArtifact loadArtifactForItem(PresentationItem item);\n public Collection loadArtifactsForItemDef(PresentationItemDefinition itemDef, Agent agent);\n \n public Document createDocument(Presentation presentation);\n\n public Collection getAllPresentationsForWarehouse();\n\n public Collection getAllPresentationLayouts();\n\n public Collection getAllPresentationTemplates();\n\n public Presentation getPresentation(Id id, String secretExportKey);\n \n public boolean isGlobal();\n\n /**\n * Copy an existing presentation,\n * this will duplicate the presentation for the current owner,\n * does not include comments\n * \n * @param presentationId the id for a presentation\n * @return the copy of the presentation\n */\n public Presentation copyPresentation(Id presentationId);\n\n}", "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}", "public interface IDatabase {\n void createIfNotCreated();\n void openDatabase();\n void closeDatabase();\n\n Day loadDay(Date date);\n Day loadLatestDay();\n List<Day> loadMonth(Date date);\n List<Day> loadYear(Date date);\n List<Day> getAllEntries();\n\n void saveDay(Day day);\n void saveMonth(List<Day> days);\n void saveYear(List<Day> days);\n\n void deleteDay(Date date);\n void deleteMonth(Date date);\n void deleteYear(Date date);\n void deleteAll();\n void deleteMeterList();\n void deleteMeterPref();\n\n void savePreferences(MyPreferences pref);\n MyPreferences loadPreferences();\n}", "public abstract int getPersistence();", "public interface IWebScheduleService {\r\n public ScheduleResponse getScheduleShowByTeamId(String teamId, Long scheduleDetaildId,Long scheduleId, Long descId);\r\n\r\n //获取页面所有链接的签名map\r\n public ScheduleResponse getScheduleSigns(ScheduleShowRequest showRequest, ScheduleResponse response, SignVo signVo);\r\n\r\n //获取行程中所有导游\r\n public List<LeaderEntity> getScheduleGuides(String teamId);\r\n\r\n // 获取游客列表\r\n public List<MemberEntity> getTouristList(Long scheduleId);\r\n\r\n}", "private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }", "public interface UpcomingPresenterInterface extends Serializable {\n\n public void getTripListFromDB();\n\n public void addTripListToView(List<Trip> trip);\n\n public void deleteTripFromDB(Trip trip);\n\n public void deleteTripFromView(Trip trip);\n\n public void addTripToView(Trip trip);\n\n public void updateTripInView(Trip trip);\n\n public void updateTripInDB(Trip trip);\n\n void addTripToDB(Trip trip);\n}", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "protected PersistenceStructureService getPersistenceStructureService() {\r\n return persistenceStructureService;\r\n }", "public interface QuestionnaireDAO {\r\n /**\r\n * Loads questionnaire data\r\n *\r\n * @return\r\n */\r\n public Questionnaire load();\r\n}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "public interface WorkloadManagementService\n{\n /**\n * @return for a given project a WorkloadManager object. Also applicable for older INCEpTION\n * version where the workload feature was not present. Also, if no entity can be found,\n * a new entry will be created and returned.\n * @param aProject\n * a project\n */\n WorkloadManager loadOrCreateWorkloadManagerConfiguration(Project aProject);\n\n WorkloadManagerExtension<?> getWorkloadManagerExtension(Project aProject);\n\n void saveConfiguration(WorkloadManager aManager);\n\n List<AnnotationDocument> listAnnotationDocumentsForSourceDocumentInState(\n SourceDocument aSourceDocument, AnnotationDocumentState aState);\n\n Long getNumberOfUsersWorkingOnADocument(SourceDocument aDocument);\n}", "public interface PersistenceFinalTaskDao {\n\t\n\t/**\n\t * Persiste el total de operaciones en la tabla\n\t * de reporte final\n\t */\n\tpublic void persisteMontoOperaciones(BigDecimal montoTotal, String idProceso);\n\n\t/**\n\t * \n\t * obtiene la sumatoria de los montos de todas las\n\t * operaciones correspondienes a la carga de \n\t * un archivo de operaciones\n\t * \n\t */\n\tpublic BigDecimal conteoTotalDeOperaciones(String idProceso, String schema);\n\n\t/**\n\t * \n\t * Metodo para obtener el numero de errores\n\t * contenidos en un proceso @idProceso\n\t * \n\t * @param idProceso\n\t * @param schema\n\t * @return numero de errores correspontienes al proceso\n\t */\n\tpublic int numeroDeRegistrosCargadosConError(String idProceso, String schema);\n\n\t/**\n\t * Recibe sentencias sql para persistir,\n\t * el metodo itera la lista de sentencias\n\t * regresa el numero de registros insertados\n\t * el cual deberia ser igual al numero de sentencias recibidas\n\t * entro de la lista\n\t *\n\t * @param listQuriesToPersistence\n\t * @return\n\t */\n\tpublic int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);\n\t\n\t/**\n\t * Metodo que contiene el llamado a base de datos para hacer \n\t * el select inser de los registros que no fueron marcados\n\t * como update y tampoco fueron rechazados.\n\t * \n\t * @param queryInserSelect\n\t * @param idProceso\n\t * @return numero de registros afectados\n\t * @throws Exception \n\t */\n\tpublic int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;\n\t\n}", "@Override\n public URL getPersistenceUnitRootUrl() {\n return HibernatePersistenceProvider.class.getResource(\"/org/hibernate/jpa/persistence_1_0.xsd\");\n }", "public Persistence() {}", "public interface IHibernatePersistenceModule extends IPersistenceModule {\r\n\t/**\r\n\t * Retorna a sessao do hibernate\r\n\t * \r\n\t * @return a sessao\r\n\t */\r\n\tSession getSession();\r\n}", "public WorkerPersistence getWorkerPersistence() {\n return workerPersistence;\n }", "@RemoteServiceRelativePath(\"persistence\")\npublic interface PersistenceService extends RemoteService {\n\tvoid save(DTO obj) throws IllegalArgumentException;\n\tvoid delete(DTO obj) throws IllegalArgumentException;\n\tList<DTO> readAll(String className) throws IllegalArgumentException;\n}", "public interface BackgroundPersistence extends BasePersistence<Background> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link BackgroundUtil} to access the background persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the background in the entity cache if it is enabled.\n\t*\n\t* @param background the background\n\t*/\n\tpublic void cacheResult(\n\t\torg.politaktiv.map.infrastructure.model.Background background);\n\n\t/**\n\t* Caches the backgrounds in the entity cache if it is enabled.\n\t*\n\t* @param backgrounds the backgrounds\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<org.politaktiv.map.infrastructure.model.Background> backgrounds);\n\n\t/**\n\t* Creates a new background with the primary key. Does not add the background to the database.\n\t*\n\t* @param backgroundId the primary key for the new background\n\t* @return the new background\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background create(\n\t\tlong backgroundId);\n\n\t/**\n\t* Removes the background with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background that was removed\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background remove(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\tpublic org.politaktiv.map.infrastructure.model.Background updateImpl(\n\t\torg.politaktiv.map.infrastructure.model.Background background,\n\t\tboolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the background with the primary key or throws a {@link org.politaktiv.map.infrastructure.NoSuchBackgroundException} if it could not be found.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findByPrimaryKey(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the background with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background, or <code>null</code> if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background fetchByPrimaryKey(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @return the matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @return the range of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first background in the ordered set where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a matching background could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findBycompanyIdAndGroupId_First(\n\t\tlong companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the last background in the ordered set where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a matching background could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findBycompanyIdAndGroupId_Last(\n\t\tlong companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the backgrounds before and after the current background in the ordered set where companyId = &#63; and groupId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param backgroundId the primary key of the current background\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background[] findBycompanyIdAndGroupId_PrevAndNext(\n\t\tlong backgroundId, long companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns all the backgrounds.\n\t*\n\t* @return the backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the backgrounds.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @return the range of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the backgrounds.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the backgrounds where companyId = &#63; and groupId = &#63; from the database.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeBycompanyIdAndGroupId(long companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the backgrounds from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of backgrounds where companyId = &#63; and groupId = &#63;.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @return the number of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countBycompanyIdAndGroupId(long companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of backgrounds.\n\t*\n\t* @return the number of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "private static PersistenceManager getPersistenceManager() {\n\t\treturn PMF.get().getPersistenceManager();\n\t}", "public interface TrackDatasource {\n\n}", "@Override\n public FileObject getPersistenceXml()\n {\n FileObject location = locationProvider.getLocation();\n if (location == null)\n {\n return null;\n }\n return location.getFileObject(\"persistence.xml\"); // NOI18N\n \n }", "public interface CoursePersistence extends BasePersistence<Course> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link CourseUtil} to access the course persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the course where courseId = &#63; or throws a {@link com.ms3.training.services.NoSuchCourseException} if it could not be found.\n\t*\n\t* @param courseId the course ID\n\t* @return the matching course\n\t* @throws com.ms3.training.services.NoSuchCourseException if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course findByCourseId(long courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the course where courseId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param courseId the course ID\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByCourseId(long courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course where courseId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param courseId the course ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByCourseId(\n\t\tlong courseId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the course where courseId = &#63; from the database.\n\t*\n\t* @param courseId the course ID\n\t* @return the course that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course removeByCourseId(\n\t\tlong courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the number of courses where courseId = &#63;.\n\t*\n\t* @param courseId the course ID\n\t* @return the number of matching courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByCourseId(long courseId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course where title = &#63; or throws a {@link com.ms3.training.services.NoSuchCourseException} if it could not be found.\n\t*\n\t* @param title the title\n\t* @return the matching course\n\t* @throws com.ms3.training.services.NoSuchCourseException if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course findByTitle(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the course where title = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param title the title\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByTitle(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course where title = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param title the title\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching course, or <code>null</code> if a matching course could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByTitle(\n\t\tjava.lang.String title, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the course where title = &#63; from the database.\n\t*\n\t* @param title the title\n\t* @return the course that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course removeByTitle(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the number of courses where title = &#63;.\n\t*\n\t* @param title the title\n\t* @return the number of matching courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByTitle(java.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the course in the entity cache if it is enabled.\n\t*\n\t* @param course the course\n\t*/\n\tpublic void cacheResult(com.ms3.training.services.model.Course course);\n\n\t/**\n\t* Caches the courses in the entity cache if it is enabled.\n\t*\n\t* @param courses the courses\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<com.ms3.training.services.model.Course> courses);\n\n\t/**\n\t* Creates a new course with the primary key. Does not add the course to the database.\n\t*\n\t* @param title the primary key for the new course\n\t* @return the new course\n\t*/\n\tpublic com.ms3.training.services.model.Course create(java.lang.String title);\n\n\t/**\n\t* Removes the course with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param title the primary key of the course\n\t* @return the course that was removed\n\t* @throws com.ms3.training.services.NoSuchCourseException if a course with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course remove(java.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\tpublic com.ms3.training.services.model.Course updateImpl(\n\t\tcom.ms3.training.services.model.Course course)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the course with the primary key or throws a {@link com.ms3.training.services.NoSuchCourseException} if it could not be found.\n\t*\n\t* @param title the primary key of the course\n\t* @return the course\n\t* @throws com.ms3.training.services.NoSuchCourseException if a course with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course findByPrimaryKey(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.ms3.training.services.NoSuchCourseException;\n\n\t/**\n\t* Returns the course with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param title the primary key of the course\n\t* @return the course, or <code>null</code> if a course with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.ms3.training.services.model.Course fetchByPrimaryKey(\n\t\tjava.lang.String title)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the courses.\n\t*\n\t* @return the courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.ms3.training.services.model.Course> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the courses.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.ms3.training.services.model.impl.CourseModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of courses\n\t* @param end the upper bound of the range of courses (not inclusive)\n\t* @return the range of courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.ms3.training.services.model.Course> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the courses.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.ms3.training.services.model.impl.CourseModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of courses\n\t* @param end the upper bound of the range of courses (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.ms3.training.services.model.Course> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the courses from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of courses.\n\t*\n\t* @return the number of courses\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public ResourcePersistence getResourcePersistence() {\n return resourcePersistence;\n }", "private PersistenceManager getPersistenceManager() {\n if(pmf==null) {\n getFacetHolder().getServiceInjector().injectServicesInto(this);\n }\n return pmf.getPersistenceManagerFactory().getPersistenceManager();\n }", "public PersistenceStructureService getPersistenceStructureService() {\r\n return persistenceStructureService;\r\n }", "public interface TaskStorage {\n\n public long addTask(Task task);\n public int removeTask(long id);\n public List<Task> findAllTasks();\n public long numberOfTasks();\n}", "@Override\n\tpublic void setDAO() {\n\t\tthis.baseDAO = schedulingDAO;\n\t}", "public interface CalendarEntity {\r\n\r\n\t/**\r\n\t * Gets the text.\r\n\t * \r\n\t * @return the text\r\n\t */\r\n String getText();\r\n\t\r\n\t/**\r\n\t * Gets the color.\r\n\t * \r\n\t * @return the color\r\n\t */\r\n String getColor();\r\n\t\r\n\t/**\r\n\t * Gets the date.\r\n\t * \r\n\t * @return the date\r\n\t */\r\n Date getDate();\r\n\t\r\n\t/**\r\n\t * Gets the duration.\r\n\t * \r\n\t * @return the duration\r\n\t */\r\n Integer getDuration();\r\n\t\r\n\t/**\r\n\t * Gets the todo flag.\r\n\t * \r\n\t * @return the todo flag\r\n\t */\r\n boolean isTodo();\r\n\t\r\n\t/**\r\n\t * Gets the next todo date.\r\n\t * \r\n\t * @return the next todo date\r\n\t */\r\n Date getNextTodo();\r\n\t\r\n\t/**\r\n\t * Gets the priority\r\n\t * @return the priority\r\n\t */\r\n Integer getPriority();\r\n\t\r\n\tboolean isPrivate();\r\n}", "public interface PerformancesService {\n void create();\n List<Performances> findAll();\n}", "public PersistenceServiceXStream() {\n storageServiceClassName = ConfigurationProperties.getConfiguredStorageService();\n }", "public interface TimelineMetaStore {\n /**\n * Get timeline meta by identifier.\n * Return null if this timeline meta is not exist.\n *\n * @param identifier The identifier of timeline meta.\n *\n * @return TimelineMeta\n */\n TimelineMeta read(TimelineIdentifier identifier);\n\n /**\n * Search timeline meta by search parameter.\n * Search will throw TimelineException when index info not set in TimelineSchema.\n *\n * @param searchParameter The parameter of search, which will convert to SearchQuery.\n *\n * @return SearchResult<TimelineMeta>\n */\n SearchResult<TimelineMeta> search(SearchParameter searchParameter);\n\n /**\n * Search timeline meta by search parameter.\n * Search will throw TimelineException when index info not set in TimelineSchema.\n *\n * @param searchQuery The searchQuery of search, which is self-defined query condition.\n *\n * @return SearchResult<TimelineMeta>\n */\n SearchResult<TimelineMeta> search(SearchQuery searchQuery);\n\n /**\n * Insert a new timeline meta with properties.\n *\n * @param meta The meta of timeline.\n *\n * @return TimelineMeta\n */\n TimelineMeta insert(TimelineMeta meta);\n\n /**\n * Update existed timeline meta with new properties.\n * It will insert a new meta if the timeline meta not exist.\n *\n * @param meta the meta of timeline.\n *\n * @return TimelineMeta\n */\n TimelineMeta update(TimelineMeta meta);\n\n /**\n * Delete existed timeline meta by identifier.\n * It won't throw exception, when the timeline meta with this identifier not exist.\n *\n * @param identifier The identifier of the timeline to be delete.\n */\n void delete(TimelineIdentifier identifier);\n\n /**\n * Create the table of meta store;\n * And create the SearchIndex of timeline meta if necessary.\n */\n void prepareTables();\n\n /**\n * Drop the table of meta store.\n * And Drop the SearchIndex of timeline meta if exist.\n **/\n void dropAllTables();\n\n /**\n * Close store service.\n */\n void close();\n}", "@RemoteServiceRelativePath(\"AssessmentTempStore\")\n\tpublic interface AssessmentTempStore extends RemoteService {\n\t\t/**\n\t\t * Store a Message.\n\t\t * @param msg the Message to store\n\t\t */\n\t\tpublic void storeAssessmentTemplate(AssessmentTemplate aT);\n\n\t\t/**\n\t\t * Retrieve Messages.\n\t\t * If minimumID==1, no Messages are excluded on that basis but\n\t\t * the List is limited to the newest INITIAL_LIMIT Messages.\n\t\t * @param minimumID the lowest ID (oldest Message) to include\n\t\t * @return a List from newest (greatest id) to oldest (least id)\n\t\t */\n\t\tList<AssessmentTemplate> getAssessmentTemplates(Long minimumID);\n\n\t\t/**\n\t\t * Limit on how far back into history initial retrievals go.\n\t\t */\n\t\tpublic static final int INITIAL_LIMIT=10;\n\t}", "@PersistenceCapable\n@Inheritance(strategy=InheritanceStrategy.SUPERCLASS_TABLE)\npublic interface PIDSEmployee extends IEmployee, PIDSPerson {\n\n @Column(name=\"HIREDATE\")\n Date getHiredate();\n @Column(name=\"WEEKLYHOURS\")\n double getWeeklyhours();\n @Persistent(mappedBy=\"reviewers\")\n @Element(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSProject.class)\n Set getReviewedProjects();\n @Persistent(mappedBy=\"members\")\n @Element(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSProject.class)\n Set getProjects();\n @Persistent(mappedBy=\"employee\",types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSDentalInsurance.class)\n IDentalInsurance getDentalInsurance();\n @Persistent(mappedBy=\"employee\",types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSMedicalInsurance.class)\n IMedicalInsurance getMedicalInsurance();\n @Persistent(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSDepartment.class)\n @Column(name=\"DEPARTMENT\")\n IDepartment getDepartment();\n @Persistent(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSDepartment.class)\n @Column(name=\"FUNDINGDEPT\")\n IDepartment getFundingDept();\n @Persistent(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSEmployee.class)\n @Column(name=\"MANAGER\")\n IEmployee getManager();\n @Persistent(mappedBy=\"manager\")\n @Element(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSEmployee.class)\n Set getTeam();\n @Persistent(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSEmployee.class)\n @Column(name=\"MENTOR\")\n IEmployee getMentor();\n @Persistent(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSEmployee.class, mappedBy=\"mentor\")\n IEmployee getProtege();\n @Persistent(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSEmployee.class)\n @Column(name=\"HRADVISOR\")\n IEmployee getHradvisor();\n @Persistent(mappedBy=\"hradvisor\")\n @Element(types=org.apache.jdo.tck.pc.companyAnnotatedPI.PIDSEmployee.class)\n Set getHradvisees();\n \n void setHiredate(Date hiredate);\n void setWeeklyhours(double weeklyhours);\n void setReviewedProjects(Set reviewedProjects);\n void setProjects(Set projects);\n void setDentalInsurance(IDentalInsurance dentalInsurance);\n void setMedicalInsurance(IMedicalInsurance medicalInsurance);\n void setDepartment(IDepartment department);\n void setFundingDept(IDepartment department);\n void setManager(IEmployee manager);\n void setTeam(Set team);\n void setMentor(IEmployee mentor);\n void setProtege(IEmployee protege);\n void setHradvisor(IEmployee hradvisor);\n void setHradvisees(Set hradvisees);\n \n}", "public interface Storage {\r\n\r\n\tpublic void createSeat(int number, int situation, int musicalEvent,int iCategory);\r\n\tpublic int updateSeat(int number, int situation, int idMusicalEvent);\r\n\tpublic int deleteSeat(int number, int idMusicalEvent);\r\n\tpublic int getSeatNumber(int number, int idMusicalEvent);\r\n\tpublic Seat getSeat(int number, int idMusicalEvent);\r\n\tpublic Seat getSeatById(int id, int idMusicalEvent);\r\n\tpublic void createMusicalEvent(String eventName, Date date, String description);\r\n\tpublic String loadMusicalEvent();\r\n\tpublic MusicalEvent getMusicalEvent(int id);\r\n\tpublic void createClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic Client getClient(String passport);\r\n\tpublic Client getClient(int id);\r\n\tpublic void updateClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic String deleteClient(String idPassport);\r\n\tpublic String getSeats(String musicalEvent);\r\n\tpublic String getClients();\r\n\tpublic int createTicket(int musicalEvent,int seat, int price, Date saleDate, int client, String paidForm);\r\n\tpublic void createCategory(String name, int tax);\r\n\tpublic int updateCategory(String name, int tax);\r\n\tpublic int deleteCategory(String name);\r\n\tpublic SeatCategory findCategory (String name);\r\n\tpublic SeatCategory findCategory (int id);\r\n\tpublic String getCategories();\r\n\tpublic TicketSale getTicketSale(Client c, Seat s, Date date);\r\n\tpublic TicketSale getTicketSale(int id);\r\n\tpublic int getTaxFromCategory(Seat seat);\r\n\tpublic int deleteTicket(int idTicket);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n}", "public interface PersistenceAdapter extends Service {\n\n /**\n * Returns a set of all the\n * {@link org.apache.activemq.command.ActiveMQDestination} objects that the\n * persistence store is aware exist.\n *\n * @return active destinations\n */\n Set<ActiveMQDestination> getDestinations();\n\n /**\n * Factory method to create a new queue message store with the given\n * destination name\n *\n * @param destination\n * @return the message store\n * @throws IOException\n */\n MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException;\n\n /**\n * Factory method to create a new topic message store with the given\n * destination name\n *\n * @param destination\n * @return the topic message store\n * @throws IOException\n */\n TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException;\n\n /**\n * Creates and returns a new Job Scheduler store instance.\n *\n * @return a new JobSchedulerStore instance if this Persistence adapter provides its own.\n *\n * @throws IOException If an error occurs while creating the new JobSchedulerStore.\n * @throws UnsupportedOperationException If this adapter does not provide its own\n * scheduler store implementation.\n */\n JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException;\n\n /**\n * Cleanup method to remove any state associated with the given destination.\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeQueueMessageStore(ActiveMQQueue destination);\n\n /**\n * Cleanup method to remove any state associated with the given destination\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeTopicMessageStore(ActiveMQTopic destination);\n\n /**\n * Factory method to create a new persistent prepared transaction store for\n * XA recovery\n *\n * @return transaction store\n * @throws IOException\n */\n TransactionStore createTransactionStore() throws IOException;\n\n /**\n * This method starts a transaction on the persistent storage - which is\n * nothing to do with JMS or XA transactions - its purely a mechanism to\n * perform multiple writes to a persistent store in 1 transaction as a\n * performance optimization.\n * <p/>\n * Typically one transaction will require one disk synchronization point and\n * so for real high performance its usually faster to perform many writes\n * within the same transaction to minimize latency caused by disk\n * synchronization. This is especially true when using tools like Berkeley\n * Db or embedded JDBC servers.\n *\n * @param context\n * @throws IOException\n */\n void beginTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Commit a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void commitTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Rollback a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void rollbackTransaction(ConnectionContext context) throws IOException;\n\n /**\n *\n * @return last broker sequence\n * @throws IOException\n */\n long getLastMessageBrokerSequenceId() throws IOException;\n\n /**\n * Delete's all the messages in the persistent store.\n *\n * @throws IOException\n */\n void deleteAllMessages() throws IOException;\n\n /**\n * @param usageManager\n * The UsageManager that is controlling the broker's memory\n * usage.\n */\n void setUsageManager(SystemUsage usageManager);\n\n /**\n * Set the name of the broker using the adapter\n *\n * @param brokerName\n */\n void setBrokerName(String brokerName);\n\n /**\n * Set the directory where any data files should be created\n *\n * @param dir\n */\n void setDirectory(File dir);\n\n /**\n * @return the directory used by the persistence adaptor\n */\n File getDirectory();\n\n /**\n * checkpoint any\n *\n * @param cleanup\n * @throws IOException\n *\n */\n void checkpoint(boolean cleanup) throws IOException;\n\n /**\n * A hint to return the size of the store on disk\n *\n * @return disk space used in bytes of 0 if not implemented\n */\n long size();\n\n /**\n * return the last stored producer sequenceId for this producer Id used to\n * suppress duplicate sends on failover reconnect at the transport when a\n * reconnect occurs\n *\n * @param id\n * the producerId to find a sequenceId for\n * @return the last stored sequence id or -1 if no suppression needed\n */\n long getLastProducerSequenceId(ProducerId id) throws IOException;\n\n void allowIOResumption();\n}", "public interface IDataStore {\n\n boolean newCycle(Cycle cycle);\n\n List<Cycle> getQueue();\n\n List<Cycle> getHistory();\n\n Temperature getTemperature();\n\n List<Temperature> getTemperatures();\n\n boolean logTemperature(Temperature temp);\n\n boolean updateCycle(Cycle cycle);\n\n boolean cancelCycle(String cycleID);\n\n boolean moveToHistory(String cycleID);\n}", "public SoilMoistureDB() {\n\t\tsuper();\n\t\tLocalDateTime nowTime = LocalDateTime.now();\n\t\tthis.setReadTime(nowTime);\n\t}", "public interface Recordable \n{\n\t/**\n\t * Returns the date that the work was created.\n\t * @return The task creation date\n\t */\n\tLocalDateTime getCreationDate();\n\t\n\t/**\n\t * Returns the date the work was completed.\n\t * @return The task completion date\n\t */\n\tLocalDateTime getCompletionDate();\n}", "public interface IScheduleService {\n\n @Transactional\n void insert(Schedule schedule);\n \n Schedule findById(Integer p_Id);\n \n List<Schedule> findByEnabled(Integer p_Enabled);\n \n List<Schedule> findAll();\n \n @Transactional\n void delete(Integer p_Id);\n \n @Modifying\n @Transactional\n void update(Schedule schedule);\n}", "abstract void initPersistance();", "public interface CoffeeProcessorDbService {\n void loadData();\n}", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Pracice your backend\";\n\t}", "public interface IPersistence\n{\n\t/**\n\t * When overridden in a child class, determines whether data exists which\n\t * can be loaded\n\t * @pre (none)\n\t * @post (none)\n\t * @return True if data can be loaded. Otherwise, false.\n\t */\n\tboolean canLoadData();\n\n\t/**\n\t * When overridden in a child class, loads all data from specified store to\n\t * the passed Inventory\n\t * @pre inventory is not null. storeName refers to a valid data store.\n\t * @post inventory's original contents have been cleared and replaced with\n\t * the data from the specified data store\n\t * @throws SerializerException\n\t */\n\tvoid loadData() throws SerializerException;\n\n\t/**\n\t * When overridden in a child class, saves all data from the Inventory with\n\t * the specified name\n\t * @pre storeName is a valid string for the system we are saving to\n\t * @post The passed Inventory has been saved under the passed name\n\t * @throws SerializerException\n\t */\n\tvoid saveData() throws SerializerException;\n}", "public interface DataBase {\n public void save(BuzzTalkData data);\n\n public ArrayList<OpenCalaisTag> getAllTags();\n\n public ArrayList<Publication> getAllPublications();\n}", "interface IDbScheduleEndpoint {\n\n /**\n * 查询所有可用定时器\n *\n * @param hasCorrect 是否纠正数据库状态\n * {hasCorrect为true}查询实际已经注册定时器并纠正数据库中定时器状态\n * @return List\n */\n List<DbSchedule> availableTimerHasCorrect(Boolean hasCorrect);\n\n /**\n * 动态注册定时器\n *\n * @param iRunnable 线程接口\n * @param model 注册信息\n * @param hasPersistent 是否持久化\n */\n void dynamicRegistration(IRunnable iRunnable, RegistrerParams model, Boolean hasPersistent);\n}", "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "public interface DatosPublicacionSTLocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/soltec/datos_publicacion/ejb/sb/DatosPublicacionSTLocalHome\";\n\t\n\t/**\n\t * Creates a default instance of Session Bean: DatosPublicacionST\n\t */\n\tpublic co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.soltec\n\t\t.datos_publicacion\n\t\t.ejb\n\t\t.sb\n\t\t.DatosPublicacionSTLocal create()\n\t\tthrows javax.ejb.CreateException;\n}", "public interface IInterviewDAO {\n void insertInterview(Interview interview) throws SQLException;\n List<Interview> getAllInterviews() throws SQLException;\n Interview getInterviewById(int id) throws SQLException;\n void updateInterview(Interview interview) throws SQLException;\n void deleteInterview(int interviewId) throws SQLException;\n List<Interview> getPastInterviews() throws SQLException;\n List<Interview> getFutureInterviews() throws SQLException;\n List<Interview> getFutureInterviewsByDirectionId(int directionId) throws SQLException;\n}", "public interface IPersistenceController {\n\n}", "private UserInterface() {\r\n\t\tif (yesOrNo(\"Look for saved data and use it?\")) {\r\n\t\t\tretrieve();\r\n\t\t} else {\r\n\t\t\tstore = Store.instance();\r\n\t\t}\r\n\t}", "public interface TaskDatastoreInterface {\n public Optional<RecurringTask> get(long key);\n}", "public interface SeguimientoManager extends Serializable {\n\n public boolean insertSeguimiento(Seguimiento seguimiento);\n public boolean updateSeguimiento(Seguimiento seguimiento);\n public List<Seguimiento> getAll();\n public List<Seguimiento> getSeguimiento(int idProspecto);\n}", "public interface ExerciseService {\n\n\tList<Activity> findAllActivities();\n\n\tExercise save(Exercise exercise);\n\n}", "public interface IITDIndexDAO {\n\n /**\n * Inserts a list of itdIndices into the persistent storage.\n *\n * @param itdIndices A list of {@link ScripITD} instances.\n *\n * @return The number of successful inserts.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n int insert( final List<ScripITD> itdIndices )\n throws DataAccessException ;\n\n /**\n * Inserts an instance of ScripITD into the persistent storage.\n *\n * @param itdIndices A list of {@link ScripITD} instances.\n *\n * @return The number of successful inserts.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n int insert( final ScripITD itdIndex )\n throws DataAccessException ;\n\n /**\n * Returns a list of the latest Scrip ITD instances for all the symbols\n * for whom the intra day data is available.\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getLatestScripITD() throws DataAccessException ;\n\n /**\n * Returns a list of all the intra day ITD markers for the specified symbol\n * for the specified date.\n *\n * @param symbol The NSE symbol for which the ITD data has to be fetched\n * @param date The date for which the data has to be fetched.\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getScripITD( final String symbol, final Date date )\n throws DataAccessException ;\n\n /**\n * Returns a list of all the intra day ITD markers for the specified symbol\n * and the date range specified.\n *\n * @param symbol The NSE symbol for which the ITD data has to be fetched\n * @param start The start date of the date range\n * @param end The end date of the date range\n *\n * @return A list of {@link ScripITD}. If there are no intra day data for\n * the specified date, an empty list is returned, never null.\n *\n * @throws DataAccessException In case an exception is encountered during\n * the data access operation.\n */\n List<ScripITD> getScripITD( final String symbol, final Date start,\n final Date end )\n throws DataAccessException ;\n\n /**\n * Moves all records in the SCRIP_ITD_DATA table which have a date attribute\n * which is in the past, relative to the boundary date passed as parameter.\n * Please note that this operation does not delete the data from the live\n * table. If you want to delete the live data which has been archived, you\n * need to call on the deleteLiveRecords operation within the same transaction\n * boundary.\n *\n * @param boundary The date which implies that any record with date in the\n * past as compared to the boundary will be archived.\n *\n * @throws DataAccessException If an exception is encountered during the\n * archival process.\n */\n void archiveLiveRecords( final Date boundary )\n throws DataAccessException ;\n\n /**\n * Deletes all records in the SCRIP_ITD_DATA table which have a date attribute\n * which is in the past, relative to the boundary date passed as parameter.\n * Please note that this operation does not copy the data from the live\n * table to the archive table. If you want to copy the live data which is\n * about to be deleted, you need to call on the archiveLiveRecords\n * before this call, within the same transaction boundary.\n *\n * @param boundary The date which implies that any record with date in the\n * past as compared to the boundary will be deleted.\n *\n * @throws DataAccessException If an exception is encountered during the\n * archival process.\n */\n void deleteLiveRecords( final Date boundary )\n throws DataAccessException ;\n}", "public interface RuntimeRepository extends Configurable {\r\n\r\n\t/**\r\n\t * Generates new unique script runtime id.\r\n\t * \r\n\t * @return the runtime id value\r\n\t * @throws PersistenceException\r\n\t * in case of any repository access issues\r\n\t */\r\n\tObject getNextRuntimeId() throws PersistenceException;\r\n\r\n\t/**\r\n\t * Creates runtime record in the repository.\r\n\t * \r\n\t * @param record\r\n\t * a record to save\r\n\t * @throws PersistenceException\r\n\t * in case of any repository issues\r\n\t */\r\n\tvoid createRuntimeRecord(ScriptRuntimeDTO record) throws PersistenceException;\r\n\r\n\t/**\r\n\t * Updates runtime record in the repository.\r\n\t * \r\n\t * @param record\r\n\t * a record to update\r\n\t * @throws PersistenceException\r\n\t * in case of any repository issues\r\n\t */\r\n\tvoid updateRuntimeRecord(ScriptRuntimeDTO record) throws PersistenceException;\r\n\r\n\t/**\r\n\t * Fetches runtime records by the given criteria. Result is paginated.\r\n\t * \r\n\t * @param criteria\r\n\t * query criteria\r\n\t * @param pagingOptions\r\n\t * pagination options\r\n\t * @return {@link QueryPage} instance\r\n\t * @throws PersistenceException\r\n\t * in case of any repository access issues\r\n\t */\r\n\tQueryPage<ScriptRuntimeDTO> fetch(ScriptRuntimeCriteria criteria, QueryPagingOptions pagingOptions)\r\n\t\t\tthrows PersistenceException;\r\n}", "public interface AutioSettingService {\n /***\n * 语音设置\n * @param pd\n * @return\n * @throws Exception\n */\n PageData saveInfo(PageData pd) throws Exception;\n\n /***\n * 语音设置查询\n * @param pd\n * @return\n * @throws Exception\n */\n PageData queryInfo(PageData pd) throws Exception;\n\n}", "public AssetEntryPersistence getAssetEntryPersistence() {\n\t\treturn assetEntryPersistence;\n\t}", "public interface ISchedulerManager {\n //\n void registerJob(String profileId, int period) throws SchedulerException;\n void quitScheduler() throws SchedulerException;\n void pauseJobList() throws SchedulerException;\n void restartJobList() throws SchedulerException;\n void pauseJob(String profileId) throws SchedulerException;\n void restartJob(String profileId) throws SchedulerException;\n List<ProfileForDB> retrieveExecuteJobList();\n List<ProfileForDB> retrieveReadyJobList();\n void updateJob(String profileId, int period) throws SchedulerException;\n void stopJobListAndChangeStatus();\n}", "@ClassVersion(\"$Id: HistoryService.java 16670 2013-08-28 19:49:06Z colin $\")\r\npublic interface HistoryService {\r\n\r\n /**\r\n * Initializes the receiver with the given system resources.\r\n *\r\n * @param idFactory The ID factory to be used for report ID\r\n * generation.\r\n * @param reportSavedListener The listener notified after a report\r\n * has been saved (successfully or not). It may be null if no\r\n * notifications are needed.\r\n * @param dataSource the data source\r\n *\r\n * @throws PersistenceException if an error occurs during initialization\r\n */\r\n public void init(IDFactory idFactory,\r\n \t\tReportSavedListener reportSavedListener,\r\n \t\tComboPooledDataSource dataSource)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the actor ID associated with the report with given\r\n * order ID.\r\n *\r\n * @param orderID The order ID.\r\n *\r\n * @return The actor ID. If no report with the given order ID\r\n * exists, null is returned, and no exception is thrown.\r\n *\r\n * @throws PersistenceException if there were errors accessing the\r\n * report.\r\n */\r\n public UserID getActorID\r\n \t\t(final OrderID orderID)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Returns all the reports received after the supplied date-time\r\n * value, and which are visible to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date-time value. Cannot be null.\r\n *\r\n * @return the reports that were received after the date-time\r\n * value, and which are visible to the given user.\r\n *\r\n * @throws PersistenceException if there were persistence errors\r\n * fetching the reports.\r\n */\r\n public ReportBaseImpl[] getReportsSince\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;\r\n\r\n /**\r\n * Returns the open orders visible to the given user.\r\n *\r\n * @param user a <code>SimpleUser</code> value\r\n * @return a <code>List&lt;ReportBaseImpl</code> value\r\n * @throws PersistenceException if there were errors retrieving the data\r\n */\r\n public List<ReportBaseImpl> getOpenOrders(SimpleUser user)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the position of the instrument based on all reports\r\n * received for it before or on the supplied date, and which are visible\r\n * to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date to compare with all the reports. Only the reports\r\n * that were received prior to or on this date will be used in this calculation.\r\n * Cannot be null.\r\n * @param instrument the instrument whose position is desired. Cannot be null.\r\n *\r\n * @return the instrument position.\r\n *\r\n * @throws PersistenceException if there were errors retrieving the equity\r\n * position\r\n */\r\n public BigDecimal getPositionAsOf\r\n \t\t(SimpleUser user, Date data, Instrument instrument)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Returns the aggregate position of each (instrument,account,actor)\r\n * tuple based on all reports for given security type\r\n * received for each tuple on or before the supplied date, \r\n * and which are visible to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date to compare with all the reports. Only\r\n * the reports that were received on or prior to this date will be\r\n * used in this calculation. Cannot be null.\r\n * @param securityType the security type. Cannot be null.\r\n *\r\n * @return the position map.\r\n *\r\n * @throws PersistenceException if there were errors retrieving the\r\n * position map.\r\n */\r\n public Map<PositionKey, BigDecimal> getPositionsAsOf\r\n \t\t(SimpleUser user, Date data, SecurityType securityType)\r\n \t\tthrows PersistenceException;\r\n\r\n /**\r\n * Returns the aggregate position of each (instrument,account,actor)\r\n * tuple based on all reports received for each tuple on or before\r\n * the supplied date, and which are visible to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date to compare with all the reports. Only\r\n * the reports that were received on or prior to this date will be\r\n * used in this calculation. Cannot be null.\r\n *\r\n * @return the position map.\r\n *\r\n * @throws PersistenceException if there were errors retrieving the\r\n * position map.\r\n */\r\n public Map<PositionKey, BigDecimal> getAllPositionsAsOf\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Saves the supplied report to the database. Saving may be\r\n * immediate or delayed; in either case the report ID is set\r\n * before this method returns.\r\n *\r\n * @param report the report to be saved. Cannot be null.\r\n *\r\n * @throws PersistenceException if there were errors saving the report.\r\n */\r\n public void saveReport(ReportBase report)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Deletes the supplied report from the database.\r\n *\r\n * @param report a <code>ReportBase</code> value\r\n * @throws PersistenceException if there were errors deleting the report\r\n */\r\n public void deleteReport(ReportBase report)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the history quotes visible to the given dates.\r\n *\r\n * @param instrument The instrument of the request.\r\n * @param inPeriod The period of the quotes.\r\n * @param inFrom The date from which to start in UTC. Cannot be null.\r\n * @param inTo The date to which to stop in UTC. Cannot be null.\r\n * @return a <code>List&lt;Quote</code> value\r\n * @throws PersistenceException if there were errors retrieving the data\r\n */\r\n public List<Quote> getQuoteHistory(Instrument instrument, Period period, \r\n \t\tDate fromDate, Date toDate)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the available instruments supported by the Broker.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n * @throws PersistenceException if there were errors retrieving the instruments\r\n */\r\n public Set<Instrument> getInstruments(BrokerID brokerID)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Gets the supplied instrument info to the database.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n\t * @param instrument a <code>Instrument</code> value\r\n * @throws PersistenceException if there were errors retrieving the info\r\n */\r\n public InstrumentInfo getInstrumentInfo(BrokerID brokerID, Instrument instrument)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Saves/Replaces the supplied instrument info to the database.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n\t * @param instrument a <code>Instrument</code> value\r\n * @param info a <code>InstrumentInfo</code> value\r\n * @throws PersistenceException if there were errors saving the info\r\n */\r\n public void setInstrumentInfo(BrokerID brokerID, Instrument instrument, InstrumentInfo info)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Deletes the instrument info from the database.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n\t * @param instrument a <code>Instrument</code> value\r\n * @throws PersistenceException if there were errors deleting the info\r\n */\r\n public void deleteInstrumentInfo(BrokerID brokerID, Instrument instrument)\r\n \t\tthrows PersistenceException;\r\n\r\n /**\r\n * Gets the root order ID for the given order ID.\r\n *\r\n * @param inOrderID an <code>OrderID</code> value\r\n * @return an <code>OrderID</code> value or <code>null</code>\r\n */\r\n\tpublic OrderID getRootOrderID(OrderID inOrderID)\r\n\t\t\tthrows PersistenceException;\r\n\r\n /**\r\n * Saves the supplied quote to the database. Saving may be\r\n * immediate or delayed;\r\n *\r\n * @param quote the quote to be saved. Cannot be null.\r\n *\r\n * @throws PersistenceException if there were errors saving the quote.\r\n */\r\n public void saveQuote(QuoteEvent quote)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Deletes the supplied quote from the database.\r\n *\r\n * @param quote a <code>QuoteEvent</code> value\r\n * @throws PersistenceException if there were errors deleting the quote\r\n */\r\n\tpublic void deleteQuote(QuoteEvent quote)\r\n\t\t\tthrows PersistenceException;\r\n}", "public JournalArticlePersistence getJournalArticlePersistence() {\n\t\treturn journalArticlePersistence;\n\t}", "public interface DailycarePreseterDao {\n\n public List<Event> getDataFromServer();\n}", "@Override\r\n\tpublic DAOInterface getDAO() {\n\t\treturn new TimeSeriesDAO(context);\r\n\t}", "public InMemoryServiceInstancePersistence() {\n this.serviceInstances = new HashMap<>(); \n }", "public WFMS_NotificationEnginePersistence getWFMS_NotificationEnginePersistence() {\n\t\treturn wfms_NotificationEnginePersistence;\n\t}", "public interface ISmtShippingTemplate {\n List<Map> queryShippingTemplateList(long smtAccountId);\n\n Map queryShippingTemplateDetailMain(long smtAccountId, long templateId);\n\n void saveSmtShippingTemplateList(List<SmtShippingTemplate> li);\n\n void saveSmtShippingTemplate(SmtShippingTemplate sst);\n\n SmtShippingTemplate selectById(long id);\n\n void saveShippingTemplateTask(long smtAccount);\n}", "public interface FlowDAO {\n\n\t/**\n\t * Gets all the records of ETL flows stored in the underlying DB for the\n\t * current version of the system.\n\t *\n\t * @param system\n\t * the system\n\t * @param software\n\t * the software version\n\t * @return all the flows\n\t */\n\tpublic List<Flow> getAll(String system, int software);\n\n\t/**\n\t * Insert a new flow into the underlying DB for the current version of the\n\t * system. Idempotent method.\n\t *\n\t * @param flow\n\t * the flow to insert\n\t * @param system\n\t * the system\n\t * @param software\n\t * the software version\n\t * @return true, if successful\n\t */\n\tpublic boolean save(Flow flow, String system, int software);\n}", "void start() throws PersistenceException;", "public interface DAO {\n\n /* -------------------------------------------------------------------------------\n Helper method to set parser-specific override configuration parameters\n ------------------------------------------------------------------------------- */\n public void setConfiguration(Properties props);\n\n public Properties getConfiguration();\n\n /* -------------------------------------------------------------------------------\n Methods for REPORT FORMAT generation\n ------------------------------------------------------------------------------- */\n\n /**\n * MANDATORY - Must return some experiment title. In case no title\n * is provided by the search enginge's result file, a default title\n * should be returned.\n * @return \n */\n public String getExperimentTitle() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case this option is not supported\n * by the search engine.\n * @return \n */\n public String getExperimentShortLabel();\n\n /**\n * MANDATORY - As a minimal requirement the date of search and the original\n * MS data file format should be set.\n * @return \n */\n public Param getExperimentParams() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public String getSampleName();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public String getSampleComment();\n\n /**\n * MANDATORY - As a minimal requirement the sample's species should be returned.\n * @return \n */\n public Param getSampleParams() throws InvalidFormatException;\n\n /**\n * MANDATORY - Represents the input file for the conversion.\n * @return \n */\n public SourceFile getSourceFile() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Collection<Contact> getContacts();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public InstrumentDescription getInstrument();\n\n /**\n * MANDATORY - The search engine's name and version.\n * @return \n */\n public Software getSoftware() throws InvalidFormatException;\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Param getProcessingMethod();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Protocol getProtocol();\n\n /**\n * OPTIONAL - Should return null in case it's not supported by the search engine.\n * @return \n */\n public Collection<Reference> getReferences();\n\n //these will be written to the FASTA attributes and will be used in the FASTA section\n // if there are multiple sequence files, the search database name will be a string-delimited\n // concatenation of all the names. Idem for version.\n\n /**\n * MANDATORY - these will be written to the FASTA attributes and will be used\n * in the FASTA section if there are multiple sequence files, the search database\n * name will be a string-delimited concatenation of all the names. Idem for version.\n * @return \n */\n public String getSearchDatabaseName() throws InvalidFormatException;\n\n /**\n * MANDATORY - see getSearchDatabaseName\n * @return \n */\n public String getSearchDatabaseVersion() throws InvalidFormatException;\n\n /**\n * MANDATORY - Should return a collection of PTMs representing all PTMs that are used\n * in this search. Collection can be empty but not null.\n * @return \n */\n public Collection<PTM> getPTMs() throws InvalidFormatException;\n\n /**\n * MANDATORY - Should return a collection of DatabaseMappings that contain all search database names and versions\n * used in this search. Collection can be empty but not null.\n * @return \n */\n public Collection<DatabaseMapping> getDatabaseMappings() throws InvalidFormatException;\n\n /**\n * MANDATORY - Must return a valid SearchResultIdenfier object\n * @return \n */\n public SearchResultIdentifier getSearchResultIdentifier() throws InvalidFormatException;\n\n /**\n * MANDATORY - Must return a non-null list of all CV lookups used by the DAO\n * @return \n */\n public Collection<CV> getCvLookup() throws InvalidFormatException;\n\n /**\n * MANDATORY - Must returns a count of the number of spectra. if onlyIdentified is true, return only count\n * of identified spectra. If false, return count of all spectra.\n * @return \n */\n public int getSpectrumCount(boolean onlyIdentified) throws InvalidFormatException;\n\n /* -------------------------------------------------------------------------------\n Methods for XML output\n ------------------------------------------------------------------------------- */\n\n /**\n * returns an iterator for spectra in the source file - if onlyIdentified is true, return only identified\n * spectra. If false, return all spectra\n * @return \n */\n\n public Iterator<Spectrum> getSpectrumIterator(boolean onlyIdentified) throws InvalidFormatException;\n\n /**\n * must return -1 if no spectrum ref found\n * @return \n */\n public int getSpectrumReferenceForPeptideUID(String peptideUID) throws InvalidFormatException;\n\n /**\n * This function provides random access to the identifications.\n * It is only used in scan mode!\n *\n * @param identificationUID\n * @return\n * @throws uk.ac.ebi.pride.tools.converter.utils.InvalidFormatException\n */\n public Identification getIdentificationByUID(String identificationUID) throws InvalidFormatException;\n\n\n /* -------------------------------------------------------------------------------\n Shared methods\n ------------------------------------------------------------------------------- */\n\n /**\n * This method will return an iterator that will return individual identification objects.\n * In prescanMode the complete Identification and Peptide objects should be returned\n * <b>without</b> the peptide's fragment ion annotation. Peptide items have to contain\n * all the PTMs. <br>\n * In conversionMode (= !prescanMode) Peptide and Protein objects should <b>NOT</b> contain\n * any additional parameters and peptidePTMs should <b>NOT</b> be included. Peptide\n * FragmentIon annotations are mandatory (if applicable) in scanMode.\n * The identification iterator may return null for an identification\n * @return \n */\n public Iterator<Identification> getIdentificationIterator(boolean prescanMode) throws InvalidFormatException;\n /**\n * Sets the external spectrum file to the given filename. This function\n * is ignored by DAOs that do not require external spectrum files.\n * @param filename\n */\n public void setExternalSpectrumFile(String filename);\n\n /*\n These handlers need to be passed to the IdentificationIterator so that the identification objects can be properly\n decorated with the requested information, if available.\n */\n\n}", "public interface PersistenceRunner {\n\t/**\n\t * Performs persistence work\n\t * @param persistenceWork JPA unit of work\n\t * @return Executable object to notify completion\n\t */\n\tExecutable run(PersistenceWork persistenceWork);\n}", "public WFMS_Requisition_AuditPersistence getWFMS_Requisition_AuditPersistence() {\n\t\treturn wfms_Requisition_AuditPersistence;\n\t}", "public interface InvitationsDatabaseService extends InvitationsDatabaseServiceSubject, DatabaseService {\n\n /**\n * Create an invitation document for the receiving user's received invitations in\n * this service's provider database.\n *\n * <p>Updates the invitation's ID to that of the newly created document</p>\n * @param invitation the invitation being sent to the user.\n * @return a task containing the result of trying to create the invitation document.\n */\n Task<?> addInvitationForReceivingUser(Invitation invitation);\n\n /**\n * Create an invitation document for the sending user's sent invitations in\n * this service's provider database.\n * @param invitation the invitation being sent by the user.\n * @return a task containing the result of trying to create the invitation document.\n */\n Task<?> addInvitationForSendingUser(Invitation invitation);\n\n /**\n * Update the given invitation's document for the receiving user in this service's provider\n * database.\n * @param invitation the invitation that is being updated. Must have an invitation ID.\n */\n void updateInvitationForReceivingUser(Invitation invitation);\n\n /**\n * Update the given invitation's document for the sending user in this service's provider\n * database.\n * @param invitation the invitation that is being updated. Must have an invitation ID.\n */\n void updateInvitationForSendingUser(Invitation invitation);\n\n /**\n * Query this service's provider database for the given user's received invitations that have\n * {@link InvitationStatus} equal to PENDING.\n * <p>On complete, calls {@link InvitationsDatabaseServiceSubject#notifyObserversPendingInvitations(List)} to\n * notify observers that the invitations are ready to read.</p>\n * @param user\n */\n void getUserPendingInvitations(IUser user);\n void addInvitationsSnapshotListener(IUser user);\n}", "EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }", "public interface WorkflowStorage {\n\n /**\n * Creates the schema in this storage.\n */\n void format();\n \n /**\n * Clears all entries in this storage.\n */\n void clear();\n\n /**\n * Adds a workflow to this storage.\n * \n * @param workflow the workflow to add.\n */\n void addWorkflow(Workflow workflow);\n\n /**\n * Counts the workflows stored in this storage.\n * \n * @return the number of workflows in this storage.\n */\n long countWorkflows();\n\n /**\n * Counts the jobs stored in this storage.\n * \n * @return the number of jobs in this storage.\n */\n long countJobs();\n\n /**\n * Counts jobs that have the specified status.\n * \n * @param status the status of the jobs to count.\n * @return the number of the jobs.\n */\n long countJobsWithStatus(JobStatus status);\n\n /**\n * Returns the job specified by the ID.\n * \n * @param id the identifier of the job.\n * @return retrieved job, never be {@code null}.\n * @throws NoSuchElementException if no job has the specified ID. \n */\n Job findJobById(long id);\n\n List<Job> findJobsByStatus(JobStatus status);\n\n Optional<Job> findFirstJobByStatus(JobStatus status);\n \n /**\n * Returns the status of the job specified by the ID.\n * \n * @param id the identifier of the job.\n * @return the status of the specified job, never be {@code null}.\n * @throws NoSuchElementException if no job has the specified ID. \n */\n JobStatus getJobStatus(long id);\n\n Workflow getWorkflow(long id);\n \n //\n \n List<JobLink> findLinksByTarget(ManagedJob target);\n\n /**\n * Finds next jobs.\n * \n * @param job the source job.\n * @return the list of next jobs, never be {@code null}.\n */\n List<Long> findNextJobs(Job job);\n \n /**\n * Stores the specified job with product of the execution.\n * \n * @param job the job to store.\n * @param status the status of the job after the execution.\n * @param jobOutput the output of the job.\n * @param standardOutput the standard output produced by the execution.\n */\n void storeJob(Job job, JobStatus status, Map<String, Object> jobOutput, String[] standardOutput);\n\n int updateJobStatusIfReady(long jobId);\n}", "public interface DataService extends Serializable {\n\n Collection<Application> getAllApplications();\n void saveApplication(Application a);\n void deleteApplication(long applicationId);\n Application getApplicationById(long applicationId);\n \n Collection<Domain> getAllDomains();\n void saveDomain(Domain r);\n void deleteDomain(long domainId);\n Domain getDomainById(long domainId);\n\n Collection<CodeType> getAllCodeTypes();\n void saveCodeType(CodeType ct);\n void deleteCodeType(long codeTypeId);\n CodeType getCodeTypeById(long codeTypeId);\n\n\n Collection<CodeValue> getAllCodeValues(CodeType codeType);\n void saveCodeValue(CodeValue codeValue);\n void deleteCodeValue(long type,long value);\n CodeValue getCodeValue(long type, long value);\n\n Collection<TextData> getAllTexts();\n void saveText(TextData textData);\n void deleteText(long id);\n TextData getTextById(long id);\n\n Collection<CodeText> getAllCodeTexts();\n void saveCodeText(CodeText codeText);\n void deleteCodeText(long type, long value);\n CodeText getCodeTextByIds(long type, long value);\n\n\n static DataService get() {\n return RestDataService.getInstance();\n }\n\n}", "public final PersistenceManager getPersistenceManager (){\n//\t\tSystem.out.println (\"returning persistent manager for properties \"+\tthis._dataStoreEnvironment.getDataStoreProperties ());\n\t\treturn this.pm;\n\t}", "public interface EntitlementPersistence extends BasePersistence<Entitlement> {\n /*\n * NOTE FOR DEVELOPERS:\n *\n * Never modify or reference this interface directly. Always use {@link EntitlementUtil} to access the entitlement persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n */\n\n /**\n * Caches the entitlement in the entity cache if it is enabled.\n *\n * @param entitlement the entitlement\n */\n public void cacheResult(\n de.fraunhofer.fokus.movepla.model.Entitlement entitlement);\n\n /**\n * Caches the entitlements in the entity cache if it is enabled.\n *\n * @param entitlements the entitlements\n */\n public void cacheResult(\n java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> entitlements);\n\n /**\n * Creates a new entitlement with the primary key. Does not add the entitlement to the database.\n *\n * @param entitlementId the primary key for the new entitlement\n * @return the new entitlement\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement create(\n long entitlementId);\n\n /**\n * Removes the entitlement with the primary key from the database. Also notifies the appropriate model listeners.\n *\n * @param entitlementId the primary key of the entitlement\n * @return the entitlement that was removed\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement remove(\n long entitlementId)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n public de.fraunhofer.fokus.movepla.model.Entitlement updateImpl(\n de.fraunhofer.fokus.movepla.model.Entitlement entitlement, boolean merge)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the entitlement with the primary key or throws a {@link de.fraunhofer.fokus.movepla.NoSuchEntitlementException} if it could not be found.\n *\n * @param entitlementId the primary key of the entitlement\n * @return the entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement findByPrimaryKey(\n long entitlementId)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns the entitlement with the primary key or returns <code>null</code> if it could not be found.\n *\n * @param entitlementId the primary key of the entitlement\n * @return the entitlement, or <code>null</code> if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement fetchByPrimaryKey(\n long entitlementId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns all the entitlements where companyId = &#63;.\n *\n * @param companyId the company ID\n * @return the matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findByc(\n long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the entitlements where companyId = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param companyId the company ID\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @return the range of matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findByc(\n long companyId, int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the entitlements where companyId = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param companyId the company ID\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findByc(\n long companyId, int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the first entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement findByc_First(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns the first entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching entitlement, or <code>null</code> if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement fetchByc_First(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the last entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement findByc_Last(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns the last entitlement in the ordered set where companyId = &#63;.\n *\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching entitlement, or <code>null</code> if a matching entitlement could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement fetchByc_Last(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the entitlements before and after the current entitlement in the ordered set where companyId = &#63;.\n *\n * @param entitlementId the primary key of the current entitlement\n * @param companyId the company ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the previous, current, and next entitlement\n * @throws de.fraunhofer.fokus.movepla.NoSuchEntitlementException if a entitlement with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public de.fraunhofer.fokus.movepla.model.Entitlement[] findByc_PrevAndNext(\n long entitlementId, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.fraunhofer.fokus.movepla.NoSuchEntitlementException;\n\n /**\n * Returns all the entitlements.\n *\n * @return the entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the entitlements.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @return the range of entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findAll(\n int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the entitlements.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of entitlements\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Entitlement> findAll(\n int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Removes all the entitlements where companyId = &#63; from the database.\n *\n * @param companyId the company ID\n * @throws SystemException if a system exception occurred\n */\n public void removeByc(long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Removes all the entitlements from the database.\n *\n * @throws SystemException if a system exception occurred\n */\n public void removeAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of entitlements where companyId = &#63;.\n *\n * @param companyId the company ID\n * @return the number of matching entitlements\n * @throws SystemException if a system exception occurred\n */\n public int countByc(long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of entitlements.\n *\n * @return the number of entitlements\n * @throws SystemException if a system exception occurred\n */\n public int countAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns all the application_ entitlements associated with the entitlement.\n *\n * @param pk the primary key of the entitlement\n * @return the application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Application_Entitlement> getApplication_Entitlements(\n long pk) throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the application_ entitlements associated with the entitlement.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param pk the primary key of the entitlement\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @return the range of application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Application_Entitlement> getApplication_Entitlements(\n long pk, int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the application_ entitlements associated with the entitlement.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n * </p>\n *\n * @param pk the primary key of the entitlement\n * @param start the lower bound of the range of entitlements\n * @param end the upper bound of the range of entitlements (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<de.fraunhofer.fokus.movepla.model.Application_Entitlement> getApplication_Entitlements(\n long pk, int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of application_ entitlements associated with the entitlement.\n *\n * @param pk the primary key of the entitlement\n * @return the number of application_ entitlements associated with the entitlement\n * @throws SystemException if a system exception occurred\n */\n public int getApplication_EntitlementsSize(long pk)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns <code>true</code> if the application_ entitlement is associated with the entitlement.\n *\n * @param pk the primary key of the entitlement\n * @param application_EntitlementPK the primary key of the application_ entitlement\n * @return <code>true</code> if the application_ entitlement is associated with the entitlement; <code>false</code> otherwise\n * @throws SystemException if a system exception occurred\n */\n public boolean containsApplication_Entitlement(long pk,\n long application_EntitlementPK)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns <code>true</code> if the entitlement has any application_ entitlements associated with it.\n *\n * @param pk the primary key of the entitlement to check for associations with application_ entitlements\n * @return <code>true</code> if the entitlement has any application_ entitlements associated with it; <code>false</code> otherwise\n * @throws SystemException if a system exception occurred\n */\n public boolean containsApplication_Entitlements(long pk)\n throws com.liferay.portal.kernel.exception.SystemException;\n}", "public interface ScheduleDao {\r\n\tpublic Schedule createSchedule(Calendar scheduleDate) throws DAOException;\r\n\tpublic Schedule findScheduleById(long scheduleId) throws DAOException;\r\n\tpublic List<Schedule> findSchedulesByDate(Calendar scheduleDate) throws DAOException;\r\n\tpublic List<Schedule> findAllSchedules() throws DAOException;\r\n\tpublic void updateSchedule(long scheduleId, Calendar newScheduleDate) throws DAOException;\r\n\tpublic void deleteScheduleById(long scheduleId) throws DAOException;\r\n\tpublic void deleteAllSchedules() throws DAOException;\r\n}", "public VRpHrStpDAOImpl() {\r\n super();\r\n }", "public FooPersistence getFooPersistence() {\n return fooPersistence;\n }", "public interface SpecimenService\r\n{\r\n static void setInstance(SpecimenService serviceImpl)\r\n {\r\n ServiceRegistry.get().registerService(SpecimenService.class, serviceImpl);\r\n }\r\n\r\n static SpecimenService get()\r\n {\r\n return ServiceRegistry.get().getService(SpecimenService.class);\r\n }\r\n\r\n /** Does a search for matching GlobalUniqueIds */\r\n ParticipantVisit getSampleInfo(Container studyContainer, User user, String globalUniqueId) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Date date) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Double visit) throws SQLException;\r\n\r\n String getCompletionURLBase(Container studyContainer, CompletionType type);\r\n\r\n Set<Pair<String, Date>> getSampleInfo(Container studyContainer, User user, boolean truncateTime) throws SQLException;\r\n\r\n Set<Pair<String, Double>> getSampleInfo(Container studyContainer, User user) throws SQLException;\r\n\r\n Lsid getSpecimenMaterialLsid(@NotNull Container studyContainer, @NotNull String id);\r\n\r\n void importSpecimens(User user, Container container, List<Map<String, Object>> rows, boolean merge) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenImportStrategyFactory(SpecimenImportStrategyFactory factory);\r\n\r\n Collection<SpecimenImportStrategyFactory> getSpecimenImportStrategyFactories();\r\n\r\n void registerSpecimenTransform(SpecimenTransform transform);\r\n\r\n Collection<SpecimenTransform> getSpecimenTransforms(Container container);\r\n\r\n @Nullable\r\n SpecimenTransform getSpecimenTransform(String name);\r\n\r\n PipelineJob createSpecimenReloadJob(Container container, User user, SpecimenTransform transform, @Nullable ActionURL url) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenChangeListener(SpecimenChangeListener listener);\r\n\r\n @Nullable\r\n TableInfo getTableInfoVial(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimen(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimenEvent(Container container);\r\n\r\n SpecimenTablesTemplate getSpecimenTablesTemplate();\r\n\r\n Domain getSpecimenVialDomain(Container container, User user);\r\n\r\n Domain getSpecimenEventDomain(Container container, User user);\r\n\r\n Map<String, String> getSpecimenImporterTsvColumnMap();\r\n\r\n SpecimenRequestCustomizer getRequestCustomizer();\r\n\r\n void registerRequestCustomizer(SpecimenRequestCustomizer customizer);\r\n\r\n /** Hooks to allow other modules to control a few items about how specimens are treated */\r\n interface SpecimenRequestCustomizer\r\n {\r\n /** @return whether or not a specimen request must include at least one vial */\r\n boolean allowEmptyRequests();\r\n\r\n /** @return null if users should always supply a destination site for a given request, or the site's id if they should all be the same */\r\n Integer getDefaultDestinationSiteId();\r\n\r\n /** @return true if reports shouldn't give the option to group based on primary, additive, or derivative types */\r\n boolean omitTypeGroupingsWhenReporting();\r\n\r\n /** @return whether the current user can make changes to the status of the request */\r\n boolean canChangeStatus(User user);\r\n\r\n /** @return true if a variety of warning types including vial status, the inclusion of vials spanning multiple locations, and more should be suppressed in the UI */\r\n boolean hideRequestWarnings();\r\n\r\n /** @return a message to show the user after a request has been submitted */\r\n HtmlString getSubmittedMessage(Container c, int requestId);\r\n }\r\n\r\n interface SampleInfo\r\n {\r\n String getParticipantId();\r\n Double getSequenceNum();\r\n String getSampleId();\r\n }\r\n\r\n enum CompletionType\r\n {\r\n SpecimenGlobalUniqueId,\r\n ParticipantId,\r\n VisitId,\r\n LabId\r\n }\r\n}", "public interface Maintenance\r\n{\r\n}", "public interface EpicsDataDao {\n\n /**\n * Delete all EPICS data for a run from the database.\n *\n * @param run the run number\n */\n public void deleteEpicsData(EpicsType epicsType, int run);\n\n /**\n * Get EPICS data by run.\n *\n * @param run the run number\n * @param epicsType the type of EPICS data (1s or 10s)\n * @return the EPICS data\n */\n List<EpicsData> getEpicsData(EpicsType epicsType, int run);\n\n /**\n * Insert a list of EPICS data into the database.\n * <p>\n * The run number comes from the header information.\n *\n * @param epicsDataList the list of EPICS data\n */\n void insertEpicsData(List<EpicsData> epicsDataList, int run);\n}", "public interface AirlineService {\n\n /**\n * Get a list of all airlines\n *\n * @return - a list of airlines present in database or empty if none\n */\n Iterable<Airline> getAirlines();\n\n}", "public interface IEngineDAO extends ISpagoBIDao{\n\t\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>engineID</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param engineID The id for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByID(Integer engineID) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>engineLabel</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param engineLabel The label for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByLabel(String engineLabel) throws EMFUserError;\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>driver</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param driver The name for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByDriver(String driver) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEngines() throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines in paged way. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines inside the paging logic\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadPagedEnginesList(Integer offset, Integer fetchSize) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines filtered by tenant. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesByTenant() throws EMFUserError;\n\t/**\n\t * Loads all detail information for all engines compatible to the BIObject type specified \n\t * at input and the tenant. For each of them, detail information is stored into an <code>engine</code> object.\n\t * After that, all engines are stored into a <code>List</code>, which is returned.\n\t * \n\t * @param biobjectType the biobject type\n\t * \n\t * @return A list containing all engine objects compatible with the BIObject type passed at input\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesForBIObjectTypeAndTenant(String biobjectType) throws EMFUserError;\n\t/**\n\t * Loads all detail information for all engines compatible to the BIObject type specified\n\t * at input. For each of them, detail information is stored into an <code>engine</code> object.\n\t * After that, all engines are stored into a <code>List</code>, which is returned.\n\t * \n\t * @param biobjectType the biobject type\n\t * \n\t * @return A list containing all engine objects compatible with the BIObject type passed at input\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesForBIObjectType(String biobjectType) throws EMFUserError;\n\t/**\n\t * Implements the query to modify an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all modify information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic void modifyEngine(Engine aEngine) throws EMFUserError;\n\t\n\t/**\n\t * Implements the query to insert an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all insert information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic void insertEngine(Engine aEngine) throws EMFUserError;\n\t\n\t/**\n\t * Implements the query to erase an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all delete information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic void eraseEngine(Engine aEngine) throws EMFUserError;\n\n\t/**\n\t * Tells if an engine is associated to any\n\t * BI Object. It is useful because an engine cannot be deleted\n\t * if it is used by one or more BI Objects.\n\t * \n\t * @param engineId The engine identifier\n\t * \n\t * @return True if the engine is used by one or more\n\t * objects, else false\n\t * \n\t * @throws EMFUserError If any exception occurred\n\t */\n\tpublic boolean hasBIObjAssociated (String engineId) throws EMFUserError;\n\n\n\t/**\n\t * Get all the associated Exporters\n\t * \n\t * @param engineId The engine identifier\n\t * \n\t * @return The list of associated Exporters\n\t * \n\t * @throws EMFUserError If any exception occurred\n\t */\n\tpublic List getAssociatedExporters (Engine engineId) throws EMFUserError;\n\n\t\n\t\n\tpublic Integer countEngines() throws EMFUserError;\n\n}", "public interface PersistenceImplementor {\n public boolean persistObject(Object object);\n\n public boolean persistAllObjects(Object[] objects);\n\n public Object loadObject(String objectID);\n\n public Object[] loadAllObjects();\n}", "public interface DataModelOracleCache {\n\n /**\n * Retrieve the DataModelOracle for the specified Project path. The Path should resolve to a Project.\n * @param project The Path to the Project\n * @return DataModelOracle for the Project\n */\n DataModelOracle getDataModelOracle( Path project );\n\n /**\n * Set the DataModelOracle for the specified Project path. The Path should resolve to a Project.\n * @param project The Path to the Project\n * @param oracle The DataModelOracle for the Project\n */\n void setDataModelOracle( Path project,\n DataModelOracle oracle );\n\n /**\n * Invalidate the entire cache\n */\n void invalidateCache();\n\n /**\n * Invalidate the cache for a specific Project path. The path should resolve to a Project.\n * @param project The Path to the Project\n */\n void invalidateCache( Path project );\n}", "public TWorkTrustDetailDAOImpl() {\n\t\tsuper();\n\t}", "public void loadPersistencePreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean persistent = sharedPreferences.getBoolean(\"TileCachePersistence\", true);\n Log.v(TAG, \"Cache Size: \" + sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT)\n + \", Persistent: \" + persistent);\n int capacity = Math.min(sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT),\n MapsActivity.FILE_SYSTEM_CACHE_SIZE_MAX);\n TileCache fileSystemTileCache = this.mapView.getFileSystemTileCache();\n\n fileSystemTileCache.setPersistent(persistent);\n fileSystemTileCache.setCapacity(capacity);\n // text size\n String textScaleDefault = getString(R.string.preferences_text_scale_default);\n this.mapView.setTextScale(Float.parseFloat(sharedPreferences.getString(\"mapTextScale\", textScaleDefault)));\n }", "public interface ResearchService {\n\n /**\n * Save a research.\n *\n * @param research the entity to save\n * @return the persisted entity\n */\n Research save(Research research);\n\n /**\n * Get all the research.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<Research> findAll(Pageable pageable);\n\n List<ResearchDetail> queryEnabledResearchs(String name, String openId);\n\n /**\n * Get the \"id\" research.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Research findOne(Long id);\n\n /**\n * Delete the \"id\" research.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n\n List<ResearchDetail> queryMyResearchs(String openId);\n}", "DataStore getDataStore ();", "public interface VolunteerworkService {\n Iterable<Volunteerwork> listAllVolunteerworks();\n\n Volunteerwork getVolunteerworkById(Integer id);\n\n Volunteerwork saveVolunteerwork(Volunteerwork volunteerwork);\n}", "public interface DatabaseInteractor {\n\n long persistEvent(Event event);\n\n ArrayList<Event> getActiveEvents(String filter, int offset);\n\n ArrayList<Event> getAllEvents();\n\n ArrayList<Event> getActiveEventsOnDate(String timestamp);\n\n ArrayList<Event> getActiveEventsByLocation(String latitude, String longitude, String locationName);\n\n ArrayList<Event> getSavedEvents(String filter);\n\n ArrayList<Event> getSavedEventsInNext24Hours(String timestamp);\n\n ArrayList<Event> getActiveEventsByCategory(@Event.Category int categoryId, String filter);\n\n Event getEventById(long eventId);\n\n void setSavedStateOfEvent(Event event, boolean isSaved);\n\n long persistPlace(Place place);\n\n void persistPlaces(ArrayList<Place> places);\n\n ArrayList<Place> getPlaces(String filter);\n\n Place getPlaceById(long placeId);\n\n /**\n * Deletes all events older than two months, and all places\n * */\n void cleanUpEventsAndPlaces();\n\n void changeSaveEvent(Event event, boolean isEventSaved);\n}", "public interface DBConfig_I {\r\n\r\n /**\r\n * Dateformat the user sends<br/>\r\n * If the DAO receives a DTO that has a column of type DATE/TIMESTAMP\r\n * then it looks up this format to \"know\" the syntax.\r\n * \r\n * @return Java Dateformat\r\n */\r\n public String getGUIDateFormat();\r\n \r\n/**\r\n * This is how the SQL database wants a date to be<br/>\r\n * This depends on the datasource one is using.<br/>\r\n * And it only applies, if one uses a String coded Date,\r\n * recommended is *always* to use a PreparedStatement and a\r\n * setDate()<br/>\r\n * \r\n * @return format of the SQL date\r\n */\r\n public String getSQLDateFormat();\r\n \r\n /**\r\n * User set a Timestamp (as String) inside a DTO<br/>\r\n * \r\n * @return Java Dateformat \r\n */\r\n \r\n public String getGUITimestampFormat();\r\n \r\n/**\r\n * This is how the database \"wants\" a Timestamp in String representation\r\n * \r\n * @return sql timestamp format, *very* database and country dependend...\r\n */\r\n public String getSQLTimestampFormat();\r\n \r\n public String getSQLTimestampFormatQuery();\r\n \r\n/**\r\n * java.sql.Connection\r\n * \r\n * For each instance of this class -> only one connection\r\n * \r\n * This means every call to \"getConnection\" will return the *same*\r\n * Connection object.\r\n * \r\n * This saves massively ressources, but has some other severe drawbacks!\r\n * \r\n * @return instance of java.sql.Connection\r\n */\r\n public Connection getConnection();\r\n \r\n public String getDatabaseType();\r\n \r\n/**\r\n * Class that creates a unique primary key<br/>\r\n * \r\n * Needed, since almost every database has its own mechanism\r\n * to provide a unique numeric value (Autonum, Sequence...)\r\n * \r\n * @return fully qualified classname of the primary key creator\r\n */\r\n public String getPKCClass();\r\n \r\n}", "private DataService() {\n\t\tusers = new LinkedHashSet<>();\n\t\tlists = new LinkedHashSet<>();\n\t\ttasks = new LinkedHashMap<>();\n\t\tdbManager = DBManager.getInstance();\n\t\tdbManager.initialize();\n\t\tusers = dbManager.getUsers();\n\n\t\toutputFile = System.getProperty(\"user.dir\")+\"/output/\"+Calendar.getInstance().getTimeInMillis()+\"_Output.txt\";\n\t}", "@Override\n public void showDiaryFromDB() {\n diaryPresenter.showDiaryFromDB();\n }", "public interface MnemeService\n{\n\t/** The type string for this application: should not change over time as it may be stored in various parts of persistent entities. */\n\tstatic final String APPLICATION_ID = \"sakai:mneme\";\n\n\t/** Event tracking event for deleting an assessment. */\n\tstatic final String ASSESSMENT_DELETE = \"mneme.assessment.delete\";\n\n\t/** Event tracking event for changing an assessment. */\n\tstatic final String ASSESSMENT_EDIT = \"mneme.assessment.edit\";\n\n\t/** Event tracking event for creating an assessment. */\n\tstatic final String ASSESSMENT_NEW = \"mneme.assessment.new\";\n\n\t/** Event tracking event for publishing an assessment. */\n\tstatic final String ASSESSMENT_PUBLISH = \"mneme.assessment.publish\";\n\n\t/** The sub-type for assessment in references (/mneme/assessment/...) */\n\tstatic final String ASSESSMENT_TYPE = \"assessment\";\n\n\t/** Event tracking event for un-publishing an assessment. */\n\tstatic final String ASSESSMENT_UNPUBLISH = \"mneme.assessment.unpublish\";\n\n\t/** The security function used to check if users can setup a formal course evaluation. */\n\tstatic final String COURSE_EVAL_PERMISSION = \"mneme.course.eval\";\n\n\t/** Event tracking event for download submissions for question. */\n\tstatic final String DOWNLOAD_SQ = \"mneme.download.sq\";\n\n\t/** The number of ms we allow answers and completions of submissions after hard deadlines. */\n\tstatic final long GRACE = 2 * 60 * 1000;\n\n\t/** The security function used to check if users can grade tests. */\n\tstatic final String GRADE_PERMISSION = \"mneme.grade\";\n\n\t/** The security function used to check if users have guest access. */\n\tstatic final String GUEST_PERMISSION = \"mneme.guest\";\n\n\t/** The security function used to check if users can manage tests. */\n\tstatic final String MANAGE_PERMISSION = \"mneme.manage\";\n\n\t/** Event tracking event for deleting a pool. */\n\tstatic final String POOL_DELETE = \"mneme.pool.delete\";\n\n\t/** Event tracking event for changing a pool. */\n\tstatic final String POOL_EDIT = \"mneme.pool.edit\";\n\n\t/** Event tracking event for creating a pool. */\n\tstatic final String POOL_NEW = \"mneme.pool.new\";\n\n\t/** The sub-type for pool in references (/mneme/pool/...) */\n\tstatic final String POOL_TYPE = \"pool\";\n\n\t/** Event tracking event for deleting a question. */\n\tstatic final String QUESTION_DELETE = \"mneme.question.delete\";\n\n\t/** Event tracking event for changing a question. */\n\tstatic final String QUESTION_EDIT = \"mneme.question.edit\";\n\n\t/** Event tracking event for creating a question. */\n\tstatic final String QUESTION_NEW = \"mneme.question.new\";\n\n\t/** The sub-type for question in references (/mneme/question/...) */\n\tstatic final String QUESTION_TYPE = \"question\";\n\n\t/** This string starts the references to resources in this service. */\n\tstatic final String REFERENCE_ROOT = \"/mneme\";\n\n\t/** Event tracking event for adding a submission. */\n\tstatic final String SUBMISSION_ADD = \"mneme.submit\";\n\n\t/** Event tracking event for answering a question in a submission. */\n\tstatic final String SUBMISSION_ANSWER = \"mneme.answer\";\n\n\t/** Event tracking event for the system automatically completing a submission. */\n\tstatic final String SUBMISSION_AUTO_COMPLETE = \"mneme.auto_complete\";\n\n\t/** Event tracking event for completing a submission. */\n\tstatic final String SUBMISSION_COMPLETE = \"mneme.complete\";\n\n\t/** Event tracking event for re-entering a submission. */\n\tstatic final String SUBMISSION_CONTINUE = \"mneme.continue\";\n\n\t/** Event tracking event for entering a submission. */\n\tstatic final String SUBMISSION_ENTER = \"mneme.enter\";\n\n\t/** Event tracking event for grading a submission. */\n\tstatic final String SUBMISSION_GRADE = \"mneme.grade\";\n\n\t/** Event tracking event for reviewing a submission. */\n\tstatic final String SUBMISSION_REVIEW = \"mneme.review\";\n\n\t/** The sub-type for submissions in references (/mneme/submission/...) */\n\tstatic final String SUBMISSION_TYPE = \"submission\";\n\n\t/** The security function used to check if users can submit to an assessment. */\n\tstatic final String SUBMIT_PERMISSION = \"mneme.submit\";\n\n\t/**\n\t * Find a question plugin for this question type.\n\t * \n\t * @param type\n\t * The question type.\n\t * @return The question plugin for this question type, or null if none found.\n\t */\n\tQuestionPlugin getQuestionPlugin(String type);\n\n\t/**\n\t * Access all the quesiton plugins, sorted by the (localized) type name.\n\t * \n\t * @return A List of all the quesiton plugins, sorted by the (localized) type name.\n\t */\n\tList<QuestionPlugin> getQuestionPlugins();\n\n\t/**\n\t * Register a question plugin.\n\t * \n\t * @param plugin\n\t * The question plugin.\n\t */\n\tvoid registerQuestionPlugin(QuestionPlugin plugin);\n}" ]
[ "0.62203753", "0.6058898", "0.57943094", "0.57886004", "0.57736945", "0.5713602", "0.56654286", "0.5652257", "0.56057245", "0.5533603", "0.5532094", "0.5527069", "0.55216193", "0.5470612", "0.5455447", "0.545227", "0.5439788", "0.5433643", "0.54168177", "0.54103273", "0.5388021", "0.5384867", "0.53821725", "0.5380995", "0.5380427", "0.5378288", "0.5344755", "0.53370184", "0.53257465", "0.53146887", "0.53127635", "0.5310747", "0.53103817", "0.5299829", "0.5290585", "0.52896893", "0.5284205", "0.52757776", "0.52757424", "0.52438974", "0.52134895", "0.5211801", "0.5208755", "0.52060276", "0.51960206", "0.5193919", "0.5173232", "0.51726264", "0.5172077", "0.51662856", "0.5161724", "0.51541", "0.51508874", "0.51490337", "0.5147682", "0.514754", "0.51444477", "0.51418567", "0.5134022", "0.5131508", "0.51269525", "0.51187193", "0.5114228", "0.51120985", "0.51110744", "0.5107291", "0.51018673", "0.5095009", "0.5094526", "0.50925905", "0.5082285", "0.50782377", "0.5073528", "0.5072874", "0.5069626", "0.5068917", "0.50620824", "0.50602525", "0.50581545", "0.50492483", "0.50479484", "0.5047492", "0.50457245", "0.5045253", "0.50427794", "0.503839", "0.50379246", "0.5037669", "0.5036061", "0.5029414", "0.50234455", "0.50068", "0.5003806", "0.5003804", "0.49926296", "0.49886975", "0.49843857", "0.49800435", "0.49798653", "0.4978053" ]
0.6745345
0
Returns the interview schedule where vacancyCandidateId = &63; and interviewId = &63; or returns null if it could not be found. Uses the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Util\n public static Interview safeGetInProgressInterview(){\n \t\n \tInterview interview;\n\t\ttry {\n\t\t\tinterview = getInProgressInterview();\n\t\t} catch (CacheMiss e) {\n\t\t\tinterview = createInProgressInterview();\n\t\t}\n\n return interview;\n }", "WorkingSchedule getById(Long workingScheduleId);", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }", "com.google.ads.googleads.v6.resources.AdScheduleView getAdScheduleView();", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "@Util\n public static Interview setInProgressInterview(Interview interview, InProgressInterviewContext context){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce = EntityCache.savePrivate(interview, context, Interview.class);\n \tif (ce != null){\n \t\treturn ce.getEntity();\n \t}\n \treturn null;\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "SportActivity findById(Long id);", "@RequestMapping(\"/Scheduling/findById\")\r\n\t@ResponseBody\r\n\tpublic Optional<Scheduling> findById(long scheduleId) {\r\n\t\treturn schedulingService.findById(scheduleId);\r\n\t}", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public static CourseBean getCourseById(int scheduleId) {\n\n\t\tString sql = FavoriteColumns.ID + \"=\" + scheduleId;\n\n\t\tCourseBean bean = new CourseBean();\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tDatabaseHelper dbHelper = DatabaseHelper.getInstance(MainApplication.sContext);\n\t\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\t\tc = db.query(DBConst.TABLE_COURSE_FAVORITE, null, sql, null, null, null, null);\n\t\t\tif (c.moveToNext()) {\n\t\t\t\tbean.setId(scheduleId);\n\t\t\t\tbean.setClubId(c.getInt(c.getColumnIndex(CourseColumns.CLUB_ID)));\n\t\t\t\tbean.setClassId(c.getInt(c.getColumnIndex(CourseColumns.CLASS_ID)));\n\t\t\t\tbean.setClassName(c.getString(c.getColumnIndex(CourseColumns.CLASS_NAME)));\n\t\t\t\tbean.setClassRoomId(c.getInt(c.getColumnIndex(CourseColumns.CLASSROOM_ID)));\n\t\t\t\tbean.setClassRoomName(c.getString(c.getColumnIndex(CourseColumns.CLASSROOM_NAME)));\n\t\t\t\tbean.setCoachId(c.getInt(c.getColumnIndex(CourseColumns.COACH_ID)));\n\t\t\t\tbean.setCoachName(c.getString(c.getColumnIndex(CourseColumns.COACH_NAME)));\n\t\t\t\tbean.setStartTime(c.getString(c.getColumnIndex(CourseColumns.START_TIME)));\n\t\t\t\tbean.setBackgroundColor(c.getString(c.getColumnIndex(CourseColumns.BACKGROUND_COLOR)));\n\t\t\t\tbean.setScheduleDate(c.getString(c.getColumnIndex(CourseColumns.SCHEDULE_DATE)));\n\t\t\t\tbean.setEndTime(c.getString(c.getColumnIndex(CourseColumns.END_TIME)));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\n\t\treturn bean;\n\t}", "Schedule selectByPrimaryKey(Integer id);", "public Election getElectionDay() {\t\t\r\n\t\tOptional<Election> election = null;\r\n\t\tList<Election> electionList = DataDAO.getElectionList();\r\n\t\telection = electionList.stream().filter(e -> e.getElectionDate().equals(DateUtil.asDate(LocalDate.now()))).findFirst();\r\n\t\tif (election.isPresent()) {\r\n\t\t\treturn election.get();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "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 }", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "@Override\n\tpublic void cacheResult(List<InterviewSchedule> interviewSchedules) {\n\t\tfor (InterviewSchedule interviewSchedule : interviewSchedules) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tInterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class,\n\t\t\t\t\t\tinterviewSchedule.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinterviewSchedule.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "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 }", "public ClinicPrefs find(String clinicIen, String facilityNo) {\r\n \t\r\n \tQuery query = super.entityManager.createNamedQuery(QUERY_FIND_PREFS);\r\n\t query.setParameter(\"clinicIen\", clinicIen);\r\n\t query.setParameter(\"facilityNo\", facilityNo);\r\n\r\n\t query.setMaxResults(1);\r\n\t \r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t List<ClinicPrefs> list = query.getResultList();\r\n\r\n\t\tif (list == null || list.size() == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn list.get(0);\r\n\t}", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "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}", "public interface ScheduleService {\n\n Optional<Schedule> findScheduleByScheduleId(long scheduleId);\n\n List<Schedule> findSchedulesByCinemaIdAndMovieId(long cinemaId, long movieId);\n\n List<Schedule> findSchedulesByCinemaId(long cinemaId);\n\n}", "public CMSVacationRequest findVacationRequest (String ssn) throws Exception {\n try {\n this.fireWorkInProgressEvent(true);\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } catch (DowntimeException ex) {\n LoggingServices.getCurrent().logMsg(getClass().getName(),\"findVacationRequest\",\n \"Primary Implementation for CMSFormServices failed, going Off-Line...\",\n \"See Exception\", LoggingServices.MAJOR, ex);\n offLineMode();\n setOffLineMode();\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } finally {\n this.fireWorkInProgressEvent(false);\n }\n }", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "com.google.ads.googleads.v6.resources.AdScheduleViewOrBuilder getAdScheduleViewOrBuilder();", "@Override\n\tpublic Reservation findById(Integer id) {\n\t\treturn null;\n\t}", "public Vehicle getVehicle(int contractId) {\n int idx = this.findVehicle(contractId);\n if (idx == -1) {\n return null;\n } else {\n return this.vehicles.get(idx);\n }\n }", "@RequestMapping(method = RequestMethod.GET, value=\"/findSchedule\")\n public ResponseEntity<?> findSchedule(@RequestParam(value=\"idSchedule\") int idSchedule){\n try{\n Schedule schedule = scheduleService.findSchedule(idSchedule);\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n }", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "@GetMapping(\"/Appointment/confirmed/{id}\")\n public Optional<Appointment> findConfirmedAppointment(@PathVariable(name=\"id\")Integer SessionId, Authentication authentication)\n {\n\n return providerServiceImpl.findConfirmedAppointment(SessionId, authentication.getName());\n\n }", "public T caseSeasonDayTypeSchedule(SeasonDayTypeSchedule object) {\n\t\treturn null;\n\t}", "Optional<InterviewEventDTO> findOne(Long id);", "@Override\n\tpublic InterviewSchedule create(long interviewScheduleId) {\n\t\tInterviewSchedule interviewSchedule = new InterviewScheduleImpl();\n\n\t\tinterviewSchedule.setNew(true);\n\t\tinterviewSchedule.setPrimaryKey(interviewScheduleId);\n\n\t\treturn interviewSchedule;\n\t}", "@Override\n public Tournament tournamentStatus(String id) {\n return Optional.ofNullable(tournamentCache.get(id))\n .orElseThrow(TournamentNotFoundException::new);\n }", "public Schedule getScheduleForSelectedStopAndRoute(String route, int direction, int stopId){\n Schedule selectedStopSchedule = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND stops._id = \" + stopId + \" \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n selectedStopSchedule.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return selectedStopSchedule;\r\n }", "public Candidate getCandidate() {\n\t\tif (candidate == null) {\n\t\t\tsetCandidate(findCandidate(getPlacement().getCandidate().getId()));\n\t\t}\n\t\treturn candidate;\n\t}", "@Test\r\n\tpublic void testPendingInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.candidatePendingInterviewApproval(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.pendingInterviewApprovalList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/getpenddingapproval/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Override\r\n public Conference findConference(String name) {\r\n try {\r\n Query query = em.createQuery(\r\n \"SELECT c FROM Conference c\"\r\n + \" WHERE c.name = :name\");\r\n query.setParameter(\"name\", name);\r\n List resultList = query.getResultList();\r\n return (Conference) resultList.get(0);\r\n } catch (Exception e) {\r\n }\r\n return null;\r\n }", "@Override\n\tpublic EmployeeReferal fetchResume(int job_vacancy_id) throws CustomException {\n\n\t\tEmployeeReferal employeeReferal = employeeReferalRepository.findOne(job_vacancy_id);\n\t\tif (Objects.isNull(employeeReferal)) {\n\t\t\tthrow new CustomException(204, \"Sorry, file not found!\");\n\t\t}\n\n\t\treturn employeeReferal;\n\t}", "public Schedule getSchedule() {\n\n Schedule sched = new Schedule();\n\n if (m_startDate.getDate() != null) {\n sched.setStartDate(m_startDate.getDate());\n } else {\n return null; // execute unscheduled (right now)\n }\n if (m_endDate.getDate() != null) {\n sched.setEndDate(m_endDate.getDate());\n }\n\n m_repeat.applyToSchedule(sched);\n\n return sched;\n }", "@Util\n public static CachedEntity<Interview, InProgressInterviewContext> safeGetInProgressInterviewEntity(){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce;\n\t\ttry {\n\t\t\tce = getInProgressInterviewEntity();\n\t\t} catch (CacheMiss e) {\n\t\t\tInterview interview = createInProgressInterview();\n\t\t\tce = new CachedEntity<Interview, InProgressInterviewContext>(interview,null);\n\t\t}\n\n return ce;\n }", "@Override\n\tpublic Appointment getAppointmentById(Integer id) {\n\t\t\t\tAppointment foundAppointment = ar.getOne(id);\n\t\t\t\tif(foundAppointment != null) {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" found\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" not found\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn foundAppointment;\n\t}", "@Override\n public List<ScheduledInterview> getForPerson(String userId) {\n List<ScheduledInterview> relevantInterviews = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n scheduledInterviews.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (userId.equals(scheduledInterview.interviewerId())\n || userId.equals(scheduledInterview.intervieweeId())\n || userId.equals(scheduledInterview.shadowId())) {\n relevantInterviews.add(scheduledInterview);\n }\n }\n return relevantInterviews;\n }", "public Schedule get(String arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Candidate fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tCandidate candidate = (Candidate)EntityCacheUtil.getResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\tif (candidate == _nullCandidate) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (candidate == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tcandidate = (Candidate)session.get(CandidateImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (candidate != null) {\n\t\t\t\t\tcacheResult(candidate);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, primaryKey, _nullCandidate);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn candidate;\n\t}", "public Incident findIncidentLazyInitialized(long id);", "Optional<MovieCinema> findById(Long id);", "public static Residence findByTenant() {\n\n\t\tTenant tenant = Tenants.getCurrentTenant();\n\n\t\tList<Residence> residences = Residence.findAll();\n\t\t\n\t\t//check residence tenant is same as logged in tenant \n\t\tfor (Residence r : residences) {\n\t\t\tif (r.tenant == tenant) {\n\t\t\t\treturn r;\n\t\t\t}\n\t\t}\n\t\t//return null if no residence found for current tenant \n\t\treturn null;\n\t}", "Planning findByplanningId(long planningId);", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic VcmsPortion fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tVcmsPortion vcmsPortion = (VcmsPortion)serializable;\n\n\t\tif (vcmsPortion == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tvcmsPortion = (VcmsPortion)session.get(VcmsPortionImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (vcmsPortion != null) {\n\t\t\t\t\tcacheResult(vcmsPortion);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVcmsPortionImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn vcmsPortion;\n\t}" ]
[ "0.76287687", "0.74884117", "0.71416074", "0.71087176", "0.70367867", "0.6875366", "0.6666186", "0.64239234", "0.6272647", "0.6269513", "0.61935", "0.60946083", "0.6016572", "0.59291965", "0.5884418", "0.58653677", "0.5856119", "0.5822136", "0.57815117", "0.5671435", "0.56617934", "0.5606993", "0.5557135", "0.55486727", "0.55289096", "0.53372777", "0.5333269", "0.5285945", "0.5062009", "0.5046973", "0.5045397", "0.49566606", "0.49358934", "0.48836422", "0.4858266", "0.48524836", "0.47698703", "0.47503245", "0.46523163", "0.46482432", "0.46348438", "0.4605345", "0.45617732", "0.45252523", "0.4522643", "0.44940913", "0.44899574", "0.44666865", "0.44407594", "0.44336167", "0.43843552", "0.4379735", "0.4371488", "0.4365988", "0.43596682", "0.43572408", "0.4351237", "0.43477368", "0.43383083", "0.4328067", "0.4319622", "0.4311242", "0.4290472", "0.42787585", "0.42646497", "0.42591664", "0.42568994", "0.4254083", "0.42464423", "0.42438212", "0.42409185", "0.4224073", "0.42219567", "0.42184", "0.4180347", "0.41766056", "0.41710308", "0.41687864", "0.4155634", "0.41499203", "0.41478318", "0.41367346", "0.4135674", "0.41301516", "0.41176683", "0.4117359", "0.4116892", "0.41058567", "0.4087051", "0.40860707", "0.40847802", "0.40787482", "0.4077558", "0.40748212", "0.4061243", "0.40599388", "0.4056963", "0.40563455", "0.40546373", "0.40427142" ]
0.75181574
1
Returns the interview schedule where vacancyCandidateId = &63; and interviewId = &63; or returns null if it could not be found, optionally using the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Util\n public static Interview safeGetInProgressInterview(){\n \t\n \tInterview interview;\n\t\ttry {\n\t\t\tinterview = getInProgressInterview();\n\t\t} catch (CacheMiss e) {\n\t\t\tinterview = createInProgressInterview();\n\t\t}\n\n return interview;\n }", "WorkingSchedule getById(Long workingScheduleId);", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }", "@Util\n public static Interview setInProgressInterview(Interview interview, InProgressInterviewContext context){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce = EntityCache.savePrivate(interview, context, Interview.class);\n \tif (ce != null){\n \t\treturn ce.getEntity();\n \t}\n \treturn null;\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "SportActivity findById(Long id);", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "com.google.ads.googleads.v6.resources.AdScheduleView getAdScheduleView();", "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public interface ScheduleService {\n\n Optional<Schedule> findScheduleByScheduleId(long scheduleId);\n\n List<Schedule> findSchedulesByCinemaIdAndMovieId(long cinemaId, long movieId);\n\n List<Schedule> findSchedulesByCinemaId(long cinemaId);\n\n}", "@RequestMapping(\"/Scheduling/findById\")\r\n\t@ResponseBody\r\n\tpublic Optional<Scheduling> findById(long scheduleId) {\r\n\t\treturn schedulingService.findById(scheduleId);\r\n\t}", "public CMSVacationRequest findVacationRequest (String ssn) throws Exception {\n try {\n this.fireWorkInProgressEvent(true);\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } catch (DowntimeException ex) {\n LoggingServices.getCurrent().logMsg(getClass().getName(),\"findVacationRequest\",\n \"Primary Implementation for CMSFormServices failed, going Off-Line...\",\n \"See Exception\", LoggingServices.MAJOR, ex);\n offLineMode();\n setOffLineMode();\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } finally {\n this.fireWorkInProgressEvent(false);\n }\n }", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public ClinicPrefs find(String clinicIen, String facilityNo) {\r\n \t\r\n \tQuery query = super.entityManager.createNamedQuery(QUERY_FIND_PREFS);\r\n\t query.setParameter(\"clinicIen\", clinicIen);\r\n\t query.setParameter(\"facilityNo\", facilityNo);\r\n\r\n\t query.setMaxResults(1);\r\n\t \r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t List<ClinicPrefs> list = query.getResultList();\r\n\r\n\t\tif (list == null || list.size() == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn list.get(0);\r\n\t}", "List<WorkingSchedule> getByPlaceId(Long placeId);", "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 }", "Schedule selectByPrimaryKey(Integer id);", "public Election getElectionDay() {\t\t\r\n\t\tOptional<Election> election = null;\r\n\t\tList<Election> electionList = DataDAO.getElectionList();\r\n\t\telection = electionList.stream().filter(e -> e.getElectionDate().equals(DateUtil.asDate(LocalDate.now()))).findFirst();\r\n\t\tif (election.isPresent()) {\r\n\t\t\treturn election.get();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "@GetMapping(\"/Appointment/confirmed/{id}\")\n public Optional<Appointment> findConfirmedAppointment(@PathVariable(name=\"id\")Integer SessionId, Authentication authentication)\n {\n\n return providerServiceImpl.findConfirmedAppointment(SessionId, authentication.getName());\n\n }", "public static CourseBean getCourseById(int scheduleId) {\n\n\t\tString sql = FavoriteColumns.ID + \"=\" + scheduleId;\n\n\t\tCourseBean bean = new CourseBean();\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tDatabaseHelper dbHelper = DatabaseHelper.getInstance(MainApplication.sContext);\n\t\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\t\tc = db.query(DBConst.TABLE_COURSE_FAVORITE, null, sql, null, null, null, null);\n\t\t\tif (c.moveToNext()) {\n\t\t\t\tbean.setId(scheduleId);\n\t\t\t\tbean.setClubId(c.getInt(c.getColumnIndex(CourseColumns.CLUB_ID)));\n\t\t\t\tbean.setClassId(c.getInt(c.getColumnIndex(CourseColumns.CLASS_ID)));\n\t\t\t\tbean.setClassName(c.getString(c.getColumnIndex(CourseColumns.CLASS_NAME)));\n\t\t\t\tbean.setClassRoomId(c.getInt(c.getColumnIndex(CourseColumns.CLASSROOM_ID)));\n\t\t\t\tbean.setClassRoomName(c.getString(c.getColumnIndex(CourseColumns.CLASSROOM_NAME)));\n\t\t\t\tbean.setCoachId(c.getInt(c.getColumnIndex(CourseColumns.COACH_ID)));\n\t\t\t\tbean.setCoachName(c.getString(c.getColumnIndex(CourseColumns.COACH_NAME)));\n\t\t\t\tbean.setStartTime(c.getString(c.getColumnIndex(CourseColumns.START_TIME)));\n\t\t\t\tbean.setBackgroundColor(c.getString(c.getColumnIndex(CourseColumns.BACKGROUND_COLOR)));\n\t\t\t\tbean.setScheduleDate(c.getString(c.getColumnIndex(CourseColumns.SCHEDULE_DATE)));\n\t\t\t\tbean.setEndTime(c.getString(c.getColumnIndex(CourseColumns.END_TIME)));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\n\t\treturn bean;\n\t}", "Optional<InterviewEventDTO> findOne(Long id);", "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}", "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "@RequestMapping(method = RequestMethod.GET, value=\"/findSchedule\")\n public ResponseEntity<?> findSchedule(@RequestParam(value=\"idSchedule\") int idSchedule){\n try{\n Schedule schedule = scheduleService.findSchedule(idSchedule);\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n }", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "@Override\n\tpublic void cacheResult(List<InterviewSchedule> interviewSchedules) {\n\t\tfor (InterviewSchedule interviewSchedule : interviewSchedules) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tInterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class,\n\t\t\t\t\t\tinterviewSchedule.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinterviewSchedule.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "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 }", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "com.google.ads.googleads.v6.resources.AdScheduleViewOrBuilder getAdScheduleViewOrBuilder();", "@Override\n\tpublic Reservation findById(Integer id) {\n\t\treturn null;\n\t}", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "@Override\r\n public Conference findConference(String name) {\r\n try {\r\n Query query = em.createQuery(\r\n \"SELECT c FROM Conference c\"\r\n + \" WHERE c.name = :name\");\r\n query.setParameter(\"name\", name);\r\n List resultList = query.getResultList();\r\n return (Conference) resultList.get(0);\r\n } catch (Exception e) {\r\n }\r\n return null;\r\n }", "Optional<MovieCinema> findById(Long id);", "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\r\n\tpublic void testPendingInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.candidatePendingInterviewApproval(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.pendingInterviewApprovalList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/getpenddingapproval/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Override\n\tpublic EmployeeReferal fetchResume(int job_vacancy_id) throws CustomException {\n\n\t\tEmployeeReferal employeeReferal = employeeReferalRepository.findOne(job_vacancy_id);\n\t\tif (Objects.isNull(employeeReferal)) {\n\t\t\tthrow new CustomException(204, \"Sorry, file not found!\");\n\t\t}\n\n\t\treturn employeeReferal;\n\t}", "public T caseSeasonDayTypeSchedule(SeasonDayTypeSchedule object) {\n\t\treturn null;\n\t}", "@Override\n public Tournament tournamentStatus(String id) {\n return Optional.ofNullable(tournamentCache.get(id))\n .orElseThrow(TournamentNotFoundException::new);\n }", "@GetMapping(\"/getCandidate/{id}\")\n\tpublic Optional<JobProcessDetails> getCandidate(@PathVariable Long id){\n\t\t\n\t\treturn jobProcessRepo.findById(id);\n\t\n\t}", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "public int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public Vehicle getVehicle(int contractId) {\n int idx = this.findVehicle(contractId);\n if (idx == -1) {\n return null;\n } else {\n return this.vehicles.get(idx);\n }\n }", "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic Candidate fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tCandidate candidate = (Candidate)EntityCacheUtil.getResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\tif (candidate == _nullCandidate) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (candidate == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tcandidate = (Candidate)session.get(CandidateImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (candidate != null) {\n\t\t\t\t\tcacheResult(candidate);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, primaryKey, _nullCandidate);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn candidate;\n\t}", "@Override\n\tpublic InterviewSchedule create(long interviewScheduleId) {\n\t\tInterviewSchedule interviewSchedule = new InterviewScheduleImpl();\n\n\t\tinterviewSchedule.setNew(true);\n\t\tinterviewSchedule.setPrimaryKey(interviewScheduleId);\n\n\t\treturn interviewSchedule;\n\t}", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n public List<ScheduledInterview> getForPerson(String userId) {\n List<ScheduledInterview> relevantInterviews = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n scheduledInterviews.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (userId.equals(scheduledInterview.interviewerId())\n || userId.equals(scheduledInterview.intervieweeId())\n || userId.equals(scheduledInterview.shadowId())) {\n relevantInterviews.add(scheduledInterview);\n }\n }\n return relevantInterviews;\n }", "public Incident findIncidentLazyInitialized(long id);", "public Schedule getScheduleForSelectedStopAndRoute(String route, int direction, int stopId){\n Schedule selectedStopSchedule = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND stops._id = \" + stopId + \" \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n selectedStopSchedule.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return selectedStopSchedule;\r\n }", "Planning findByplanningId(long planningId);", "public Schedule get(String arg0) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Appointment getAppointmentById(Integer id) {\n\t\t\t\tAppointment foundAppointment = ar.getOne(id);\n\t\t\t\tif(foundAppointment != null) {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" found\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" not found\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn foundAppointment;\n\t}", "public Comment getComment(VitalParticipant participant) {\n try {\n\t\t\tLong id = participant.getId();\n\t\t\tIterator iter = this.comments.iterator();\n\t\t\twhile(iter.hasNext()) {\n\t\t\t\tComment c = (Comment) iter.next();\n\t\t\t\tif (c.getParticipant().getId() == id) return c;\n\t\t\t}\n } catch(Exception e) {\n\t\t\tlogger.warn(\"getComment for VitalParticipant threw \" + e);\n\t\t}\n\t\treturn null;\n }", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;" ]
[ "0.75136185", "0.74583435", "0.7101648", "0.707439", "0.7067182", "0.681978", "0.6693943", "0.6378041", "0.62986964", "0.62050325", "0.6118211", "0.61102223", "0.60681", "0.5893935", "0.58339345", "0.5811169", "0.5798133", "0.5692592", "0.56874865", "0.56794256", "0.56480587", "0.55519533", "0.54800886", "0.54477197", "0.5404624", "0.5307358", "0.5229146", "0.5212768", "0.5058265", "0.4996342", "0.49077147", "0.48897535", "0.486657", "0.4822861", "0.47432435", "0.47325543", "0.47253856", "0.47112924", "0.46946886", "0.46346846", "0.46154416", "0.45501488", "0.4511005", "0.4475568", "0.44285908", "0.44082862", "0.44060177", "0.4391621", "0.43756813", "0.43717638", "0.43690342", "0.4363142", "0.43462068", "0.43436208", "0.4317511", "0.42618722", "0.426145", "0.42596957", "0.42559117", "0.42433047", "0.42424145", "0.42397335", "0.42392728", "0.4206638", "0.41973448", "0.41930622", "0.41832197", "0.41775244", "0.41749537", "0.4166823", "0.4163123", "0.41602686", "0.41488764", "0.414031", "0.41295865", "0.41135278", "0.40959352", "0.40851238", "0.40791523", "0.40777305", "0.40710452", "0.40630135", "0.40625387", "0.40477338", "0.402229", "0.4018864", "0.4016488", "0.40039495", "0.39990813", "0.39941573", "0.39851326", "0.39849538", "0.3971876", "0.39710993", "0.3970466", "0.39679614", "0.396665", "0.39608854", "0.39606085", "0.3956805" ]
0.7631824
0
Removes the interview schedule where vacancyCandidateId = &63; and interviewId = &63; from the database.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "protected void deletePlannedCalendar(PlannedCalendar calendar) {\n deleteEpochs(calendar.getEpochs());\n }", "void delPreferedCalendar(String calendarId);", "@Transactional\n\tpublic boolean deleteInterview(Interview interview) {\n\n\t\tgetSession().delete(interview);\n\t\treturn true;\n\t}", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "boolean deleteWorkingSchedule(Long workingScheduleId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }", "boolean deleteWholeWorkingScheduleForPlace(Long placeId);", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "public void removeInwDepartCompetence(final String id);", "public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);", "public void deleteSchedule(int idx) throws Exception {\n\t\t// delete schedule information from DB. \n\t\tConnection conn = null;\n Statement stmt = null;\n \n try {\n conn = DefaultConnectionFactory.create().getConnection();\n stmt = conn.createStatement();\n \n StringBuilder sql = new StringBuilder();\n sql.append(\" DELETE FROM SCHEDULE_TABLE WHERE SCHE_IDX=\").append(idx);\n \n stmt.executeUpdate(sql.toString());\n\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) { }\n }\n if (conn != null) {\n try {\n conn.close();\n } catch (Exception e) { }\n }\n }\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "void removeAirport(Long id);", "int deleteByExample(ScheduleCriteria example);", "private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }", "private void cancelReservation(int id) throws SQLException {\n\t\tupdateReservationCancelStatement.clearParameters();\n\t\tupdateReservationCancelStatement.setInt(1, id);\n\t\tupdateReservationCancelStatement.executeUpdate();\n\t\tgetReservationStatement.clearParameters();\n\t\tgetReservationStatement.setString(1, this.username);\n\t\tgetReservationStatement.setInt(2, id);\n\t\tResultSet result = getReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tFlight f1 = getFlight(result.getInt(3));\n\t\tdeleteTravel(f1.month, f1.dayOfMonth);\n\t\tif (result.getInt(4) > 0){\n\t\t\tFlight f2 = getFlight(result.getInt(4));\n\t\t\tdeleteTravel(f2.month, f2.dayOfMonth);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\r\n public void delete(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement = \"DELETE FROM appointments WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void remove(Schedulorinator schedule) {\r\n if (scheduleList.contains(schedule)) {\r\n scheduleList.remove(schedule);\r\n schedule.removePerson(this);\r\n removeObserver(schedule);\r\n }\r\n }", "public void clearAppointments(){\n appointments.clear();\n }", "void unsetSchedule();", "@Override\n public void deleteAllConnectathonParticipantsForSession() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteAllConnectathonParticipantsForSession\");\n }\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n ConnectathonParticipant cpToDelete = entityManager.find(ConnectathonParticipant.class, cp.getId());\n try {\n\n entityManager.remove(cpToDelete);\n entityManager.flush();\n\n } catch (Exception e) {\n\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n }\n }\n FinancialCalc.updateInvoiceIfPossible(choosenInstitutionForAdmin, TestingSession.getSelectedTestingSession(),\n entityManager);\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "public static void deleteWaitlistEntry(String name, Date date) {\r\n con = DBConnection.getConnection();\r\n try {\r\n PreparedStatement delete = con.prepareStatement(\"DELETE from Waitlist where Faculty = ? and DATE = ?\");\r\n delete.setString(1, name);\r\n delete.setDate(2, date);\r\n delete.executeUpdate();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void removeResumeByRowId(long rowId) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n db.delete(DBHelper.TABLE_RESUME, \"rowid=\" + rowId, null);\r\n db.close();\r\n }", "public static void removeStudyParticipant(Session session, int participantId)\n\t\t\tthrows HibernateException {\n\t\tDate enddate = new Date();\n\t\t@SuppressWarnings(\"unused\")\n\t\tint result = session\n\t\t\t\t.createQuery(\n\t\t\t\t\t\t\"Update StudyParticipant set enddate = :endDate where patient = :participantId\") //$NON-NLS-1$ \n\t\t\t\t.setDate(\"endDate\", enddate)\n\t\t\t\t.setInteger(\"participantId\", participantId).executeUpdate(); //$NON-NLS-1$ \n\t}", "@Override\r\n\tpublic GlobalResult deleteEquipt(String machineno,String fstarttime) {\n\t\t\r\n\t\tint deleteByPrimaryKey = faultymachine.deleteByPrimaryKey(machineno,fstarttime);\r\n\t\tif(deleteByPrimaryKey==0) {\r\n\t\t\treturn new GlobalResult(200, \"删除失败\", null);\r\n\t\t}else {\r\n\t\t\treturn new GlobalResult(200, \"删除成功\", null);\r\n\t\t}\r\n\t}", "@Override\n public void deleteSelectedConnectathonParticipant() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteSelectedConnectathonParticipant\");\n }\n\n selectedConnectathonParticipant = entityManager.find(ConnectathonParticipant.class,\n selectedConnectathonParticipant.getId());\n\n try {\n\n entityManager.remove(selectedConnectathonParticipant);\n entityManager.flush();\n\n } catch (Exception e) {\n LOG.warn(USER + selectedConnectathonParticipant.getEmail()\n + \" cannot be deleted - This case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\",\n selectedConnectathonParticipant.getFirstname(), selectedConnectathonParticipant.getLastname(),\n selectedConnectathonParticipant.getEmail());\n }\n FinancialCalc.updateInvoiceIfPossible(selectedConnectathonParticipant.getInstitution(),\n selectedConnectathonParticipant.getTestingSession(), entityManager);\n getAllConnectathonParticipants();\n\n }", "public void deleteScheduleDetailOvr(int empId, SkdData skdData) throws WBInterfaceException, SQLException {\n\t\tif (logger.isDebugEnabled()) {\n logger.debug(\"SLScheduleTransaction.deleteScheduleDetailOvr\");\n logger.debug(\"***** START DATE/TIME: \" + skdData.skdStartTime1);\n logger.debug(\"***** END DATE/TIME: \" + skdData.skdEndTime1);\n }\n\t\t\n Date workDate = DateHelper.parseDate(skdData.skdDate, ovrDateFormat);\n \n OverrideAccess oa = new OverrideAccess(conn);\n OverrideList ol = oa.loadAffectingOverrides(\n empId, workDate,\n OverrideData.SCHEDULE_DETAIL_TYPE, OverrideData.SCHEDULE_DETAIL_TYPE,\n OverrideAccess.NON_AFFECTING_OVERRIDE_STATUS\n );\n \n Date startDateTime = WBInterfaceUtil.parseDateTime(skdData.skdStartTime1, inputDateFormat, \"Error parsing start time\");\n Date endDateTime = WBInterfaceUtil.parseDateTime(skdData.skdEndTime1, inputDateFormat, \"Error parsing end time\");\n String ovrTeamToken = \"WRKD_WBT_NAME=\" + skdData.wbtTeam;\n \n\t\tfor( int i=0; i < ol.size(); i++ ){\n OverrideData od = ol.getOverrideData(i);\n \n // Delete (cancel) if override match times and wb_team criteria\n if( startDateTime.equals(od.getOvrStartTime()) && endDateTime.equals(od.getOvrEndTime()) ) {\n if( od.getOvrNewValue().indexOf(ovrTeamToken) != -1 ) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"***** Cancelling ovr_id: \" + od.getOvrId());\n }\n od.setOvrStatusCancel(\"Cancelled by SL Interface.\");\n od.setOvrCancelledBy(\"SL_INTERFACE\");\n od.setOvrCancelledByA(\"SL_INTERFACE\");\n od.setUpdated(true);\n oa.save(od);\n }\n } \n\t\t}\n\t}", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "void cancelReservation(String reservationId) throws ObjectNotFoundException;", "public void cancelFlight(){\n \n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.removePassengerSeat(this.PassengerID);\n }", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "void unsetAppointmentsToIgnore();", "@Override\n\tpublic boolean cancelSeat(int bookingId) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"delete from Booking b where b.bookingId=\" + bookingId + \"\");\n\t\tint i = query.executeUpdate();\n\t\t//System.out.println(\"status change\");\n\t\treturn true;\n\t}", "public void removeFromReminders(Date reminders);", "@RequestMapping(value=\"/Scheduling/removeAppointment\", method= {RequestMethod.DELETE, RequestMethod.GET})\r\n\tpublic String removeAppointment(long id) {\r\n\t\tschedulingService.removeAppointment(id);\r\n\t\treturn \"redirect:/Scheduling\";\r\n\t}", "@Override\r\n\tpublic void cancelReservation(Reservation r) {\n\t\tentityManager.remove(entityManager.merge(r));\r\n\t\t\r\n\r\n\t}", "private void deleteMeeting(int meetingId) {\n ArrayList<Integer> attendeeIds = attendToRepo.getAttendeeIDs(meetingId);\n for (int id : attendeeIds){\n Log.d(tag, \"Removing attendee \" + id + \" from meeting \" + meetingId);\n attendToRepo.delete(id, meetingId);\n\n /* Deleting the attendee if this one does not attend any meeting any more */\n if (attendToRepo.getMeetingIDs(id).size() == 0)\n attendeeRepo.delete(id);\n }\n\n /* Removing the meeting */\n meetingRepo.delete(meetingId);\n }", "public void deleteByVaiTroID(long vaiTroId);", "private void removeExistingMeasurementsFromCurrentDate(Treatment treatment, Vital vitalToSync) {\n logger.info(String.format(CLEANING_EXISTING_MEASUREMENTS_FOR_TODAY_S, getCurrentDate()));\n final VitalsSynchronization vitalsSynchronization = getVitalsSynchronization(treatment);\n final VitalMeasurement vitalMeasurement = getVitalMeasurement(vitalToSync, vitalsSynchronization);\n if (vitalMeasurement.getMeasurements() != null && !vitalMeasurement.getMeasurements().isEmpty()) {\n final List<Measurement> measurementsFromCurrentDate = vitalMeasurement.getMeasurements().stream().filter(measurement -> measurement.getDate().compareTo(getCurrentDate()) == 0).collect(Collectors.toList());\n for (Measurement measurementToDelete : measurementsFromCurrentDate) {\n logger.info(String.format(REMOVING_MEASUREMENT_S, measurementToDelete.toString()));\n vitalMeasurement.getMeasurements().remove(measurementToDelete);\n }\n }\n }", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "boolean deleteInvitation(int invitationId);", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public void deactivateInterArrivalTimeTally() {\n\t\tthis._interArrivalTimeActivated = false;\n\t}", "private void cancelSchedule() {\n\n if (timer == null)\n return;\n // timer.cancel();\n }", "public void deleteReport()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(), new GetCallback<ParseObject>() \n\t\t{\n\t\t\tpublic void done(ParseObject object, ParseException e) \n\t\t\t{\n\t\t\t\tif (e == null) \n\t\t\t\t{\t\t\n\t\t\t\t\tobject.deleteInBackground(new DeleteCallback()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\t\t\treturnIntent.putExtra(\"reportPosition\", reportPosition);\n\t\t\t\t\t\t\tsetResult(RESULT_OK, returnIntent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Report is deleted, go back to previous screen\n\t\t\t\t\t\t\tloading.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\toverridePendingTransition(R.anim.slide_right_main,\tR.anim.slide_right_sub);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "void unsetRecurrenceTimeZoneCode();", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "private void deleteAttendance(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\tint attid=Integer.parseInt(request.getParameter(\"attendanceID\"));\n\t\tAttendanceVO v=new AttendanceVO();\n\t\tv.setAtt_id(attid);\n\t\tAttendanceDAO d=new AttendanceDAO();\n\t\td.deleteAttendance(v);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "private void clearRecord() {\n // Clearing current booking information from sharedPreference\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.clear();\n editor.commit();\n shutdown();\n }", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Test\n\tpublic void testDeleteSchedules() throws Exception {\n\t\tString[] multipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertDeleteSchedules(multipleAppIds, 5, 0);\n\n\t\t// Test multiple applications each having multiple recurring schedule, no specific date schedules\n\t\tassertDeleteSchedules(multipleAppIds, 0, 5);\n\n\t\t// Test multiple applications each having multiple specific date and multiple recurring schedule \n\t\tassertDeleteSchedules(multipleAppIds, 5, 5);\n\n\t}", "public void eliminarPelicula(String imdbID) {\n String selection = ColumnMovie.IMDBID + \" = ?\";\n String[] selectionArgs = {imdbID};\n\n deleteAnyRow(MOVIE_TABLE_NAME, selection, selectionArgs);\n }", "int deleteByPrimaryKey(Integer actPrizeId);", "public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n \n // Removes last Flight in this Itinerary.\n Flight removedFlight = this.itinerary.remove(size - 1);\n \n // Gets the new last Flight in this Itinerary.\n Flight flight = this.itinerary.get(size - 2);\n \n // Updates all the relevant fields in this Itinerary.\n this.price -= removedFlight.getCost();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.places.remove(size);\n }\n }", "public int deleteXPmScheduleAddressByPK(XPMScheduleAddressPK theXPmScheduleAddressPK,String recFulNam,Date recDate) throws AAException, RemoteException ;", "protected void removeCandidate(Integer candidate) throws NoCandidatesException \n {\n for (Cell cell : cells) \n {\n cell.remove(candidate);\n }\n }", "public void removeAppointmentRequest(int appointmentId)\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n appointments.removeRequest(appointmentId);\n }", "public void deleteCriteria(int idCriteria) throws SQLException {\n PreparedStatement prepared = connection.prepareStatement(\"DELETE FROM criteriaSearchDB WHERE id = ?;\");\n prepared.setInt(1,idCriteria);\n prepared.execute();\n }", "@Override\r\n public void supprimerFilm(Film f) {\n int idEvent= RetourIdEvent(f);\r\n try {\r\n String sql = \"DELETE FROM `film` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl = conn.createStatement();\r\n int rs =stl.executeUpdate(sql);\r\n \r\n String sql2 = \"DELETE FROM `evenement` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl2 = conn.createStatement();\r\n int rs1 =stl2.executeUpdate(sql2);\r\n \r\n } catch (SQLException ex) {\r\n System.err.println(\"SQLException: \" + ex.getMessage());\r\n \r\n } }", "public void deleteSportive(Long id) throws ValidatorException{\n Optional<Sportive> findSportive = repo.findOne(id);\n if (findSportive.isEmpty()) {\n throw new ValidatorException(\"Cannot find ID\");\n }\n repo.delete(id);\n Iterable<SportiveTrainer> sportiveTrainerIterable = stRepo.findAll();\n StreamSupport.stream(sportiveTrainerIterable.spliterator(), false)\n .filter(sportiveTrainer -> {return sportiveTrainer.getSportiveID() == id;})\n .forEach(sportiveTrainer -> {stRepo.delete(sportiveTrainer.getId());});\n }", "@Override\n public void onYesClicked() {\n // Find the appointment in Firestore and delete.\n final AppointmentModel deleteAppt = appointmentList.get(deletePos);\n final String deleteApptDate = deleteAppt.getDate();\n final String deleteApptTime = deleteAppt.getTime();\n final String deleteApptAddress = deleteAppt.getAddress();\n\n // Delete the patient's appointment\n apptListRef.addSnapshotListener(this, new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(QuerySnapshot queryApptSnapshots, FirebaseFirestoreException e) {\n if (e != null) {\n return;\n }\n\n for (QueryDocumentSnapshot deleteApptSnapshot : queryApptSnapshots) {\n AppointmentModel apptDelete = deleteApptSnapshot.toObject(AppointmentModel.class);\n String daDateCheck = apptDelete.getDate(); String daTimeCheck = apptDelete.getTime();\n DocumentReference deleteA = deleteApptSnapshot.getReference();\n if (deleteApptDate.equals(daDateCheck) && deleteApptTime.equals(daTimeCheck)) {\n deleteA.delete();\n Toast.makeText(AdminCalendar.this, \"Appointment Successfully Canceled!\", Toast.LENGTH_SHORT).show();\n\n // Send a cancellation email\n String tempAMorPM = deleteApptTime.substring(0, 2);\n String tempTime = deleteApptTime.substring(3);\n String emailSubject = \"Cancellation of appointment set for \" + deleteApptDate + \" at \" + deleteApptAddress;\n String emailMessage = \"Hello \" + name + \",\\n\\n\" +\n \"Your appointment scheduled for \" + deleteApptDate + \" at \" + tempTime + ' ' + tempAMorPM + \" at \"\n + deleteApptAddress + \" has been cancelled...\" + \"\\n\\nThank you,\\n\" + \"TT&T Scheduling\";\n JavaMailAPI sendEmail = new JavaMailAPI(AdminCalendar.this, deleteAppt.getEmail(), emailSubject, emailMessage);\n sendEmail.execute();\n\n break;\n }\n }\n }\n });\n\n appointmentList.remove(deletePos);\n adapter.notifyItemRemoved(deletePos);\n }", "public StatusInfo deleteSchedule(@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public void remove(MongoDBCritera critera);", "public void deletePerformanceReview(PerformanceReview pr) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(pr);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "int deleteByPrimaryKey(String calendardate);", "@Test\r\n public void testDeleteBySportActivity() {\r\n SportActivity activity = new SportActivity();\r\n activity.setName(\"Test activity\");\r\n activityDao.createSportActivity(activity);\r\n assertNotNull(activityDao.findSportActivity(activity.getId()));\r\n\r\n ActivityRecord record1 = setActivityRecord();\r\n record1.setActivity(activity);\r\n recordDao.create(record1);\r\n assertNotNull(recordDao.findActivityRecord(record1.getId()));\r\n\r\n ActivityRecord record2 = setActivityRecord();\r\n record1.setActivity(activity);\r\n recordDao.create(record2);\r\n assertNotNull(recordDao.findActivityRecord(record2.getId()));\r\n\r\n recordDao.deleteRecordsBySportActivity(activity);\r\n // TODO lines\r\n assertTrue(recordDao.findRecordsBySportActivity(activity).isEmpty());\r\n }", "void removeProblem(String stopOrLineId, Date time) throws Exception;", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n subjectDAO.deleteFridayEntry(employee);\r\n subjectListAdapter.remove(employee);\r\n Toast.makeText(getActivity(), \"Subject Deleted\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }", "public void removeBycourse_id(long course_id);", "void deleteClub(String actorId, String objectId, Date eventTime);", "public void deleteSingleAirport(Airport airport, HashMap<Integer, Route> routeHashMap, ObservableList<Route> currentlyLoadedRoutes, HashMap<String, Airport> airportHashMap, ObservableList<Airport> currentlyLoadedAirports) {\n\n //Set up the database and objects\n DatabaseSearcher dbs = new DatabaseSearcher();\n DatabaseSaver dbSave = new DatabaseSaver();\n Connection connSearch = Database.connect();\n Connection connDelete = Database.connect();\n\n //Get all routes associated with this airport\n String sql = dbs.buildRouteSearch(\"sourceid\", Integer.toString(airport.getAirportID()));\n sql = dbs.addAdditionalLikeOption(sql, \"destinationid\", Integer.toString(airport.getAirportID()));\n ObservableList<Route> routesFromDatabase = dbs.searchRouteByOption(connSearch, sql);\n Database.disconnect(connSearch);\n ObservableList<Route> routesToDelete = FXCollections.observableArrayList();\n\n for (int i = 0; i < routesFromDatabase.size(); i++) {\n if (routeHashMap.get(routesFromDatabase.get(i).getRouteID()) != null) {\n routesToDelete.add(MainController.getRouteHashMap().get(routesFromDatabase.get(i).getRouteID()));\n }\n }\n\n //Delete the routes from the app\n RouteDeleter rd = new RouteDeleter();\n rd.deleteListRoutes(routesToDelete, routeHashMap, currentlyLoadedRoutes);\n\n //Get id of airport so database knows which one to delete\n ArrayList<Integer> id = new ArrayList<Integer>();\n id.add(airport.getAirportID());\n\n //Remove the airport from the current observable list of integers\n currentlyLoadedAirports.remove(currentlyLoadedAirports.indexOf(airport));\n\n //Remove the airport from the current hashmap\n if (airport.getCountry().equals(\"United States\")) {\n airportHashMap.remove(airport.getFAA());\n } else if (airport.getIATA() != null) {\n airportHashMap.remove(airport.getIATA());\n } else {\n airportHashMap.remove(airport.getICAO());\n }\n\n //Remove the airport from the database\n dbSave.deleteAirport(connDelete, id);\n Database.disconnect(connDelete);\n\n }" ]
[ "0.6985253", "0.6744329", "0.65900373", "0.63538283", "0.62152785", "0.5842636", "0.5835121", "0.5689367", "0.5629053", "0.56060934", "0.55455065", "0.55271745", "0.5504934", "0.54977554", "0.5455566", "0.5453117", "0.5430234", "0.5348627", "0.53179985", "0.53108436", "0.5277893", "0.5241626", "0.5223049", "0.52173066", "0.5200211", "0.51839197", "0.5147021", "0.51431304", "0.5127641", "0.51188415", "0.5066125", "0.5062265", "0.5055662", "0.5050574", "0.50251794", "0.5023223", "0.5022793", "0.49808928", "0.49787006", "0.49370754", "0.493475", "0.49345413", "0.49329475", "0.49271008", "0.49267405", "0.49002397", "0.48760414", "0.48717892", "0.48594764", "0.4839716", "0.48297143", "0.48191807", "0.48039955", "0.48006704", "0.47713688", "0.47630498", "0.47311372", "0.47225395", "0.47063088", "0.47028583", "0.46965545", "0.46928033", "0.46835616", "0.46710807", "0.4644522", "0.46274173", "0.46268237", "0.46261403", "0.46162757", "0.4611522", "0.4610407", "0.4609249", "0.4605573", "0.46055475", "0.45990553", "0.45901054", "0.45811343", "0.4569734", "0.4569092", "0.45678496", "0.45673454", "0.45648447", "0.45645705", "0.45622632", "0.4553747", "0.45528787", "0.4551571", "0.45445144", "0.4542083", "0.4539855", "0.45386884", "0.4536164", "0.45330527", "0.45327827", "0.4528703", "0.45236114", "0.4520975", "0.45178676", "0.4507149", "0.45062715" ]
0.7414354
0
Returns the number of interview schedules where vacancyCandidateId = &63; and interviewId = &63;.
public int countByVacancyCandidateAndInterview(long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int countByExample(ScheduleCriteria example);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public long getActiveInterviewCount() {\n QueryBase query = new AccessibleInterviews(getDefaultAdminUser(), 2, \n \"desc\", null, 0, Integer.MAX_VALUE);\n \n List<InterviewFilter> filters = new ArrayList<InterviewFilter>(1);\n InterviewFilter filter = new ByActive();\n filter.include(\"true\");\n filters.add(filter);\n \n QueryFilterListBinder filteredQuery = \n new QueryFilterListBinder(query, filters);\n filteredQuery.init(2, \"desc\", 0, Integer.MAX_VALUE);\n \n return filteredQuery.executeCountQuery();\n }", "int getParticipantNum(long runningSportId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int getQualifiedActivityCount(long studentId, Date start, Date end);", "public static int getTotalTicketsResolved(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id= ? and status= 3;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "int getTransitFlightsCount();", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int getResumesCount();", "public int getAppointments()\n\t{\n\t\tint appointments=0;\n\t\tString query=\"select count(*) from appointments where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"not_donated\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tappointments=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appointments;\n\t}", "public int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "int getParticipantsCount();", "int getParticipantsCount();", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "public int getNumberOfActivitesOnActivityFeed(Identity ownerIdentity);", "public String getScheduleDaysCount(String prefName){\n return sharedPreferences.getString(prefName, \"7\");\n }", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public static int getCountScheduleDownload(String whereClause) {\n\n DBResultSet dbrs = null;\n try {\n\n String sql = \"SELECT COUNT(\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID] + \")\"\n + \" FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL + \" AS sch \";\n\n if (whereClause != null && whereClause.length() > 0) {\n String sInputSchedule[] = whereClause.split(\",\");\n String inputSch = \"\";\n if (sInputSchedule != null && sInputSchedule.length > 0) {\n for (int idx = 0; idx < sInputSchedule.length; idx++) {\n inputSch = inputSch + \"\\\"\" + sInputSchedule[idx] + \"\\\",\";\n }\n if (inputSch != null && inputSch.length() > 0) {\n inputSch = inputSch.substring(0, inputSch.length() - 1);\n }\n }\n //sql = sql + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL] + \" IN(\" + inputSch + \")\";\n sql = sql + \" WHERE \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL] + \" IN(\" + inputSch + \")\";\n }\n sql = sql + \" ORDER BY \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL];\n\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n\n int count = 0;\n while (rs.next()) {\n count = rs.getInt(1);\n }\n\n rs.close();\n return count;\n } catch (Exception e) {\n return 0;\n } finally {\n DBResultSet.close(dbrs);\n }\n }", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "int getCurrentTermQualifiedActivityCount(long studentId, long universityId);", "int getWorkAreaCount(String dept, Long workArea);", "public int getNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity);", "public int getVacantSeats(boolean isEconomy) {\n return isEconomy ? airplane.getEmptyEcoSeats() : airplane.getEmptyFirstSeats();\n }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "@Repository\npublic interface ConferenceRoomScheduleRepository extends JpaRepository<ConferenceRoomSchedule, Long> {\n\t\n\tpublic List<ConferenceRoomSchedule> findAllByRequestorId(String requestorId);\n\t\n\t@Query(\"SELECT cs FROM ConferenceRoomSchedule cs inner join cs.conferenceRoom cf where cf.conferenceRoomId = :conferenceRoomId and \"\n\t\t\t+ \" cs.roomScheduleStartTime >= CURRENT_DATE\")\n\tpublic List<ConferenceRoomSchedule> findAllByConferenceRoomId(@Param(\"conferenceRoomId\") Long conferenceRoomId);\n\t\n\t\n\t@Query(\"SELECT count(*) FROM ConferenceRoomSchedule cs inner join cs.conferenceRoom cf where cf.conferenceRoomId = :conferenceRoomId and \"\n\t\t\t+ \" cs.roomScheduleStartTime >= CURRENT_DATE\")\n\tpublic int findAllScheduledRoomTodayByConferenceRoomI(@Param(\"conferenceRoomId\") Long conferenceRoomId);\n\n\n}", "private int CountIntersection(int Nx, int Ny, Intersectable inter, Camera cam)\r\n\t\t{\r\n\t\t\tList<Point3D> results;//list of intersections points of one intersectable\r\n\t\t\tint count = 0;//counter of intersections points\r\n\t\t\tfor (int i = 0; i < Nx; ++i)\r\n\t\t\t{\r\n\t\t\t\tfor (int j = 0; j < Ny; ++j)\r\n\t\t\t\t{\r\n\t\t\t\t\tRay ray = cam.constructRayThroughPixel(3, 3, j, i);\r\n\t\t\t\t\tresults = inter.findIntersections(ray);\r\n\t\t\t\t\tif (results != null)\r\n\t\t\t\t\t\tcount += results.size();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn count;\r\n\t\t}", "public int getAddressPMScheduleCount(Long sourceSeq, Long addressId) throws AAException, RemoteException;", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public static Long countActivities(){\n List<String> activities = distinctActivities();\n Long count = activities.stream().count();\n return count;\n }", "int getNumberOfServeyQuestions(Survey survey);", "int getInterestsCount();", "public int getPMScheduleAddressCount(String serviceProviderCode, Long pmScheduleSeq) throws AAException, RemoteException;", "int numSeatsAvailable(Optional<Integer> venueLevel);", "public int numberOfAvailableDays(List<Vacation> employeeVacationList) {\n\n int numberOfDays = 0;\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeVacationList);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }", "public int getNumberOfActivitiesByPoster(Identity posterIdentity);", "@Transactional(readOnly = true)\n public long countByCriteria(EstadoCandidaturaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EstadoCandidatura> specification = createSpecification(criteria);\n return estadoCandidaturaRepository.count(specification);\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "int getTaskDetailsCount();", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\r\n\tpublic int inquiry(int route, int departure, int arrival) {\n\t\tint k = route;\r\n\t\tint count = 0;\r\n\t\tticket2.departure = departure;\r\n\t\tticket2.arrival = arrival;\r\n\t\tfor (int i = 1; i <= 8*100; i++){\r\n\t\t\tticket2.seat = i%100;\r\n\t\t\tif (ticket2.passenger == null){\r\n\t\t\t\tif ((departure >= ticket.arrival) | (arrival <= ticket.departure)){\r\n\t\t\t\t\tcount ++;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t}", "public int getAmendmentCount(int paraId);", "public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "public int searchRowsCount(SearchCriteria cri);", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "private int checkView(int[] neighbours, int movieId,int num) {\n\t\tint count=0;\n\t\tfor(int n=0;n<num;n++)\n\t\t{\n\t\t\tcount+=view[neighbours[n]-1][movieId-1];\n\t\t}\n\t\treturn count;\n\t}", "int getExperiencesCount();", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public int getActiveRunwaysCount();", "public static int getWorkoutCount(Calendar day, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n int dayLength = 86400000 - 2;\n\n day.set(Calendar.HOUR, 0);\n day.set(Calendar.MINUTE, 0);\n day.set(Calendar.SECOND, 0);\n day.set(Calendar.MILLISECOND, 1);\n\n long dayStart = day.getTimeInMillis();\n long dayEnd = dayStart + dayLength;\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_DATE,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB + \"=? AND \" + DatabaseContract.CalendarTrackerEntry.COLUMN_DATE + \" BETWEEN ? AND ?\";\n String[] whereValue = {String.valueOf(DatabaseContract.IS_WORKOUT), String.valueOf(dayStart), String.valueOf(dayEnd)};\n\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int output = cursor.getCount();\n\n try {\n return output;\n } finally {\n cursor.close();\n database.close();\n handler.close();\n }\n }", "public static int countBySchedulerId(long schedulerId) {\n\t\treturn getPersistence().countBySchedulerId(schedulerId);\n\t}", "public int getNumFlights() {\n return itinerary.size();\n }", "public static int getTotalTickets(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id=?;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "Response<Integer> getLeaderboardCount(String leaderboardId, int scope);", "public int getNumberOfSpaceActivities(Identity spaceIdentity);", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public int numberOfAvailableDays(List<Vacation> employeeList, Vacation formVacation) {\n\n int numberOfDays = 0;\n List<Vacation> formVacationDays = new ArrayList<>();\n formVacationDays.add(formVacation);\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeList);\n List<LocalDate> formVacations = getDaysBetweenDates(formVacationDays);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n numberOfDays = numberOfDays - getTotalNumberOfWorkingDays(formVacations);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }", "int getCountForConditionCompany(Long companyId);", "public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }", "public static int getETACount(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"select count(elapse_time) as counter from alerts where technician_id=? and elapse_time is not null;;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "@Override\n\tpublic int getParticipationsCount() {\n\t\treturn _participationLocalService.getParticipationsCount();\n\t}", "int getCurrentTermActivityCount(long studentId, long universityId);", "int countByExample(AoD5e466WorkingDayExample example);", "public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }", "HashMap <Integer,Integer> numberOfSeatsAvailable(Optional<Integer> venueLevel);", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "long getTotalAcceptCount(long id);", "int countByExample(InspectionAgencyExample example);", "public int getNumberOfActivitiesOfConnections(Identity ownerIdentity);", "int getUserQuestJobsCount();", "int numberOfCandidates();", "public int getResumesCount() {\n if (resumesBuilder_ == null) {\n return resumes_.size();\n } else {\n return resumesBuilder_.getCount();\n }\n }", "public int getNumberAvailableSeats(){\n int out = Integer.MAX_VALUE;\n for(int i=0; i<flights.size();i++){\n for(int j=0; j<availabilities.size(); j++) {\n if (flights.get(i).getFlightNumber().equals(availabilities.get(j).getFlightNumber())) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg1() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg1();\n }\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() != null) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg2();\n }\n }\n break;\n }\n }\n }\n return out;\n }", "public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }", "public int calculateNumberOfMatches(Tournament tournament, Round round) {\r\n\t\tint playersPerMatch = tournament.getTeamSize() * 2; // home and away team\r\n\t\tint possibleMatches = round.getPlayers().size() / playersPerMatch;\r\n\t\treturn Math.min(possibleMatches, tournament.getCourts());\r\n\t}" ]
[ "0.7089515", "0.65976584", "0.64938635", "0.6465359", "0.6016586", "0.6009202", "0.6000021", "0.59334534", "0.5726752", "0.5717771", "0.56498486", "0.56408995", "0.559758", "0.5585806", "0.5567935", "0.548315", "0.54477555", "0.5403222", "0.53966635", "0.53864634", "0.53095275", "0.5304273", "0.52736694", "0.5205052", "0.5194692", "0.51860255", "0.5131522", "0.5124808", "0.51222587", "0.5119218", "0.50894976", "0.5082967", "0.5027206", "0.49845132", "0.49755657", "0.49547255", "0.4942058", "0.4942058", "0.49304372", "0.4903552", "0.48785228", "0.4876664", "0.4864883", "0.48591286", "0.48404795", "0.4809148", "0.47907287", "0.4769838", "0.47586304", "0.4746757", "0.47281894", "0.47175878", "0.4700889", "0.46993965", "0.4682683", "0.46779674", "0.46625218", "0.46616018", "0.46560347", "0.4649386", "0.46452224", "0.4643494", "0.46373436", "0.4630715", "0.46270397", "0.46228197", "0.461445", "0.46103555", "0.46081573", "0.46014905", "0.4598422", "0.45964724", "0.45892674", "0.4588854", "0.45876664", "0.45849496", "0.45690402", "0.45652637", "0.45594457", "0.4558901", "0.45508662", "0.4549283", "0.45482615", "0.4540828", "0.45406252", "0.45400068", "0.4536698", "0.45284897", "0.45251814", "0.45248207", "0.4518154", "0.44944325", "0.44943666", "0.44941947", "0.44923976", "0.44890237", "0.44727525", "0.44614694", "0.4457029", "0.445347" ]
0.68440574
1
Returns the interview schedule where vacancyCandidateId = &63; and status = &63; or returns null if it could not be found. Uses the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "@Override\n public Tournament tournamentStatus(String id) {\n return Optional.ofNullable(tournamentCache.get(id))\n .orElseThrow(TournamentNotFoundException::new);\n }", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "WorkingSchedule getById(Long workingScheduleId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public CMSVacationRequest findVacationRequest (String ssn) throws Exception {\n try {\n this.fireWorkInProgressEvent(true);\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } catch (DowntimeException ex) {\n LoggingServices.getCurrent().logMsg(getClass().getName(),\"findVacationRequest\",\n \"Primary Implementation for CMSFormServices failed, going Off-Line...\",\n \"See Exception\", LoggingServices.MAJOR, ex);\n offLineMode();\n setOffLineMode();\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } finally {\n this.fireWorkInProgressEvent(false);\n }\n }", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@RequestMapping(method = RequestMethod.GET, value=\"/findSchedule\")\n public ResponseEntity<?> findSchedule(@RequestParam(value=\"idSchedule\") int idSchedule){\n try{\n Schedule schedule = scheduleService.findSchedule(idSchedule);\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n }", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@RequestMapping(\"/Scheduling/findById\")\r\n\t@ResponseBody\r\n\tpublic Optional<Scheduling> findById(long scheduleId) {\r\n\t\treturn schedulingService.findById(scheduleId);\r\n\t}", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "@Util\n public static Interview safeGetInProgressInterview(){\n \t\n \tInterview interview;\n\t\ttry {\n\t\t\tinterview = getInProgressInterview();\n\t\t} catch (CacheMiss e) {\n\t\t\tinterview = createInProgressInterview();\n\t\t}\n\n return interview;\n }", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic EmployeeReferal fetchResume(int job_vacancy_id) throws CustomException {\n\n\t\tEmployeeReferal employeeReferal = employeeReferalRepository.findOne(job_vacancy_id);\n\t\tif (Objects.isNull(employeeReferal)) {\n\t\t\tthrow new CustomException(204, \"Sorry, file not found!\");\n\t\t}\n\n\t\treturn employeeReferal;\n\t}", "Schedule selectByPrimaryKey(Integer id);", "public int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public static CourseBean getCourseById(int scheduleId) {\n\n\t\tString sql = FavoriteColumns.ID + \"=\" + scheduleId;\n\n\t\tCourseBean bean = new CourseBean();\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tDatabaseHelper dbHelper = DatabaseHelper.getInstance(MainApplication.sContext);\n\t\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\t\tc = db.query(DBConst.TABLE_COURSE_FAVORITE, null, sql, null, null, null, null);\n\t\t\tif (c.moveToNext()) {\n\t\t\t\tbean.setId(scheduleId);\n\t\t\t\tbean.setClubId(c.getInt(c.getColumnIndex(CourseColumns.CLUB_ID)));\n\t\t\t\tbean.setClassId(c.getInt(c.getColumnIndex(CourseColumns.CLASS_ID)));\n\t\t\t\tbean.setClassName(c.getString(c.getColumnIndex(CourseColumns.CLASS_NAME)));\n\t\t\t\tbean.setClassRoomId(c.getInt(c.getColumnIndex(CourseColumns.CLASSROOM_ID)));\n\t\t\t\tbean.setClassRoomName(c.getString(c.getColumnIndex(CourseColumns.CLASSROOM_NAME)));\n\t\t\t\tbean.setCoachId(c.getInt(c.getColumnIndex(CourseColumns.COACH_ID)));\n\t\t\t\tbean.setCoachName(c.getString(c.getColumnIndex(CourseColumns.COACH_NAME)));\n\t\t\t\tbean.setStartTime(c.getString(c.getColumnIndex(CourseColumns.START_TIME)));\n\t\t\t\tbean.setBackgroundColor(c.getString(c.getColumnIndex(CourseColumns.BACKGROUND_COLOR)));\n\t\t\t\tbean.setScheduleDate(c.getString(c.getColumnIndex(CourseColumns.SCHEDULE_DATE)));\n\t\t\t\tbean.setEndTime(c.getString(c.getColumnIndex(CourseColumns.END_TIME)));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\n\t\treturn bean;\n\t}", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "SportActivity findById(Long id);", "List<WorkingSchedule> getByPlaceId(Long placeId);", "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 }", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "@GetMapping(\"/getCandidate/{id}\")\n\tpublic Optional<JobProcessDetails> getCandidate(@PathVariable Long id){\n\t\t\n\t\treturn jobProcessRepo.findById(id);\n\t\n\t}", "@Override\r\n\tpublic ConventionStage find(int id) {\n\t\tConventionStage obj = null;\r\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tResultSet result = request.executeQuery(\"SELECT * FROM \" + ConventionStageDAO.TABLE + \" WHERE NO_CONVENTION = \" + id);\r\n\r\n\t\t\tif(result.first()){\r\n\t\t\t\r\n\t\t\t\tobj = new ConventionStage((result.getInt(\"NO_CONTRAT\")),DAO.dateFromOracleToJava(result.getDate(\"DATE_SIGNATURE\")),(result.getInt(\"DUREE\")));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\trequest.close();\r\n\t } catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return obj;\r\n\t}", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "@Override\n @Transactional(readOnly = true)\n public Optional<StatusCandidatesDTO> findOne(Long id) {\n log.debug(\"Request to get StatusCandidates : {}\", id);\n return statusCandidatesRepository.findById(id)\n .map(statusCandidatesMapper::toDto);\n }", "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}", "public List<ScheduleTransactionInfo> searchForScheduleTransactions(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "Optional<Timeline> findByName(String name);", "Planning findByplanningId(long planningId);", "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic Candidate fetchByPrimaryKey(long candidateId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)candidateId);\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "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 }", "@Override\n\tpublic TestCaseStatus getTestCaseStatusByCriteria(int testCaseStatusId) {\n\t\treturn null;\n\t}", "@GetMapping(\"/Appointment/confirmed/{id}\")\n public Optional<Appointment> findConfirmedAppointment(@PathVariable(name=\"id\")Integer SessionId, Authentication authentication)\n {\n\n return providerServiceImpl.findConfirmedAppointment(SessionId, authentication.getName());\n\n }", "@Override\n\tpublic Candidate fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tCandidate candidate = (Candidate)EntityCacheUtil.getResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\tif (candidate == _nullCandidate) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (candidate == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tcandidate = (Candidate)session.get(CandidateImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (candidate != null) {\n\t\t\t\t\tcacheResult(candidate);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, primaryKey, _nullCandidate);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn candidate;\n\t}", "public Rezervacija findActiveRezervacijaByID(Long id, String pharmacistUsername) {\n Rezervacija r = rezervacijaRepository.findByID(id);\n\n if(r == null)\n return null;\n\n if(!isPharmacistWorkingThere(r.getApoteka().getNaziv(), pharmacistUsername)){\n return null;\n }\n\n if(r.getDatumPreuz() != null) {\n System.out.println(\"Rezervacija je vec preuzeta\");\n return null;\n }\n\n if(!isCancellingDateMoreThenOneDay(r.getRokZaPreuzimanje())) {\n System.out.println(\"================== CANCELLING DATE IS LESS THEN 24 HOURS, sry\");\n return null;\n }\n\n return r;\n }", "List<WorkingSchedule> getAll();", "public interface ScheduleService {\n\n Optional<Schedule> findScheduleByScheduleId(long scheduleId);\n\n List<Schedule> findSchedulesByCinemaIdAndMovieId(long cinemaId, long movieId);\n\n List<Schedule> findSchedulesByCinemaId(long cinemaId);\n\n}", "public String findTimeCurrentPendingStatus(String reservationDate, Integer deptId) {\n\t\tString timeCrrStatus = this.reservationRepository.findTimeCurrentPendingStatus(reservationDate, deptId);\n\t\treturn timeCrrStatus;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "public List<ScheduleBatchInfo> searchForScheduleBatches(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "Optional<SpecimenStatusDTO> findOne(Long id);", "public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public ContestStatus getContestStatus(long contestStatusId) throws ContestManagementException {\r\n return null;\r\n }", "Optional<RacePlanForm> findOne(Long id);", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public Vacuna findById(Long id) {\n\t\tVacuna vacuna = vacunaRepository.findById(id).orElseThrow(() -> new RuntimeException(\"La vacuna no existe...\"));\n\t\treturn vacuna;\n\t}", "public Optional<Booking> findClientActiveBooking(int clientCode) {\n for (Room room : hotel.getRooms()) {\n for (Booking booking : room.getBookings()) {\n if (booking.getClientCode() == clientCode\n && booking.isActive()) {\n return Optional.of(booking);\n }\n }\n\n }\n return Optional.empty();\n }", "Candidate getCandidateObj() {\r\n\r\n\t\tCandidate candidate = new Candidate();\r\n\t\tcandidate.setCandidateId(CANDIDATE_ID);\r\n\t\tcandidate.setRound(ROUND);\r\n\t\tcandidate.setInterviewResult(INTERVIEW_RESULT_REJECT);\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\treturn candidate;\r\n\r\n\t}", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Cacheable(value = \"planet\", key = \"#id\", unless = \"#result == null\")\n public Planet findById(String id){\n try{\n Optional<Planet> planetOptional = planetRepository.findById(id);\n return planetOptional.orElse(null);\n }\n catch (Exception ex){\n throw ex;\n }\n }", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_schedule);\n\n\t\tboolean x = getIntent().getExtras().getBoolean(\"BOOLEAN\");\n\t\tcalendarView = (CalendarView) findViewById(R.id.calendarView1);\n\t\tcalendarView.setDate(calendarView.getDate()+86400000);\n\t\tcalendarView.setMinDate(calendarView.getDate());\n\t\tcalendarView.setMaxDate(calendarView.getDate()+2592000000L);\n\t\t\n\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\tschedule = (LinearLayout) findViewById(R.id.scheduleLinearLayout);\n\t\tdoctor_username = getIntent().getExtras().getString(\"DOCTOR_USERNAME\");\n\t\tif (x) {\n\t\t\tdoctor_fullname = getIntent().getExtras().getString(\n\t\t\t\t\t\"DOCTOR_FULLNAME\");\n\t\t\tpatient_tc_no = getIntent().getExtras().getString(\"PATIENT_TCNO\");\n\t\t\tsector_name = getIntent().getExtras().getString(\"SECTOR_NAME\");\n\t\t\tappointment.setDoctor_username(doctor_username);\n\t\t\tappointment.setPatient_tc_no(patient_tc_no);\n\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t.format(currentSelectedDate));\n\t\t\tsetTitle(sector_name + \" - \" + doctor_fullname);\n\t\t\t\n\t\t\tcalendarView.setOnDateChangeListener(new OnDateChangeListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateSchedulePatient();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tupdateSchedulePatient();\n\t\t}else {\n\t\t\tsetTitle(\"Block Hours\");\n\t\t\tappointment.setDoctor_username(doctor_username);\n\t\t\tappointment.setPatient_tc_no(\"1\");\n\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t.format(currentSelectedDate));\n\t\t\tcalendarView.setOnDateChangeListener(new OnDateChangeListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateScheduleDoctor();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tupdateScheduleDoctor();\n\t\t}\n\t}", "@Override\n\tpublic Tourneys getATourneyById(long id) {\n\t\tString sql = \"select * from tournaments where tourney_id = ?\";\n\t\t\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(sql, id);\n\t\tif(results.next()) {\n\t\t\treturn mapRowToTourneys(results);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "public Airplane find(int id);", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;" ]
[ "0.79124177", "0.75511366", "0.7335502", "0.7087598", "0.6975639", "0.69509935", "0.6644035", "0.65996885", "0.65844715", "0.6442937", "0.6404668", "0.637483", "0.6350289", "0.59202796", "0.56661975", "0.5535442", "0.5474309", "0.5463801", "0.54255146", "0.54079384", "0.5265704", "0.5028019", "0.50213045", "0.5002906", "0.49772683", "0.49260625", "0.48973662", "0.48937172", "0.4884975", "0.48457962", "0.48386768", "0.4816151", "0.47709122", "0.47172838", "0.47129387", "0.46851045", "0.46704796", "0.46492705", "0.46348202", "0.45975393", "0.45937216", "0.45935172", "0.45686385", "0.45453757", "0.44998989", "0.44882053", "0.4482268", "0.44776756", "0.4471779", "0.44415998", "0.44277972", "0.4419756", "0.44179177", "0.44171304", "0.44019723", "0.4392241", "0.4387767", "0.43623832", "0.4355569", "0.43549445", "0.43445355", "0.43298787", "0.4322718", "0.43176875", "0.43050802", "0.42992738", "0.42955506", "0.4294965", "0.42570475", "0.42500204", "0.42466235", "0.42436254", "0.42251658", "0.4221396", "0.4215284", "0.42145118", "0.41708404", "0.41647986", "0.41611302", "0.41512617", "0.41382402", "0.41374803", "0.4136173", "0.41299427", "0.41062537", "0.4106252", "0.41052637", "0.4101737", "0.40925115", "0.40916815", "0.40779966", "0.40769458", "0.40706244", "0.4064589", "0.40643856", "0.40570894", "0.4042981", "0.40427914", "0.4039458", "0.40370327" ]
0.78394246
1
Returns the interview schedule where vacancyCandidateId = &63; and status = &63; or returns null if it could not be found, optionally using the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n public Tournament tournamentStatus(String id) {\n return Optional.ofNullable(tournamentCache.get(id))\n .orElseThrow(TournamentNotFoundException::new);\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "WorkingSchedule getById(Long workingScheduleId);", "public CMSVacationRequest findVacationRequest (String ssn) throws Exception {\n try {\n this.fireWorkInProgressEvent(true);\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } catch (DowntimeException ex) {\n LoggingServices.getCurrent().logMsg(getClass().getName(),\"findVacationRequest\",\n \"Primary Implementation for CMSFormServices failed, going Off-Line...\",\n \"See Exception\", LoggingServices.MAJOR, ex);\n offLineMode();\n setOffLineMode();\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } finally {\n this.fireWorkInProgressEvent(false);\n }\n }", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@RequestMapping(method = RequestMethod.GET, value=\"/findSchedule\")\n public ResponseEntity<?> findSchedule(@RequestParam(value=\"idSchedule\") int idSchedule){\n try{\n Schedule schedule = scheduleService.findSchedule(idSchedule);\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n }", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@RequestMapping(\"/Scheduling/findById\")\r\n\t@ResponseBody\r\n\tpublic Optional<Scheduling> findById(long scheduleId) {\r\n\t\treturn schedulingService.findById(scheduleId);\r\n\t}", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "@Override\n\tpublic EmployeeReferal fetchResume(int job_vacancy_id) throws CustomException {\n\n\t\tEmployeeReferal employeeReferal = employeeReferalRepository.findOne(job_vacancy_id);\n\t\tif (Objects.isNull(employeeReferal)) {\n\t\t\tthrow new CustomException(204, \"Sorry, file not found!\");\n\t\t}\n\n\t\treturn employeeReferal;\n\t}", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "@GetMapping(\"/getCandidate/{id}\")\n\tpublic Optional<JobProcessDetails> getCandidate(@PathVariable Long id){\n\t\t\n\t\treturn jobProcessRepo.findById(id);\n\t\n\t}", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "@Util\n public static Interview safeGetInProgressInterview(){\n \t\n \tInterview interview;\n\t\ttry {\n\t\t\tinterview = getInProgressInterview();\n\t\t} catch (CacheMiss e) {\n\t\t\tinterview = createInProgressInterview();\n\t\t}\n\n return interview;\n }", "public List<ScheduleTransactionInfo> searchForScheduleTransactions(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "SportActivity findById(Long id);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "Schedule selectByPrimaryKey(Integer id);", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "List<WorkingSchedule> getByPlaceId(Long placeId);", "@GetMapping(\"/Appointment/confirmed/{id}\")\n public Optional<Appointment> findConfirmedAppointment(@PathVariable(name=\"id\")Integer SessionId, Authentication authentication)\n {\n\n return providerServiceImpl.findConfirmedAppointment(SessionId, authentication.getName());\n\n }", "Optional<Timeline> findByName(String name);", "@Override\r\n\tpublic ConventionStage find(int id) {\n\t\tConventionStage obj = null;\r\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tResultSet result = request.executeQuery(\"SELECT * FROM \" + ConventionStageDAO.TABLE + \" WHERE NO_CONVENTION = \" + id);\r\n\r\n\t\t\tif(result.first()){\r\n\t\t\t\r\n\t\t\t\tobj = new ConventionStage((result.getInt(\"NO_CONTRAT\")),DAO.dateFromOracleToJava(result.getDate(\"DATE_SIGNATURE\")),(result.getInt(\"DUREE\")));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\trequest.close();\r\n\t } catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return obj;\r\n\t}", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public interface ScheduleService {\n\n Optional<Schedule> findScheduleByScheduleId(long scheduleId);\n\n List<Schedule> findSchedulesByCinemaIdAndMovieId(long cinemaId, long movieId);\n\n List<Schedule> findSchedulesByCinemaId(long cinemaId);\n\n}", "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "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 }", "public static CourseBean getCourseById(int scheduleId) {\n\n\t\tString sql = FavoriteColumns.ID + \"=\" + scheduleId;\n\n\t\tCourseBean bean = new CourseBean();\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tDatabaseHelper dbHelper = DatabaseHelper.getInstance(MainApplication.sContext);\n\t\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\t\tc = db.query(DBConst.TABLE_COURSE_FAVORITE, null, sql, null, null, null, null);\n\t\t\tif (c.moveToNext()) {\n\t\t\t\tbean.setId(scheduleId);\n\t\t\t\tbean.setClubId(c.getInt(c.getColumnIndex(CourseColumns.CLUB_ID)));\n\t\t\t\tbean.setClassId(c.getInt(c.getColumnIndex(CourseColumns.CLASS_ID)));\n\t\t\t\tbean.setClassName(c.getString(c.getColumnIndex(CourseColumns.CLASS_NAME)));\n\t\t\t\tbean.setClassRoomId(c.getInt(c.getColumnIndex(CourseColumns.CLASSROOM_ID)));\n\t\t\t\tbean.setClassRoomName(c.getString(c.getColumnIndex(CourseColumns.CLASSROOM_NAME)));\n\t\t\t\tbean.setCoachId(c.getInt(c.getColumnIndex(CourseColumns.COACH_ID)));\n\t\t\t\tbean.setCoachName(c.getString(c.getColumnIndex(CourseColumns.COACH_NAME)));\n\t\t\t\tbean.setStartTime(c.getString(c.getColumnIndex(CourseColumns.START_TIME)));\n\t\t\t\tbean.setBackgroundColor(c.getString(c.getColumnIndex(CourseColumns.BACKGROUND_COLOR)));\n\t\t\t\tbean.setScheduleDate(c.getString(c.getColumnIndex(CourseColumns.SCHEDULE_DATE)));\n\t\t\t\tbean.setEndTime(c.getString(c.getColumnIndex(CourseColumns.END_TIME)));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\n\t\treturn bean;\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<StatusCandidatesDTO> findOne(Long id) {\n log.debug(\"Request to get StatusCandidates : {}\", id);\n return statusCandidatesRepository.findById(id)\n .map(statusCandidatesMapper::toDto);\n }", "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}", "public List<ScheduleBatchInfo> searchForScheduleBatches(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "Planning findByplanningId(long planningId);", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic Candidate fetchByPrimaryKey(long candidateId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)candidateId);\n\t}", "@Override\n\tpublic Candidate fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tCandidate candidate = (Candidate)EntityCacheUtil.getResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\tif (candidate == _nullCandidate) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (candidate == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tcandidate = (Candidate)session.get(CandidateImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (candidate != null) {\n\t\t\t\t\tcacheResult(candidate);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, primaryKey, _nullCandidate);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tCandidateImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn candidate;\n\t}", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "Optional<SpecimenStatusDTO> findOne(Long id);", "public Rezervacija findActiveRezervacijaByID(Long id, String pharmacistUsername) {\n Rezervacija r = rezervacijaRepository.findByID(id);\n\n if(r == null)\n return null;\n\n if(!isPharmacistWorkingThere(r.getApoteka().getNaziv(), pharmacistUsername)){\n return null;\n }\n\n if(r.getDatumPreuz() != null) {\n System.out.println(\"Rezervacija je vec preuzeta\");\n return null;\n }\n\n if(!isCancellingDateMoreThenOneDay(r.getRokZaPreuzimanje())) {\n System.out.println(\"================== CANCELLING DATE IS LESS THEN 24 HOURS, sry\");\n return null;\n }\n\n return r;\n }", "Optional<RacePlanForm> findOne(Long id);", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "public Vacuna findById(Long id) {\n\t\tVacuna vacuna = vacunaRepository.findById(id).orElseThrow(() -> new RuntimeException(\"La vacuna no existe...\"));\n\t\treturn vacuna;\n\t}", "@Override\n\tpublic TestCaseStatus getTestCaseStatusByCriteria(int testCaseStatusId) {\n\t\treturn null;\n\t}", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Cacheable(value = \"planet\", key = \"#id\", unless = \"#result == null\")\n public Planet findById(String id){\n try{\n Optional<Planet> planetOptional = planetRepository.findById(id);\n return planetOptional.orElse(null);\n }\n catch (Exception ex){\n throw ex;\n }\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\r\n public Callable<ResponseObject> findById(@PathVariable(\"id\") Long id) {\r\n return new Callable<ResponseObject>() {\r\n @Override\r\n public ResponseObject call() throws Exception {\r\n return candidateService.findById(id);\r\n }\r\n };\r\n }", "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 }", "List<WorkingSchedule> getAll();", "protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_schedule);\n\n\t\tboolean x = getIntent().getExtras().getBoolean(\"BOOLEAN\");\n\t\tcalendarView = (CalendarView) findViewById(R.id.calendarView1);\n\t\tcalendarView.setDate(calendarView.getDate()+86400000);\n\t\tcalendarView.setMinDate(calendarView.getDate());\n\t\tcalendarView.setMaxDate(calendarView.getDate()+2592000000L);\n\t\t\n\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\tschedule = (LinearLayout) findViewById(R.id.scheduleLinearLayout);\n\t\tdoctor_username = getIntent().getExtras().getString(\"DOCTOR_USERNAME\");\n\t\tif (x) {\n\t\t\tdoctor_fullname = getIntent().getExtras().getString(\n\t\t\t\t\t\"DOCTOR_FULLNAME\");\n\t\t\tpatient_tc_no = getIntent().getExtras().getString(\"PATIENT_TCNO\");\n\t\t\tsector_name = getIntent().getExtras().getString(\"SECTOR_NAME\");\n\t\t\tappointment.setDoctor_username(doctor_username);\n\t\t\tappointment.setPatient_tc_no(patient_tc_no);\n\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t.format(currentSelectedDate));\n\t\t\tsetTitle(sector_name + \" - \" + doctor_fullname);\n\t\t\t\n\t\t\tcalendarView.setOnDateChangeListener(new OnDateChangeListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateSchedulePatient();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tupdateSchedulePatient();\n\t\t}else {\n\t\t\tsetTitle(\"Block Hours\");\n\t\t\tappointment.setDoctor_username(doctor_username);\n\t\t\tappointment.setPatient_tc_no(\"1\");\n\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t.format(currentSelectedDate));\n\t\t\tcalendarView.setOnDateChangeListener(new OnDateChangeListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateScheduleDoctor();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tupdateScheduleDoctor();\n\t\t}\n\t}", "public Airplane find(int id);", "public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public String findTimeCurrentPendingStatus(String reservationDate, Integer deptId) {\n\t\tString timeCrrStatus = this.reservationRepository.findTimeCurrentPendingStatus(reservationDate, deptId);\n\t\treturn timeCrrStatus;\n\t}", "@Override\n\tpublic Tourneys getATourneyById(long id) {\n\t\tString sql = \"select * from tournaments where tourney_id = ?\";\n\t\t\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(sql, id);\n\t\tif(results.next()) {\n\t\t\treturn mapRowToTourneys(results);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Optional<Booking> findClientActiveBooking(int clientCode) {\n for (Room room : hotel.getRooms()) {\n for (Booking booking : room.getBookings()) {\n if (booking.getClientCode() == clientCode\n && booking.isActive()) {\n return Optional.of(booking);\n }\n }\n\n }\n return Optional.empty();\n }", "public List<String> searchForScheduleTransactionIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;" ]
[ "0.7800871", "0.747946", "0.7374303", "0.7046264", "0.6933744", "0.6932836", "0.6654029", "0.6651345", "0.66355574", "0.6440149", "0.6379841", "0.63295263", "0.6316259", "0.5883465", "0.564495", "0.5589643", "0.5477427", "0.5449016", "0.53749806", "0.5336065", "0.51808304", "0.50886565", "0.49387217", "0.4931859", "0.4918711", "0.48833898", "0.48708317", "0.48374435", "0.48134437", "0.48111013", "0.47871166", "0.47546175", "0.4749094", "0.47393405", "0.47240934", "0.47085243", "0.46753222", "0.46222055", "0.46118143", "0.45908704", "0.45826766", "0.45800722", "0.45793498", "0.4545016", "0.44900173", "0.4465447", "0.44463786", "0.44399822", "0.4434282", "0.4420626", "0.43985847", "0.43871528", "0.43760362", "0.43753546", "0.43687227", "0.43683147", "0.43247232", "0.43209863", "0.43167272", "0.4308787", "0.43033725", "0.4301256", "0.428425", "0.42813608", "0.4272131", "0.42703006", "0.42575493", "0.42562103", "0.42552665", "0.42484465", "0.42122102", "0.420427", "0.41826665", "0.41767278", "0.41656995", "0.41548648", "0.41525516", "0.41445518", "0.41312385", "0.41105998", "0.4101675", "0.40926072", "0.4091843", "0.40824366", "0.40721008", "0.4061076", "0.40584853", "0.40528354", "0.40437773", "0.40400997", "0.40271297", "0.40242994", "0.40012404", "0.39968804", "0.39965734", "0.3976984", "0.39740446", "0.397191", "0.3964562", "0.3948759" ]
0.7917782
0
Removes the interview schedule where vacancyCandidateId = &63; and status = &63; from the database.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "protected void deletePlannedCalendar(PlannedCalendar calendar) {\n deleteEpochs(calendar.getEpochs());\n }", "public void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "boolean deleteWorkingSchedule(Long workingScheduleId);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "private void cancelReservation(int id) throws SQLException {\n\t\tupdateReservationCancelStatement.clearParameters();\n\t\tupdateReservationCancelStatement.setInt(1, id);\n\t\tupdateReservationCancelStatement.executeUpdate();\n\t\tgetReservationStatement.clearParameters();\n\t\tgetReservationStatement.setString(1, this.username);\n\t\tgetReservationStatement.setInt(2, id);\n\t\tResultSet result = getReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tFlight f1 = getFlight(result.getInt(3));\n\t\tdeleteTravel(f1.month, f1.dayOfMonth);\n\t\tif (result.getInt(4) > 0){\n\t\t\tFlight f2 = getFlight(result.getInt(4));\n\t\t\tdeleteTravel(f2.month, f2.dayOfMonth);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "void delPreferedCalendar(String calendarId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "int deleteByExample(ScheduleCriteria example);", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic boolean cancelSeat(int bookingId) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"delete from Booking b where b.bookingId=\" + bookingId + \"\");\n\t\tint i = query.executeUpdate();\n\t\t//System.out.println(\"status change\");\n\t\treturn true;\n\t}", "boolean deleteWholeWorkingScheduleForPlace(Long placeId);", "public void removeByapproval_status(java.lang.String approval_status);", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }", "public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public static void deleteWaitlistEntry(String name, Date date) {\r\n con = DBConnection.getConnection();\r\n try {\r\n PreparedStatement delete = con.prepareStatement(\"DELETE from Waitlist where Faculty = ? and DATE = ?\");\r\n delete.setString(1, name);\r\n delete.setDate(2, date);\r\n delete.executeUpdate();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public StatusInfo deleteSchedule(@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public void removeByC_S(long companyId, int status);", "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "void cancelReservation(String reservationId) throws ObjectNotFoundException;", "@Override\n\tpublic void cancelRequest(int id) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"update Booking b set b.bookingStatus='' where b.bookingId=\"+id );\n\t\tint i = query.executeUpdate();\n\t\t\n\t\t\n\t}", "void unsetSchedule();", "void removeAirport(Long id);", "public void deleteByVaiTroID(long vaiTroId);", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "public void cancelFlight(){\n \n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.removePassengerSeat(this.PassengerID);\n }", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "public void removeInwDepartCompetence(final String id);", "private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }", "@Override\r\n public void delete(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement = \"DELETE FROM appointments WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public void removeByStatus(int status);", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "public void deleteSchedule(int idx) throws Exception {\n\t\t// delete schedule information from DB. \n\t\tConnection conn = null;\n Statement stmt = null;\n \n try {\n conn = DefaultConnectionFactory.create().getConnection();\n stmt = conn.createStatement();\n \n StringBuilder sql = new StringBuilder();\n sql.append(\" DELETE FROM SCHEDULE_TABLE WHERE SCHE_IDX=\").append(idx);\n \n stmt.executeUpdate(sql.toString());\n\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) { }\n }\n if (conn != null) {\n try {\n conn.close();\n } catch (Exception e) { }\n }\n }\n\t}", "private void reset(){\r\n\t\tScheduleDao dao = new ScheduleDaoImpl();\r\n\t\tfinal List<Schedule> result = dao.queryAll();\r\n\t\tif (result != null && result.size() > 0) {\r\n\t\t\tfor (Schedule schedule : result) {\r\n\t\t\t\tif(schedule.getStatus() == Schedule.STATUS_PENDING||schedule.getStatus()==Schedule.STATUS_INPROGRESS){\r\n\t\t\t\t\treset(schedule);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void remove(Schedulorinator schedule) {\r\n if (scheduleList.contains(schedule)) {\r\n scheduleList.remove(schedule);\r\n schedule.removePerson(this);\r\n removeObserver(schedule);\r\n }\r\n }", "public int removeFromInProgress(InProgress inProgress){\n try {\n return jdbcTemplate.update(\"DELETE FROM in_progress WHERE id=?\",\n inProgress.getId());\n }catch (Exception e){\n return 0;\n }\n }", "public int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "@RequestMapping(value=\"/Scheduling/removeAppointment\", method= {RequestMethod.DELETE, RequestMethod.GET})\r\n\tpublic String removeAppointment(long id) {\r\n\t\tschedulingService.removeAppointment(id);\r\n\t\treturn \"redirect:/Scheduling\";\r\n\t}", "public void clearAppointments(){\n appointments.clear();\n }", "public void deleteScheduleDetailOvr(int empId, SkdData skdData) throws WBInterfaceException, SQLException {\n\t\tif (logger.isDebugEnabled()) {\n logger.debug(\"SLScheduleTransaction.deleteScheduleDetailOvr\");\n logger.debug(\"***** START DATE/TIME: \" + skdData.skdStartTime1);\n logger.debug(\"***** END DATE/TIME: \" + skdData.skdEndTime1);\n }\n\t\t\n Date workDate = DateHelper.parseDate(skdData.skdDate, ovrDateFormat);\n \n OverrideAccess oa = new OverrideAccess(conn);\n OverrideList ol = oa.loadAffectingOverrides(\n empId, workDate,\n OverrideData.SCHEDULE_DETAIL_TYPE, OverrideData.SCHEDULE_DETAIL_TYPE,\n OverrideAccess.NON_AFFECTING_OVERRIDE_STATUS\n );\n \n Date startDateTime = WBInterfaceUtil.parseDateTime(skdData.skdStartTime1, inputDateFormat, \"Error parsing start time\");\n Date endDateTime = WBInterfaceUtil.parseDateTime(skdData.skdEndTime1, inputDateFormat, \"Error parsing end time\");\n String ovrTeamToken = \"WRKD_WBT_NAME=\" + skdData.wbtTeam;\n \n\t\tfor( int i=0; i < ol.size(); i++ ){\n OverrideData od = ol.getOverrideData(i);\n \n // Delete (cancel) if override match times and wb_team criteria\n if( startDateTime.equals(od.getOvrStartTime()) && endDateTime.equals(od.getOvrEndTime()) ) {\n if( od.getOvrNewValue().indexOf(ovrTeamToken) != -1 ) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"***** Cancelling ovr_id: \" + od.getOvrId());\n }\n od.setOvrStatusCancel(\"Cancelled by SL Interface.\");\n od.setOvrCancelledBy(\"SL_INTERFACE\");\n od.setOvrCancelledByA(\"SL_INTERFACE\");\n od.setUpdated(true);\n oa.save(od);\n }\n } \n\t\t}\n\t}", "void deleteLiveRecords( final Date boundary )\n throws DataAccessException ;", "public void updateStatus(String flightToCancel) {\n int flightNumber = Integer.parseInt(flightToCancel);\n //System.out.println(\"Flight to cancel \" + flightNumber);\n Reservation reservation = reservationRepository.findByReservationid(flightNumber);\n reservation.setBookingStatus(\"cancelled\");\n\n //Add cancelled seats back to respective seat pool\n String seatClass = reservation.getSeatclass();\n int numPassengers = reservation.getNumpassengers();\n Flight flight = flightRepository.findByFlightid(reservation.getDepartureflightid());\n if(seatClass.equals(\"economy\")) flight.setEconomyclass(flight.getEconomyclass() + numPassengers);\n else if(seatClass.equals(\"business\")) flight.setBusinessclass(flight.getBusinessclass() + numPassengers);\n else if(seatClass.equals(\"first\")) flight.setFirstclass(flight.getFirstclass()+ numPassengers);\n\n //Save Changes\n flightRepository.save(flight);\n reservationRepository.save(reservation);\n\n }", "public void deleteCriteria(int idCriteria) throws SQLException {\n PreparedStatement prepared = connection.prepareStatement(\"DELETE FROM criteriaSearchDB WHERE id = ?;\");\n prepared.setInt(1,idCriteria);\n prepared.execute();\n }", "@Override\r\n\tpublic void cancelReservation(Reservation r) {\n\t\tentityManager.remove(entityManager.merge(r));\r\n\t\t\r\n\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete StatusCandidates : {}\", id);\n statusCandidatesRepository.deleteById(id);\n statusCandidatesSearchRepository.deleteById(id);\n }", "@Override\r\n\tpublic GlobalResult deleteEquipt(String machineno,String fstarttime) {\n\t\t\r\n\t\tint deleteByPrimaryKey = faultymachine.deleteByPrimaryKey(machineno,fstarttime);\r\n\t\tif(deleteByPrimaryKey==0) {\r\n\t\t\treturn new GlobalResult(200, \"删除失败\", null);\r\n\t\t}else {\r\n\t\t\treturn new GlobalResult(200, \"删除成功\", null);\r\n\t\t}\r\n\t}", "public void deleteReport()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(), new GetCallback<ParseObject>() \n\t\t{\n\t\t\tpublic void done(ParseObject object, ParseException e) \n\t\t\t{\n\t\t\t\tif (e == null) \n\t\t\t\t{\t\t\n\t\t\t\t\tobject.deleteInBackground(new DeleteCallback()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\t\t\treturnIntent.putExtra(\"reportPosition\", reportPosition);\n\t\t\t\t\t\t\tsetResult(RESULT_OK, returnIntent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Report is deleted, go back to previous screen\n\t\t\t\t\t\t\tloading.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\toverridePendingTransition(R.anim.slide_right_main,\tR.anim.slide_right_sub);\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}", "@Path(\"/schedule\")\n @DELETE\n public Response cancelStorageReportSchedule(){\n log.debug(\"Cancelling all scheduled storage reports\");\n\n try {\n String responseText = resource.cancelStorageReportSchedule();\n return responseOk(responseText);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "private void removeExistingMeasurementsFromCurrentDate(Treatment treatment, Vital vitalToSync) {\n logger.info(String.format(CLEANING_EXISTING_MEASUREMENTS_FOR_TODAY_S, getCurrentDate()));\n final VitalsSynchronization vitalsSynchronization = getVitalsSynchronization(treatment);\n final VitalMeasurement vitalMeasurement = getVitalMeasurement(vitalToSync, vitalsSynchronization);\n if (vitalMeasurement.getMeasurements() != null && !vitalMeasurement.getMeasurements().isEmpty()) {\n final List<Measurement> measurementsFromCurrentDate = vitalMeasurement.getMeasurements().stream().filter(measurement -> measurement.getDate().compareTo(getCurrentDate()) == 0).collect(Collectors.toList());\n for (Measurement measurementToDelete : measurementsFromCurrentDate) {\n logger.info(String.format(REMOVING_MEASUREMENT_S, measurementToDelete.toString()));\n vitalMeasurement.getMeasurements().remove(measurementToDelete);\n }\n }\n }", "@Override\n public void deleteAllConnectathonParticipantsForSession() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteAllConnectathonParticipantsForSession\");\n }\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n ConnectathonParticipant cpToDelete = entityManager.find(ConnectathonParticipant.class, cp.getId());\n try {\n\n entityManager.remove(cpToDelete);\n entityManager.flush();\n\n } catch (Exception e) {\n\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n }\n }\n FinancialCalc.updateInvoiceIfPossible(choosenInstitutionForAdmin, TestingSession.getSelectedTestingSession(),\n entityManager);\n }", "private void clearRecord() {\n // Clearing current booking information from sharedPreference\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.clear();\n editor.commit();\n shutdown();\n }", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }", "public void removeFromReminders(Date reminders);", "@Override\r\n\tpublic void deleteCoursescheduleById(int id) {\n\t\tsession = sessionFactory.openSession(); \r\n\t\tTransaction transaction = session.beginTransaction();\r\n\t\t//session.delete(getCoursescheduleById(id));\r\n\t\tString hql = \"update Courseschedule set state =:state ,modifiedTime=:modifiedTime where id=:id\";\t\t\r\n\t\tint deleteNumber= session\r\n\t\t\t\t\t\t\t.createQuery(hql)\r\n\t\t\t\t\t\t\t.setInteger(\"state\", 1)\r\n\t\t\t\t\t\t\t.setInteger(\"id\", id)\r\n\t\t\t\t\t\t\t.setTimestamp(\"modifiedTime\",new Date())\r\n\t\t\t\t\t\t\t.executeUpdate();\r\n\t\tif(deleteNumber>0){\r\n\t\t\tlogger.debug(\"use the method named :deleteCourseschedule(Courseschedule courseschedule) ,delete success!\");\r\n\t\t}\r\n\t\ttransaction.commit();\r\n\t\tsession.close();\r\n\t\t\r\n\r\n\t}", "void unsetAppointmentsToIgnore();", "void unsetFoundingDate();", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "private void cancelSchedule() {\n\n if (timer == null)\n return;\n // timer.cancel();\n }", "private void deleteAttendance(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\tint attid=Integer.parseInt(request.getParameter(\"attendanceID\"));\n\t\tAttendanceVO v=new AttendanceVO();\n\t\tv.setAtt_id(attid);\n\t\tAttendanceDAO d=new AttendanceDAO();\n\t\td.deleteAttendance(v);\n\t}", "protected void removeCandidate(Integer candidate) throws NoCandidatesException \n {\n for (Cell cell : cells) \n {\n cell.remove(candidate);\n }\n }", "private void clearBooking() {\n // Clearing current booking information from sharedPreference\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putBoolean(BOOKING, false);\n editor.commit();\n time = 0;\n shutdown();\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public StatusInfo deleteScheduleRequest(@WebParam(name = \"scheduleRequestId\") String scheduleRequestId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public Builder clearVacationAccrued() {\n \n vacationAccrued_ = 0F;\n onChanged();\n return this;\n }", "public void removeResumeByRowId(long rowId) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n db.delete(DBHelper.TABLE_RESUME, \"rowid=\" + rowId, null);\r\n db.close();\r\n }", "void unsetRecurrenceTimeZoneCode();", "private void eliminate() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\tList<Map.Entry<String,Integer>> entryList = new ArrayList(results.entrySet());\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\n\t\t\tif(entryList.get(entryList.size()-1).getValue()/(double)totalVotes > 0.5) {\n\t\t\t\t// when the election already has a winner,\n\t\t\t\tSystem.out.println(\"A candidate already has a majority of the votes.\");\n\t\t\t\tSystem.out.println(\"You cannot remove any more candidates.\");\n\t\t\t}else {\n\n\t\t\t\t// when we can eliminate a candidate,\n\t\t\t\tSystem.out.println(\"Eliminating the lowest-ranked candidate.\");\n\t\t\t\tList lowestCans = new ArrayList();\n\t\t\t\tlowestCans.add(entryList.get(0).getKey());\n\t\t\t\tint i = 1;\n\t\t\t\twhile (i<entryList.size() && entryList.get(i).getValue() == entryList.get(0).getValue() ){\n\t\t\t\t\tlowestCans.add(entryList.get(i).getKey());\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\tif (lowestCans.size() >1) {\n\t\t\t\t\tCollections.sort(lowestCans);\n\t\t\t\t\tCollections.reverse(lowestCans);\n\t\t\t\t}\n\t\t\t\t\telection.eliminateCandidateWithName((String) lowestCans.get(0));\n\n\t\t\t\tSystem.out.println(\"Eliminated \"+lowestCans.get(0)+\".\");\n\t\t\t}\n\n\t\t}catch(UnsupportedOperationException uso){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before eliminating candidates.\");\n\t\t}\n\n\t}", "private void checkReservationValidityAndRemove(){\n\t\t\n\t\tfor (Reservation r: reservationArray){\n\t\t\tif (r.getBookingDateAndTime().get(Calendar.DAY_OF_MONTH)==Calendar.getInstance().get(Calendar.DAY_OF_MONTH)){\n\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MONTH)==Calendar.getInstance().get(Calendar.MONTH)){\n\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.HOUR_OF_DAY)==Calendar.getInstance().get(Calendar.HOUR_OF_DAY)){\n\t\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MINUTE) > 30 + r.getBookingDateAndTime().get(Calendar.MINUTE) ){\n\t\t\t\t\t\t\treservationArray.remove(r);\n\t\t\t\t\t\t\ttablemanager.increaseAvailable();;\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}", "public void deleteSportive(Long id) throws ValidatorException{\n Optional<Sportive> findSportive = repo.findOne(id);\n if (findSportive.isEmpty()) {\n throw new ValidatorException(\"Cannot find ID\");\n }\n repo.delete(id);\n Iterable<SportiveTrainer> sportiveTrainerIterable = stRepo.findAll();\n StreamSupport.stream(sportiveTrainerIterable.spliterator(), false)\n .filter(sportiveTrainer -> {return sportiveTrainer.getSportiveID() == id;})\n .forEach(sportiveTrainer -> {stRepo.delete(sportiveTrainer.getId());});\n }", "private void removeLocalVideo() {\n if (mLocalView != null) {\n mLocalContainer.removeView(mLocalView);\n }\n mLocalView = null;\n }", "@Override\r\n public void supprimerFilm(Film f) {\n int idEvent= RetourIdEvent(f);\r\n try {\r\n String sql = \"DELETE FROM `film` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl = conn.createStatement();\r\n int rs =stl.executeUpdate(sql);\r\n \r\n String sql2 = \"DELETE FROM `evenement` where (idEvent ='\"+idEvent+\"');\";\r\n\r\n Statement stl2 = conn.createStatement();\r\n int rs1 =stl2.executeUpdate(sql2);\r\n \r\n } catch (SQLException ex) {\r\n System.err.println(\"SQLException: \" + ex.getMessage());\r\n \r\n } }", "public void deleteDrafts(final Calendar deletedOn);", "void deleteTrackerReminders(final Integer id);", "public void eliminaSugerencias(int mes, int anio, String idDepartamento) {\r\n\t\tif (!alive) return;\r\n\t\tint i = 0;\r\n\t\twhile (i<sugerencias.size()) {\r\n\t\t\tif (sugerencias.get(i).getDept().equals(idDepartamento) && sugerencias.get(i).getFecha().getMonth()==mes && sugerencias.get(i).getFecha().getYear()==anio) {\r\n\t\t\t\tsugerencias.remove(i);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\ti++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean deleteAppointmentById(Integer id) {\n\t\t\t\tboolean status = false;\n\t\t\t\ttry {\n\t\t\t\t\tar.deleteById(id);\n\t\t\t\t\tstatus = true;\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tstatus = false;\n\t\t\t\t}finally {\n\t\t\t\t\treturn status;\n\t\t\t\t}\n\t}", "@DELETE\n @Path(\"{id}\")\n Response removeCalendarById(@PathParam(\"id\") Long id);" ]
[ "0.6898081", "0.6757044", "0.6729641", "0.66098934", "0.6056915", "0.58559424", "0.5830144", "0.57982314", "0.57495964", "0.56624013", "0.5624209", "0.5439664", "0.54099643", "0.5311038", "0.53088164", "0.52841485", "0.5274843", "0.5258046", "0.52126944", "0.51731217", "0.51647884", "0.51633054", "0.51468384", "0.5136347", "0.5133314", "0.51166075", "0.50836754", "0.5056635", "0.504766", "0.50337046", "0.50261784", "0.49976942", "0.49695346", "0.49579266", "0.4948481", "0.49283832", "0.49141404", "0.48937926", "0.48753712", "0.4872428", "0.48695108", "0.48644027", "0.4845075", "0.48445678", "0.48393303", "0.4823675", "0.48193264", "0.48188272", "0.4812013", "0.48054168", "0.48011127", "0.4800226", "0.47967997", "0.47626337", "0.47468433", "0.47467163", "0.4744224", "0.470923", "0.4663234", "0.46553868", "0.46369225", "0.4622483", "0.46197656", "0.46175393", "0.4613465", "0.46085978", "0.46015894", "0.45991185", "0.45936757", "0.45648912", "0.4550214", "0.45458478", "0.45400923", "0.45374748", "0.45349973", "0.45221826", "0.4513713", "0.45094562", "0.45082557", "0.45060906", "0.44872913", "0.44854456", "0.44815594", "0.44797623", "0.44753394", "0.44704857", "0.44548768", "0.44543695", "0.44533053", "0.44509435", "0.4445966", "0.4437417", "0.44366747", "0.44346938", "0.44329146", "0.44326976", "0.44291013", "0.44251102", "0.44192234", "0.44186637" ]
0.7719639
0
Returns the number of interview schedules where vacancyCandidateId = &63; and status = &63;.
public int countByVacancyCandidateAndStatus(long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "public int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "int countByExample(ScheduleCriteria example);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public int getAppointments()\n\t{\n\t\tint appointments=0;\n\t\tString query=\"select count(*) from appointments where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"not_donated\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tappointments=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appointments;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int countByStatus(int status);", "public int countByC_S(long companyId, int status);", "public int countByapproval_status(java.lang.String approval_status);", "int getTransitFlightsCount();", "int getQualifiedActivityCount(long studentId, Date start, Date end);", "int getParticipantNum(long runningSportId);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public static int getTotalTicketsResolved(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id= ? and status= 3;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "public int countByC_S(long companyId, int[] statuses);", "long countJobsWithStatus(JobStatus status);", "@Transactional(readOnly = true)\n public long countByCriteria(EstadoCandidaturaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EstadoCandidatura> specification = createSpecification(criteria);\n return estadoCandidaturaRepository.count(specification);\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public CountReservation countS(){\n\t\t\treturn repositoryR.getStatus();\n\t\t}", "int getResumesCount();", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public long getActiveInterviewCount() {\n QueryBase query = new AccessibleInterviews(getDefaultAdminUser(), 2, \n \"desc\", null, 0, Integer.MAX_VALUE);\n \n List<InterviewFilter> filters = new ArrayList<InterviewFilter>(1);\n InterviewFilter filter = new ByActive();\n filter.include(\"true\");\n filters.add(filter);\n \n QueryFilterListBinder filteredQuery = \n new QueryFilterListBinder(query, filters);\n filteredQuery.init(2, \"desc\", 0, Integer.MAX_VALUE);\n \n return filteredQuery.executeCountQuery();\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public int getAddressPMScheduleCount(Long sourceSeq, Long addressId) throws AAException, RemoteException;", "int getTruckstatusCount();", "public static int getCountScheduleDownload(String whereClause) {\n\n DBResultSet dbrs = null;\n try {\n\n String sql = \"SELECT COUNT(\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID] + \")\"\n + \" FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL + \" AS sch \";\n\n if (whereClause != null && whereClause.length() > 0) {\n String sInputSchedule[] = whereClause.split(\",\");\n String inputSch = \"\";\n if (sInputSchedule != null && sInputSchedule.length > 0) {\n for (int idx = 0; idx < sInputSchedule.length; idx++) {\n inputSch = inputSch + \"\\\"\" + sInputSchedule[idx] + \"\\\",\";\n }\n if (inputSch != null && inputSch.length() > 0) {\n inputSch = inputSch.substring(0, inputSch.length() - 1);\n }\n }\n //sql = sql + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL] + \" IN(\" + inputSch + \")\";\n sql = sql + \" WHERE \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL] + \" IN(\" + inputSch + \")\";\n }\n sql = sql + \" ORDER BY \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL];\n\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n\n int count = 0;\n while (rs.next()) {\n count = rs.getInt(1);\n }\n\n rs.close();\n return count;\n } catch (Exception e) {\n return 0;\n } finally {\n DBResultSet.close(dbrs);\n }\n }", "int getCurrentTermQualifiedActivityCount(long studentId, long universityId);", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "int getStatusCount();", "Response<Integer> getLeaderboardCount(String leaderboardId, int scope);", "int getParticipantsCount();", "int getParticipantsCount();", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int countByapprovalStatus(int EmployeeId, String ApprovalStatus)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_APPROVALSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { EmployeeId, ApprovalStatus };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_LMSLEAVEINFORMATION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_APPROVALSTATUS_EMPLOYEEID_2);\n\n\t\t\tboolean bindApprovalStatus = false;\n\n\t\t\tif (ApprovalStatus == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_APPROVALSTATUS_APPROVALSTATUS_1);\n\t\t\t}\n\t\t\telse if (ApprovalStatus.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_APPROVALSTATUS_APPROVALSTATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindApprovalStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_APPROVALSTATUS_APPROVALSTATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(EmployeeId);\n\n\t\t\t\tif (bindApprovalStatus) {\n\t\t\t\t\tqPos.add(ApprovalStatus);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "long countWorkflows();", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "int getCountForConditionCompany(Long companyId);", "public int getActiveRunwaysCount();", "int numSeatsAvailable(Optional<Integer> venueLevel);", "long getTotalAcceptCount(long id);", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "int getTaskDetailsCount();", "long countByExample(StatusRepliesExample example);", "@Repository\npublic interface ConferenceRoomScheduleRepository extends JpaRepository<ConferenceRoomSchedule, Long> {\n\t\n\tpublic List<ConferenceRoomSchedule> findAllByRequestorId(String requestorId);\n\t\n\t@Query(\"SELECT cs FROM ConferenceRoomSchedule cs inner join cs.conferenceRoom cf where cf.conferenceRoomId = :conferenceRoomId and \"\n\t\t\t+ \" cs.roomScheduleStartTime >= CURRENT_DATE\")\n\tpublic List<ConferenceRoomSchedule> findAllByConferenceRoomId(@Param(\"conferenceRoomId\") Long conferenceRoomId);\n\t\n\t\n\t@Query(\"SELECT count(*) FROM ConferenceRoomSchedule cs inner join cs.conferenceRoom cf where cf.conferenceRoomId = :conferenceRoomId and \"\n\t\t\t+ \" cs.roomScheduleStartTime >= CURRENT_DATE\")\n\tpublic int findAllScheduledRoomTodayByConferenceRoomI(@Param(\"conferenceRoomId\") Long conferenceRoomId);\n\n\n}", "public static int countByStatus(int status) {\n\t\treturn getPersistence().countByStatus(status);\n\t}", "private int searchNumberOfAvailableSeats(@SuppressWarnings(\"rawtypes\") PropertySource ps) {\n\t\tString levelString = (String) ps.getProperty(LEVEL.toString());\n\t\tOptional<Integer> venueLevel = StringUtils.isEmpty(levelString) ? Optional.empty() : Optional.of(Integer.valueOf( levelString ));\n\t\treturn ticketService.numSeatsAvailable(venueLevel);\n\t}", "public int getNumberOfActivitesOnActivityFeed(Identity ownerIdentity);", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "int getCurrentTermActivityCount(long studentId, long universityId);", "int getUserQuestJobsCount();", "public int getAmendmentCount(int paraId);", "public int countActive() {\n int result = 0;\n \n synchronized (m_reservableListMutex) {\n final Iterator iterator = m_reservables.iterator();\n \n while (iterator.hasNext()) {\n final Reservable reservable = (Reservable)iterator.next();\n \n if (!reservable.isClosed() && !reservable.isSentinel()) {\n ++result;\n }\n }\n }\n \n return result;\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public static Long countActivities(){\n List<String> activities = distinctActivities();\n Long count = activities.stream().count();\n return count;\n }", "long countByStatus(@NonNull @Param(\"status\") CommentStatus status);", "public static int countBySchedulerId(long schedulerId) {\n\t\treturn getPersistence().countBySchedulerId(schedulerId);\n\t}", "@Query(value=\"SELECT COUNT(id) FROM Ticket t where worker_email= (select email from User where email= :email) AND status=:status\")\n\tint findAllByWorkerbyStatusCount(@Param(\"email\") String worker, @Param(\"status\") String status);", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "public int countByisActive(Boolean isActive);", "public static int countByJobStatus(int jobStatus) {\n\t\treturn getPersistence().countByJobStatus(jobStatus);\n\t}", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "public int getPMScheduleAddressCount(String serviceProviderCode, Long pmScheduleSeq) throws AAException, RemoteException;", "public int numberOfAvailableDays(List<Vacation> employeeVacationList) {\n\n int numberOfDays = 0;\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeVacationList);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }", "HashMap <Integer,Integer> numberOfSeatsAvailable(Optional<Integer> venueLevel);", "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public static int getSectionVacancy(String courseCode, String sectionCode) {\n return 0/*vacancy*/;\n }", "long getTotalAcceptCount();", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public Integer getTotalClubHasBooking(LocalDateTime start, LocalDateTime end) {\n\n\t\treturn creditBookingRepo.getTotalClubHasBooking(start, end);\n\t}", "public int countByD_S(Date startDate, long status)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { startDate, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_BY_D_S,\n\t\t\t\tfinderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_VCAL_WHERE);\n\n\t\t\tif (startDate == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_D_S_STARTDATE_1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tquery.append(_FINDER_COLUMN_D_S_STARTDATE_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_D_S_STATUS_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (startDate != null) {\n\t\t\t\t\tqPos.add(CalendarUtil.getTimestamp(startDate));\n\t\t\t\t}\n\n\t\t\t\tqPos.add(status);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tif (count == null) {\n\t\t\t\t\tcount = Long.valueOf(0);\n\t\t\t\t}\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_D_S, finderArgs,\n\t\t\t\t\tcount);\n\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getTravelGroupListCount(Map conditions);", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public int playerCount(int playerStatus)\n\t{\n\t\tint count = 0;\n\t\tfor(int i=0;i<this.numberOfRows;i+=1)\n\t\t{\n\t\t\tfor(int j=0;j<this.numberOfColumns;j+=1)\n\t\t\t{\n\t\t\t\tif(this.board[i][j].playerStatus==playerStatus)\n\t\t\t\t{\n\t\t\t\t\tcount+=this.board[i][j].value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public int countByC_U_S(long companyId, long userId, int status);", "@GetMapping(\"/operational-heads/count/{status}\")\n @Timed\n public Long getOperationHeadCount(@PathVariable Integer status) {\n log.debug(\"REST request to get a list of particular status of operationalHeadService\");\n return operationalHeadService.findActiveCount(status);\n }", "public Map<String, Integer> nrActivities(List<MonitoredData> timeline) {\n return timeline\n .stream()\n .map(\n m -> m.getActivity_label())\n .collect(\n Collectors.groupingBy(\n m -> m,\n Collectors\n .collectingAndThen(Collectors.counting(), Long::intValue)));\n }", "@Query(value=\"SELECT COUNT(id) FROM Ticket t where client_email= (select email from User where email= :email) AND status=:status\")\n\tint findAllByClientbyStatusCount(@Param(\"email\") String client, @Param(\"status\") String status);", "public String getScheduleDaysCount(String prefName){\n return sharedPreferences.getString(prefName, \"7\");\n }", "public int numberOfAvailableDays(List<Vacation> employeeList, Vacation formVacation) {\n\n int numberOfDays = 0;\n List<Vacation> formVacationDays = new ArrayList<>();\n formVacationDays.add(formVacation);\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeList);\n List<LocalDate> formVacations = getDaysBetweenDates(formVacationDays);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n numberOfDays = numberOfDays - getTotalNumberOfWorkingDays(formVacations);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }", "public int searchRowsCount(SearchCriteria cri);", "long countByExample(FactRoomLogExample example);", "@Transactional(readOnly = true)\n public long countByCriteria(TabelaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Tabela> specification = createSpecification(criteria);\n return tabelaRepository.count(specification);\n }" ]
[ "0.7486811", "0.71365964", "0.6473412", "0.6408904", "0.6394331", "0.6323194", "0.62858635", "0.6268497", "0.61850727", "0.614585", "0.5959447", "0.5833506", "0.5710845", "0.56363285", "0.5563422", "0.55577046", "0.53894764", "0.5357385", "0.5340231", "0.53081703", "0.52742594", "0.5254872", "0.5210915", "0.51971334", "0.5195153", "0.5130271", "0.5114216", "0.51117384", "0.50776833", "0.5044089", "0.5004775", "0.49990135", "0.498819", "0.49395448", "0.4915732", "0.49125814", "0.49124175", "0.48955145", "0.4884194", "0.48740044", "0.48554158", "0.4854969", "0.48250258", "0.48197454", "0.48197454", "0.48118854", "0.47898805", "0.4787543", "0.47670978", "0.47667423", "0.4764836", "0.47516888", "0.47445297", "0.4743925", "0.4741178", "0.47411606", "0.47331852", "0.47160125", "0.47104815", "0.4706085", "0.47057876", "0.47055194", "0.470521", "0.4703855", "0.46813783", "0.46787265", "0.4672972", "0.46681073", "0.46591908", "0.46582893", "0.4657345", "0.464977", "0.46457452", "0.46369284", "0.46369284", "0.46369284", "0.463178", "0.46284515", "0.46270823", "0.4621358", "0.4619006", "0.46157926", "0.46048853", "0.4600336", "0.45986816", "0.45919985", "0.4588549", "0.45795667", "0.45701802", "0.4561518", "0.45445162", "0.45370457", "0.45364842", "0.45293924", "0.45254534", "0.45184597", "0.45105812", "0.4510294", "0.4509174", "0.45089084" ]
0.6876827
2
Returns all the interview schedules where vacancyCandidateId = &63;.
public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate( long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "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 }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public List<ScheduleTransactionInfo> searchForScheduleTransactions(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "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 }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public List<String> searchForScheduleTransactionIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "List<WorkingSchedule> getAll();", "List<Schedule> selectByExample(ScheduleCriteria example);", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "public List<ScheduleBatchInfo> searchForScheduleBatches(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public Iterator<Appointment> appointments()\n {\n return this.agenda.iterator();\n }", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public List<Reservation> findReservations(ReservableRoomId reservableRoomId) {\n\n return reservationRepository.findByReservableRoomReservableRoomIdOrderByStartTimeAsc(reservableRoomId);\n\n }", "public ArrayList<Meeting> getMeetingsbyCalendarId(String calendarId) throws Exception;", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);", "@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 }", "public List<String> searchForScheduleBatchIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public final List<Appointment> getAppointmentsFor(LocalDate date) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n LocalDate startDate = a.getInterval().getStartDate();\n LocalDate endDate = a.getInterval().getEndDate();\n return startDate.equals(date) || endDate.equals(date);\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "public List<FlightSchedule> getFlightsAvailables(ScheduleRepository scheduleFinderService, String from, String to,\n\t\t\tLocalDateTime startDateTime, LocalDateTime endDateTime) {\n\t\tList<FlightSchedule> flightsAvailables = new ArrayList<FlightSchedule>();\n\t\tint day = 0;\n\t\tint month = 0;\n\t\tint year = startDateTime.getYear();\n\t\tLocalDateTime departureDateTime, arrivalDateTime;\n\t\tFlightSchedule flightResult;\n\t\tList<Schedule> schedules = getSchedules(scheduleFinderService, from, to, startDateTime, endDateTime);\n\t\tif (!schedules.isEmpty()) {\n\t\t\tList<DayFlight> flightsDays = schedules.stream().flatMap(schedule -> schedule.getDays().stream()).collect(Collectors.toList());\n\t\t\tList<DayFlight> flightsOfDay = flightsDays.stream().filter(getDay(startDateTime)).collect(Collectors.toList());\n\t\t\tList<Flight> flights = flightsOfDay.stream().flatMap(flight -> flight.getFlights().stream()).collect(Collectors.toList());\n\t\t\tmonth = startDateTime.getMonthValue();\n\t\t\tday = startDateTime.getDayOfMonth();\n\t\t\tfor (Flight flight : flights) {\n\t\t\t\tdepartureDateTime = createLocalDateTime(year, month, day, flight.getDepartureTime());\n\t\t\t\tarrivalDateTime = createLocalDateTime(year, month, day, flight.getArrivalTime());\n\t\t\t\tif (validFlight(startDateTime, endDateTime, departureDateTime, arrivalDateTime)) {\n\t\t\t\t\tlog.info(String.format(\"Create Fligt Result: from %s, to %s, departureTime %s, arrivalTime %s\",\n\t\t\t\t\t\t\tfrom, to, departureDateTime, arrivalDateTime));\n\t\t\t\t\tflightResult = createFlightResult(from, to, departureDateTime, arrivalDateTime);\n\t\t\t\t\tflightsAvailables.add(flightResult);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn flightsAvailables;\n\t}", "public void seeVaccinationSchedule() {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \" SELECT name, vaccination_type, date_to_vaccinate_next \" +\n \" FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" ORDER BY date_to_vaccinate_next\";\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsName = resultSet.getString(\"name\");\n String vaccineTitle = resultSet.getString(\"vaccination_type\");\n String nextVaccination = resultSet.getString(\"date_to_vaccinate_next\");\n\n\n System.out.println(petsName.toUpperCase(Locale.ROOT) + \" -> \" + \"|| Next vaccination: \" + nextVaccination + \" || Vaccine Type: \" + vaccineTitle);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting vaccination schedule list \" + exception);\n\n }\n\n }", "@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}", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public ArrayList<VacancyQueryDTO> findVacantRooms (VacancyQueryDTO query);", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@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}", "List<BookingSlot> getSlotsByDateTime(LocalDateTime dateTime);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public List<ScheduleInfo> getSchedulesByIds(@WebParam(name = \"scheduleIds\") List<String> scheduleIds,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "List<Asistencia> listarAsistencia(Integer id, Date inicio, Date fin, Integer crrId);", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "public ArrayList<String[]> getAllVacations(String filterChoice, String filterChoiceForSearch) {\n return model.getAllVacations();\n }", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByTeacherId(int teacherId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where teacherId=:teacherId and state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"teacherId\", teacherId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByTeacherId(int teacherId)\");\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}", "@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}", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "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}", "@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 }", "public List<String> searchForScheduleRequestGroupConstraintIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public ArrayList<TeacherSchedule> getAllDailyLessonPlan(String subject_id,\n\t\t\tString section_id) {\n\t\tArrayList<TeacherSchedule> lessonList = new ArrayList<TeacherSchedule>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_DAILY_LESSON_PLAN;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tTeacherSchedule schdule = new TeacherSchedule();\n\n\t\t\tschdule.row_id = Integer.parseInt(cursor.getString(0));\n\n\t\t\tschdule.doc = cursor.getString(1);\n\t\t\t// Log.d(\"file in DB\", cursor.getString(1));\n\t\t\tschdule.date = cursor.getString(2);\n\t\t\t// Log.d(\"date in DB\", cursor.getString(2));\n\t\t\tschdule.topic = cursor.getString(3);\n\t\t\t// Log.d(\"topic in DB\", cursor.getString(3));\n\t\t\tschdule.id = cursor.getString(4);\n\t\t\t// Log.d(\"id in DB\", cursor.getString(4));\n\t\t\t// Adding contact to list\n\t\t\tlessonList.add(schdule);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\t// return contact list\n\t\treturn lessonList;\n\t}", "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 }", "public List getCalendarios(Map criteria);", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public List<String> searchForScheduleRequestSetIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "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}", "Schedule selectByPrimaryKey(Integer id);", "boolean hasPatientInAppointmentSchedule(Patient patient);", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ScheduledFlights> retrieveScheduledFlights(String source, String destination) {\r\n\t\tQuery query = entityManager.createQuery(\"select s.scheduleId,s.source,s.destination,s.arrivaltime,s.departuretime,f.flightNumber,f.carrierName,f.seatCapacity from Schedule s JOIN ScheduledFlights sf ON s.scheduleId=sf.scheduleId JOIN Flight f on sf.flightId=f.flightNumber where schedule.source= :source AND schedule.destination=:destination\");\r\n\t\treturn query.getResultList();\r\n\t}", "public ArrayList<Schedule> getBuddiesSchedules() {\n\n return new ArrayList<Schedule>(buddies);\n }", "@GetMapping(\"/Appointments/{id}\")\n public List<Appointment> findAllAppointmentsForASession(@PathVariable(name=\"id\") Integer SessionId, Authentication authentication) {\n return providerServiceImpl.findAllAppointmentsForASession(SessionId, authentication.getName());\n }", "@PermitAll\n public void cmdShowSchedule(User teller) {\n command.sendQuietly(\"qtell {0} {1}\", teller, \"Current Schedule:\\\\n\");\n Collection<Game> games = tournamentService.findAllGames();\n for (Game game : games) {\n int boardNum = game.boardNumber;\n String whiteStatus = (game.whitePlayer.isOnline()) ? \"\" : \" ?\";\n String whitePlayer = game.whitePlayer.getHandle();\n String blackStatus = (game.blackPlayer.isOnline()) ? \"\" : \" ?\";\n String blackPlayer = game.blackPlayer.getHandle();\n String gameStatus = game.getStatusString();\n String msg = String.format(\"Board %2d: %18s%2s %18s%2s %s\", boardNum, whitePlayer, whiteStatus, blackPlayer, blackStatus, gameStatus);\n command.sendQuietly(\"qtell {0} {1}\", teller, msg);\n }\n command.sendQuietly(\"qtell {0}\", teller);\n }", "List<Asistencia> getAsistenciasReporte(Integer fclId, Date inicio, Date fin);", "public Iterator<Appointment> appointments() {\n return appointments.iterator();\n }", "@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}", "List<Appointment> getCurrentlyAppointment();", "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}", "WorkingSchedule getById(Long workingScheduleId);", "boolean hasDoctorInAppointmentSchedule(Doctor doctor);" ]
[ "0.7619274", "0.70790726", "0.69596356", "0.67929274", "0.6738474", "0.66538316", "0.6642537", "0.6575401", "0.6346709", "0.6312229", "0.62875074", "0.61796165", "0.616327", "0.6095221", "0.6001239", "0.5953936", "0.56715924", "0.56599385", "0.5649306", "0.56318384", "0.5597447", "0.5531231", "0.5515691", "0.5510935", "0.54608655", "0.5393055", "0.5384961", "0.5367881", "0.53586555", "0.5284326", "0.52784765", "0.5267274", "0.52592766", "0.52531135", "0.5231242", "0.5214789", "0.52138215", "0.5203767", "0.51799506", "0.5168835", "0.5160146", "0.5150954", "0.5144736", "0.5116433", "0.5083684", "0.507555", "0.5072541", "0.50628203", "0.5031086", "0.4956182", "0.49457586", "0.4925476", "0.4924663", "0.4908638", "0.48892578", "0.48843545", "0.48629785", "0.485543", "0.48446032", "0.48359898", "0.48314682", "0.48293227", "0.48289883", "0.4823595", "0.48183033", "0.4817973", "0.47909164", "0.4782838", "0.4781469", "0.47810775", "0.4776092", "0.47742504", "0.47703356", "0.47689658", "0.47637987", "0.4743368", "0.47207087", "0.47168386", "0.4696656", "0.46936408", "0.4693244", "0.46879032", "0.46871015", "0.46819022", "0.4661693", "0.46559063", "0.46511254", "0.4637143", "0.4625911", "0.46245217", "0.46131545", "0.46092308", "0.46030337", "0.46008307", "0.4600747", "0.45921776", "0.4589505", "0.4584908", "0.45766717", "0.4563651" ]
0.8148881
0
Returns the first interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "public OccurrenceInfo getFirstOccurrence() throws ServiceLocalException {\n\t\treturn (OccurrenceInfo) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.FirstOccurrence);\n\t}", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "java.util.Calendar getSearchRecurrenceStart();", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "WorkingSchedule getById(Long workingScheduleId);", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "Schedule selectByPrimaryKey(Integer id);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "ScheduleStartType getScheduleStart();", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "private WorkflowPlan choosePlan(Set<WorkflowPlan> evaluatedPlans) {\n WorkflowPlan plan = evaluatedPlans.iterator().next();\n return plan;\n }", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public CarAndTime getFirstCarAndTime() {\n\t\tif (this.mVehicles.size() > 0) {\n\t\t\treturn mVehicles.getFirst();\n\t\t}\n\t\treturn null;\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "public T caseSeasonDayTypeSchedule(SeasonDayTypeSchedule object) {\n\t\treturn null;\n\t}", "public void seeVaccinationSchedule() {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \" SELECT name, vaccination_type, date_to_vaccinate_next \" +\n \" FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" ORDER BY date_to_vaccinate_next\";\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsName = resultSet.getString(\"name\");\n String vaccineTitle = resultSet.getString(\"vaccination_type\");\n String nextVaccination = resultSet.getString(\"date_to_vaccinate_next\");\n\n\n System.out.println(petsName.toUpperCase(Locale.ROOT) + \" -> \" + \"|| Next vaccination: \" + nextVaccination + \" || Vaccine Type: \" + vaccineTitle);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting vaccination schedule list \" + exception);\n\n }\n\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "public List<Candidates> getWinningSingleCandidates() {\n List<Candidates> allCandidates = candidateService.findAll();\n Map<Integer, Integer> mandatesResults = singleService.singleWinners();\n List<Candidates> allWinningCandidates = new ArrayList<>();\n // Map<Integer, Integer> mandatesResults = new HashMap<>();\n for (Candidates candidate : allCandidates) {\n for (Integer winnerIds : mandatesResults.keySet()) {\n if (candidate.getId().equals(winnerIds)) {\n allWinningCandidates.add(candidate);\n }\n }\n }\n\n for (Candidates candidate : allWinningCandidates) {\n candidate.setCandidate_elected(\"single\");\n candidateService.saveOrUpdate(candidate);\n }\n return allWinningCandidates;\n }", "List<Schedule> selectByExample(ScheduleCriteria example);", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "java.lang.String getSchedule();", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public Schedule get(String arg0) {\n\t\treturn null;\n\t}", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Override\n\tpublic Integer nextCandidate() {\n\t\treturn null;\n\t}", "public Candidate getCandidate() {\n\t\tif (candidate == null) {\n\t\t\tsetCandidate(findCandidate(getPlacement().getCandidate().getId()));\n\t\t}\n\t\treturn candidate;\n\t}", "public Vehicle getFirstWaitingVehicle(){\n\t\tif(!vehicles.isEmpty()){\n\t\t\tif(vehicles.getFirst().isWaiting()){\n\t\t\t\treturn vehicles.removeFirst();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@RequestMapping(\"/Scheduling/findById\")\r\n\t@ResponseBody\r\n\tpublic Optional<Scheduling> findById(long scheduleId) {\r\n\t\treturn schedulingService.findById(scheduleId);\r\n\t}", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "public String getSchedule() {\n return schedule;\n }", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "public FacultySchedule getSchedule() {\n\t\treturn schedule;\n\t}", "Planning findByplanningId(long planningId);", "@RequestMapping(method = RequestMethod.GET, value=\"/findSchedule\")\n public ResponseEntity<?> findSchedule(@RequestParam(value=\"idSchedule\") int idSchedule){\n try{\n Schedule schedule = scheduleService.findSchedule(idSchedule);\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n }", "protected Schedule getSchedule(String command, Calendar calendar) {\n List<Schedule> scheduleList = calendar.getSchedules();\n int index;\n\n try {\n index = Integer.parseInt(command) - 1;\n if (index < scheduleList.size() && !(index < 0)) {\n return scheduleList.get(index);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n } catch (NumberFormatException e) {\n if (command.equals(\"q\")) {\n return null;\n } else if (calendar.getSchedule(command) != null) {\n return calendar.getSchedule(command);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n }\n }", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "SportActivity findById(Long id);", "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}", "private Set<WorkflowPlan> evaluatePlansFromScheduler(Set<WorkflowPlan> candidatePlans) {\n return candidatePlans;\n }", "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 }", "public Schedule getSchedule() {\n\n Schedule sched = new Schedule();\n\n if (m_startDate.getDate() != null) {\n sched.setStartDate(m_startDate.getDate());\n } else {\n return null; // execute unscheduled (right now)\n }\n if (m_endDate.getDate() != null) {\n sched.setEndDate(m_endDate.getDate());\n }\n\n m_repeat.applyToSchedule(sched);\n\n return sched;\n }", "public int getSchedulingValue() {\n return scheduling_;\n }", "protected Activity getActivity(String command, Schedule schedule) {\n List<Activity> activityList = schedule.getActivities();\n int index;\n\n try {\n index = Integer.parseInt(command) - 1;\n if (index < activityList.size()) {\n return activityList.get(index);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n } catch (NumberFormatException e) {\n if (command.equals(\"q\")) {\n return null;\n } else if (schedule.getActivity(command) != null) {\n return schedule.getActivity(command);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n }\n }", "public int getSchedulingValue() {\n return scheduling_;\n }", "public Calendar startOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH),\r\n\t\t\t\tbaseCalendar.get(Calendar.DATE));\r\n\r\n\t\treturn c2;\t\t\r\n\t}", "@Override\n public List<ScheduledInterview> getForPerson(String userId) {\n List<ScheduledInterview> relevantInterviews = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n scheduledInterviews.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (userId.equals(scheduledInterview.interviewerId())\n || userId.equals(scheduledInterview.intervieweeId())\n || userId.equals(scheduledInterview.shadowId())) {\n relevantInterviews.add(scheduledInterview);\n }\n }\n return relevantInterviews;\n }", "Candidate getCandidateObj() {\r\n\r\n\t\tCandidate candidate = new Candidate();\r\n\t\tcandidate.setCandidateId(CANDIDATE_ID);\r\n\t\tcandidate.setRound(ROUND);\r\n\t\tcandidate.setInterviewResult(INTERVIEW_RESULT_REJECT);\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\treturn candidate;\r\n\r\n\t}", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "public LocalDateTime getArrivalTimeOfIndex(int index)\r\n\t{\r\n\t\treturn timeslot.getArrival().get(index);\r\n\t}", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "public JNASchedule getNextSchedule(JNASchedule schedule) {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new ObjectDisposedException(this);\n\t\t}\n\n\t\tif (schedule.isDisposed()) {\n\t\t\tthrow new ObjectDisposedException(schedule);\n\t\t}\n\t\t\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\tint hCurrSchedule = getScheduleHandle(schedule);\n\t\t\n\t\tif (hCurrSchedule==0) {\n\t\t\tthrow new DominoException(0, \"Handle of specified schedule is 0\");\n\t\t}\n\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethNextSchedule = new IntByReference();\n\t\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetNextSchedule(hSchedulesByVal, hCurrSchedule, rethNextSchedule,\n\t\t\t\t\tschedulePtrMem);\n\t\t\tif (result==INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpNextSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpNextSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPointer pOwner = retpNextSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpNextSchedule.wOwnerNameSize-1) & 0xffff);\n\t\n\t\t\treturn new JNASchedule(this, retpNextSchedule, owner, rethNextSchedule.getValue());\n\t\t});\n\t}", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "int getParticipantNum(long runningSportId);", "@Override\n\tpublic Appointment getAppointmentById(Integer id) {\n\t\t\t\tAppointment foundAppointment = ar.getOne(id);\n\t\t\t\tif(foundAppointment != null) {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" found\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" not found\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn foundAppointment;\n\t}", "public ScheduleFrom getScheduleFrom()\r\n {\r\n return (m_scheduleFrom);\r\n }", "public CMSVacationRequest findVacationRequest (String ssn) throws Exception {\n try {\n this.fireWorkInProgressEvent(true);\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } catch (DowntimeException ex) {\n LoggingServices.getCurrent().logMsg(getClass().getName(),\"findVacationRequest\",\n \"Primary Implementation for CMSFormServices failed, going Off-Line...\",\n \"See Exception\", LoggingServices.MAJOR, ex);\n offLineMode();\n setOffLineMode();\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } finally {\n this.fireWorkInProgressEvent(false);\n }\n }", "com.google.cloud.compute.v1.Scheduling getScheduling();", "@Override\r\n\tpublic ConventionStage find(int id) {\n\t\tConventionStage obj = null;\r\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tResultSet result = request.executeQuery(\"SELECT * FROM \" + ConventionStageDAO.TABLE + \" WHERE NO_CONVENTION = \" + id);\r\n\r\n\t\t\tif(result.first()){\r\n\t\t\t\r\n\t\t\t\tobj = new ConventionStage((result.getInt(\"NO_CONTRAT\")),DAO.dateFromOracleToJava(result.getDate(\"DATE_SIGNATURE\")),(result.getInt(\"DUREE\")));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\trequest.close();\r\n\t } catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return obj;\r\n\t}", "public Election getElectionDay() {\t\t\r\n\t\tOptional<Election> election = null;\r\n\t\tList<Election> electionList = DataDAO.getElectionList();\r\n\t\telection = electionList.stream().filter(e -> e.getElectionDate().equals(DateUtil.asDate(LocalDate.now()))).findFirst();\r\n\t\tif (election.isPresent()) {\r\n\t\t\treturn election.get();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;" ]
[ "0.7958665", "0.7160384", "0.7121103", "0.68044126", "0.66717386", "0.66236496", "0.6590156", "0.65796596", "0.65429425", "0.62986946", "0.6148976", "0.6118704", "0.6063715", "0.60443133", "0.5845807", "0.57064134", "0.5652541", "0.55974334", "0.55509436", "0.54751605", "0.5438746", "0.54055405", "0.5399019", "0.5360486", "0.53121084", "0.5161959", "0.5160847", "0.51357704", "0.5120702", "0.5110517", "0.51030844", "0.50383484", "0.5000885", "0.4989669", "0.49404132", "0.49264038", "0.49200338", "0.49168518", "0.4889641", "0.48124957", "0.4809234", "0.47965208", "0.47343716", "0.47160447", "0.4703562", "0.46771702", "0.46617487", "0.46604422", "0.46558592", "0.4651257", "0.4635396", "0.46273902", "0.46243337", "0.46216887", "0.46122903", "0.4598366", "0.45826986", "0.45822665", "0.45796865", "0.4577375", "0.45720485", "0.45684552", "0.4561069", "0.4558539", "0.4546446", "0.45369962", "0.45365474", "0.45236433", "0.4521581", "0.4516056", "0.4506108", "0.447788", "0.44771957", "0.44763643", "0.44358903", "0.4432996", "0.44290516", "0.44169864", "0.44153586", "0.44126204", "0.43837282", "0.4369751", "0.43694973", "0.4363884", "0.4358168", "0.4354314", "0.4352081", "0.43497443", "0.4348801", "0.4342756", "0.4338158", "0.43370718", "0.43293846", "0.43198034", "0.43179032", "0.43129453", "0.43000644", "0.42902198", "0.4287804", "0.42876408" ]
0.79062235
1
Returns the first interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "public OccurrenceInfo getFirstOccurrence() throws ServiceLocalException {\n\t\treturn (OccurrenceInfo) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.FirstOccurrence);\n\t}", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "java.util.Calendar getSearchRecurrenceStart();", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "WorkingSchedule getById(Long workingScheduleId);", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "Schedule selectByPrimaryKey(Integer id);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "ScheduleStartType getScheduleStart();", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "private WorkflowPlan choosePlan(Set<WorkflowPlan> evaluatedPlans) {\n WorkflowPlan plan = evaluatedPlans.iterator().next();\n return plan;\n }", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public CarAndTime getFirstCarAndTime() {\n\t\tif (this.mVehicles.size() > 0) {\n\t\t\treturn mVehicles.getFirst();\n\t\t}\n\t\treturn null;\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "public T caseSeasonDayTypeSchedule(SeasonDayTypeSchedule object) {\n\t\treturn null;\n\t}", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public void seeVaccinationSchedule() {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \" SELECT name, vaccination_type, date_to_vaccinate_next \" +\n \" FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" ORDER BY date_to_vaccinate_next\";\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsName = resultSet.getString(\"name\");\n String vaccineTitle = resultSet.getString(\"vaccination_type\");\n String nextVaccination = resultSet.getString(\"date_to_vaccinate_next\");\n\n\n System.out.println(petsName.toUpperCase(Locale.ROOT) + \" -> \" + \"|| Next vaccination: \" + nextVaccination + \" || Vaccine Type: \" + vaccineTitle);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting vaccination schedule list \" + exception);\n\n }\n\n }", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "public List<Candidates> getWinningSingleCandidates() {\n List<Candidates> allCandidates = candidateService.findAll();\n Map<Integer, Integer> mandatesResults = singleService.singleWinners();\n List<Candidates> allWinningCandidates = new ArrayList<>();\n // Map<Integer, Integer> mandatesResults = new HashMap<>();\n for (Candidates candidate : allCandidates) {\n for (Integer winnerIds : mandatesResults.keySet()) {\n if (candidate.getId().equals(winnerIds)) {\n allWinningCandidates.add(candidate);\n }\n }\n }\n\n for (Candidates candidate : allWinningCandidates) {\n candidate.setCandidate_elected(\"single\");\n candidateService.saveOrUpdate(candidate);\n }\n return allWinningCandidates;\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "java.lang.String getSchedule();", "public Schedule get(String arg0) {\n\t\treturn null;\n\t}", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Override\n\tpublic Integer nextCandidate() {\n\t\treturn null;\n\t}", "public Candidate getCandidate() {\n\t\tif (candidate == null) {\n\t\t\tsetCandidate(findCandidate(getPlacement().getCandidate().getId()));\n\t\t}\n\t\treturn candidate;\n\t}", "@RequestMapping(\"/Scheduling/findById\")\r\n\t@ResponseBody\r\n\tpublic Optional<Scheduling> findById(long scheduleId) {\r\n\t\treturn schedulingService.findById(scheduleId);\r\n\t}", "public Vehicle getFirstWaitingVehicle(){\n\t\tif(!vehicles.isEmpty()){\n\t\t\tif(vehicles.getFirst().isWaiting()){\n\t\t\t\treturn vehicles.removeFirst();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public String getSchedule() {\n return schedule;\n }", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "public FacultySchedule getSchedule() {\n\t\treturn schedule;\n\t}", "@RequestMapping(method = RequestMethod.GET, value=\"/findSchedule\")\n public ResponseEntity<?> findSchedule(@RequestParam(value=\"idSchedule\") int idSchedule){\n try{\n Schedule schedule = scheduleService.findSchedule(idSchedule);\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n }", "Planning findByplanningId(long planningId);", "protected Schedule getSchedule(String command, Calendar calendar) {\n List<Schedule> scheduleList = calendar.getSchedules();\n int index;\n\n try {\n index = Integer.parseInt(command) - 1;\n if (index < scheduleList.size() && !(index < 0)) {\n return scheduleList.get(index);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n } catch (NumberFormatException e) {\n if (command.equals(\"q\")) {\n return null;\n } else if (calendar.getSchedule(command) != null) {\n return calendar.getSchedule(command);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n }\n }", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "SportActivity findById(Long id);", "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}", "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 }", "private Set<WorkflowPlan> evaluatePlansFromScheduler(Set<WorkflowPlan> candidatePlans) {\n return candidatePlans;\n }", "public Schedule getSchedule() {\n\n Schedule sched = new Schedule();\n\n if (m_startDate.getDate() != null) {\n sched.setStartDate(m_startDate.getDate());\n } else {\n return null; // execute unscheduled (right now)\n }\n if (m_endDate.getDate() != null) {\n sched.setEndDate(m_endDate.getDate());\n }\n\n m_repeat.applyToSchedule(sched);\n\n return sched;\n }", "public int getSchedulingValue() {\n return scheduling_;\n }", "protected Activity getActivity(String command, Schedule schedule) {\n List<Activity> activityList = schedule.getActivities();\n int index;\n\n try {\n index = Integer.parseInt(command) - 1;\n if (index < activityList.size()) {\n return activityList.get(index);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n } catch (NumberFormatException e) {\n if (command.equals(\"q\")) {\n return null;\n } else if (schedule.getActivity(command) != null) {\n return schedule.getActivity(command);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n }\n }", "public int getSchedulingValue() {\n return scheduling_;\n }", "public Calendar startOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH),\r\n\t\t\t\tbaseCalendar.get(Calendar.DATE));\r\n\r\n\t\treturn c2;\t\t\r\n\t}", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "@Override\n public List<ScheduledInterview> getForPerson(String userId) {\n List<ScheduledInterview> relevantInterviews = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n scheduledInterviews.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (userId.equals(scheduledInterview.interviewerId())\n || userId.equals(scheduledInterview.intervieweeId())\n || userId.equals(scheduledInterview.shadowId())) {\n relevantInterviews.add(scheduledInterview);\n }\n }\n return relevantInterviews;\n }", "Candidate getCandidateObj() {\r\n\r\n\t\tCandidate candidate = new Candidate();\r\n\t\tcandidate.setCandidateId(CANDIDATE_ID);\r\n\t\tcandidate.setRound(ROUND);\r\n\t\tcandidate.setInterviewResult(INTERVIEW_RESULT_REJECT);\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\treturn candidate;\r\n\r\n\t}", "public LocalDateTime getArrivalTimeOfIndex(int index)\r\n\t{\r\n\t\treturn timeslot.getArrival().get(index);\r\n\t}", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "public JNASchedule getNextSchedule(JNASchedule schedule) {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new ObjectDisposedException(this);\n\t\t}\n\n\t\tif (schedule.isDisposed()) {\n\t\t\tthrow new ObjectDisposedException(schedule);\n\t\t}\n\t\t\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\tint hCurrSchedule = getScheduleHandle(schedule);\n\t\t\n\t\tif (hCurrSchedule==0) {\n\t\t\tthrow new DominoException(0, \"Handle of specified schedule is 0\");\n\t\t}\n\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethNextSchedule = new IntByReference();\n\t\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetNextSchedule(hSchedulesByVal, hCurrSchedule, rethNextSchedule,\n\t\t\t\t\tschedulePtrMem);\n\t\t\tif (result==INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpNextSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpNextSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPointer pOwner = retpNextSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpNextSchedule.wOwnerNameSize-1) & 0xffff);\n\t\n\t\t\treturn new JNASchedule(this, retpNextSchedule, owner, rethNextSchedule.getValue());\n\t\t});\n\t}", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "int getParticipantNum(long runningSportId);", "public ScheduleFrom getScheduleFrom()\r\n {\r\n return (m_scheduleFrom);\r\n }", "@Override\n\tpublic Appointment getAppointmentById(Integer id) {\n\t\t\t\tAppointment foundAppointment = ar.getOne(id);\n\t\t\t\tif(foundAppointment != null) {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" found\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" not found\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn foundAppointment;\n\t}", "public CMSVacationRequest findVacationRequest (String ssn) throws Exception {\n try {\n this.fireWorkInProgressEvent(true);\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } catch (DowntimeException ex) {\n LoggingServices.getCurrent().logMsg(getClass().getName(),\"findVacationRequest\",\n \"Primary Implementation for CMSFormServices failed, going Off-Line...\",\n \"See Exception\", LoggingServices.MAJOR, ex);\n offLineMode();\n setOffLineMode();\n return (CMSVacationRequest) CMSFormServices.getCurrent().findVacationRequest(ssn);\n } finally {\n this.fireWorkInProgressEvent(false);\n }\n }", "com.google.cloud.compute.v1.Scheduling getScheduling();", "public Schedule getScheduleForSelectedStopAndRoute(String route, int direction, int stopId){\n Schedule selectedStopSchedule = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND stops._id = \" + stopId + \" \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n selectedStopSchedule.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return selectedStopSchedule;\r\n }", "@Override\r\n\tpublic ConventionStage find(int id) {\n\t\tConventionStage obj = null;\r\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tResultSet result = request.executeQuery(\"SELECT * FROM \" + ConventionStageDAO.TABLE + \" WHERE NO_CONVENTION = \" + id);\r\n\r\n\t\t\tif(result.first()){\r\n\t\t\t\r\n\t\t\t\tobj = new ConventionStage((result.getInt(\"NO_CONTRAT\")),DAO.dateFromOracleToJava(result.getDate(\"DATE_SIGNATURE\")),(result.getInt(\"DUREE\")));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\trequest.close();\r\n\t } catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return obj;\r\n\t}", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;" ]
[ "0.7906251", "0.7160932", "0.7119946", "0.6804046", "0.6671693", "0.6623563", "0.65913665", "0.6579305", "0.6543031", "0.62990135", "0.6148505", "0.61190516", "0.606327", "0.6043878", "0.5845548", "0.5704847", "0.5650396", "0.5596798", "0.5554668", "0.54741484", "0.54419225", "0.54042435", "0.54025203", "0.536397", "0.5311828", "0.5166542", "0.51608145", "0.51352596", "0.5122553", "0.51103723", "0.5105747", "0.50420845", "0.50022465", "0.49948084", "0.49394995", "0.49267158", "0.49214876", "0.49201235", "0.4890553", "0.48140457", "0.4811433", "0.47963533", "0.47342905", "0.47206277", "0.47037503", "0.46814877", "0.46649495", "0.46642286", "0.46565107", "0.4656104", "0.46396407", "0.46288472", "0.46266514", "0.4625516", "0.4617339", "0.46028396", "0.45863208", "0.4583055", "0.45783606", "0.45775548", "0.45705494", "0.45668444", "0.45626184", "0.45599487", "0.45500302", "0.45422196", "0.45411795", "0.4526577", "0.45230535", "0.4517797", "0.4506427", "0.44813892", "0.44794995", "0.44768924", "0.44398463", "0.44353035", "0.4430069", "0.4422825", "0.44173852", "0.44160268", "0.43872014", "0.4372073", "0.43712223", "0.43662667", "0.43585977", "0.4353851", "0.43537298", "0.43499213", "0.43494517", "0.43469346", "0.43422806", "0.43371278", "0.43286464", "0.43206787", "0.43205625", "0.43128577", "0.43049455", "0.42918837", "0.42903906", "0.4289344" ]
0.7958098
0
Returns the last interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public OccurrenceInfo getLastOccurrence() throws ServiceLocalException {\n\t\treturn (OccurrenceInfo) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.FirstOccurrence);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "WorkingSchedule getById(Long workingScheduleId);", "java.lang.String getSchedule();", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "ScheduleFinishType getScheduleFinish();", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public GregorianCalendar getEndTimeFromSelectedTime(Film selected_film){\n\n GregorianCalendar returncalendar = new GregorianCalendar();\n returncalendar.setTimeInMillis(0);\n\n returncalendar.set(Calendar.HOUR_OF_DAY, this.getSelectedTime().get(Calendar.HOUR_OF_DAY));\n returncalendar.set(Calendar.MINUTE, this.getSelectedTime().get(Calendar.MINUTE));\n\n returncalendar.add(Calendar.HOUR_OF_DAY, selected_film.getLength().get(Calendar.HOUR_OF_DAY));\n returncalendar.add(Calendar.MINUTE, selected_film.getLength().get(Calendar.MINUTE));\n\n return returncalendar;\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public Election getElectionDay() {\t\t\r\n\t\tOptional<Election> election = null;\r\n\t\tList<Election> electionList = DataDAO.getElectionList();\r\n\t\telection = electionList.stream().filter(e -> e.getElectionDate().equals(DateUtil.asDate(LocalDate.now()))).findFirst();\r\n\t\tif (election.isPresent()) {\r\n\t\t\treturn election.get();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "public Timestamp getLastCompetition() {\r\n return lastCompetition;\r\n }", "private static int meetRecentDeadline(LocalDate startdate, LocalDate deadlineDate, String repetition){\n\n LocalDate today = LocalDate.now();\n\n if(deadlineDate.isEqual(today)){\n return MEET_FINAL_DEADLINE;\n }\n switch (repetition){\n case \"{Daily}\":\n if(today.isEqual(startdate.plusDays(1))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Weekly}\":\n if(today.isEqual(startdate.plusDays(7))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Monthly}\":\n if(today.isEqual(startdate.plusMonths(1))){\n return MEET_RECENT_DEADLINE;\n }\n }\n return NO_RECENT_DEADLINE;\n }", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "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 }", "public Temporal getEndRecurrence() { return endRecurrence; }", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public static int getLastSubjectId() {\n Calendar c = Calendar.getInstance();\n Date now = c.getTime();\n int day;\n int lesson = -1;\n boolean end = false;\n\n SimpleDateFormat s = new SimpleDateFormat(\"dd.MM.yyy HH:mm\", Locale.GERMAN);\n\n if((day = schedule.getTodaysNumber()) < 5) {\n for(int i = 0; i < 9 && !end; i++) {\n c.set(Calendar.HOUR_OF_DAY, Storage.schedule.getTime(i, 0, 0));\n c.set(Calendar.MINUTE, Storage.schedule.getTime(i, 0, 0));\n if(now.before(c.getTime())) {\n lesson = i-1;\n end = true;\n }\n }\n if(lesson == -1) {\n return -1;\n }\n if(Storage.schedule.getLesson(day, lesson) == null) {\n return -1;\n }\n return Storage.schedule.getLesson(day, lesson).getSubjectIndex();\n }\n else {\n return -1;\n }\n }", "List<WorkingSchedule> getByPlaceId(Long placeId);", "int getParticipantNum(long runningSportId);", "public RaceSituation getLatestByStage(Stage stage);", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "public void seeVaccinationSchedule() {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \" SELECT name, vaccination_type, date_to_vaccinate_next \" +\n \" FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" ORDER BY date_to_vaccinate_next\";\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsName = resultSet.getString(\"name\");\n String vaccineTitle = resultSet.getString(\"vaccination_type\");\n String nextVaccination = resultSet.getString(\"date_to_vaccinate_next\");\n\n\n System.out.println(petsName.toUpperCase(Locale.ROOT) + \" -> \" + \"|| Next vaccination: \" + nextVaccination + \" || Vaccine Type: \" + vaccineTitle);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting vaccination schedule list \" + exception);\n\n }\n\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public FacultySchedule getSchedule() {\n\t\treturn schedule;\n\t}", "public ArrayList<int[]> getSchedule(){\n // Initialize the output list\n ArrayList<int[]> schedule = new ArrayList<>();\n\n // Initialize a list of tuples in the form (rally id, rally duration, rally deadline)\n ArrayList<int[]> rallyList = new ArrayList<>();\n for (int i = 0; i < _rallies.size(); i++) {\n int[] info = new int[] {i, _rallies.get(i)[0], _rallies.get(i)[1]};\n rallyList.add(info);\n }\n\n // Sort them in an increasing order of the deadline\n rallyList.sort(Comparator.comparingInt(rally -> rally[2]));\n\n // Set the start time\n int f = 0;\n\n // If there is no way to finish any one of the rally before its deadline, then we will set this to true.\n boolean nuke = false;\n\n // Run a greedy algorithm (Scheduling to Minimize Lateness)\n for (int[] rally : rallyList) {\n int[] plan = new int[] {rally[0], f};\n int duration = rally[1];\n int deadline = rally[2];\n f += duration;\n\n if (f > deadline) {\n nuke = true;\n break;\n }\n\n schedule.add(plan);\n }\n\n if (nuke) {\n return new ArrayList<>();\n }\n\n return schedule;\n }", "public CanaryScheduleOutput getSchedule() {\n return this.schedule;\n }", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "Schedule selectByPrimaryKey(Integer id);", "public int getLectureVacancy() {\n return tutLabGroups.get(\"_LEC\")[0];\n }", "@Override\n\tpublic long getCandidateId() {\n\t\treturn _candidate.getCandidateId();\n\t}", "public TimeDetail getNextDeparture( String destination, LocalTime stationArrivalTime )\n\t{\n\t\tTimeDetail rtnval= null;\n\t\tArrayList<TimeDetail> timeDetail = null;\n\t\tint i;\n\t\t\n\t\tfor( i=0; i<timeTableAL.size() && timeDetail == null; i++ )\n\t\t{\n\t\t\tif( timeTableAL.get(i).getStationName().equalsIgnoreCase(destination) )\n\t\t\t\ttimeDetail = timeTableAL.get(i).getTimeDetail();\n\t\t}\n\t\t\n\t\t// if we found the station\n\t\tif( timeDetail != null )\n\t\t{\t\t\t\n\t\t\tfor( i=0; i<timeDetail.size(); i++)\n\t\t\t{\n\t\t\t\tif( timeDetail.get(i).getDepartureTime().compareTo(stationArrivalTime)==1||timeDetail.get(i).getDepartureTime().compareTo(stationArrivalTime)==0 )\n\t\t\t\t{\n\t\t\t\t\trtnval = timeDetail.get(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// did we reach the end of the array without finding an entry?\n\t\t\t// if so, the next time is the first time tomorrow\n\t\t\tif( i == timeDetail.size() )\n\t\t\t\trtnval = timeDetail.get(0);\n\t\t}\n\t\t\n\t\treturn rtnval;\n\t}", "public Calendar getLastVisibleDay() {\n return viewState.getLastVisibleDay();\n }", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "int getRecurrenceTimeZoneCode();", "public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMaxEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMaxEffectiveEndUtcDtComparator();\n }", "long getScheduleID() {return mScheduleID; }", "public Candidate getCandidate() {\n\t\tif (candidate == null) {\n\t\t\tsetCandidate(findCandidate(getPlacement().getCandidate().getId()));\n\t\t}\n\t\treturn candidate;\n\t}", "public IScheduleBCF getScheduleBCF()\r\n\t{\r\n\t\treturn scheduleBCF;\r\n\t}", "private void raceEnd()\n {\n Double max = 0.0;\n String winner = \"\";\n System.out.println();\n System.out.println(\"Race over in \"+(aniContestants.get(0).getTime()-1)+\" seconds!\");\n for(Animal ani : aniContestants)\n {\n if(max < ani.getCurrentPosition())\n {\n max = ani.getCurrentPosition();\n winner = ani.getSpecies();\n }\n }\n System.out.println(winner+\" wins!!!\");\n System.out.println();\n }", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public String getPlacementRoadshowSchedule() {\n return placementRoadshowSchedule;\n }", "List<Appointment> getCurrentlyAppointment();", "public Calendar endOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH),\r\n\t\t\t\tbaseCalendar.get(Calendar.DATE) + 1);\r\n\r\n\t\treturn c2;\t\t\r\n\t}", "public TimeZoneDefinition getEndTimeZone() throws ServiceLocalException {\n\t\treturn (TimeZoneDefinition) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.EndTimeZone);\n\t}", "@Override\n\tpublic Integer nextCandidate() {\n\t\treturn null;\n\t}", "public Calendar getAssignmentDeadlineCalendar() {\n return this.assignmentDeadlineCalendar;\n }", "public LocalDate getLastDatePerformed(Soloist soloist, Composition composition){\n\t\tArrayList<PerformedConcert> performedConcerts = getPerformedConcerts();\n\t\tArrayList<LocalDate> dates = new ArrayList<>();\n\t\tif(performedConcerts.isEmpty())return null;\n\t\tfor(PerformedConcert pc: performedConcerts){\n\t\t\tLocalDate date = pc.getDate();\n\t\t\tArrayList<Composition> compositions = pc.getCompositions();\n\t\t\tfor(Composition c: compositions){\n\t\t\t\tif(!c.hasSoloist())continue;//if this is a composition without a soloist, search next\n\t\t\t\tif(c.getCompositionID().equals(composition.getCompositionID())){\n\t\t\t\t\tArrayList<Soloist> soloists = ((Composition_Soloist)c).getSoloists();\n\t\t\t\t\tif(soloists.contains(soloist)){\n\t\t\t\t\t\tdates.add(date);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(dates.isEmpty())return null;\n\t\tCollections.sort(dates);// sort the dates, the last one is the latest date\n\t\treturn dates.get(dates.size()-1);\n\t}", "@Override\n\tpublic int getPerformScheduleSeqMax() {\n\t\treturn dao.getPerformScheduleSeqMax();\n\t}", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public RaceSituation getLatestByStage(Stage stage, Long limit);", "public int getSchedulingValue() {\n return scheduling_;\n }", "public int largestEntry() throws SQLException {\r\n String statement = \"SELECT Appointment_ID FROM appointments ORDER BY Appointment_ID DESC LIMIT 0,1\";\r\n ResultSet rs = conn.prepareStatement(statement).executeQuery();\r\n rs.next();\r\n return rs.getInt(\"Appointment_ID\");\r\n }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "protected Schedule getSchedule(String command, Calendar calendar) {\n List<Schedule> scheduleList = calendar.getSchedules();\n int index;\n\n try {\n index = Integer.parseInt(command) - 1;\n if (index < scheduleList.size() && !(index < 0)) {\n return scheduleList.get(index);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n } catch (NumberFormatException e) {\n if (command.equals(\"q\")) {\n return null;\n } else if (calendar.getSchedule(command) != null) {\n return calendar.getSchedule(command);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n }\n }", "Planning findByplanningId(long planningId);", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Schedule getScheduleForSelectedStopAndRoute(String route, int direction, int stopId){\n Schedule selectedStopSchedule = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND stops._id = \" + stopId + \" \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n selectedStopSchedule.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return selectedStopSchedule;\r\n }", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public ScheduleType getScheduleType();", "public int getSchedulingValue() {\n return scheduling_;\n }", "com.google.cloud.compute.v1.Scheduling getScheduling();", "public LocalDateTime getArrivalTimeOfIndex(int index)\r\n\t{\r\n\t\treturn timeslot.getArrival().get(index);\r\n\t}", "public DateTime getOccurrenceTime() { return occurrenceTime; }" ]
[ "0.7678633", "0.68493265", "0.66891414", "0.6389148", "0.63296235", "0.6281791", "0.61873573", "0.5964183", "0.59376067", "0.59027785", "0.58971363", "0.5883025", "0.58249336", "0.55642635", "0.5473584", "0.54561704", "0.54034036", "0.5390086", "0.538178", "0.53761035", "0.5282549", "0.5277563", "0.51006776", "0.5096129", "0.50694585", "0.500397", "0.49140552", "0.48930192", "0.48797417", "0.48584956", "0.4845449", "0.48370898", "0.48292306", "0.4774162", "0.4765544", "0.47605902", "0.47247964", "0.46941856", "0.46779862", "0.4669314", "0.46468335", "0.46386424", "0.46302217", "0.4621477", "0.461538", "0.4607139", "0.45856753", "0.45787126", "0.45577508", "0.45517373", "0.45506126", "0.45387664", "0.45346087", "0.45193172", "0.45144922", "0.45117468", "0.45088878", "0.45000187", "0.44938704", "0.44804698", "0.44759098", "0.44745383", "0.44602254", "0.44600138", "0.4447735", "0.444374", "0.44436026", "0.4430434", "0.44252208", "0.44211525", "0.44079766", "0.44061315", "0.44029063", "0.44018525", "0.43984184", "0.4396778", "0.43964413", "0.4396089", "0.43804127", "0.43803555", "0.4360164", "0.43583104", "0.43499264", "0.43410245", "0.43269178", "0.43173224", "0.43099144", "0.43015265", "0.42853177", "0.42802867", "0.42776215", "0.4275616", "0.4272972", "0.42715478", "0.4261904", "0.42610013", "0.42590326", "0.42588606", "0.42576256", "0.42556152" ]
0.7564985
1
Returns the last interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tint count = countByVacancyCandidate(vacancyCandidateId);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\tcount - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_Last(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public OccurrenceInfo getLastOccurrence() throws ServiceLocalException {\n\t\treturn (OccurrenceInfo) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.FirstOccurrence);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public DegreeCurricularPlan getLastDegreeCurricularPlan() {\n\t\tDegreeCurricularPlan result = null;\n\t\tfor (DegreeCurricularPlan degreeCurricularPlan : getDegreeCurricularPlans()) {\n\t\t\tif (result == null\n\t\t\t\t\t|| degreeCurricularPlan.getBeginDate().after(\n\t\t\t\t\t\t\tresult.getBeginDate())) {\n\t\t\t\tresult = degreeCurricularPlan;\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "WorkingSchedule getById(Long workingScheduleId);", "java.lang.String getSchedule();", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "ScheduleFinishType getScheduleFinish();", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public GregorianCalendar getEndTimeFromSelectedTime(Film selected_film){\n\n GregorianCalendar returncalendar = new GregorianCalendar();\n returncalendar.setTimeInMillis(0);\n\n returncalendar.set(Calendar.HOUR_OF_DAY, this.getSelectedTime().get(Calendar.HOUR_OF_DAY));\n returncalendar.set(Calendar.MINUTE, this.getSelectedTime().get(Calendar.MINUTE));\n\n returncalendar.add(Calendar.HOUR_OF_DAY, selected_film.getLength().get(Calendar.HOUR_OF_DAY));\n returncalendar.add(Calendar.MINUTE, selected_film.getLength().get(Calendar.MINUTE));\n\n return returncalendar;\n }", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public Election getElectionDay() {\t\t\r\n\t\tOptional<Election> election = null;\r\n\t\tList<Election> electionList = DataDAO.getElectionList();\r\n\t\telection = electionList.stream().filter(e -> e.getElectionDate().equals(DateUtil.asDate(LocalDate.now()))).findFirst();\r\n\t\tif (election.isPresent()) {\r\n\t\t\treturn election.get();\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "public Timestamp getLastCompetition() {\r\n return lastCompetition;\r\n }", "private static int meetRecentDeadline(LocalDate startdate, LocalDate deadlineDate, String repetition){\n\n LocalDate today = LocalDate.now();\n\n if(deadlineDate.isEqual(today)){\n return MEET_FINAL_DEADLINE;\n }\n switch (repetition){\n case \"{Daily}\":\n if(today.isEqual(startdate.plusDays(1))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Weekly}\":\n if(today.isEqual(startdate.plusDays(7))){\n return MEET_RECENT_DEADLINE;\n }\n case \"{Monthly}\":\n if(today.isEqual(startdate.plusMonths(1))){\n return MEET_RECENT_DEADLINE;\n }\n }\n return NO_RECENT_DEADLINE;\n }", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "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 }", "public Temporal getEndRecurrence() { return endRecurrence; }", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public static int getLastSubjectId() {\n Calendar c = Calendar.getInstance();\n Date now = c.getTime();\n int day;\n int lesson = -1;\n boolean end = false;\n\n SimpleDateFormat s = new SimpleDateFormat(\"dd.MM.yyy HH:mm\", Locale.GERMAN);\n\n if((day = schedule.getTodaysNumber()) < 5) {\n for(int i = 0; i < 9 && !end; i++) {\n c.set(Calendar.HOUR_OF_DAY, Storage.schedule.getTime(i, 0, 0));\n c.set(Calendar.MINUTE, Storage.schedule.getTime(i, 0, 0));\n if(now.before(c.getTime())) {\n lesson = i-1;\n end = true;\n }\n }\n if(lesson == -1) {\n return -1;\n }\n if(Storage.schedule.getLesson(day, lesson) == null) {\n return -1;\n }\n return Storage.schedule.getLesson(day, lesson).getSubjectIndex();\n }\n else {\n return -1;\n }\n }", "List<WorkingSchedule> getByPlaceId(Long placeId);", "int getParticipantNum(long runningSportId);", "public RaceSituation getLatestByStage(Stage stage);", "public String getSchedule() {\n return schedule;\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "public void seeVaccinationSchedule() {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \" SELECT name, vaccination_type, date_to_vaccinate_next \" +\n \" FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" ORDER BY date_to_vaccinate_next\";\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsName = resultSet.getString(\"name\");\n String vaccineTitle = resultSet.getString(\"vaccination_type\");\n String nextVaccination = resultSet.getString(\"date_to_vaccinate_next\");\n\n\n System.out.println(petsName.toUpperCase(Locale.ROOT) + \" -> \" + \"|| Next vaccination: \" + nextVaccination + \" || Vaccine Type: \" + vaccineTitle);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting vaccination schedule list \" + exception);\n\n }\n\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public FacultySchedule getSchedule() {\n\t\treturn schedule;\n\t}", "public ArrayList<int[]> getSchedule(){\n // Initialize the output list\n ArrayList<int[]> schedule = new ArrayList<>();\n\n // Initialize a list of tuples in the form (rally id, rally duration, rally deadline)\n ArrayList<int[]> rallyList = new ArrayList<>();\n for (int i = 0; i < _rallies.size(); i++) {\n int[] info = new int[] {i, _rallies.get(i)[0], _rallies.get(i)[1]};\n rallyList.add(info);\n }\n\n // Sort them in an increasing order of the deadline\n rallyList.sort(Comparator.comparingInt(rally -> rally[2]));\n\n // Set the start time\n int f = 0;\n\n // If there is no way to finish any one of the rally before its deadline, then we will set this to true.\n boolean nuke = false;\n\n // Run a greedy algorithm (Scheduling to Minimize Lateness)\n for (int[] rally : rallyList) {\n int[] plan = new int[] {rally[0], f};\n int duration = rally[1];\n int deadline = rally[2];\n f += duration;\n\n if (f > deadline) {\n nuke = true;\n break;\n }\n\n schedule.add(plan);\n }\n\n if (nuke) {\n return new ArrayList<>();\n }\n\n return schedule;\n }", "public CanaryScheduleOutput getSchedule() {\n return this.schedule;\n }", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "Schedule selectByPrimaryKey(Integer id);", "public int getLectureVacancy() {\n return tutLabGroups.get(\"_LEC\")[0];\n }", "@Override\n\tpublic long getCandidateId() {\n\t\treturn _candidate.getCandidateId();\n\t}", "public TimeDetail getNextDeparture( String destination, LocalTime stationArrivalTime )\n\t{\n\t\tTimeDetail rtnval= null;\n\t\tArrayList<TimeDetail> timeDetail = null;\n\t\tint i;\n\t\t\n\t\tfor( i=0; i<timeTableAL.size() && timeDetail == null; i++ )\n\t\t{\n\t\t\tif( timeTableAL.get(i).getStationName().equalsIgnoreCase(destination) )\n\t\t\t\ttimeDetail = timeTableAL.get(i).getTimeDetail();\n\t\t}\n\t\t\n\t\t// if we found the station\n\t\tif( timeDetail != null )\n\t\t{\t\t\t\n\t\t\tfor( i=0; i<timeDetail.size(); i++)\n\t\t\t{\n\t\t\t\tif( timeDetail.get(i).getDepartureTime().compareTo(stationArrivalTime)==1||timeDetail.get(i).getDepartureTime().compareTo(stationArrivalTime)==0 )\n\t\t\t\t{\n\t\t\t\t\trtnval = timeDetail.get(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// did we reach the end of the array without finding an entry?\n\t\t\t// if so, the next time is the first time tomorrow\n\t\t\tif( i == timeDetail.size() )\n\t\t\t\trtnval = timeDetail.get(0);\n\t\t}\n\t\t\n\t\treturn rtnval;\n\t}", "public Calendar getLastVisibleDay() {\n return viewState.getLastVisibleDay();\n }", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "int getRecurrenceTimeZoneCode();", "public static JwComparator<AcUspsInternationalCgrWorkLegFlightConflictSummaryVo> getMaxEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrWorkLegFlightConflictSummaryVoTools.instance.getMaxEffectiveEndUtcDtComparator();\n }", "long getScheduleID() {return mScheduleID; }", "public Candidate getCandidate() {\n\t\tif (candidate == null) {\n\t\t\tsetCandidate(findCandidate(getPlacement().getCandidate().getId()));\n\t\t}\n\t\treturn candidate;\n\t}", "public IScheduleBCF getScheduleBCF()\r\n\t{\r\n\t\treturn scheduleBCF;\r\n\t}", "private void raceEnd()\n {\n Double max = 0.0;\n String winner = \"\";\n System.out.println();\n System.out.println(\"Race over in \"+(aniContestants.get(0).getTime()-1)+\" seconds!\");\n for(Animal ani : aniContestants)\n {\n if(max < ani.getCurrentPosition())\n {\n max = ani.getCurrentPosition();\n winner = ani.getSpecies();\n }\n }\n System.out.println(winner+\" wins!!!\");\n System.out.println();\n }", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public String getPlacementRoadshowSchedule() {\n return placementRoadshowSchedule;\n }", "List<Appointment> getCurrentlyAppointment();", "public Calendar endOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH),\r\n\t\t\t\tbaseCalendar.get(Calendar.DATE) + 1);\r\n\r\n\t\treturn c2;\t\t\r\n\t}", "public TimeZoneDefinition getEndTimeZone() throws ServiceLocalException {\n\t\treturn (TimeZoneDefinition) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.EndTimeZone);\n\t}", "@Override\n\tpublic Integer nextCandidate() {\n\t\treturn null;\n\t}", "public Calendar getAssignmentDeadlineCalendar() {\n return this.assignmentDeadlineCalendar;\n }", "public LocalDate getLastDatePerformed(Soloist soloist, Composition composition){\n\t\tArrayList<PerformedConcert> performedConcerts = getPerformedConcerts();\n\t\tArrayList<LocalDate> dates = new ArrayList<>();\n\t\tif(performedConcerts.isEmpty())return null;\n\t\tfor(PerformedConcert pc: performedConcerts){\n\t\t\tLocalDate date = pc.getDate();\n\t\t\tArrayList<Composition> compositions = pc.getCompositions();\n\t\t\tfor(Composition c: compositions){\n\t\t\t\tif(!c.hasSoloist())continue;//if this is a composition without a soloist, search next\n\t\t\t\tif(c.getCompositionID().equals(composition.getCompositionID())){\n\t\t\t\t\tArrayList<Soloist> soloists = ((Composition_Soloist)c).getSoloists();\n\t\t\t\t\tif(soloists.contains(soloist)){\n\t\t\t\t\t\tdates.add(date);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(dates.isEmpty())return null;\n\t\tCollections.sort(dates);// sort the dates, the last one is the latest date\n\t\treturn dates.get(dates.size()-1);\n\t}", "@Override\n\tpublic int getPerformScheduleSeqMax() {\n\t\treturn dao.getPerformScheduleSeqMax();\n\t}", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public RaceSituation getLatestByStage(Stage stage, Long limit);", "public int getSchedulingValue() {\n return scheduling_;\n }", "public int largestEntry() throws SQLException {\r\n String statement = \"SELECT Appointment_ID FROM appointments ORDER BY Appointment_ID DESC LIMIT 0,1\";\r\n ResultSet rs = conn.prepareStatement(statement).executeQuery();\r\n rs.next();\r\n return rs.getInt(\"Appointment_ID\");\r\n }", "com.google.cloud.gkebackup.v1.BackupPlan.Schedule getBackupSchedule();", "protected Schedule getSchedule(String command, Calendar calendar) {\n List<Schedule> scheduleList = calendar.getSchedules();\n int index;\n\n try {\n index = Integer.parseInt(command) - 1;\n if (index < scheduleList.size() && !(index < 0)) {\n return scheduleList.get(index);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n } catch (NumberFormatException e) {\n if (command.equals(\"q\")) {\n return null;\n } else if (calendar.getSchedule(command) != null) {\n return calendar.getSchedule(command);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n }\n }", "Planning findByplanningId(long planningId);", "public static Date getConvoLatestActivity(ConversationBean convo) {\r\n\t\tDBCollection activitiesColl = getCollection(ACTIVITIES_COLLECTION);\r\n\t\t\r\n\t\tDBRef convoRef = createRef(ConversationDAO.CONVERSATIONS_COLLECTION, convo.getId());\r\n\t\tDBObject query = new BasicDBObject(\"convoId\", convoRef);\r\n\t\tDBCursor cursor = \r\n\t\t\tactivitiesColl.find(query, new BasicDBObject(\"time\", 1)).sort(new BasicDBObject(\"time\", -1)).limit(1);\r\n\t\t\r\n\t\tif (cursor.hasNext()) {\r\n\t\t\tDate latestActivityTime = (Date)cursor.next().get(\"time\");\r\n\t\t\treturn latestActivityTime;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Schedule getScheduleForSelectedStopAndRoute(String route, int direction, int stopId){\n Schedule selectedStopSchedule = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND stops._id = \" + stopId + \" \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n selectedStopSchedule.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return selectedStopSchedule;\r\n }", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public ScheduleType getScheduleType();", "public int getSchedulingValue() {\n return scheduling_;\n }", "com.google.cloud.compute.v1.Scheduling getScheduling();", "public LocalDateTime getArrivalTimeOfIndex(int index)\r\n\t{\r\n\t\treturn timeslot.getArrival().get(index);\r\n\t}", "public DateTime getOccurrenceTime() { return occurrenceTime; }" ]
[ "0.7564985", "0.68493265", "0.66891414", "0.6389148", "0.63296235", "0.6281791", "0.61873573", "0.5964183", "0.59376067", "0.59027785", "0.58971363", "0.5883025", "0.58249336", "0.55642635", "0.5473584", "0.54561704", "0.54034036", "0.5390086", "0.538178", "0.53761035", "0.5282549", "0.5277563", "0.51006776", "0.5096129", "0.50694585", "0.500397", "0.49140552", "0.48930192", "0.48797417", "0.48584956", "0.4845449", "0.48370898", "0.48292306", "0.4774162", "0.4765544", "0.47605902", "0.47247964", "0.46941856", "0.46779862", "0.4669314", "0.46468335", "0.46386424", "0.46302217", "0.4621477", "0.461538", "0.4607139", "0.45856753", "0.45787126", "0.45577508", "0.45517373", "0.45506126", "0.45387664", "0.45346087", "0.45193172", "0.45144922", "0.45117468", "0.45088878", "0.45000187", "0.44938704", "0.44804698", "0.44759098", "0.44745383", "0.44602254", "0.44600138", "0.4447735", "0.444374", "0.44436026", "0.4430434", "0.44252208", "0.44211525", "0.44079766", "0.44061315", "0.44029063", "0.44018525", "0.43984184", "0.4396778", "0.43964413", "0.4396089", "0.43804127", "0.43803555", "0.4360164", "0.43583104", "0.43499264", "0.43410245", "0.43269178", "0.43173224", "0.43099144", "0.43015265", "0.42853177", "0.42802867", "0.42776215", "0.4275616", "0.4272972", "0.42715478", "0.4261904", "0.42610013", "0.42590326", "0.42588606", "0.42576256", "0.42556152" ]
0.7678633
0
Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext( long interviewScheduleId, long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<Activity> getActivities() {\n getRoutesFromDao();\n updateOverridenRoutes();\n List<Activity> activities = new ArrayList<>();\n for(Route route: routes){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n for(Route route: overrideTeamRoutes.values()){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n Collections.sort(activities, (a,b) -> {\n return ActivityUtils.stringToTime(a.getDetail(Activity.DATE))\n .compareTo(ActivityUtils.stringToTime(b.getDetail(Activity.DATE)));\n });\n return activities;\n }", "public abstract List getAllOverlapAppt(String provider, Date startTime,\r\n\t\t\tDate endTime);", "public List<FlightSchedule> getFlightsAvailables(ScheduleRepository scheduleFinderService, String from, String to,\n\t\t\tLocalDateTime startDateTime, LocalDateTime endDateTime) {\n\t\tList<FlightSchedule> flightsAvailables = new ArrayList<FlightSchedule>();\n\t\tint day = 0;\n\t\tint month = 0;\n\t\tint year = startDateTime.getYear();\n\t\tLocalDateTime departureDateTime, arrivalDateTime;\n\t\tFlightSchedule flightResult;\n\t\tList<Schedule> schedules = getSchedules(scheduleFinderService, from, to, startDateTime, endDateTime);\n\t\tif (!schedules.isEmpty()) {\n\t\t\tList<DayFlight> flightsDays = schedules.stream().flatMap(schedule -> schedule.getDays().stream()).collect(Collectors.toList());\n\t\t\tList<DayFlight> flightsOfDay = flightsDays.stream().filter(getDay(startDateTime)).collect(Collectors.toList());\n\t\t\tList<Flight> flights = flightsOfDay.stream().flatMap(flight -> flight.getFlights().stream()).collect(Collectors.toList());\n\t\t\tmonth = startDateTime.getMonthValue();\n\t\t\tday = startDateTime.getDayOfMonth();\n\t\t\tfor (Flight flight : flights) {\n\t\t\t\tdepartureDateTime = createLocalDateTime(year, month, day, flight.getDepartureTime());\n\t\t\t\tarrivalDateTime = createLocalDateTime(year, month, day, flight.getArrivalTime());\n\t\t\t\tif (validFlight(startDateTime, endDateTime, departureDateTime, arrivalDateTime)) {\n\t\t\t\t\tlog.info(String.format(\"Create Fligt Result: from %s, to %s, departureTime %s, arrivalTime %s\",\n\t\t\t\t\t\t\tfrom, to, departureDateTime, arrivalDateTime));\n\t\t\t\t\tflightResult = createFlightResult(from, to, departureDateTime, arrivalDateTime);\n\t\t\t\t\tflightsAvailables.add(flightResult);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn flightsAvailables;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public BwCalendar fetchBeforeCalendar() {\n return beforeCalendar;\n }", "public List<ScheduleTransactionInfo> searchForScheduleTransactions(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public Iterator<Appointment> appointments()\n {\n return this.agenda.iterator();\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "public List<String> searchForTimeSlotIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Test\n\tpublic void testListReservationsOfFacilityBeforeInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\t// first reservation start date is 1 hour before list start\n\t\tcal.add(Calendar.HOUR, -26);\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +1);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tdataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()), reservation1StartDate,\n\t\t\t\treservation1EndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertTrue(reservationsOfFacility.isEmpty());\n\t}", "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n public List<ScheduledInterview> getForPerson(String userId) {\n List<ScheduledInterview> relevantInterviews = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n scheduledInterviews.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (userId.equals(scheduledInterview.interviewerId())\n || userId.equals(scheduledInterview.intervieweeId())\n || userId.equals(scheduledInterview.shadowId())) {\n relevantInterviews.add(scheduledInterview);\n }\n }\n return relevantInterviews;\n }", "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 }", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "public List<ScheduledInterview> getForPositionWithoutShadowInRange(\n Job position, Instant minTime, Instant maxTime) {\n List<ScheduledInterview> interviewsInRange = getInRange(minTime, maxTime);\n Set<ScheduledInterview> notValidInterviews = new HashSet<ScheduledInterview>();\n for (ScheduledInterview interview : interviewsInRange) {\n if (!interview.position().equals(position) || !interview.shadowId().equals(\"\")) {\n notValidInterviews.add(interview);\n }\n }\n interviewsInRange.removeAll(notValidInterviews);\n return interviewsInRange;\n }", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public final List<Appointment> getAppointmentsFor(LocalDate date) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n LocalDate startDate = a.getInterval().getStartDate();\n LocalDate endDate = a.getInterval().getEndDate();\n return startDate.equals(date) || endDate.equals(date);\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "public List<String> searchForScheduleTransactionIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "@Test\r\n public void testReflexivityOverlappingTimePeriods(){\n DateTime startAvailability1 = new DateTime(2021, 7, 9, 10, 30);\r\n DateTime endAvailability1 = new DateTime(2021, 7, 9, 11, 30);\r\n DateTime startAvailability2 = new DateTime(2021, 7, 9, 11, 0);\r\n DateTime endAvailability2 = new DateTime(2021, 7, 9, 12, 0);\r\n Availability availability1 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability1, endAvailability1);\r\n Availability availability2 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability2, endAvailability2);\r\n assertTrue(availability1.overlapsWithTimePeriod(availability2));\r\n assertTrue(availability2.overlapsWithTimePeriod(availability1));\r\n }", "@Test\r\n\tpublic void testScheduleInterviewListReturnNull() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "public List<LocalDate> getWorkingDaysVacations(List<Vacation> vacationList) {\n\n List<LocalDate> listToReturn = new ArrayList<>();\n\n for (LocalDate date : getDaysBetweenDates(vacationList)) {\n\n if (dateDiffOfWeekend(date)) {\n\n listToReturn.add(date);\n }\n }\n return listToReturn;\n }", "public final List<Appointment> getAppointmentsBetween(Interval interval) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n return interval.intersects(a.getInterval());\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "public void orderList(ArrayList<DefaultActivity> scheduleList) {\n\n }", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "public TaskList incoming(Date from, Date to) {\n ArrayTaskList incomingTasks = new ArrayTaskList();\n for (int i = 0; i < size(); i++) {\n if (getTask(i).nextTimeAfter(from) != null && getTask(i).nextTimeAfter(from).compareTo(to) <= 0) {\n incomingTasks.add(getTask(i));\n }\n }\n return incomingTasks;\n }", "List<Appointment> getCurrentlyAppointment();", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "public List<InflectionPoint> getInflectionPoints(long start, long end) {\n List<InflectionPoint> results = new ArrayList<InflectionPoint>();\n for (InflectionPoint inflectionPoint : inflectionPoints) {\n if (inflectionPoint.utcDateTime <= start) {\n results.add(new InflectionPoint(start, inflectionPoint.offset));\n break;\n } else if (inflectionPoint.utcDateTime < end) {\n results.add(new InflectionPoint(inflectionPoint.utcDateTime,\n inflectionPoint.offset));\n }\n }\n return results;\n }", "public Iterator<Appointment> appointments() {\n return appointments.iterator();\n }", "Pair<DateTime, DateTime> getSegmentBounds(ReadableInstant instant) {\n LocalDate date = new DateTime(instant).toLocalDate(); // a day in the local time zone\n DateTime[] fenceposts = getSegmentFenceposts(date);\n for (int i = 0; i + 1 < fenceposts.length; i++) {\n if (!instant.isBefore(fenceposts[i]) && instant.isBefore(fenceposts[i + 1])) {\n return new Pair<>(fenceposts[i], fenceposts[i + 1]);\n }\n }\n return null; // should never get here because start <= instant < stop\n }", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "@Override\n\tpublic List<Appointment> getUpcomingAppointments() {\n\t\treturn mobileDao.getUpcomingAppointments();\n\t}", "public List<ScheduleRequestDisplayInfo> searchForScheduleRequestDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "List<BookingSlot> getSlotsByDateTime(LocalDateTime dateTime);", "@RequestMapping(path = \"/specificCanceledRoutes\", method = RequestMethod.GET)\n\tpublic List<RouteCanceled> getRoutesCanceledByTimeframe(Date from, Date to) {\n\t\tQuery queryObject = new Query(\"Select * from route_canceled\", \"blablamove\");\n\t\tQueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n\t\tInfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n\t\tList<RouteCanceled> routeCanceledList = resultMapper\n\t\t\t\t.toPOJO(queryResult, RouteCanceled.class);\n\n\t\treturn routeCanceledList.stream().filter(\n\t\t\t\trouteCanceled -> !instantIsBetweenDates(\n\t\t\t\t\t\trouteCanceled.getTime(),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tto.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t),\n\t\t\t\t\t\tLocalDateTime.ofInstant(\n\t\t\t\t\t\t\t\tfrom.toInstant(), ZoneOffset.UTC\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t).collect(Collectors.toList());\n\t}", "public void seeVaccinationSchedule() {\n\n try {\n Statement statement = conn.createStatement();\n String sqlStatement;\n\n sqlStatement = \"SELECT * FROM pets\";\n ResultSet resultSet;\n\n sqlStatement =\n \" SELECT name, vaccination_type, date_to_vaccinate_next \" +\n \" FROM pets \" +\n \" LEFT JOIN vaccines \" +\n \" ON pets.id = vaccines.pet_id \" +\n \" ORDER BY date_to_vaccinate_next\";\n\n resultSet = statement.executeQuery(sqlStatement);\n\n while (resultSet.next()) {\n String petsName = resultSet.getString(\"name\");\n String vaccineTitle = resultSet.getString(\"vaccination_type\");\n String nextVaccination = resultSet.getString(\"date_to_vaccinate_next\");\n\n\n System.out.println(petsName.toUpperCase(Locale.ROOT) + \" -> \" + \"|| Next vaccination: \" + nextVaccination + \" || Vaccine Type: \" + vaccineTitle);\n\n }\n } catch (SQLException exception) {\n\n System.out.println(\"Error getting vaccination schedule list \" + exception);\n\n }\n\n }", "public void sortAppointments() {\n reminders = sort(reminders);\n followup = sort(followup);\n }", "@Test\n\tpublic void testListReservationsOfUserBeforeInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\t// first reservation start date is 2 hour before list start\n\t\tcal.add(Calendar.HOUR, -26);\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +1);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tdataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), reservation1StartDate,\n\t\t\t\treservation1EndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertTrue(reservationsOfUser.isEmpty());\n\t}", "private Set<WorkflowPlan> evaluatePlansFromScheduler(Set<WorkflowPlan> candidatePlans) {\n return candidatePlans;\n }", "public ArrayList<Schedule> getBuddiesSchedules() {\n\n return new ArrayList<Schedule>(buddies);\n }", "@Override\n public List<ScheduledInterview> getScheduledInterviewsInRangeForUser(\n String userId, Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviews = getForPerson(userId);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<ScheduledInterview>();\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n return scheduledInterviewsInRange;\n }", "public List<ScheduleBatchInfo> searchForScheduleBatches(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<RealizadaEmpresa> EncEmpPorPeriodo(Cliente c, LocalDate inicio, LocalDate fim){\n List<RealizadaEmpresa> re= new ArrayList<RealizadaEmpresa>(this.clientes.get(c.getEmail()).getRe());\n List<RealizadaEmpresa> aux = new ArrayList<RealizadaEmpresa>();\n for (RealizadaEmpresa a : re){\n if (a.getData().isAfter(inicio) && a.getData().isBefore(fim)) aux.add(a);\n }\n return aux; \n }", "Collection<AssociationEnd> getSpecifiedEnds();", "public static boolean CheckOverlap(int Customer_ID, LocalDate date, LocalTime start, LocalTime end, int Appointment_ID) {\n\n ObservableList<Appointment> AList = DBAppointments.GetAllAppointment();\n ObservableList<Appointment> FList = AList.filtered(A -> {\n if (A.getAppointment_ID() != Appointment_ID /*&& A.getCustomerid() == Customer_ID*/) {\n return true;\n\n }\n return false;\n });\n\n LocalDateTime ps = LocalDateTime.of(date, start);\n LocalDateTime pe = LocalDateTime.of(date, end);\n for (Appointment a : FList) {\n LocalDateTime as = LocalDateTime.of(a.getDate(), a.getStartTime());\n LocalDateTime ae = LocalDateTime.of(a.getDate(), a.getEndTime());\n\n if ((as.isAfter(ps) || as.isEqual(ps)) && as.isBefore(pe)) {\n return true;\n }\n if (ae.isAfter(ps) && (ae.isBefore(pe) || ae.isEqual(pe))) {\n return true;\n }\n if ((as.isBefore(ps) || as.isEqual(ps)) && (ae.isAfter(pe) || ae.isEqual(pe))) {\n return true;\n }\n }\n\n return false;\n }", "public List<Event> getParticipatedEvents() {\n return participatedEvents;\n }", "public ArrayList<notOverlapping> getNotOverlappingSessionList(){\n \n ArrayList<notOverlapping> sessionList= new ArrayList<notOverlapping>(); \n Connection connection=getConnection();\n \n String query= \"SELECT `NotOverlappingSessionId`, `SessionId`, `Subject` FROM `notoverlappingsessions`\";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n notOverlapping session;\n while(rs.next()){\n session = new notOverlapping(rs.getInt(\"NotOverlappingSessionId\"),rs.getInt(\"SessionId\"),rs.getString(\"Subject\"));\n sessionList.add(session);\n \n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }", "List<AirlineFlightDelays> listArrivalFlightDelaysByAirlineAsAirlineFlightDelays();", "java.util.Calendar getSearchRecurrenceStart();", "private List<LocalDate> getBackDatedEntitlementDates(List<LocalDate> newChildrenDatesOfBirth, LocalDate cycleStartDate) {\n LocalDate earliestDateOfBirth = min(newChildrenDatesOfBirth);\n LocalDate rollingEntitlementDate = cycleStartDate.minusDays(entitlementCalculationDurationInDays);\n List<LocalDate> backDatedEntitlementDates = new ArrayList<>();\n\n while (rollingEntitlementDate.isAfter(earliestDateOfBirth) || rollingEntitlementDate.isEqual(earliestDateOfBirth)) {\n backDatedEntitlementDates.add(rollingEntitlementDate);\n rollingEntitlementDate = rollingEntitlementDate.minusDays(entitlementCalculationDurationInDays);\n }\n\n return backDatedEntitlementDates;\n }", "ArrayList<HabitEvent> getHabitEvents();", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "public ArrayList<int[]> getSchedule(){\n // Initialize the output list\n ArrayList<int[]> schedule = new ArrayList<>();\n\n // Initialize a list of tuples in the form (rally id, rally duration, rally deadline)\n ArrayList<int[]> rallyList = new ArrayList<>();\n for (int i = 0; i < _rallies.size(); i++) {\n int[] info = new int[] {i, _rallies.get(i)[0], _rallies.get(i)[1]};\n rallyList.add(info);\n }\n\n // Sort them in an increasing order of the deadline\n rallyList.sort(Comparator.comparingInt(rally -> rally[2]));\n\n // Set the start time\n int f = 0;\n\n // If there is no way to finish any one of the rally before its deadline, then we will set this to true.\n boolean nuke = false;\n\n // Run a greedy algorithm (Scheduling to Minimize Lateness)\n for (int[] rally : rallyList) {\n int[] plan = new int[] {rally[0], f};\n int duration = rally[1];\n int deadline = rally[2];\n f += duration;\n\n if (f > deadline) {\n nuke = true;\n break;\n }\n\n schedule.add(plan);\n }\n\n if (nuke) {\n return new ArrayList<>();\n }\n\n return schedule;\n }", "public List<String> searchForScheduleRequestGroupConstraintIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public List<String> searchForScheduleRequestSetIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Test\n\tpublic void testListReservationsOfFacilityInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID,\n\t\t\t\tArrays.asList(room1.getId(), infoBuilding.getId()), reservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertEquals(2, reservationsOfFacility.size());\n\t\tassertTrue(reservationsOfFacility.contains(reservation1));\n\t\tassertTrue(reservationsOfFacility.contains(reservation2));\n\t}", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "public int[] computeAvailabilities(Building selected, Calendar selectedDate, Calendar now) {\n if (selected == null) {\n return null;\n }\n int day = selectedDate.get(Calendar.DAY_OF_WEEK);\n //some modulo shenanigans because weekDays[0] is monday but Calendar doesn't have the same\n day = day + 5;\n day = day % 7;\n Weekdays openingHoursWeek = new Weekdays(selected.getOpeningHours());\n String openingHoursDay = openingHoursWeek.getWeekdays().get(day);\n //if closed\n if (openingHoursDay.equals(Weekdays.CLOSED)) {\n return null;\n }\n int nowDay = now.get(Calendar.DAY_OF_WEEK);\n int nowMonth = now.get(Calendar.DAY_OF_MONTH);\n int dayClean = selectedDate.get(Calendar.DAY_OF_WEEK);\n int month = selectedDate.get(Calendar.DAY_OF_MONTH);\n int hours = now.get(Calendar.HOUR_OF_DAY);\n int minutes = now.get(Calendar.MINUTE);\n if (minutes != 0) {\n hours++;\n }\n String begin = openingHoursDay.split(\"-\")[0];\n String end = openingHoursDay.split(\"-\")[1];\n int beginTime = Integer.parseInt(begin.split(\":\")[0]);\n int endTime = Integer.parseInt(end.split(\":\")[0]);\n int[] res = new int[2];\n if (nowDay == dayClean\n && nowMonth == month && hours > beginTime) {\n beginTime = hours;\n }\n res[0] = beginTime;\n res[1] = endTime;\n return res;\n }", "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}", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public boolean isOverlapping(int appointmentId, String start, String end) throws Exception {\n\n //A Fetcher object for getting the appointments from the database. I discovered an error where the Fetcher and\n //DateAndTime class call each other back and forth in a never-ending loop if I declare them outside the methods\n //ie as global variables.\n Fetcher fetcher = new Fetcher();\n //A list of appointments that have been fetched from the database. Used for extracting start/end times\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n fetcher.fetchAppointments(appointments);\n\n //Convert the provided start/end strings to LocalDateTime variables\n LocalDateTime startTime = LocalDateTime.parse(start, dateTimeFormatter);\n LocalDateTime endTime = LocalDateTime.parse(end, dateTimeFormatter);\n\n //Loop through the entire appointments list and set each start/end time to a LocalDateTime variable to be\n //compared.\n for(int i = 0; i < appointments.size(); i++){\n\n //If the appointment ID matches an existing ID in the database, continue to the next iteration.\n if(appointments.get(i).getAppointmentId() == appointmentId){\n continue;\n }\n\n //Create LocalDateTimes from start/end strings from the current appointment.\n LocalDateTime appointmentStart = LocalDateTime.parse(appointments.get(i).getStart(), dateTimeFormatter);\n LocalDateTime appointmentEnd = LocalDateTime.parse(appointments.get(i).getEnd(), dateTimeFormatter);\n\n //If the start time is greater than or equal to an existing appointment start time AND the end time is less\n //than that appointment's end time, the appointments overlap and return true.\n if(startTime.equals(appointmentStart) || (startTime.isAfter(appointmentStart) && startTime.isBefore(appointmentEnd)) ) {\n return true;\n }\n\n //If the end time is equal to an existing appointment end OR the end time is after an existing appointment\n //start time AND before the existing appointment end time, they overlap and return true.\n if(endTime.equals(appointmentEnd) || (endTime.isAfter(appointmentStart) && endTime.isBefore(appointmentEnd))){\n return true;\n }\n }\n\n //If none of the conditions apply, the appointments do not overlap and return false.\n return false;\n\n\n }", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public DateTime[] getSegmentFenceposts(LocalDate date) {\n DateTime start = date.toDateTimeAtStartOfDay();\n DateTime stop = date.plusDays(1).toDateTimeAtStartOfDay();\n int[] starts = getSegmentStartTimes();\n DateTime[] fenceposts = new DateTime[starts.length + 1];\n for (int i = 0; i < starts.length; i++) {\n fenceposts[i] = start.plusMillis(starts[i]);\n }\n fenceposts[starts.length] = stop;\n return fenceposts;\n }", "Calendar getArrivalDateAndTime();", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }" ]
[ "0.6753486", "0.64163715", "0.5900779", "0.5833884", "0.56081235", "0.5601365", "0.55274785", "0.55258876", "0.5489285", "0.5369314", "0.52481484", "0.50089514", "0.5006967", "0.49924195", "0.49875802", "0.49546346", "0.49463806", "0.4922751", "0.4873255", "0.4834584", "0.4829364", "0.4824088", "0.48218068", "0.47967014", "0.47914377", "0.47888288", "0.47720957", "0.47345355", "0.47095057", "0.46938953", "0.4642543", "0.46239108", "0.46053982", "0.45959595", "0.45889094", "0.45821995", "0.45751518", "0.45678058", "0.45569354", "0.45507085", "0.4549951", "0.45447117", "0.45385152", "0.4537586", "0.4537213", "0.4532239", "0.4531855", "0.45286864", "0.45185623", "0.45113608", "0.45003325", "0.44975543", "0.44921556", "0.448912", "0.44882023", "0.44719255", "0.446131", "0.4443186", "0.44396558", "0.4431354", "0.44098014", "0.44030246", "0.43958253", "0.43872955", "0.43763787", "0.43750733", "0.43726975", "0.43674082", "0.4366718", "0.43657503", "0.4349282", "0.43390048", "0.4334059", "0.43296212", "0.43271598", "0.43265355", "0.4318446", "0.43121028", "0.43108603", "0.43073013", "0.42984104", "0.42963666", "0.42960873", "0.42904878", "0.4283033", "0.42786908", "0.42763782", "0.42554402", "0.4254885", "0.4251271", "0.42458028", "0.4244591", "0.42367092", "0.42334", "0.42326817", "0.4223323", "0.4222575", "0.42222327", "0.42204526", "0.42079577" ]
0.70553017
0
Removes all the interview schedules where vacancyCandidateId = &63; from the database.
public void removeByVacancyCandidate(long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "protected void deletePlannedCalendar(PlannedCalendar calendar) {\n deleteEpochs(calendar.getEpochs());\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n public void deleteAllConnectathonParticipantsForSession() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteAllConnectathonParticipantsForSession\");\n }\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n ConnectathonParticipant cpToDelete = entityManager.find(ConnectathonParticipant.class, cp.getId());\n try {\n\n entityManager.remove(cpToDelete);\n entityManager.flush();\n\n } catch (Exception e) {\n\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n }\n }\n FinancialCalc.updateInvoiceIfPossible(choosenInstitutionForAdmin, TestingSession.getSelectedTestingSession(),\n entityManager);\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "void delPreferedCalendar(String calendarId);", "public void clearAppointments(){\n appointments.clear();\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);", "boolean deleteWholeWorkingScheduleForPlace(Long placeId);", "boolean deleteWorkingSchedule(Long workingScheduleId);", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "public synchronized void resetSchedules() {\n schedules = null;\n }", "private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }", "void unsetSchedule();", "@Test\n\tpublic void testDeleteSchedules() throws Exception {\n\t\tString[] multipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertDeleteSchedules(multipleAppIds, 5, 0);\n\n\t\t// Test multiple applications each having multiple recurring schedule, no specific date schedules\n\t\tassertDeleteSchedules(multipleAppIds, 0, 5);\n\n\t\t// Test multiple applications each having multiple specific date and multiple recurring schedule \n\t\tassertDeleteSchedules(multipleAppIds, 5, 5);\n\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "public int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "int deleteByExample(ScheduleCriteria example);", "public void deleteSchedule(int idx) throws Exception {\n\t\t// delete schedule information from DB. \n\t\tConnection conn = null;\n Statement stmt = null;\n \n try {\n conn = DefaultConnectionFactory.create().getConnection();\n stmt = conn.createStatement();\n \n StringBuilder sql = new StringBuilder();\n sql.append(\" DELETE FROM SCHEDULE_TABLE WHERE SCHE_IDX=\").append(idx);\n \n stmt.executeUpdate(sql.toString());\n\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) { }\n }\n if (conn != null) {\n try {\n conn.close();\n } catch (Exception e) { }\n }\n }\n\t}", "void deleteAllChallenges();", "public void remove(Schedulorinator schedule) {\r\n if (scheduleList.contains(schedule)) {\r\n scheduleList.remove(schedule);\r\n schedule.removePerson(this);\r\n removeObserver(schedule);\r\n }\r\n }", "private void cancelReservation(int id) throws SQLException {\n\t\tupdateReservationCancelStatement.clearParameters();\n\t\tupdateReservationCancelStatement.setInt(1, id);\n\t\tupdateReservationCancelStatement.executeUpdate();\n\t\tgetReservationStatement.clearParameters();\n\t\tgetReservationStatement.setString(1, this.username);\n\t\tgetReservationStatement.setInt(2, id);\n\t\tResultSet result = getReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tFlight f1 = getFlight(result.getInt(3));\n\t\tdeleteTravel(f1.month, f1.dayOfMonth);\n\t\tif (result.getInt(4) > 0){\n\t\t\tFlight f2 = getFlight(result.getInt(4));\n\t\t\tdeleteTravel(f2.month, f2.dayOfMonth);\n\t\t}\n\t}", "private void eliminate() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\tList<Map.Entry<String,Integer>> entryList = new ArrayList(results.entrySet());\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\n\t\t\tif(entryList.get(entryList.size()-1).getValue()/(double)totalVotes > 0.5) {\n\t\t\t\t// when the election already has a winner,\n\t\t\t\tSystem.out.println(\"A candidate already has a majority of the votes.\");\n\t\t\t\tSystem.out.println(\"You cannot remove any more candidates.\");\n\t\t\t}else {\n\n\t\t\t\t// when we can eliminate a candidate,\n\t\t\t\tSystem.out.println(\"Eliminating the lowest-ranked candidate.\");\n\t\t\t\tList lowestCans = new ArrayList();\n\t\t\t\tlowestCans.add(entryList.get(0).getKey());\n\t\t\t\tint i = 1;\n\t\t\t\twhile (i<entryList.size() && entryList.get(i).getValue() == entryList.get(0).getValue() ){\n\t\t\t\t\tlowestCans.add(entryList.get(i).getKey());\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\tif (lowestCans.size() >1) {\n\t\t\t\t\tCollections.sort(lowestCans);\n\t\t\t\t\tCollections.reverse(lowestCans);\n\t\t\t\t}\n\t\t\t\t\telection.eliminateCandidateWithName((String) lowestCans.get(0));\n\n\t\t\t\tSystem.out.println(\"Eliminated \"+lowestCans.get(0)+\".\");\n\t\t\t}\n\n\t\t}catch(UnsupportedOperationException uso){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before eliminating candidates.\");\n\t\t}\n\n\t}", "private void checkReservationValidityAndRemove(){\n\t\t\n\t\tfor (Reservation r: reservationArray){\n\t\t\tif (r.getBookingDateAndTime().get(Calendar.DAY_OF_MONTH)==Calendar.getInstance().get(Calendar.DAY_OF_MONTH)){\n\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MONTH)==Calendar.getInstance().get(Calendar.MONTH)){\n\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.HOUR_OF_DAY)==Calendar.getInstance().get(Calendar.HOUR_OF_DAY)){\n\t\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MINUTE) > 30 + r.getBookingDateAndTime().get(Calendar.MINUTE) ){\n\t\t\t\t\t\t\treservationArray.remove(r);\n\t\t\t\t\t\t\ttablemanager.increaseAvailable();;\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}", "public void clear() {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++) {\r\n\t\t\t\tschedule[i][j] = false;\r\n\t\t\t\tnotifyListeners(i, j);\r\n\t\t\t}\r\n\t}", "private void reset(){\r\n\t\tScheduleDao dao = new ScheduleDaoImpl();\r\n\t\tfinal List<Schedule> result = dao.queryAll();\r\n\t\tif (result != null && result.size() > 0) {\r\n\t\t\tfor (Schedule schedule : result) {\r\n\t\t\t\tif(schedule.getStatus() == Schedule.STATUS_PENDING||schedule.getStatus()==Schedule.STATUS_INPROGRESS){\r\n\t\t\t\t\treset(schedule);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n public void delete(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement = \"DELETE FROM appointments WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "protected void removeCandidate(Integer candidate) throws NoCandidatesException \n {\n for (Cell cell : cells) \n {\n cell.remove(candidate);\n }\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "void removeAirport(Long id);", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "private void removeExistingMeasurementsFromCurrentDate(Treatment treatment, Vital vitalToSync) {\n logger.info(String.format(CLEANING_EXISTING_MEASUREMENTS_FOR_TODAY_S, getCurrentDate()));\n final VitalsSynchronization vitalsSynchronization = getVitalsSynchronization(treatment);\n final VitalMeasurement vitalMeasurement = getVitalMeasurement(vitalToSync, vitalsSynchronization);\n if (vitalMeasurement.getMeasurements() != null && !vitalMeasurement.getMeasurements().isEmpty()) {\n final List<Measurement> measurementsFromCurrentDate = vitalMeasurement.getMeasurements().stream().filter(measurement -> measurement.getDate().compareTo(getCurrentDate()) == 0).collect(Collectors.toList());\n for (Measurement measurementToDelete : measurementsFromCurrentDate) {\n logger.info(String.format(REMOVING_MEASUREMENT_S, measurementToDelete.toString()));\n vitalMeasurement.getMeasurements().remove(measurementToDelete);\n }\n }\n }", "public void deleteCalendar() throws Exception {\n\n try {\n CalendarFeed calendars = service.getFeed(mainCalendarFeedUrl, CalendarFeed.class);\n\n // Loop through each calendar\n for (int i = 0; i < calendars.getEntries().size(); i++) {\n CalendarEntry calendar = calendars.getEntries().get(i);\n\n // If this is the Lotus Notes calendar, delete it\n if (calendar.getTitle().getPlainText().equals(destinationCalendarName)) {\n calendar.delete();\n }\n }\n } catch (Exception ex) {\n throw ex;\n }\n }", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "public static void deleteWaitlistEntry(String name, Date date) {\r\n con = DBConnection.getConnection();\r\n try {\r\n PreparedStatement delete = con.prepareStatement(\"DELETE from Waitlist where Faculty = ? and DATE = ?\");\r\n delete.setString(1, name);\r\n delete.setDate(2, date);\r\n delete.executeUpdate();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void removeFromReminders(Date reminders);", "public void removeInwDepartCompetence(final String id);", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "private void cleanSweep(){\n // Corrects the reminder dates for those reminders which will be repeating.\n refreshAllRepeatReminderDates();\n\n // Starts removing expired reminders.\n Calendar timeRightNow = Calendar.getInstance();\n boolean cleanList;\n for (int outerCounter=0; outerCounter<reminderItems.size();outerCounter++) {\n cleanList=true;\n for (int counter = 0; counter < reminderItems.size(); counter++) {\n int year = reminderItems.get(counter).getReminderYear();\n int month = reminderItems.get(counter).getReminderMonth();\n int day = reminderItems.get(counter).getReminderDay();\n int hour = reminderItems.get(counter).getReminderHour();\n int minute = reminderItems.get(counter).getReminderMinute();\n int second = 0;\n\n Calendar timeOfDeletion = Calendar.getInstance();\n timeOfDeletion.set(year, month, day, hour, minute, second);\n\n if (timeOfDeletion.before(timeRightNow)) {\n deleteReminderItem(counter);\n cleanList=false;\n break;\n }\n }\n if(cleanList){\n break;\n }\n }\n\n // Refreshes the reminder date descriptions (correcting \"Today\" and \"Tomorrow\" depending on the date).\n refreshAllDateDescriptions();\n }", "public void deleteExpiredAbsences() throws SQLException {\n java.sql.Date sqlExpiryDate = java.sql.Date.valueOf(LocalDate.now());\n String SQLStmt = \"DELETE FROM ABSENCE WHERE DATE < '\" + sqlExpiryDate + \"';\";\n try (Connection con = dbc.getConnection()) {\n Statement statement = con.createStatement();\n statement.executeUpdate(SQLStmt); \n }\n }", "void unsetAppointmentsToIgnore();", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic void deleteCours(long id) {\n\t\tem.remove(getCours(id));\n\t}", "public void removeVehicles() {\r\n numberOfVehicles = 0;\r\n for (Lane lane : lanes) {\r\n lane.removeVehicles();\r\n }\r\n }", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void vacateGarage() {\n\t\tvehicles.clear(); \n\t}", "private void clearRecords() {\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(HabitEntry.COLUMN_SUNDAY, 0);\n values.put(HabitEntry.COLUMN_MONDAY, 0);\n values.put(HabitEntry.COLUMN_TUESDAY, 0);\n values.put(HabitEntry.COLUMN_WEDNESDAY, 0);\n values.put(HabitEntry.COLUMN_THURSDAY, 0);\n values.put(HabitEntry.COLUMN_FRIDAY, 0);\n values.put(HabitEntry.COLUMN_SATURDAY, 0);\n\n db.update(HabitEntry.TABLE_NAME, values, null, null);\n\n loaderManager.restartLoader(HABITS_LOADER_ID, null, this);\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "void cancelReservation(String reservationId) throws ObjectNotFoundException;", "private void deleteMeeting(int meetingId) {\n ArrayList<Integer> attendeeIds = attendToRepo.getAttendeeIDs(meetingId);\n for (int id : attendeeIds){\n Log.d(tag, \"Removing attendee \" + id + \" from meeting \" + meetingId);\n attendToRepo.delete(id, meetingId);\n\n /* Deleting the attendee if this one does not attend any meeting any more */\n if (attendToRepo.getMeetingIDs(id).size() == 0)\n attendeeRepo.delete(id);\n }\n\n /* Removing the meeting */\n meetingRepo.delete(meetingId);\n }", "public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "private void cancelSchedule() {\n\n if (timer == null)\n return;\n // timer.cancel();\n }", "@Path(\"/schedule\")\n @DELETE\n public Response cancelStorageReportSchedule(){\n log.debug(\"Cancelling all scheduled storage reports\");\n\n try {\n String responseText = resource.cancelStorageReportSchedule();\n return responseOk(responseText);\n } catch (Exception e) {\n return responseBad(e);\n }\n }", "protected void abortScheduledTasks() {\r\n\r\n\t\tfor (ParallelTask<?> task : scheduledSubtasks) {\r\n\t\t\ttask.cancel();\r\n\t\t}\r\n\r\n\t\tscheduledSubtasks.clear();\r\n\t}", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public void removeFromReminders(List<Date> reminders);", "public StatusInfo deleteSchedule(@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "public void eliminaSugerencias(int mes, int anio, String idDepartamento) {\r\n\t\tif (!alive) return;\r\n\t\tint i = 0;\r\n\t\twhile (i<sugerencias.size()) {\r\n\t\t\tif (sugerencias.get(i).getDept().equals(idDepartamento) && sugerencias.get(i).getFecha().getMonth()==mes && sugerencias.get(i).getFecha().getYear()==anio) {\r\n\t\t\t\tsugerencias.remove(i);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\ti++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public void cancelFlight(){\n \n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.removePassengerSeat(this.PassengerID);\n }", "private void manageVehScheduleIntervals(MaintenanceRequest mrq){\n\t\tif(MALUtilities.isEmptyString(mrq.getCouponBookReference())){\n\t\t\t//look to see if there are any vehicle schedule intervals for this JobNo\n\t\t\tVehicleScheduleInterval vehInterval = vehicleScheduleService.getVehicleScheduleIntervalForDocNo(mrq.getJobNo());\n\t\t\t\n\t\t\t//if there are then remove them\n\t\t\tif(!MALUtilities.isEmpty(vehInterval)){\n\t\t\t\tvehicleScheduleService.deleteVehicleScheduleInterval(vehInterval);\n\t\t\t}\n\t\t}else{\n\t\t\t// get the vehicle schedule from the Authorization Code (Coupon Ref)\n\t\t\tVehicleSchedule vehSched = vehicleScheduleService.getVehicleScheduleForVehSchedSeq(\n\t\t\t\t\t\tvehicleScheduleService.getVehicleSeqFromAuthNbr(mrq.getCouponBookReference()));\n\t\t\t\n\t\t\t// create the vehicle schedule interval for the looked up vehicle schedule, if applicable\n\t\t\t// check for existing PORDER doc no if so use it instead of this one\n\t\t\tif(!MALUtilities.isEmpty(vehSched)){\n\t\t\t\tDoc targetPORDERDoc = null;\n\t\t\t\t\n\t\t\t\tList<Doc> docs = docDAO.findReleasedPurchaseOrderForMaintReq(mrq.getMrqId());\n\t\t\t\tif(docs != null && docs.size() > 0){\n\t\t\t\t\ttargetPORDERDoc = docs.get(0);\n\t\t\t\t}else{\n\t\t\t\t\ttargetPORDERDoc = this.getStubDocFromJobNo(mrq.getJobNo());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tvehicleScheduleService.saveVehicleScheduleInterval(vehSched, mrq.getCouponBookReference(), targetPORDERDoc);\n\t\t\t}\n\t\t}\n }", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);", "@RequestMapping(value=\"/Scheduling/removeAppointment\", method= {RequestMethod.DELETE, RequestMethod.GET})\r\n\tpublic String removeAppointment(long id) {\r\n\t\tschedulingService.removeAppointment(id);\r\n\t\treturn \"redirect:/Scheduling\";\r\n\t}", "void deleteClub(String actorId, String objectId, Date eventTime);", "@Override\n\tpublic boolean cancelSeat(int bookingId) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"delete from Booking b where b.bookingId=\" + bookingId + \"\");\n\t\tint i = query.executeUpdate();\n\t\t//System.out.println(\"status change\");\n\t\treturn true;\n\t}", "private static void cleanAnis() {\n\t\t// get an iterator\n\t\tIterator<?> i = anisLookup.entrySet().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry<?, ?> entry = (Map.Entry<?, ?>)i.next();\n\t\t\tAni existingAni = (Ani) entry.getValue(); \n\t\t\tif (existingAni.isEnded()) {\n\t\t\t\ti.remove();\n\t\t\t}\n\t\t}\t\n\t}", "public void deleteByVaiTroID(long vaiTroId);", "void unsetRecurrenceTimeZoneCode();" ]
[ "0.75364566", "0.671048", "0.66267294", "0.66085607", "0.6378943", "0.6181978", "0.61166173", "0.5892633", "0.58214575", "0.57820845", "0.5701761", "0.5557467", "0.5518892", "0.5515229", "0.5490753", "0.54705554", "0.542867", "0.542648", "0.5366215", "0.5328771", "0.52862644", "0.52545184", "0.51792574", "0.51387715", "0.50871307", "0.50668466", "0.5043245", "0.5042311", "0.50411725", "0.49773145", "0.49526012", "0.4935196", "0.49261117", "0.488053", "0.48805222", "0.48497093", "0.48478523", "0.48425296", "0.48337156", "0.48258394", "0.48191443", "0.48036548", "0.47899303", "0.47829533", "0.47727782", "0.4772604", "0.4766503", "0.4762759", "0.47606832", "0.4759206", "0.4750751", "0.47318378", "0.47241357", "0.47213864", "0.47160745", "0.4715592", "0.46905687", "0.46840507", "0.46835506", "0.46804413", "0.46757564", "0.46742016", "0.4667476", "0.4658143", "0.46567652", "0.46545568", "0.46509838", "0.4650146", "0.46436343", "0.46137062", "0.46127614", "0.4610404", "0.45904022", "0.4572555", "0.45704696", "0.4550487", "0.44986024", "0.4494818", "0.44885966", "0.44871926", "0.4487094", "0.44866598", "0.44756544", "0.44715756", "0.44671956", "0.44523796", "0.44444185", "0.44435263", "0.44333535", "0.44325325", "0.44259164", "0.44257277", "0.44252622", "0.44117936", "0.44100803", "0.44094798", "0.44091862", "0.44055605", "0.43975666", "0.43966103" ]
0.5798152
9
Returns the number of interview schedules where vacancyCandidateId = &63;.
public int countByVacancyCandidate(long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATE_VACANCYCANDIDATEID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int getParticipantNum(long runningSportId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int countByExample(ScheduleCriteria example);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "int getTransitFlightsCount();", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndStatus(vacancyCandidateId, status, true);\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t!Validator.equals(status, interviewSchedule.getStatus())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_VACANCYCANDIDATEID_2);\n\n\t\t\tboolean bindStatus = false;\n\n\t\t\tif (status == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_1);\n\t\t\t}\n\t\t\telse if (status.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindStatus = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDSTATUS_STATUS_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tif (bindStatus) {\n\t\t\t\t\tqPos.add(status);\n\t\t\t\t}\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndStatus(long, String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getStatus() == null) ||\n\t\t\t\t\t\t\t!interviewSchedule.getStatus().equals(status)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public static int getTotalTicketsResolved(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id= ? and status= 3;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewScheduleId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule[] array = new InterviewScheduleImpl[3];\n\n\t\t\tarray[0] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\ttrue);\n\n\t\t\tarray[1] = interviewSchedule;\n\n\t\t\tarray[2] = getByVacancyCandidate_PrevAndNext(session,\n\t\t\t\t\tinterviewSchedule, vacancyCandidateId, orderByComparator,\n\t\t\t\t\tfalse);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public String getScheduleDaysCount(String prefName){\n return sharedPreferences.getString(prefName, \"7\");\n }", "int getQualifiedActivityCount(long studentId, Date start, Date end);", "public int getAppointments()\n\t{\n\t\tint appointments=0;\n\t\tString query=\"select count(*) from appointments where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"not_donated\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tappointments=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appointments;\n\t}", "int getResumesCount();", "public int numberOfAvailableDays(List<Vacation> employeeVacationList) {\n\n int numberOfDays = 0;\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeVacationList);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }", "public int getAddressPMScheduleCount(Long sourceSeq, Long addressId) throws AAException, RemoteException;", "int getParticipantsCount();", "int getParticipantsCount();", "public static int countBySchedulerId(long schedulerId) {\n\t\treturn getPersistence().countBySchedulerId(schedulerId);\n\t}", "public int getVacantSeats(boolean isEconomy) {\n return isEconomy ? airplane.getEmptyEcoSeats() : airplane.getEmptyFirstSeats();\n }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "public static int getCountScheduleDownload(String whereClause) {\n\n DBResultSet dbrs = null;\n try {\n\n String sql = \"SELECT COUNT(\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID] + \")\"\n + \" FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL + \" AS sch \";\n\n if (whereClause != null && whereClause.length() > 0) {\n String sInputSchedule[] = whereClause.split(\",\");\n String inputSch = \"\";\n if (sInputSchedule != null && sInputSchedule.length > 0) {\n for (int idx = 0; idx < sInputSchedule.length; idx++) {\n inputSch = inputSch + \"\\\"\" + sInputSchedule[idx] + \"\\\",\";\n }\n if (inputSch != null && inputSch.length() > 0) {\n inputSch = inputSch.substring(0, inputSch.length() - 1);\n }\n }\n //sql = sql + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL] + \" IN(\" + inputSch + \")\";\n sql = sql + \" WHERE \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL] + \" IN(\" + inputSch + \")\";\n }\n sql = sql + \" ORDER BY \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SYMBOL];\n\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n\n int count = 0;\n while (rs.next()) {\n count = rs.getInt(1);\n }\n\n rs.close();\n return count;\n } catch (Exception e) {\n return 0;\n } finally {\n DBResultSet.close(dbrs);\n }\n }", "public static int getSectionVacancy(String courseCode, String sectionCode) {\n return 0/*vacancy*/;\n }", "public int numberOfAvailableDays(List<Vacation> employeeList, Vacation formVacation) {\n\n int numberOfDays = 0;\n List<Vacation> formVacationDays = new ArrayList<>();\n formVacationDays.add(formVacation);\n List<LocalDate> employeelistToCheck = getDaysBetweenDates(employeeList);\n List<LocalDate> formVacations = getDaysBetweenDates(formVacationDays);\n numberOfDays = maxDaysVacations - getTotalNumberOfWorkingDays(employeelistToCheck);\n numberOfDays = numberOfDays - getTotalNumberOfWorkingDays(formVacations);\n\n if (numberOfDays < 0) {\n\n return -1;\n\n } else {\n\n return numberOfDays;\n }\n }", "Response<Integer> getLeaderboardCount(String leaderboardId, int scope);", "public int getPMScheduleAddressCount(String serviceProviderCode, Long pmScheduleSeq) throws AAException, RemoteException;", "@Transactional(readOnly = true)\n public long countByCriteria(EstadoCandidaturaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EstadoCandidatura> specification = createSpecification(criteria);\n return estadoCandidaturaRepository.count(specification);\n }", "public int getNumberOfActivitesOnActivityFeed(Identity ownerIdentity);", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Test\r\n\tpublic void displayCandidatesScheduled1() throws Exception {\r\n\r\n\t\tList<ShowCandidateDTO> candidateList = new ArrayList<>();\r\n\t\tcandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "public int getNumberAvailableSeats(){\n int out = Integer.MAX_VALUE;\n for(int i=0; i<flights.size();i++){\n for(int j=0; j<availabilities.size(); j++) {\n if (flights.get(i).getFlightNumber().equals(availabilities.get(j).getFlightNumber())) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg1() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg1();\n }\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() != null) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg2();\n }\n }\n break;\n }\n }\n }\n return out;\n }", "long getTotalAcceptCount(long id);", "int getWorkAreaCount(String dept, Long workArea);", "public int getAmendmentCount(int paraId);", "public int getNumFlights() {\n return itinerary.size();\n }", "public int getCalendarCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getCalendarCount() CalendarCount: \" + _calendarCount);\r\n\t\treturn _calendarCount;\r\n\t}", "int numSeatsAvailable(Optional<Integer> venueLevel);", "public long numCandidates();", "public long getActiveInterviewCount() {\n QueryBase query = new AccessibleInterviews(getDefaultAdminUser(), 2, \n \"desc\", null, 0, Integer.MAX_VALUE);\n \n List<InterviewFilter> filters = new ArrayList<InterviewFilter>(1);\n InterviewFilter filter = new ByActive();\n filter.include(\"true\");\n filters.add(filter);\n \n QueryFilterListBinder filteredQuery = \n new QueryFilterListBinder(query, filters);\n filteredQuery.init(2, \"desc\", 0, Integer.MAX_VALUE);\n \n return filteredQuery.executeCountQuery();\n }", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "protected int getTotalEnrolledMorning() {\n return getMorningRoster().size();\n }", "public static int getNrReservas() {\r\n\t\tint reservas = 0;\r\n\t\tString sql=\"select count(*) as reservas from reserva;\";\r\n\r\n\t\ttry {\r\n\t\t\tConnection conn=singleton.getConnector().getConnection();\r\n\t\t\tPreparedStatement stat=conn.prepareStatement(sql);\r\n\t\t\tResultSet utils=stat.executeQuery();\r\n\t\t\twhile(utils.next()) {\r\n\t\t\t\treservas = utils.getInt(\"reservas\");\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn reservas;\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "public ReadOnlyIntegerProperty numberofTickets(PlayerId playerId) {\n return numberOfTicketsMap.get(playerId);\n }", "int getCurrentTermQualifiedActivityCount(long studentId, long universityId);", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "int numberOfCandidates();", "private int jobLength(){\n LocalDate completedLocalDate = LocalDate.of(this.dateCompleted.getYear(), \n this.dateCompleted.getMonth(), this.dateCompleted.getDay());\n \n LocalDate startedLocalDate = LocalDate.of(this.dateStarted.getYear(), \n this.dateStarted.getMonth(), this.dateStarted.getDay());\n \n return startedLocalDate.until(completedLocalDate).getDays();\n }", "public static Long countActivities(){\n List<String> activities = distinctActivities();\n Long count = activities.stream().count();\n return count;\n }", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "public int q2() {\n\t\tLong clubes = jogadores.stream().filter(vazio -> !vazio.getClub().isEmpty())\n\t\t\t\t.map(Jogador::getClub).distinct().count();\n\t\treturn clubes.intValue();\n\t}", "HashMap <Integer,Integer> numberOfSeatsAvailable(Optional<Integer> venueLevel);", "public int getActiveRunwaysCount();", "public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }", "public Integer getTotalClubHasBooking(LocalDateTime start, LocalDateTime end) {\n\n\t\treturn creditBookingRepo.getTotalClubHasBooking(start, end);\n\t}", "public int countActive() {\n int result = 0;\n \n synchronized (m_reservableListMutex) {\n final Iterator iterator = m_reservables.iterator();\n \n while (iterator.hasNext()) {\n final Reservable reservable = (Reservable)iterator.next();\n \n if (!reservable.isClosed() && !reservable.isSentinel()) {\n ++result;\n }\n }\n }\n \n return result;\n }", "public int getTransitFlightsCount() {\n if (transitFlightsBuilder_ == null) {\n return transitFlights_.size();\n } else {\n return transitFlightsBuilder_.getCount();\n }\n }", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n\tpublic int countByfacilityId(long facilityId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_FACILITYID;\n\n\t\tObject[] finderArgs = new Object[] { facilityId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_FACILITY_HOST_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_FACILITYID_FACILITYID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(facilityId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getResumesCount() {\n if (resumesBuilder_ == null) {\n return resumes_.size();\n } else {\n return resumesBuilder_.getCount();\n }\n }", "private int findBidders() {\r\n try {\r\n agents = new ArrayList<AMSAgentDescription>();\r\n //definisce i vincoli di ricerca, in questo caso tutti i risultati\r\n SearchConstraints searchConstraints = new SearchConstraints();\r\n searchConstraints.setMaxResults(Long.MAX_VALUE);\r\n //tutti gli agenti dell'AMS vengono messi in un array\r\n AMSAgentDescription [] allAgents = AMSService.search(this, new AMSAgentDescription(), searchConstraints);\r\n //scorre la lista degli agenti trovati al fine di filtrare solo quelli di interesse\r\n for (AMSAgentDescription a: allAgents) {\r\n //aggiunge l'agente partecipante all'ArrayList se e' un partecipante\r\n if(a.getName().getLocalName().contains(\"Participant\")) {\r\n agents.add(a);\r\n } \r\n }\r\n } catch (Exception e) {\r\n System.out.println( \"Problema di ricerca dell'AMS: \" + e );\r\n e.printStackTrace();\r\n }\r\n return agents.size();\r\n }", "public static int getETACount(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"select count(elapse_time) as counter from alerts where technician_id=? and elapse_time is not null;;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "private int getNumReservations(int fid) throws SQLException {\n\t\tgetNumReservationsStatement.clearParameters();\n\t\tgetNumReservationsStatement.setInt(1, fid);\n\t\tgetNumReservationsStatement.setInt(2, fid);\n\t\tResultSet result = getNumReservationsStatement.executeQuery();\n\t\tresult.next();\n\t\tint out = result.getInt(1);\n\t\tresult.close();\n\t\treturn out;\n\t}", "public void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int getUserQuestJobsCount();", "@Override\n\tpublic int getParticipationsCount() {\n\t\treturn _participationLocalService.getParticipationsCount();\n\t}", "public int getFlightsScheduled() {\n return flightsScheduled;\n }", "public static int getTotalTickets(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id=?;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn couunt;\r\n\t}", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "int getAoisCount();", "int getTaskDetailsCount();", "@Repository\npublic interface ConferenceRoomScheduleRepository extends JpaRepository<ConferenceRoomSchedule, Long> {\n\t\n\tpublic List<ConferenceRoomSchedule> findAllByRequestorId(String requestorId);\n\t\n\t@Query(\"SELECT cs FROM ConferenceRoomSchedule cs inner join cs.conferenceRoom cf where cf.conferenceRoomId = :conferenceRoomId and \"\n\t\t\t+ \" cs.roomScheduleStartTime >= CURRENT_DATE\")\n\tpublic List<ConferenceRoomSchedule> findAllByConferenceRoomId(@Param(\"conferenceRoomId\") Long conferenceRoomId);\n\t\n\t\n\t@Query(\"SELECT count(*) FROM ConferenceRoomSchedule cs inner join cs.conferenceRoom cf where cf.conferenceRoomId = :conferenceRoomId and \"\n\t\t\t+ \" cs.roomScheduleStartTime >= CURRENT_DATE\")\n\tpublic int findAllScheduledRoomTodayByConferenceRoomI(@Param(\"conferenceRoomId\") Long conferenceRoomId);\n\n\n}", "@Override\n public int findTotalNumberOfAvailableSeats(SeatGrid sourceSeatGrid) {\n return findTotalAvailableSeats(sourceSeatGrid).size();\n }", "private int numOfTotalExerciseAttempts(int eid){\n\t\ttry{\n\t\t\tConnection conn = DBConnection.getConnection();\n\t\t\tPreparedStatement stmt1 = conn.prepareStatement(\"SELECT COUNT(*) FROM Attempt A \" +\n\t\t\t\t\t\"WHERE(A.eid = ? ) \");\n\t\t\tstmt1.setInt(1, eid);\n\t ResultSet rs = stmt1.executeQuery();\n\t if(rs.next()) return rs.getInt(\"COUNT(*)\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Problem in getting number of attempts for ProfShowHomeworkScores: \"+ e.getMessage());\n\t\t}\n\t\treturn 0;\n\t}", "@Override\n\tpublic int countByDrafts(String isDraft) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_DRAFTS;\n\n\t\tObject[] finderArgs = new Object[] { isDraft };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_LMSLEAVEINFORMATION_WHERE);\n\n\t\t\tboolean bindIsDraft = false;\n\n\t\t\tif (isDraft == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_1);\n\t\t\t}\n\t\t\telse if (isDraft.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindIsDraft = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_DRAFTS_ISDRAFT_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindIsDraft) {\n\t\t\t\t\tqPos.add(isDraft);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getNumberOfSpaceActivities(Identity spaceIdentity);", "@Test\r\n\tpublic void testScheduleInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.scheduledList(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.scheduledList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/scheduledInterviewListforInterview/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}" ]
[ "0.7274109", "0.70849586", "0.69701695", "0.67084026", "0.66709554", "0.62565446", "0.62470955", "0.6192026", "0.5978371", "0.5971808", "0.5861223", "0.584845", "0.5846382", "0.56449676", "0.56142694", "0.56086785", "0.5602983", "0.5582905", "0.55557746", "0.5547078", "0.5417755", "0.5388166", "0.5348413", "0.5286001", "0.52805614", "0.5244331", "0.5232928", "0.5217596", "0.52147037", "0.5136471", "0.5109587", "0.5100053", "0.50907475", "0.5074512", "0.5071583", "0.5071583", "0.49965677", "0.49905682", "0.4976709", "0.49444064", "0.49373206", "0.49353865", "0.48860282", "0.48508465", "0.4847803", "0.4837045", "0.48353282", "0.4830595", "0.48231277", "0.48185858", "0.48137337", "0.48044902", "0.47966152", "0.47815287", "0.47567737", "0.4746892", "0.4745523", "0.4742255", "0.4737985", "0.47322533", "0.4723629", "0.47126997", "0.47096494", "0.46948335", "0.4694828", "0.46840858", "0.46840322", "0.46763605", "0.46609646", "0.4653312", "0.46483937", "0.4639219", "0.46343967", "0.46321532", "0.46282098", "0.46222728", "0.4619059", "0.46180978", "0.4616443", "0.4615338", "0.46087235", "0.4604057", "0.46031296", "0.4596159", "0.4590847", "0.45893154", "0.45834774", "0.4581674", "0.4580542", "0.45773235", "0.45773235", "0.45773235", "0.45694816", "0.45620346", "0.45576015", "0.4553258", "0.45501357", "0.4548604", "0.4544367", "0.45404872" ]
0.6930361
3
Caches the interview schedule in the entity cache if it is enabled.
public void cacheResult( vn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(List<InterviewSchedule> interviewSchedules) {\n\t\tfor (InterviewSchedule interviewSchedule : interviewSchedules) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tInterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class,\n\t\t\t\t\t\tinterviewSchedule.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinterviewSchedule.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "public interface TaskCache {\n /**\n * Gets an {@link Object} which will emit a {@link TaskEntity}.\n *\n * @param userId The id used to get data.\n */\n List<TaskEntity> get(int userId);\n\n /**\n * Puts and element into the cache.\n *\n * @param userEntity The task data to save.\n */\n void put(TaskEntity userEntity);\n\n /**\n * Checks if an element (User) exists in the cache.\n *\n * @param userId The id used to get data.\n * @return true if the element is cached, otherwise false.\n */\n boolean isCached(int userId);\n\n /**\n * Checks if the cache is expired.\n * @param userId The id used to get data.\n * @return true, the cache is expired, otherwise false.\n */\n boolean isExpired(int userId);\n\n /**\n * Evict all elements of the cache.\n *\n * @param userId The id used to get data.\n */\n void evictAll(int userId);\n\n /**\n * Change task status\n *\n * @param idTask task to update.\n */\n void refresh(int idTask);\n}", "@Util\n public static Interview setInProgressInterview(Interview interview, InProgressInterviewContext context){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce = EntityCache.savePrivate(interview, context, Interview.class);\n \tif (ce != null){\n \t\treturn ce.getEntity();\n \t}\n \treturn null;\n }", "@Util\n public static CachedEntity<Interview, InProgressInterviewContext> safeGetInProgressInterviewEntity(){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce;\n\t\ttry {\n\t\t\tce = getInProgressInterviewEntity();\n\t\t} catch (CacheMiss e) {\n\t\t\tInterview interview = createInProgressInterview();\n\t\t\tce = new CachedEntity<Interview, InProgressInterviewContext>(interview,null);\n\t\t}\n\n return ce;\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }", "@Override\n public void create(ScheduledInterview scheduledInterview) {\n long generatedId = new Random().nextLong();\n ScheduledInterview storedScheduledInterview =\n ScheduledInterview.create(\n generatedId,\n scheduledInterview.when(),\n scheduledInterview.interviewerId(),\n scheduledInterview.intervieweeId(),\n scheduledInterview.meetLink(),\n scheduledInterview.position(),\n scheduledInterview.shadowId());\n data.put(generatedId, storedScheduledInterview);\n }", "public interface ArticlesCache {\n}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}", "protected void cacheLoadThroughSubjects()\n {\n }", "@Override\n public boolean isCaching() {\n return false;\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "public void setCached() {\n }", "protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }", "@Override\n\tpublic void cacheResult(ScienceAppExecute scienceAppExecute) {\n\t\tEntityCacheUtil.putResult(ScienceAppExecuteModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tScienceAppExecuteImpl.class, scienceAppExecute.getPrimaryKey(),\n\t\t\tscienceAppExecute);\n\n\t\tscienceAppExecute.resetOriginalValues();\n\t}", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }", "public interface CacheInvalidationStrategyIF {\n\t\n}", "public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }", "public void refreshObjectCache();", "public void updateTimeSpansCache()\n {\n _timeSpans = null;\n getTimeSpans();\n }", "public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }", "public interface DataModelOracleCache {\n\n /**\n * Retrieve the DataModelOracle for the specified Project path. The Path should resolve to a Project.\n * @param project The Path to the Project\n * @return DataModelOracle for the Project\n */\n DataModelOracle getDataModelOracle( Path project );\n\n /**\n * Set the DataModelOracle for the specified Project path. The Path should resolve to a Project.\n * @param project The Path to the Project\n * @param oracle The DataModelOracle for the Project\n */\n void setDataModelOracle( Path project,\n DataModelOracle oracle );\n\n /**\n * Invalidate the entire cache\n */\n void invalidateCache();\n\n /**\n * Invalidate the cache for a specific Project path. The path should resolve to a Project.\n * @param project The Path to the Project\n */\n void invalidateCache( Path project );\n}", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "@Override\n\tpublic void cacheResult(TvShow tvShow) {\n\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTvShowImpl.class, tvShow.getPrimaryKey(), tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { tvShow.getUuid(), tvShow.getGroupId() }, tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_G_T,\n\t\t\tnew Object[] { tvShow.getTvShowId(), tvShow.getGroupId() }, tvShow);\n\n\t\ttvShow.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "boolean isCacheable();", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }", "public interface WeatherCache {\n\n// boolean isExpired();\n// boolean isCached();\n// Observable<WeatherEntity> get();\n// void put(WeatherEntity weatherEntity);\n}", "public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "public static void queriedLocalScheduleCache(Activity context) {\n\n // Get tracker\n Tracker tracker = ((GlobalEntity) context.getApplicationContext())\n .getTracker(TrackerName.APP_TRACKER);\n if (tracker == null) {\n return;\n }\n\n // Build and send an Event\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Local Schedule Cache\")\n .setAction(\"queriedLocalScheduleCache\")\n .setLabel(\"queriedLocalScheduleCache\").build());\n }", "void cacheTrades(Collection<Trade> trades);", "boolean isCachingEnabled();", "@Override\n\tpublic Cache getCacheInstance(CacheType cacheType) {\n\t\tCache cache = null;\n\t\tif (cacheType.equals(CacheType.ConcurrentCache)) {\n\t\t\tcache = cacheManager.getCache(\"concurrentBatchScheduleCache\");\n\t\t}\n\t\tif (cacheType.equals(CacheType.HistroicalCache)) {\n\t\t\tcache = cacheManager.getCache(\"concurrentBatchScheduleCache\");\n\t\t}\n\t\treturn cache;\n\t}", "public interface OrganizationService extends EntityService<Organization> {\n\n /**\n * 缓存\n *\n * @param id\n * @return\n * @throws Exception\n */\n public Organization queryCacheOrganizationById(long id) throws Exception;\n}", "public boolean shouldCache() {\n return this.shouldCache;\n }", "@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "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}", "@CacheEvict(allEntries = true, cacheNames = { \"airly_now\", \"history\" })\n @Scheduled(fixedDelay = 30000)\n public void reportCacheEvict() {\n }", "@Override\r\n public Entity row(Entity entity) {\n int estimated = EntityTools.getIntField(entity, \"estimated\");\r\n int dayWhenInProgress = EntityTools.removeIntField(entity, \"day-when-in-progress\");\r\n int newEstimated = EntityTools.removeIntField(entity, \"new-estimated\");\r\n int newRemaining = EntityTools.removeIntField(entity, \"new-remaining\");\r\n int dayWhenCompleted = EntityTools.removeIntField(entity, \"day-when-completed\");\r\n String originalTeamId = EntityTools.removeField(entity, \"team-id\");\r\n Entity response = super.row(entity);\r\n String agmId;\r\n try {\r\n agmId = response.getId().toString();\r\n } catch (FieldNotFoundException e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n if (dayWhenCompleted >= 0 && dayWhenInProgress >= 0) {\r\n if (dayWhenCompleted <= dayWhenInProgress) {\r\n log.warn(\"Day to be in progress (\"+dayWhenInProgress+\") is after the day to be completed (\"+dayWhenCompleted+\")\");\r\n }\r\n }\r\n if (dayWhenInProgress > 0) {\r\n List<Object> work = workCalendar.get(dayWhenInProgress);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenInProgress, work);\r\n }\r\n work.add(\"In Progress\");\r\n work.add(agmId);\r\n work.add(estimated);\r\n work.add(newEstimated);\r\n work.add(newRemaining);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenInProgress+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to In Progress; remaining set to \"+newRemaining);\r\n }\r\n if (dayWhenCompleted > 0) {\r\n List<Object> work = workCalendar.get(dayWhenCompleted);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenCompleted, work);\r\n }\r\n work.add(\"Completed\");\r\n work.add(agmId);\r\n work.add(newEstimated);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenCompleted+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to Completed; remaining set to \"+0);\r\n }\r\n return response;\r\n }", "private void populateDateEntityMap(TradeEntity entity) {\r\n\t\tList<TradeEntity> entities = dateEntityMap.get(entity.getEffectiveSettlementDate());\r\n\r\n\t\tif (entities == null) {\r\n\t\t\tentities = new ArrayList<>();\r\n\t\t\tentities.add(entity);\r\n\t\t} else {\r\n\t\t\tentities.add(entity);\r\n\t\t}\r\n\t\tdateEntityMap.put(entity.getEffectiveSettlementDate(), entities);\r\n\t}", "@Override\n\tpublic void cacheResult(EmployeeComplaint employeeComplaint) {\n\t\tEntityCacheUtil.putResult(EmployeeComplaintModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEmployeeComplaintImpl.class, employeeComplaint.getPrimaryKey(),\n\t\t\temployeeComplaint);\n\n\t\temployeeComplaint.resetOriginalValues();\n\t}", "@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "public CacheStrategy getCacheStrategy();", "void invalidateCache();", "public void cacheResult(org.oep.usermgt.model.Citizen citizen);", "public boolean inCache(String key);", "private void ensureRatingCache() {\n if (cache == null) {\n synchronized (this) {\n if (cache == null) {\n cache = new EventCollectionDAO(Cursors.makeList(csvDao.streamEvents()));\n }\n }\n }\n }", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}", "@Override\n\tpublic void cacheResult(\n\t\tStepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE) {\n\t\tEntityCacheUtil.putResult(StepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey(),\n\t\t\tstepDefsCompositeStepDefDBE);\n\n\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t}", "abstract public IWorldStateCache clientWorldStateCache();", "public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }", "public boolean isSaveCache() {\n return mSaveCache;\n }", "@Override\n\tpublic void cacheResult(List<Legacydb> legacydbs) {\n\t\tfor (Legacydb legacydb : legacydbs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tLegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(legacydb);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlegacydb.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "private void checkCacheEnableStatus(FlowGraph graph, JobMySqlModel lastJob) {\n\n // Based on the time when the task was created,\n // nodes that have been edited after this time cannot use the cache.\n long lastJobCreateTime = lastJob.getCreatedTime().getTime();\n\n // Temporarily mark all nodes as cache available\n graph.getAllJobSteps().forEach(x -> x.setHasCacheResult(true));\n\n // Find the nodes whose version number is greater than the base time.\n // These nodes have been edited after the task is created, and the cache cannot be used.\n graph\n .getAllJobSteps()\n .stream()\n .filter(x -> x.getParamsVersion() >= lastJobCreateTime)\n .forEach(x -> x.setHasCacheResult(false));\n\n\n // Check whether the cache of the task corresponding to the node is available.\n // If the task status is incorrect, the cache is not available.\n // A node may correspond to multiple tasks\n List<TaskMySqlModel> taskMysqlList = taskService.listByJobId(lastJob.getJobId(), lastJob.getMyRole());\n Map<String, List<TaskMySqlModel>> taskMap = new HashMap<>();\n for (TaskMySqlModel model : taskMysqlList) {\n List<TaskMySqlModel> taskList = taskMap.get(model.getFlowNodeId());\n if (taskList == null) {\n taskList = new ArrayList<>();\n }\n taskList.add(model);\n taskMap.put(model.getFlowNodeId(), taskList);\n }\n\n graph.getAllJobSteps().stream().filter(x -> x.getHasCacheResult()).filter(x -> {\n List<TaskMySqlModel> taskList = taskMap.get(x.getNodeId());\n if (taskList == null) {\n return true;\n } else {\n for (TaskMySqlModel m : taskList) {\n if (m.getStatus() != TaskStatus.success) {\n return true;\n }\n }\n }\n return false;\n }).forEach(x -> x.setHasCacheResult(false));\n }", "public void cacheResult(VcmsArticleType vcmsArticleType);", "private boolean updateCache(String type) {\n\t\treturn false;\n\t}", "@Util\n public static Interview safeGetInProgressInterview(){\n \t\n \tInterview interview;\n\t\ttry {\n\t\t\tinterview = getInProgressInterview();\n\t\t} catch (CacheMiss e) {\n\t\t\tinterview = createInProgressInterview();\n\t\t}\n\n return interview;\n }", "@Override\n\tpublic void cacheResult(List<TvShow> tvShows) {\n\t\tfor (TvShow tvShow : tvShows) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tTvShowModelImpl.ENTITY_CACHE_ENABLED, TvShowImpl.class,\n\t\t\t\t\t\ttvShow.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(tvShow);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttvShow.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(PlanoSaude planoSaude);", "public void cacheResult(VCal vCal) {\n\t\tEntityCacheUtil.putResult(VCalModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVCalImpl.class, vCal.getPrimaryKey(), vCal);\n\n\t\tvCal.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}", "public boolean isCached() {\n return true;\n }", "protected void createLookupCache() {\n }", "@Override\n public void add(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().add(ent);\n }", "@Override\n\tpublic void cacheResult(Answer answer) {\n\t\tentityCache.putResult(\n\t\t\tentityCacheEnabled, AnswerImpl.class, answer.getPrimaryKey(),\n\t\t\tanswer);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPathFetchByQuestion, new Object[] {answer.getQuestionId()},\n\t\t\tanswer);\n\n\t\tanswer.resetOriginalValues();\n\t}", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "public interface IBaseCache<T> {\n\n void setById(String id, T o);\n\n void setById(String id, T o, int timeout);\n\n void set(String key, T o);\n\n void set(String key, T o, int timeout);\n\n T getById(String id);\n\n T get(String key);\n\n void setList(List<T> list);\n\n void setList(List<T> list, int timeout);\n\n boolean hasList();\n\n List<T> getList();\n\n void setList(String key, List<T> list);\n\n void setList(String key, List<T> list, int timeout);\n\n boolean hasList(String key);\n\n List<T> getList(String key);\n\n boolean hasKeyById(String id);\n\n boolean hasKey(String key);\n\n void deleteKeyById(String id);\n\n void deleteKey(String key);\n\n void deleteList();\n\n void deleteList(String key);\n\n void deleteAllEntityKeys();\n\n\n}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }", "public void cacheResult(DataEntry dataEntry);", "public interface HomeCache {\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n}", "@Scheduled(fixedDelay = 98)\n public void cacheStats() {\n SalesAmount salesAmount = statsService.retrieveNextSalesAmount();\n LocalDateTime now = LocalDateTime.now(clock).withNano(0);\n while (salesAmount != null && !salesAmount.getTime().isAfter(Instant.now(clock))) {\n /*\n Because sales requests are processed sequentially, this way we don't need to care about increasing the\n aggregated sales amount in parallel and use Atomic data structures.\n */\n SalesAmountPerSecond salesAmountPerSecond = statsService.getLastSalesAmountPerSecond();\n if (null != salesAmountPerSecond && salesAmountPerSecond.getTime().equals(now)) {\n salesAmountPerSecond.addSalesAmount(salesAmount.getAmount());\n } else {\n statsService.addSalesAmountPerSecond(new SalesAmountPerSecond(\n salesAmount.getAmount(),\n 1,\n now));\n }\n salesAmount = statsService.retrieveNextSalesAmount();\n }\n }", "public void cacheableQuery() throws HibException;", "public void cacheResult(com.Hotel.model.Hotel hotel);", "public interface DataCache {\n LiveData<List<News>> getNews();\n LiveData<NewsDetail> getNewsDetail(String id);\n void setNewsList(LiveData<List<News>> newsList);\n void setNewsDetail(String id, LiveData<NewsDetail> detail);\n }", "public void EstaticCache(){\n LinkedHashMap<String, String> ParticionAux = new LinkedHashMap <String,String>();\n Cache.add(ParticionAux);\n for (int i = 0; i < Estatico.length; i++) {\n \n Cache.get(0).put(Estatico[i], ResEstatico[i]);\n // System.out.println(\"===== Particion de Cache N°\"+ParticionAux.values()+\" =====\");\n \n }\n //this.Cache.add(ParticionAux); // carga el hashMap en una particion del cache\n //System.out.println(\"===== Particion de Cache AQUIAQUI\"+Cache.get(0).values()+\" =====\");\n // ParticionAux.clear(); // limpia el Hashmap aux\n }", "@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}", "private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }", "public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }", "public boolean existCache() {\n return false;\n }", "public interface Cache<T> {\n\n /**\n * Put the object in the cache with the given <code>key</code>.\n * <p>\n * The object is stored for the default configured time, depending on the\n * cache implementation. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n void put(@NonNull String key, @NonNull T value);\n\n /**\n * Put the object in the cache with the given <code>key</code> for the\n * given <code>duration</code>.\n * <p>\n * The object is stored for the requested duration. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param duration The (not null) duration to store the object for.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull Duration duration);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for ever.\n * <p>\n * The object is stored and should never be removed. This should overrule configured default\n * expiry time for objects put in the cache. However, the object may still be evicted from\n * the cache, for instance for memory reasons.\n * <p>\n * This method calls Duration.ofMillis(Long.max()) and passes it to the put(key, value, Duration duration).\n * So this method does not persist eternally, but rather persists for a long time.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n default void putEternally(@NonNull final String key, @NonNull final T value) {\n put(key, value, Duration.ofMillis(Long.MAX_VALUE));\n }\n\n /**\n * Retrieve the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The value, or <code>null</code> if the object is not found.\n */\n T get(@NonNull String key);\n\n /**\n * Retrieve an optional for the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The <code>Optional</code> for the value.\n */\n default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }\n\n /**\n * Remove the value associate with the <code>key</code>.\n *\n * @param key The key to remove.\n */\n void remove(@NonNull String key);\n\n}", "public void cacheResult(com.ms3.training.services.model.Course course);", "@Override\n\tpublic void cacheResult(VcmsPortion vcmsPortion) {\n\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tVcmsPortionImpl.class, vcmsPortion.getPrimaryKey(), vcmsPortion);\n\n\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_S_C,\n\t\t\tnew Object[] { vcmsPortion.getGroupId(), vcmsPortion.getCode() },\n\t\t\tvcmsPortion);\n\n\t\tvcmsPortion.resetOriginalValues();\n\t}" ]
[ "0.7321507", "0.6737514", "0.6595778", "0.6208363", "0.59852105", "0.5772889", "0.5673469", "0.5520854", "0.5513611", "0.547056", "0.5415176", "0.5379786", "0.53730637", "0.5259238", "0.52528733", "0.5213475", "0.52080226", "0.5200061", "0.5168159", "0.51367235", "0.51355284", "0.51190424", "0.5075678", "0.5070093", "0.5057675", "0.5013805", "0.50062764", "0.5004597", "0.5000625", "0.49753845", "0.49645802", "0.4958819", "0.4957827", "0.4950854", "0.494051", "0.49244443", "0.49128556", "0.4910496", "0.49022776", "0.48994324", "0.48960996", "0.4890511", "0.48868623", "0.48805225", "0.48681146", "0.48477578", "0.4842437", "0.48220313", "0.481781", "0.47954407", "0.47943735", "0.4789936", "0.47869378", "0.4784873", "0.4783239", "0.47691324", "0.4754285", "0.47500378", "0.47491276", "0.47455978", "0.4745315", "0.4744532", "0.47403654", "0.47381964", "0.47343573", "0.47333634", "0.4731783", "0.4730736", "0.47267467", "0.4724983", "0.47226617", "0.47170624", "0.4714855", "0.4714798", "0.47066414", "0.47002748", "0.4696562", "0.46963507", "0.46951064", "0.46872813", "0.4671081", "0.46701244", "0.46688312", "0.46614072", "0.46526936", "0.46492657", "0.46465328", "0.46444812", "0.46411544", "0.4635393", "0.46346566", "0.463267", "0.46326146", "0.46314025", "0.4614126", "0.4612246", "0.46105263", "0.46060187", "0.45954233", "0.45917898" ]
0.72512084
1
Caches the interview schedules in the entity cache if it is enabled.
public void cacheResult( java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(List<InterviewSchedule> interviewSchedules) {\n\t\tfor (InterviewSchedule interviewSchedule : interviewSchedules) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tInterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class,\n\t\t\t\t\t\tinterviewSchedule.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinterviewSchedule.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);", "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "@Util\n public static Interview setInProgressInterview(Interview interview){\n \ttry {\n CachedEntity ce;\n ce = EntityCache.get(Interview.class);\n return EntityCache.savePrivate(interview, ce.getContext(), Interview.class).getEntity();\n } catch (CacheMiss e) {\n }\n \n return EntityCache.savePrivate(interview, Interview.class);\n }", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "public interface TaskCache {\n /**\n * Gets an {@link Object} which will emit a {@link TaskEntity}.\n *\n * @param userId The id used to get data.\n */\n List<TaskEntity> get(int userId);\n\n /**\n * Puts and element into the cache.\n *\n * @param userEntity The task data to save.\n */\n void put(TaskEntity userEntity);\n\n /**\n * Checks if an element (User) exists in the cache.\n *\n * @param userId The id used to get data.\n * @return true if the element is cached, otherwise false.\n */\n boolean isCached(int userId);\n\n /**\n * Checks if the cache is expired.\n * @param userId The id used to get data.\n * @return true, the cache is expired, otherwise false.\n */\n boolean isExpired(int userId);\n\n /**\n * Evict all elements of the cache.\n *\n * @param userId The id used to get data.\n */\n void evictAll(int userId);\n\n /**\n * Change task status\n *\n * @param idTask task to update.\n */\n void refresh(int idTask);\n}", "protected void cacheLoadThroughSubjects()\n {\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}", "public void updateTimeSpansCache()\n {\n _timeSpans = null;\n getTimeSpans();\n }", "void cacheTrades(Collection<Trade> trades);", "public interface ArticlesCache {\n}", "public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }", "private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }", "public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }", "public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }", "protected abstract Collection<Cache> loadCaches();", "@Util\n public static CachedEntity<Interview, InProgressInterviewContext> safeGetInProgressInterviewEntity(){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce;\n\t\ttry {\n\t\t\tce = getInProgressInterviewEntity();\n\t\t} catch (CacheMiss e) {\n\t\t\tInterview interview = createInProgressInterview();\n\t\t\tce = new CachedEntity<Interview, InProgressInterviewContext>(interview,null);\n\t\t}\n\n return ce;\n }", "@Override\n public void create(ScheduledInterview scheduledInterview) {\n long generatedId = new Random().nextLong();\n ScheduledInterview storedScheduledInterview =\n ScheduledInterview.create(\n generatedId,\n scheduledInterview.when(),\n scheduledInterview.interviewerId(),\n scheduledInterview.intervieweeId(),\n scheduledInterview.meetLink(),\n scheduledInterview.position(),\n scheduledInterview.shadowId());\n data.put(generatedId, storedScheduledInterview);\n }", "@Override\n public boolean isCaching() {\n return false;\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void populateDateEntityMap(TradeEntity entity) {\r\n\t\tList<TradeEntity> entities = dateEntityMap.get(entity.getEffectiveSettlementDate());\r\n\r\n\t\tif (entities == null) {\r\n\t\t\tentities = new ArrayList<>();\r\n\t\t\tentities.add(entity);\r\n\t\t} else {\r\n\t\t\tentities.add(entity);\r\n\t\t}\r\n\t\tdateEntityMap.put(entity.getEffectiveSettlementDate(), entities);\r\n\t}", "@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }", "@Override\n\tpublic void cacheResult(List<TvShow> tvShows) {\n\t\tfor (TvShow tvShow : tvShows) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tTvShowModelImpl.ENTITY_CACHE_ENABLED, TvShowImpl.class,\n\t\t\t\t\t\ttvShow.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(tvShow);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttvShow.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(List<Legacydb> legacydbs) {\n\t\tfor (Legacydb legacydb : legacydbs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tLegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(legacydb);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlegacydb.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Util\n public static Interview setInProgressInterview(Interview interview, InProgressInterviewContext context){\n \t\n \tCachedEntity<Interview, InProgressInterviewContext> ce = EntityCache.savePrivate(interview, context, Interview.class);\n \tif (ce != null){\n \t\treturn ce.getEntity();\n \t}\n \treturn null;\n }", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "public interface HomeCache {\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n}", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "private void ensureRatingCache() {\n if (cache == null) {\n synchronized (this) {\n if (cache == null) {\n cache = new EventCollectionDAO(Cursors.makeList(csvDao.streamEvents()));\n }\n }\n }\n }", "@Override\n\tpublic void cacheResult(List<PhatVay> phatVaies) {\n\t\tfor (PhatVay phatVay : phatVaies) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tphatVay.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(phatVay);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tphatVay.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void refreshObjectCache();", "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}", "static private void populateCache() {\n if (cacheIsPopulated) {\n return;\n }\n cacheIsPopulated = true;\n\n /* Schema:\n *\n * units{\n * duration{\n * day{\n * one{\"{0} ден\"}\n * other{\"{0} дена\"}\n * }\n */\n\n // Load the unit types. Use English, since we know that that is a superset.\n ICUResourceBundle rb1 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_UNIT_BASE_NAME,\n \"en\");\n rb1.getAllItemsWithFallback(\"units\", new MeasureUnitSink());\n\n // Load the currencies\n ICUResourceBundle rb2 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_BASE_NAME,\n \"currencyNumericCodes\",\n ICUResourceBundle.ICU_DATA_CLASS_LOADER);\n rb2.getAllItemsWithFallback(\"codeMap\", new CurrencyNumericCodeSink());\n }", "public void setCached() {\n }", "@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}", "private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }", "@Override\n\tpublic void cacheResult(\n\t\tList<ESFInstructsShootingDirector> esfInstructsShootingDirectors) {\n\t\tfor (ESFInstructsShootingDirector esfInstructsShootingDirector : esfInstructsShootingDirectors) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\t\t\t\tesfInstructsShootingDirector.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(esfInstructsShootingDirector);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void cacheResult(List<ScienceAppExecute> scienceAppExecutes) {\n\t\tfor (ScienceAppExecute scienceAppExecute : scienceAppExecutes) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tScienceAppExecuteModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tScienceAppExecuteImpl.class,\n\t\t\t\t\t\tscienceAppExecute.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(scienceAppExecute);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tscienceAppExecute.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "public static void queriedLocalScheduleCache(Activity context) {\n\n // Get tracker\n Tracker tracker = ((GlobalEntity) context.getApplicationContext())\n .getTracker(TrackerName.APP_TRACKER);\n if (tracker == null) {\n return;\n }\n\n // Build and send an Event\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Local Schedule Cache\")\n .setAction(\"queriedLocalScheduleCache\")\n .setLabel(\"queriedLocalScheduleCache\").build());\n }", "protected void createLookupCache() {\n }", "private void loadSavedSchedules() {\n scheduleList = new ScheduleList(new ArrayList<>());\n try {\n scheduleList = reader.readSchedules();\n } catch (IOException e) {\n System.err.println(\"Schedule File Missing\");\n } catch (JSONException je) {\n System.err.println(\"Empty File - Schedule\");\n System.out.println(je);\n }\n }", "public void EstaticCache(){\n LinkedHashMap<String, String> ParticionAux = new LinkedHashMap <String,String>();\n Cache.add(ParticionAux);\n for (int i = 0; i < Estatico.length; i++) {\n \n Cache.get(0).put(Estatico[i], ResEstatico[i]);\n // System.out.println(\"===== Particion de Cache N°\"+ParticionAux.values()+\" =====\");\n \n }\n //this.Cache.add(ParticionAux); // carga el hashMap en una particion del cache\n //System.out.println(\"===== Particion de Cache AQUIAQUI\"+Cache.get(0).values()+\" =====\");\n // ParticionAux.clear(); // limpia el Hashmap aux\n }", "void cachePositions(Collection<Position> positions);", "public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }", "@Cacheable(value= WorkArea.CACHE_NAME, key=\"'department=' + #p0 + '|' + 'asOfDate=' + #p1\")\n List<WorkArea> getWorkAreas(String department, LocalDate asOfDate);", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "boolean isCachingEnabled();", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "public void cacheResult(List<VCal> vCals) {\n\t\tfor (VCal vCal : vCals) {\n\t\t\tif (EntityCacheUtil.getResult(VCalModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVCalImpl.class, vCal.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(vCal);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvCal.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }", "private void loadCachedLabTestCollection()\n {\n cachedFacilityList = new HashMap<Object,Object>();\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n cachedLabTest= (ArrayList<Object> ) convertToSRTLabTestDT(dao.getAllOrderedTests());\n\n //load cachedFacilityList\n Iterator<Object> iter = cachedLabTest.iterator();\n while(iter.hasNext()){\n SRTLabTestDT srtLabTestDT = (SRTLabTestDT)iter.next();\n if(srtLabTestDT.getLaboratoryId()!= null ){\n this.addToCachedFacilityList(srtLabTestDT.getLaboratoryId(),srtLabTestDT);\n }// end if labId !=null\n }//end while\n\n }", "public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }", "boolean isCacheable();", "@CacheEvict(allEntries = true, cacheNames = { \"airly_now\", \"history\" })\n @Scheduled(fixedDelay = 30000)\n public void reportCacheEvict() {\n }", "@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public Entity row(Entity entity) {\n int estimated = EntityTools.getIntField(entity, \"estimated\");\r\n int dayWhenInProgress = EntityTools.removeIntField(entity, \"day-when-in-progress\");\r\n int newEstimated = EntityTools.removeIntField(entity, \"new-estimated\");\r\n int newRemaining = EntityTools.removeIntField(entity, \"new-remaining\");\r\n int dayWhenCompleted = EntityTools.removeIntField(entity, \"day-when-completed\");\r\n String originalTeamId = EntityTools.removeField(entity, \"team-id\");\r\n Entity response = super.row(entity);\r\n String agmId;\r\n try {\r\n agmId = response.getId().toString();\r\n } catch (FieldNotFoundException e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n if (dayWhenCompleted >= 0 && dayWhenInProgress >= 0) {\r\n if (dayWhenCompleted <= dayWhenInProgress) {\r\n log.warn(\"Day to be in progress (\"+dayWhenInProgress+\") is after the day to be completed (\"+dayWhenCompleted+\")\");\r\n }\r\n }\r\n if (dayWhenInProgress > 0) {\r\n List<Object> work = workCalendar.get(dayWhenInProgress);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenInProgress, work);\r\n }\r\n work.add(\"In Progress\");\r\n work.add(agmId);\r\n work.add(estimated);\r\n work.add(newEstimated);\r\n work.add(newRemaining);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenInProgress+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to In Progress; remaining set to \"+newRemaining);\r\n }\r\n if (dayWhenCompleted > 0) {\r\n List<Object> work = workCalendar.get(dayWhenCompleted);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenCompleted, work);\r\n }\r\n work.add(\"Completed\");\r\n work.add(agmId);\r\n work.add(newEstimated);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenCompleted+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to Completed; remaining set to \"+0);\r\n }\r\n return response;\r\n }", "@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}", "public interface WeatherCache {\n\n// boolean isExpired();\n// boolean isCached();\n// Observable<WeatherEntity> get();\n// void put(WeatherEntity weatherEntity);\n}", "@Scheduled(fixedDelay = 98)\n public void cacheStats() {\n SalesAmount salesAmount = statsService.retrieveNextSalesAmount();\n LocalDateTime now = LocalDateTime.now(clock).withNano(0);\n while (salesAmount != null && !salesAmount.getTime().isAfter(Instant.now(clock))) {\n /*\n Because sales requests are processed sequentially, this way we don't need to care about increasing the\n aggregated sales amount in parallel and use Atomic data structures.\n */\n SalesAmountPerSecond salesAmountPerSecond = statsService.getLastSalesAmountPerSecond();\n if (null != salesAmountPerSecond && salesAmountPerSecond.getTime().equals(now)) {\n salesAmountPerSecond.addSalesAmount(salesAmount.getAmount());\n } else {\n statsService.addSalesAmountPerSecond(new SalesAmountPerSecond(\n salesAmount.getAmount(),\n 1,\n now));\n }\n salesAmount = statsService.retrieveNextSalesAmount();\n }\n }", "public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }", "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}", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "public void adjustSettlementDatesAndPopulateMap() {\r\n\t\tfor (TradeEntity ee : entityArrayList) {\r\n\t\t\tif (!isWorkingDay(ee.getCurrency(), ee.getSettlementDate().getDayOfWeek())) {\r\n\t\t\t\tee.setEffectiveSettlementDate(getNextWorkingDay(ee));\r\n\t\t\t} else {\r\n\t\t\t\tee.setEffectiveSettlementDate(ee.getSettlementDate());\r\n\t\t\t}\r\n\t\t\tpopulateDateEntityMap(ee);\r\n\t\t}\r\n\r\n\t}", "public interface StorylineCachedDao extends BaseCachedDao{\n /**\n * 存储故事线\n * @param storylineEntity 故事线持久化对象\n * @return 存储后的持久化对象(如果没有存储成功会返回null)\n */\n StorylineEntity save(StorylineEntity storylineEntity);\n\n /**\n * 改\n * @param storylineEntity 故事线持久化对象\n * @return 是否成功\n */\n Boolean update(StorylineEntity storylineEntity);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按更新时间从新到旧排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderNews(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据用户id查询该用户发布的故事线列表\n * @param user_id 用户id\n * @param limit_begin 起始查询条数\n * @param show_num 查询数量\n * @return\n */\n List<StorylineEntity> findMoreByOrderNews(Integer user_id, int limit_begin, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param limit_begin 起始查询条数\n * @param rule 1表示全部。2表示二万字以下。3表示二万字到十万字。4表示十万字以上\n * @param show_num 查询条数\n * @param tag 按标签查询的“标签”\n * @return 故事线列表\n */\n List<StorylineEntity> findMoreByOrderHot(int limit_begin, Integer rule, int show_num, String tag);\n\n /**\n * 根据条件查询出故事线列表。按观看次数由大到小排序\n * @param storyline_commend_show_num 查找条数\n * @return 故事线文章列表\n */\n List<StorylineEntity> findMoreByOrderHot(int storyline_commend_show_num);\n\n /**\n * 通过count查询总条数\n * @return 总数\n */\n int findSumByCount();\n\n /**\n * 根据用户id查询该用户发布的故事线列表总数\n * @param user_id 用户id\n * @return 总数\n */\n int findSumByCount(Integer user_id);\n\n /**\n * 根据故事线id查询具体某故事线详情\n * @param storyline_id 故事线id\n * @return 某一个故事线详情\n */\n StorylineEntity findOneById(Integer storyline_id);\n}", "public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }", "public interface DataModelOracleCache {\n\n /**\n * Retrieve the DataModelOracle for the specified Project path. The Path should resolve to a Project.\n * @param project The Path to the Project\n * @return DataModelOracle for the Project\n */\n DataModelOracle getDataModelOracle( Path project );\n\n /**\n * Set the DataModelOracle for the specified Project path. The Path should resolve to a Project.\n * @param project The Path to the Project\n * @param oracle The DataModelOracle for the Project\n */\n void setDataModelOracle( Path project,\n DataModelOracle oracle );\n\n /**\n * Invalidate the entire cache\n */\n void invalidateCache();\n\n /**\n * Invalidate the cache for a specific Project path. The path should resolve to a Project.\n * @param project The Path to the Project\n */\n void invalidateCache( Path project );\n}", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "public interface CacheInvalidationStrategyIF {\n\t\n}", "@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }", "public static void updatePlayerCaches() {\n\t\tfor (Player player : getOnlinePlayers()) {\n\t\t\tPlayerCache cache = getCache(player);\n\n\t\t\tcache.reloadCache();\n\t\t}\n\t}", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }", "@Override\n public DataFrame read(TransactionContext context) {\n if (incidents == null) {\n\n if (StringUtil.isNotBlank(getConfiguration().getString(GROUP))) {\n List<SnowSprint> sprints = getSprintsByGroup(getConfiguration().getString(GROUP));\n for (SnowSprint sprint : sprints) {\n if (sprint.isCurrent()) {\n Log.notice(\"Current sprint \" + sprint.getShortDescription() + \" (\" + sprint.getScheduledStartDate() + \" - \" + sprint.getScheduledEndDate() + \")\");\n sprintStart = sprint.getScheduledStartDate();\n break;\n }\n }\n } else {\n Log.notice(\"No group (team) was specified, using the default interval for 'new' incidents.\");\n }\n\n if (sprintStart == null) sprintStart = new SnowDateTime(new Date(getContext().getStartTime() - ONE_DAY));\n\n try {\n getResource().setPath(\"incident.do?JSONv2&sysparm_query=\" + filter.toEncodedString());\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n\n\n incidents = new ArrayList<>();\n for (DataFrame frame = super.read(context); frame != null; frame = super.read(context)) {\n try {\n incidents.add(new SnowIncident(frame));\n } catch (SnowException e) {\n Log.error(\"Received invalid data at record #\" + (incidents.size() + 1) + \": \" + e.getMessage(), e);\n }\n }\n Log.debug(\"...read in \" + incidents.size() + \" incidents.\");\n\n // replace the dataframes with our metrics\n dataframes = generateMetrics(incidents);\n context.setLastFrame(false);\n }\n return super.read(context); // start returning all the replaced dataframes\n }", "@Override\n\tpublic void cacheResult(ScienceAppExecute scienceAppExecute) {\n\t\tEntityCacheUtil.putResult(ScienceAppExecuteModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tScienceAppExecuteImpl.class, scienceAppExecute.getPrimaryKey(),\n\t\t\tscienceAppExecute);\n\n\t\tscienceAppExecute.resetOriginalValues();\n\t}", "@Override\n\tpublic void cacheResult(List<VcmsPortion> vcmsPortions) {\n\t\tfor (VcmsPortion vcmsPortion : vcmsPortions) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\t\tVcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVcmsPortionImpl.class, vcmsPortion.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(vcmsPortion);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvcmsPortion.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public void syncCache() {\n for (String s : this.cache.keySet()) {\n JsonDocument document = this.cache.get(s);\n document.save(new File(directory, s + \".json\"));\n }\n }", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "@Override\n\tpublic void setUseCaches(boolean usecaches) {\n\t\tthis.usecaches.add(usecaches);\n\t}", "private ArrayList<Object> loadCache() {\n if (cachedLabTest == null)\n {\n cachedLabTest = getOrderedTestCollection();\n return cachedLabTest;\n }\n else\n {\n return cachedLabTest;\n }\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "public void cacheSubjectLocators(ITopic t, Set<ILocator> identifiers) {\r\n\t\tif (topicSubjectLocators == null) {\r\n\t\t\ttopicSubjectLocators = HashUtil.getHashMap();\r\n\t\t}\r\n\t\ttopicSubjectLocators.put(t, HashUtil.getHashSet(identifiers));\r\n\t}", "public interface IBaseCache<T> {\n\n void setById(String id, T o);\n\n void setById(String id, T o, int timeout);\n\n void set(String key, T o);\n\n void set(String key, T o, int timeout);\n\n T getById(String id);\n\n T get(String key);\n\n void setList(List<T> list);\n\n void setList(List<T> list, int timeout);\n\n boolean hasList();\n\n List<T> getList();\n\n void setList(String key, List<T> list);\n\n void setList(String key, List<T> list, int timeout);\n\n boolean hasList(String key);\n\n List<T> getList(String key);\n\n boolean hasKeyById(String id);\n\n boolean hasKey(String key);\n\n void deleteKeyById(String id);\n\n void deleteKey(String key);\n\n void deleteList();\n\n void deleteList(String key);\n\n void deleteAllEntityKeys();\n\n\n}", "public interface DataCache {\n LiveData<List<News>> getNews();\n LiveData<NewsDetail> getNewsDetail(String id);\n void setNewsList(LiveData<List<News>> newsList);\n void setNewsDetail(String id, LiveData<NewsDetail> detail);\n }", "public void cacheResult(java.util.List<DataEntry> dataEntries);", "void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);", "public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }", "@Override\n\tpublic Cache getCacheInstance(CacheType cacheType) {\n\t\tCache cache = null;\n\t\tif (cacheType.equals(CacheType.ConcurrentCache)) {\n\t\t\tcache = cacheManager.getCache(\"concurrentBatchScheduleCache\");\n\t\t}\n\t\tif (cacheType.equals(CacheType.HistroicalCache)) {\n\t\t\tcache = cacheManager.getCache(\"concurrentBatchScheduleCache\");\n\t\t}\n\t\treturn cache;\n\t}", "@Override\n\tpublic void cacheResult(List<Answer> answers) {\n\t\tfor (Answer answer : answers) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tentityCacheEnabled, AnswerImpl.class,\n\t\t\t\t\tanswer.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(answer);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tanswer.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }" ]
[ "0.7219619", "0.6954566", "0.69171584", "0.5943958", "0.5683461", "0.55309564", "0.5411395", "0.53449374", "0.5333082", "0.5307728", "0.52796865", "0.52730435", "0.52614313", "0.52545935", "0.5180092", "0.5172508", "0.5167776", "0.51350576", "0.51082796", "0.510602", "0.5097183", "0.5082833", "0.50600106", "0.50013876", "0.497142", "0.49526355", "0.49503878", "0.49469462", "0.49460477", "0.49422166", "0.49334514", "0.49166855", "0.4897766", "0.48936814", "0.48657265", "0.4862794", "0.4843925", "0.48438436", "0.48432684", "0.4828461", "0.48233783", "0.4822824", "0.48227832", "0.4787778", "0.47752962", "0.47630537", "0.47548977", "0.47547594", "0.47477406", "0.47426307", "0.47383377", "0.4732998", "0.47255996", "0.4724729", "0.47242713", "0.47232932", "0.47225142", "0.47207576", "0.47072384", "0.4706647", "0.47060075", "0.46942058", "0.4692081", "0.46891075", "0.46748638", "0.46730626", "0.4670394", "0.46689987", "0.46623093", "0.4655281", "0.46521515", "0.4645956", "0.46422225", "0.46405476", "0.46388072", "0.4631591", "0.4630891", "0.46292475", "0.46286324", "0.46222615", "0.4620353", "0.46112207", "0.4601707", "0.459879", "0.45850062", "0.45816332", "0.45790088", "0.4576862", "0.45718583", "0.4570671", "0.45665103", "0.45660457", "0.45627555", "0.45561925", "0.45559618", "0.45507675", "0.45502642", "0.45484453", "0.45438686", "0.45411798" ]
0.7096636
1
Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create( long interviewScheduleId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule create(long interviewScheduleId) {\n\t\tInterviewSchedule interviewSchedule = new InterviewScheduleImpl();\n\n\t\tinterviewSchedule.setNew(true);\n\t\tinterviewSchedule.setPrimaryKey(interviewScheduleId);\n\n\t\treturn interviewSchedule;\n\t}", "@Override\n public void create(ScheduledInterview scheduledInterview) {\n long generatedId = new Random().nextLong();\n ScheduledInterview storedScheduledInterview =\n ScheduledInterview.create(\n generatedId,\n scheduledInterview.when(),\n scheduledInterview.interviewerId(),\n scheduledInterview.intervieweeId(),\n scheduledInterview.meetLink(),\n scheduledInterview.position(),\n scheduledInterview.shadowId());\n data.put(generatedId, storedScheduledInterview);\n }", "Schedule createSchedule();", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int insert(Schedule record);", "@Before\n public void before() {\n Study studyToCreate = TestUtils.getValidStudy(this.getClass());\n studyToCreate.setExternalIdRequiredOnSignup(false);\n studyToCreate.setExternalIdValidationEnabled(false);\n studyToCreate.setTaskIdentifiers(Sets.newHashSet(\"taskId\"));\n study = studyService.createStudy(studyToCreate);\n\n Schedule schedule = new Schedule();\n schedule.setLabel(\"Schedule Label\");\n schedule.setScheduleType(ScheduleType.RECURRING);\n schedule.setInterval(\"P1D\");\n schedule.setExpires(\"P1D\");\n schedule.addTimes(\"10:00\");\n schedule.addActivity(new Activity.Builder().withLabel(\"label\").withTask(\"taskId\").build());\n \n SimpleScheduleStrategy strategy = new SimpleScheduleStrategy(); \n strategy.setSchedule(schedule);\n \n schedulePlan = new DynamoSchedulePlan();\n schedulePlan.setLabel(\"Label\");\n schedulePlan.setStudyKey(study.getIdentifier());\n schedulePlan.setStrategy(strategy);\n schedulePlan = schedulePlanService.createSchedulePlan(study, schedulePlan);\n }", "@Test\n public void createScheduleEntry(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n }", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "@PostMapping\n public ScheduleDTO createSchedule(@RequestBody ScheduleDTO scheduleDTO) {\n Schedule newSchedule = this.scheduleService.saveSchedule(this.convertScheduleDTOToSchedule(scheduleDTO));\n // Update customer with newly created ID\n scheduleDTO.setId(newSchedule.getId());\n return scheduleDTO;\n }", "boolean saveSchedule(Schedule schedule);", "public String create(Schedule arg0) {\n\t\treturn null;\n\t}", "public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}", "public Schedule() {\r\n }", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public static void createAppointment(Appointment TemplateAppointment) {\n String sql = \"INSERT INTO appointments Values(NULL, ?, ?,?,?,?,?,Now(),'',Now(),'',?,?,?)\";\n // (Appointment_ID,Title,Description, Type, Phone, Division_ID) VALUES (5, '', 'test', '', 'test','')\" ;\n\n try {\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ps.setString(1, TemplateAppointment.getTitle());\n ps.setString(2, TemplateAppointment.getDescription());\n ps.setString(3, TemplateAppointment.getLocation());\n ps.setString(4, TemplateAppointment.getType());\n LocalDateTime start = LocalDateTime.of(TemplateAppointment.getDate(), TemplateAppointment.getStartTime());\n start = WashTimeZone(start, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n LocalDateTime end = LocalDateTime.of(TemplateAppointment.getDate(), TemplateAppointment.getEndTime());\n end = WashTimeZone(end, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n Timestamp Tstart = Timestamp.valueOf(start);\n Timestamp Tend = Timestamp.valueOf(end);\n ps.setTimestamp(5, Tstart);\n ps.setTimestamp(6, Tend);\n//timezone work needs to happen here\n\n ps.setInt(7, TemplateAppointment.getCustomerid());\n ps.setInt(8, TemplateAppointment.getUserid());\n ps.setInt(9, TemplateAppointment.getContactid());\n\n ps.execute();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "int insert(SchedulingPlay record);", "@Test\n public void createSchedule_whenModelIsValid_successfullyCreated() throws CreateException {\n\n SportCenter sportCenter = sportCenter = this.modelMapper\n .map(validSportCenterServiceModel1, SportCenter.class);\n SportCenter savedSportCenter = this.sportCenterRepository.saveAndFlush(sportCenter);\n SportCenterServiceModel sportCenterServiceModel = this.modelMapper\n .map(savedSportCenter, SportCenterServiceModel.class);\n ScheduleServiceModel actual = this.scheduleService\n .createSchedule(sportCenterServiceModel, \"11\", \"11\", \"2011\");\n ScheduleServiceModel expected = this.modelMapper\n .map(this.scheduleRepository.findAll().get(0), ScheduleServiceModel.class);\n\n assertEquals(expected.getId(), actual.getId());\n assertEquals(expected.getDay(), actual.getDay());\n assertEquals(expected.getMonth(), actual.getMonth());\n assertEquals(expected.getYear(), actual.getYear());\n }", "public void storeRegularDayTripStationScheduleWithRS();", "@Test\n public void createFormSceduleEntry(){\n ScheduleEntry entry = new ScheduleEntry(\"9;00AM\", new SystemCalendar(2018,4,25));\n }", "public static void createSchedule(Realm realm, ScheduleType selectedSchedule, LanguageType selectedLanguage, String title) {\n\t\tString[][] scheduleStrings = selectedSchedule.getSchedule();\n\t\t// save schedule into db\n\t\trealm.executeTransaction(r -> {\n\t\t\t// create schedule object\n\t\t\tSchedule schedule = r.createObject(Schedule.class, UUID.randomUUID().toString());\n\t\t\tschedule.setTitle(title);\n\t\t\tschedule.setLanguage(selectedLanguage.getName());\n\t\t\t// add all days to the schedule\n\t\t\tint dayNumber = 1;\n\t\t\tfor (String[] dayItems : scheduleStrings) {\n\t\t\t\tDay day = r.createObject(Day.class, UUID.randomUUID().toString());\n\t\t\t\tday.setDayNumber(dayNumber++);\n\t\t\t\t// each day has a set of files to listen to\n\t\t\t\tfor (String dayItem : dayItems) {\n\t\t\t\t\tStudyItem studyItem = r.createObject(StudyItem.class, UUID.randomUUID().toString());\n\t\t\t\t\tstudyItem.setTitle(dayItem);\n\t\t\t\t\tstudyItem.setCompleted(false);\n\t\t\t\t\tday.getStudyItems().add(studyItem);\n\t\t\t\t}\n\t\t\t\tschedule.getSchedule().add(day);\n\t\t\t}\n\t\t});\n\t}", "public Schedule(String id, String eventName, String description,\n\t\t\tString location, String eventType, Date startDate, Date endDate,\n\t\t\tString startTime, String endTime, Integer remindBefore, \n\t\t\tString remindTimeType, Integer repeatEvery, boolean sunday, \n\t\t\tboolean monday, boolean tuesday, boolean wednesday, \n\t\t\tboolean thursday, boolean friday, boolean saturday,String assignedUser) {\n\t\tthis.id = id;\n\t\tthis.eventName = eventName;\n\t\tthis.description = description;\n\t\tthis.location = location;\n\t\tthis.eventType = eventType;\n\t\tthis.startDate = startDate;\n\t\tthis.endDate = endDate;\n\t\tthis.startTime = startTime;\n\t\tthis.endTime = endTime;\n\t\tthis.remindBefore = remindBefore;\n\t\tthis.remindTimeType = remindTimeType;\n\t\tthis.assignedUser = assignedUser;\n\t\t//this.scheduleEventId = scheduleEventId;\n\t\t//this.scheduleEventName = scheduleEventName;\n\t\tthis.repeatEvery = repeatEvery;\n\t\tdays.setSunday(sunday);\n\t\tdays.setMonday(monday);\n\t\tdays.setTuesday(tuesday);\n\t\tdays.setWednesday(wednesday);\n\t\tdays.setThursday(thursday);\n\t\tdays.setFriday(friday);\n\t\tdays.setSaturday(saturday);\n\t}", "@Override\n\tpublic void addScheduleTask(ScheduleTask st) {\n\t\tscheduleTaskDAO.add(st);\n\t}", "int insertSelective(Schedule record);", "public Schedule() {\n this(DataManager.readAll());\n }", "@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}", "Schedule selectByPrimaryKey(Integer id);", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "private void addNewAssessment() {\n //instantiate converters object for LocalDate conversion\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n String status = editTextAssessmentStatus.getText().toString();\n String note = editTextAssessmentNote.getText().toString();\n String type = editTextAssessmentType.getText().toString();\n\n if (title.trim().isEmpty() || dueDate == null || status.trim().isEmpty() || type.trim().isEmpty()) {\n Toast.makeText(this, \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //instantiate Assessment object\n Assessment assessment = new Assessment(courseId, title, dueDate, status, note, type);\n\n //add new assessment\n addEditAssessmentViewModel.insert(assessment);\n\n //notification\n Long longDue = c.localDateToMilliseconds(dueDate);\n makeAlarm(title+\" is due today.\", longDue);\n\n finish();\n }", "@Override\r\n public void create(Appointment a) throws SQLException {\r\n\r\n String statement =\r\n \"INSERT INTO appointments (Appointment_ID, Title, Description, Location, Type, Start, End, Customer_ID, User_ID, Contact_ID) VALUES (\" +\r\n a.getAppointmentId() + \",'\" +\r\n a.getTitle() + \"','\" +\r\n a.getDescription() + \"','\" +\r\n a.getLocation() + \"','\" +\r\n a.getType() + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"',\" +\r\n a.getCustomer().getCustomerId() + \",\" +\r\n a.getUser().getId() + \",\" +\r\n a.getContact().getId() + \");\";\r\n\r\n //System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "PastReservation createPastReservation();", "@Override\n\tpublic ScienceAppExecute create(ScienceAppExecutePK scienceAppExecutePK) {\n\t\tScienceAppExecute scienceAppExecute = new ScienceAppExecuteImpl();\n\n\t\tscienceAppExecute.setNew(true);\n\t\tscienceAppExecute.setPrimaryKey(scienceAppExecutePK);\n\n\t\treturn scienceAppExecute;\n\t}", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\n }", "boolean newWorkingSchedule(WorkingScheduleRequest workingSchedule);", "int updateByPrimaryKey(Schedule record);", "private void addScheduleEntry(String startString, String endString, String tempString, Boolean noHeating) {\n int start = Integer.valueOf(startString.split(\":\")[0]);\n int end = Integer.valueOf(endString.split(\":\")[0]);\n double temperature = Utility.NO_HEATING_TEMPERATURE;\n\n if (!noHeating) {\n temperature = Double.valueOf(tempString.substring(0, tempString.length() - 1));\n }\n\n // Add to local database.\n ContentValues values = new ContentValues();\n values.put(Schedules.COLUMN_NAME_START_TIME, start);\n values.put(Schedules.COLUMN_NAME_END_TIME, end);\n values.put(Schedules.COLUMN_NAME_TEMPERATURE, temperature);\n values.put(Schedules.COLUMN_NAME_ROOM_ID, mRoomID);\n values.put(Schedules.COLUMN_NAME_DAY, mSelectedDay);\n\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n db.insert(Schedules.TABLE_NAME, null, values);\n db.close();\n mScheduleView.notifyDatasetChanged();\n\n // Add to server. The entry must be added to every thermostat in the room.\n Request mRequest = new Request(this);\n for (String RFID : thermostatRFIDs) {\n mRequest.addScheduleEntry(new ScheduleEntry(temperature, start, end, mSelectedDay), mRoomID, RFID);\n }\n }", "public boolean\r\n scheduleEmployee(int gasStationID, int employeeId, Date date, int shift){\r\n Schedule schedule = new Schedule(gasStationID, employeeId, date, shift);\r\n schedule.create();\r\n return true;\r\n }", "int insert(ResumePractice record);", "TimerSchedule createTimerSchedule();", "int insert(AoD5e466WorkingDay record);", "PrimaryKey createPrimaryKey();", "public void generateSchedule(){\n\t\t\n\t}", "PK create(T newInstance);", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord insertNewTaskmonitorrecord(int i);", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract insertNewTaskAbstract(int i);", "public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }", "public void createSurvey(int tid);", "int insertSelective(SchedulingPlay record);", "public TimeSlot(UUID id, UUID scheduleID, LocalTime startTime, LocalTime endTime, LocalDate date, boolean isFree) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.scheduleID = scheduleID;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.date = date;\r\n\t\tthis.isFree = isFree;\r\n\t\tthis.hasMeeting = false;\r\n\t\t//this.meeting = new Meeting();\r\n\t\t\r\n\t\tMeetingDAO dao = new MeetingDAO();\r\n\t\tMeeting m = dao.getMeetingByTimeSlotID(id);\r\n\t\tif(m==null) {\r\n\t\t\tmeeting = new Meeting();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmeeting = m;\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS run (_id integer primary key autoincrement, start_date integer, end_date integer, track_data text)\");\n\t}", "public Quiz insertQuiz() {\n\n\t\tQuiz q = new Quiz();\n\t\tq.setStartedAt(new Date());\n\t\tq.setCounter(0);\n\n\t\treturn quizRepo.save(q);\n\n\t}", "@Override\n\tpublic int insert(StuXK sxk) {\n\t\tString sql=\"insert into T_CourseSchedule(StudentID,TeachTaskID,ScoreOne,ScoreTwo,ScoreThree,TotalScore) values(?,?,?,?,?,?)\";\n\t\tObject[] parmas={sxk.getStudentID(),sxk.getTeachTaskID(),sxk.getScoreOne(),sxk.getScoreTwo(),sxk.getScoreThree(),sxk.getTotalScore()};\t\t\n\t\tBaseDAO dao=new BaseDAO();\t\t\n\t\treturn dao.insert(sql, parmas);\n\t}", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n final String SQL_CREATE_WAITLIST_TABLE = \"CREATE TABLE \" + ScheduleContract.ScheduleEntry.TABLE_NAME + \" (\" +\n ScheduleContract.ScheduleEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n ScheduleContract.ScheduleEntry.COLUMN_MED_DESCRIPTION + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_MED_INSTRUCTION + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_USAGE_STATUS + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_TIMESTAMP + \" TIMESTAMP DEFAULT CURRENT_TIMESTAMP\" +\n \");\";\n\n sqLiteDatabase.execSQL(SQL_CREATE_WAITLIST_TABLE);\n }", "public IGenScheduleHandler create() throws CreateException, RemoteException;", "private void newTask()\n {\n \t//TODO add alarm\n \tTask task = new Task(taskName.getText().toString(), taskDetails.getText().toString());\n \tdb.createTask(task);\n \t//TODO Tie notification to an alarm\n \t//Create notification\n \tIntent notifyIntent = new Intent(this, TaskNotification.class);\n \tnotifyIntent.putExtra(\"title\", task.name); //add title name\n \tnotifyIntent.putExtra(\"id\", (int) task.id); //add id\n \tstartActivity(notifyIntent); //create the intent\n \t\n \trefreshData();\n }", "private boolean trySaveSchedule() {\n if(mSelectedProfiles == null || mSelectedProfiles.size()<1){\n Utility.createErrorDialog(this, \"No Profiles\", \"You must select a Profile\");\n return false;\n }\n\n // Check that at least 1 Calendar is selected\n if(mSelectedCalendars == null || mSelectedCalendars.size()<1){\n Utility.createErrorDialog(this, \"No Calendars\", \"You must select a Calendar\");\n return false;\n }\n\n // Get the schedule name\n String scheduleName = mScheduleName.getText().toString();\n\n Log.d(\"CSA_Save_Name\", scheduleName);\n Log.d(\"CSA_Save_Timeslot_Size\", String.valueOf(mTimeslotArray.size()));\n\n\n // Save each timeslot and create it's intents\n if(DBHelper.getScheduleByName(scheduleName)!=null)\n {\n\n }\n else\n {\n for (Timeslot t : mTimeslotArray) {\n t.save();\n Log.d(\"CSA_Timeslot_Save_ID\", String.valueOf(t.getId()));\n List<BlockIntent> createdIntents = createIntents(t);\n Log.d(\"CSA_Intent_Size\", String.valueOf(createdIntents.size()));\n for (BlockIntent bi : createdIntents) {\n bi.save();\n }\n }\n }\n\n // Save the schedule\n try {\n if (DBHelper.saveSchedule(scheduleName, mTimeslotArray, mSelectedProfiles, mSelectedCalendars)) {\n Log.d(\"CSA_SaveSched_Timeslot\", String.valueOf(mTimeslotArray.size()));\n System.out.println(\"Successfully saved!\");\n clearTimeslots();\n Utility.activateSchedule(scheduleName, this);\n } else {\n Utility.createErrorDialog(this, \"Invalid Name\", \"You must enter a unique name for your schedule\");\n System.out.println(\"Unsuccessful save\");\n return false;\n }\n } catch (AlreadyExistsException e) {\n System.out.println(e.getMessage());\n return false;\n }\n\n return true;\n }", "public Schedule(List<Integer> SprinklerIDs,int timeOfDay, int minute, int duration, List<Integer> daysOfWeek) {\n\t\tsuper();\n\t\tTimeOfDay = timeOfDay;\n\t\tMinute = minute;\n\t\tDuration = duration;\n\t\tDaysOfWeek = daysOfWeek;\n\t\tSprinklerIDs = SprinklerIDs;\n\t\tType=ScheduleType.TIMED;\n\t}", "private static void addNewScheduledTour()\r\n {\r\n\t String tourID;\r\n\t String description;\r\n\t double admissionFee;\r\n\t String tourDate;\r\n\t int maxGroupSize;\r\n\t String tourLeader;\r\n\t boolean duplicateID = false;\r\n\t \r\n System.out.println(\"Add New Scheduled Tour Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Tour ID: \");\r\n tourID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Date: \");\r\n tourDate = sc.nextLine();\r\n \r\n System.out.print(\"Enter Maximum Group Size: \");\r\n maxGroupSize = sc.nextInt();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Leader: \");\r\n tourLeader = sc.nextLine();\r\n System.out.println();\r\n \r\n // check if tourID is already in use in the booking system\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(tourID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n }\r\n \r\n if(duplicateID == false)\r\n {\r\n \t attractionList[attractionCount] = new ScheduledTour(tourID, description,\r\n \t\t\t admissionFee, tourDate, maxGroupSize, tourLeader);\r\n \t attractionCount++;\r\n }\r\n }", "public PlanoSaude create(long plano_id);", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "void insert(TResearchTeach record);", "public void insertPractice(PracticeEntry entry) {\n\t\tpatchMissingDefaults(entry);\n\t\tContentValues entryValues = sanitizeColumns(entry);\n\t\tlong columnId;\n\t\tif ((columnId = db.insert(PRACTICE_TABLE_NAME, null, entryValues)) == -1) {\n\t\t\tthrow new SQLException(\"There was an error inserting new row.\");\n\t\t}\n\n\t\tentry.getValues().put(BaseColumns._ID, columnId);\n\n\t\tupdatePractice(entry);\n\t}", "org.landxml.schema.landXML11.RoadsideDocument.Roadside insertNewRoadside(int i);", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void create(Course t) {\n String statement = INSERT;\n data.makeUpdateStatement(statement,new Object[]{(Object)t.getTitle(),(Object)t.getStream(), (Object)t.getType(),\n (Object)t.getStart_date(),(Object)t.getEnd_date()});\n Course lastCreatedCourse = getByMaxId(); //after the course creation, we get back the last course with the id\n t.setId(lastCreatedCourse.getId()); //and set the id to the given course\n data.closeConnections(data.ps, data.conn);\n \n }", "int insert(CalendarDate record);", "@Override\n\tpublic void addSchedule(TeacherCourse tc) {\n\t\tcd.addTeacherCourse(tc);\n\t}", "public Todo create(long todoId);", "public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "@Test\n public void createScheduledPlanTest() throws ApiException {\n ScheduledPlan body = null;\n ScheduledPlan response = api.createScheduledPlan(body);\n\n // TODO: test validations\n }", "public void schedule(String id, String[] schedule) {\n\t}", "public DataEntry create(long dataEntryId);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public void createResident(Resident resident);", "private void handleSchedule(ToDoSchedule todoSchedule)\r\n throws ToDoServiceDelegateException {\r\n\r\n if (todoSchedule.getInitiationDate().before(new Date())) {\r\n\r\n ToDo basis = todoSchedule.getToDo();\r\n\r\n ToDo scheduledTodo = null;\r\n scheduledTodo = (ToDo) basis.clone();\r\n scheduledTodo.setDeadlineTimestamp(new Date());\r\n scheduledTodo.setComplete(false);\r\n scheduledTodo.setId(null);\r\n\r\n this.getTodoServiceDelegate().save(scheduledTodo);\r\n\r\n }\r\n }", "@SuppressWarnings(\"deprecation\")\r\n\tprivate void createCalendarEntry(){\r\n\t\t\r\n\t\tUri calendars = Uri.parse(CALENDAR_URI);\r\n\t\t \r\n\t\tCursor managedCursor = managedQuery(calendars, projection, null, null, null);\r\n\t\tString calName = \"\"; \r\n\t\tString calId = \"\"; \r\n\t\tif (managedCursor.moveToFirst()) {\r\n\t\t\t \r\n\t\t\t int idColumn = managedCursor.getColumnIndex(projection[0]);\r\n\t\t\t int nameColumn = managedCursor.getColumnIndex(projection[1]); \r\n\t\t\t \r\n\t\t\t do {\r\n\t\t\t calName = managedCursor.getString(nameColumn);\r\n\t\t\t calId = managedCursor.getString(idColumn);\r\n\t\t\t if (calName.contains(\"gmail\"))\r\n\t\t\t \tbreak;\r\n\t\t\t } while (managedCursor.moveToNext());\r\n\t }\r\n\t\t\r\n\t\tlong start = System.currentTimeMillis() + 120000;\r\n\t\tlong duration = DURATION + start;\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(DATE_START, start);\r\n\t\tvalues.put(DATE_END, duration);\r\n\t\tvalues.put(EVENT_TITLE, ocrData.getMedicine().getMedicine());\r\n\t\tvalues.put(EVENT_DESCRIPTION, \"Take \" + ocrData.getPatient2Medicine().getFrequencyOfIntake() \r\n\t\t\t\t+ \" by \" + ocrData.getPatient2Medicine().getMode());\r\n\t\tvalues.put(CALENDAR_ID, calId);\r\n\t\tvalues.put(EVENT_RULE, \"FREQ=\" + ocrData.getPatient2Medicine().getFrequencyOfIntake() + \";\");\r\n\t\tvalues.put(HAS_ALARM, 1);\r\n\t\t\r\n\t\tContentResolver cr = getContentResolver();\r\n\t\tUri event = cr.insert(Uri.parse(EVENT_URI), values);\r\n\t\t\r\n\t\tvalues = new ContentValues();\r\n\t\tvalues.put(\"event_id\", Long.parseLong(event.getLastPathSegment()));\r\n\t\tvalues.put(\"method\", 1);\r\n\t\tvalues.put(\"minutes\", 10 );\r\n\t\tcr.insert(Uri.parse(REMINDER_URI), values);\r\n\t}", "private void addOrUpdateAssessment() {\n if (thisAssessmentId < 0) {\n addNewAssessment();\n } else {\n updateAssessment();\n }\n }", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(CREATE_SCHEDULE_TABLE);\r\n\t\t\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(\"category\", \"定常作業\");\r\n\t\tdb.insert(TABLE_NAME,null,values);\r\n\t\t\r\n\t\tvalues.clear();\r\n\t\tvalues.put(\"category\", \"障害対応\");\r\n\t\tdb.insert(TABLE_NAME,null,values);\r\n\t\t\r\n\t\tvalues.clear();\r\n\t\tvalues.put(\"category\", \"問い合わせ\");\r\n\t\tdb.insert(TABLE_NAME,null,values);\r\n\t\t\r\n\t\tvalues.clear();\r\n\t\tvalues.put(\"category\", \"データ変更\");\r\n\t\tdb.insert(TABLE_NAME,null,values);\r\n\t\t\r\n\t\tvalues.clear();\r\n\t\tvalues.put(\"category\", \"その他\");\r\n\t\tdb.insert(TABLE_NAME,null,values);\r\n\t}", "@Test\n\tpublic void testCreateAndGetSchedules() throws Exception {\n\t\tString[] multipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 1, 0);\n\n\t\t// Test multiple applications each having multiple specific date schedules, no recurring schedule\n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 5, 0);\n\n\t\t// Test multiple applications each having single recurring schedule, no specific date schedules\n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 0, 1);\n\n\t\t// Test multiple applications each having multiple recurring schedule, no specific date schedules\n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 0, 5);\n\n\t\t// Test multiple applications each having multiple specific date and multiple recurring schedule \n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 5, 5);\n\t}", "@Override\n\tpublic void createResident(Resident resident) {\n\t\tgetSession().saveOrUpdate(resident);\n\t\tSystem.out.println(\"Resident stored successfully\");\n\t\t\n\t}", "public int createAppointment(Appointment appointment) {\n\t\treturn 0;\r\n\t}", "long addTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n double time;\n\n ContentValues values = new ContentValues();\n values.put(KEY_INFO, task.getInfo()); // task info\n if (task.calendarExists()) {\n time = task.getCalendar().getTimeInMillis();\n } else {\n time = 0;\n }\n values.put(KEY_CALENDAR, time); // Task calendar\n values.put(KEY_LATITUDE, task.getLatitude());\n values.put(KEY_LONGITUDE, task.getLongitude());\n\n // Inserting Row\n long id;\n id = db.insert(TABLE_TASKS, null, values);\n Log.d(TAG, \"ID: \" + Long.toString(id));\n db.close(); // Closing database connection\n return id;\n }", "public Schedule() {\n\t\tcourses = new ArrayList<Course>();\n\t}", "public void createAgenda(Agenda agenda){\n Session session = HibernateUtil.getSessionFactory().openSession(); \n Transaction transaction = session.beginTransaction();\n session.save(agenda);\n transaction.commit();\n session.close();\n }", "Reservation createReservation();", "public TimeSlot(UUID scheduleID, LocalTime startTime, LocalTime endTime, LocalDate date, boolean isFree) {\r\n\t\tsuper();\r\n\t\tthis.id = UUID.randomUUID();\r\n\t\tthis.scheduleID = scheduleID;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.date = date;\r\n\t\tthis.isFree = isFree;\r\n\t\tthis.hasMeeting = false;\r\n\t\tthis.meeting = new Meeting();\r\n\t}", "public void saveSchedule(String id){\r\n HashMap<String, List<Schedule>> scheduleList = sm.getSchedulesList();\r\n HashMap<Integer, Integer> scheduleTempMap = sm.getScheduleTempMap();\r\n if (um.getUserType(id).equals(\"trial\")){\r\n if (scheduleList.containsKey(id)){\r\n List<Schedule> userSchedules = scheduleList.get(id);\r\n scheduleList.remove(id);\r\n for (Schedule s: userSchedules){\r\n scheduleTempMap.remove(s.getScheduleID());\r\n }\r\n }\r\n }\r\n sr.saveScheduleToFile(scheduleList, scheduleTempMap);\r\n }", "void create(SportActivity activity);", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"SHEET\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT ,\" + // 0: id\n \"\\\"SHEET_DATE\\\" INTEGER NOT NULL ,\" + // 1: sheetDate\n \"\\\"RUNNER_ID\\\" INTEGER NOT NULL );\"); // 2: runnerId\n }", "CurrentReservation createCurrentReservation();", "public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }", "int insertSelective(ResumePractice record);", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "@Insert({\n \"insert into inst_class_hour_course_teacher_daily (inst_id, course_id, \",\n \"teacher_id, class_hour, \",\n \"price, type, day)\",\n \"values (#{instId,jdbcType=BIGINT}, #{courseId,jdbcType=BIGINT}, \",\n \"#{teacherId,jdbcType=BIGINT}, #{classHour,jdbcType=BIGINT}, \",\n \"#{price,jdbcType=BIGINT}, #{type,jdbcType=BIGINT}, #{day,jdbcType=DATE})\"\n })\n int insert(InstClassHourCourseTeacherDaily record);", "private void createScheduleFile() {\n try {\n File scheduleFile = new File(filePath, \"schedule.txt\");\n// FileWriter fw = new FileWriter(scheduleFile);\n\n OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(scheduleFile), StandardCharsets.UTF_8);\n osw.write(\"SCHEDULE:\\n\" + schedule);\n osw.close();\n\n System.out.println(\"schedule.txt successfully created.\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void create(Board board) throws Exception {\n\t\tdao.insert(board);\n\t}", "public void createAppointment(View v) {\n checkFields();\n\n // grab the info in the fields and turn it into usable stuff\n int mon = parseInt(month.getText().toString());\n int d = Integer.parseInt(day.getText().toString());\n int y = Integer.parseInt(year.getText().toString());\n int h = Integer.parseInt(hour.getText().toString());\n int min = Integer.parseInt(minute.getText().toString());\n String AorP = AMorPM.getText().toString();\n String p = place.getText().toString();\n\n\n // all of the fields have been checked now. Create a new appointment\n //Appointment apt = new Appointment(d, mon, y, h, min, AorP, p);\n Appointment apt = new Appointment();\n apt.setDay(d);\n apt.setMonth(mon);\n apt.setYear(y);\n apt.setHour(h);\n apt.setMinute(min);\n apt.setAmOrPm(AorP);\n apt.setPlace(p);\n apt.setConfirmed(false);\n apt.setTaken(false);\n\n // push it onto the database\n DatabaseReference aptsRef = ref.child(\"appointmentList\");\n aptsRef.push().setValue(apt);\n\n // send out a toast signalling that we've successfully created an appointment\n Toast.makeText(getApplicationContext(), \"Appointment successfully created\", Toast.LENGTH_SHORT).show();\n\n // now send the user back to the main activity -> with their membership number\n Intent intent = new Intent(this, MainActivity.class);\n intent.putExtra(MESSAGE, memberNumber);\n startActivity(intent);\n }", "public static void addTask(Task taskToAdd)\n\t{\n\t\tStatement statement = dbConnect.createStatement();\n\t\t\n\t\tCalendar cal = taskToAdd.getCal();\n\t\tint year = cal.get(YEAR);\n\t\tint month = cal.get(MONTH);\n\t\tint day = cal.get(DAY_OF_MONTH);\n\t\tint hour = cal.get(HOUR_OF_DAY);\n\t\tint minute = cal.get(MINUTE);\n\t\t\n\t\tString descrip = taskToAdd.getDescription();\n\t\tboolean recur = taskToAdd.getRecurs();\n\t\tint recurI;\n\t\tif(recur) recurI = 1;\n\t\telse recurI = 0;\n\t\tint recursDays = taskToAdd.getRecurIntervalDays();\n\t\t\n\t\tstatement.executeUpdate(\"INSERT INTO tasks (Year, Month, Date, Hour, Minute, Description, Recursion, RecursionDays) VALUES(\" +year+\", \"+month+\", \"+day+\", \"+hour+\", \"+minute+\", '\"+descrip+\"', \"+recurI+\", \"+recursDays+\")\");\n\t\tstatement.close();\n\t\treturn;\n\t}", "@Override\n public void onClick(View v) {\n\n title = mTitle.getText().toString();\n details = mDetails.getText().toString();\n repeats = 0;\n date.setHours(hour);\n date.setMinutes(minute);\n try {\n repeats = Integer.parseInt(mRepeats.getText().toString());\n } catch (NumberFormatException io){\n\n }\n if (mSpinner.getSelectedItem().toString().equals(\"Days\")) {\n repeats = repeats*24*60;\n }\n else if (mSpinner.getSelectedItem().toString().equals(\"Hours\")) {\n repeats = repeats*60;\n }\n Assignment newAssignment = new Assignment(title, details, repeats, date);\n AssignmentList.get(getActivity()).addAssignment(newAssignment);\n //Calendar c = Calendar.getInstance();\n //c.setTime(date);\n mScheduleClient.setAlarmForNotification(newAssignment); // tell service to set alarm for this date\n // (talks to client which then talks to service)\n if (mScheduleClient!=null) {\n mScheduleClient.doUnbindService();\n }\n getActivity().finish();\n\n }" ]
[ "0.7785113", "0.7084555", "0.62650067", "0.5836738", "0.5703991", "0.56883353", "0.56849694", "0.5555134", "0.55147123", "0.5493157", "0.53941697", "0.5354057", "0.53057116", "0.5288248", "0.526722", "0.52387327", "0.52064246", "0.5196825", "0.51901275", "0.5170479", "0.51679844", "0.5156681", "0.51566726", "0.51504713", "0.5131173", "0.51244813", "0.51223683", "0.5079321", "0.5028542", "0.49930245", "0.49781722", "0.4974348", "0.49646628", "0.4964113", "0.49508834", "0.4946541", "0.49297595", "0.49051318", "0.4897593", "0.48891264", "0.488903", "0.4887601", "0.48697042", "0.48601258", "0.48515704", "0.4849316", "0.48466253", "0.4844147", "0.48387715", "0.4814145", "0.4812482", "0.48091573", "0.47949016", "0.47936958", "0.47847944", "0.4768294", "0.47662187", "0.47545543", "0.47541237", "0.47540575", "0.4745617", "0.4743517", "0.47292447", "0.4728553", "0.4726705", "0.4722772", "0.47223184", "0.47176817", "0.47132918", "0.46989542", "0.46900642", "0.4683308", "0.467337", "0.4672484", "0.4672181", "0.46625274", "0.46534166", "0.46509582", "0.46480727", "0.46474007", "0.46391538", "0.4635162", "0.46294284", "0.46226478", "0.46141243", "0.4604536", "0.46012753", "0.45930913", "0.45846236", "0.4574471", "0.45725673", "0.45717207", "0.45676342", "0.45629436", "0.4561709", "0.45543513", "0.45532188", "0.45509058", "0.45492545", "0.4546864" ]
0.8315132
0
Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove( long interviewScheduleId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public void remove(Schedulorinator schedule) {\r\n if (scheduleList.contains(schedule)) {\r\n scheduleList.remove(schedule);\r\n schedule.removePerson(this);\r\n removeObserver(schedule);\r\n }\r\n }", "public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);", "void remove(PK id);", "@Override\n public void removeFromDb() {\n }", "public void deleteSchedule(int idx) throws Exception {\n\t\t// delete schedule information from DB. \n\t\tConnection conn = null;\n Statement stmt = null;\n \n try {\n conn = DefaultConnectionFactory.create().getConnection();\n stmt = conn.createStatement();\n \n StringBuilder sql = new StringBuilder();\n sql.append(\" DELETE FROM SCHEDULE_TABLE WHERE SCHE_IDX=\").append(idx);\n \n stmt.executeUpdate(sql.toString());\n\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) { }\n }\n if (conn != null) {\n try {\n conn.close();\n } catch (Exception e) { }\n }\n }\n\t}", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "void unsetSchedule();", "int updateByPrimaryKey(Schedule record);", "void eliminar(PK id);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n public void delete() {\n this.parent.handleRemoveSignal(this.deadline.getCourseName(),\n this.deadline.getName(),\n this.deadline.getYear(),\n this.deadline.getMonth(),\n this.deadline.getDay());\n }", "@Override\n public void remove(int id) {\n Venda v;\n\n v = em.find(Venda.class, id);\n em.remove(v);\n// transaction.commit();\n }", "@Override\n\tpublic int delete(StuXK sxk) {\n\t\tString sql=\"delete from T_CourseSchedule where TeachTaskID=?\";\n\t\tObject[] parmas={sxk.getTeachTaskID()};\n\t\tBaseDAO dao=new BaseDAO();\n\t\treturn dao.delete(sql,parmas);\n\t}", "@Override\n\tpublic int dbRemove(MovementPK primarykey)\tthrows DAOSysException\t{\n\t\treturn dbRemove(primarykey, MovementDAO.DELETE_STM);\n\t}", "boolean deleteWorkingSchedule(Long workingScheduleId);", "public int deleteXPmScheduleAddressByPK(XPMScheduleAddressPK theXPmScheduleAddressPK,String recFulNam,Date recDate) throws AAException, RemoteException ;", "public void removeEvent(long rowIndex) {\n SQLiteDatabase dbObj = getWritableDatabase();\n dbObj.delete(TABLE_EVENT_ENTRIES, KEY_ROWID + \"=\" + rowIndex, null);\n dbObj.close();\n }", "int deleteByPrimaryKey(Date day, Integer hour, String mscid);", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "Schedule selectByPrimaryKey(Integer id);", "@Override\r\n\t\r\n\tpublic void execute() {\n\t\r\n\t\teventsCalendar.delete();\r\n\t}", "int deleteByPrimaryKey(Integer acTeacherInstrumentId);", "@Override\n\tpublic VCal remove(Serializable primaryKey)\n\t\tthrows NoSuchVCalException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tVCal vCal = (VCal)session.get(VCalImpl.class, primaryKey);\n\n\t\t\tif (vCal == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchVCalException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(vCal);\n\t\t}\n\t\tcatch (NoSuchVCalException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n\tpublic void deleteWorkout(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Workout where id=:workoutId\");\n\t\ttheQuery.setParameter(\"workoutId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}", "int deleteByPrimaryKey(Long researchid);", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "@Transactional\n\tpublic boolean deleteInterview(Interview interview) {\n\n\t\tgetSession().delete(interview);\n\t\treturn true;\n\t}", "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\t\tinterviewId);\n\n\t\treturn remove(interviewSchedule);\n\t}", "@Override\n\tpublic int deleteByPrimaryKey(String rcuid) {\n\t\treturn rcuSettimeMapper.deleteByPrimaryKey(rcuid);\n\t}", "int deleteByExample(ScheduleCriteria example);", "public static int rmScheduledEvent()\n\t{\n\t\tString sql = \"DELETE FROM BSM_SCHEDULER_EVENT_REPORT\";\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Remove report event from table BSM_SCHEDULER_EVENT\n\t\tsql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT\");\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\t\n\t\treturn ret;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "int deleteByPrimaryKey(String calendardate);", "@Override\r\n\tpublic GlobalResult deleteEquipt(String machineno,String fstarttime) {\n\t\t\r\n\t\tint deleteByPrimaryKey = faultymachine.deleteByPrimaryKey(machineno,fstarttime);\r\n\t\tif(deleteByPrimaryKey==0) {\r\n\t\t\treturn new GlobalResult(200, \"删除失败\", null);\r\n\t\t}else {\r\n\t\t\treturn new GlobalResult(200, \"删除成功\", null);\r\n\t\t}\r\n\t}", "@Override\n\tpublic TvShow remove(Serializable primaryKey)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow tvShow = (TvShow)session.get(TvShowImpl.class, primaryKey);\n\n\t\t\tif (tvShow == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchTvShowException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(tvShow);\n\t\t}\n\t\tcatch (NoSuchTvShowException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "public void remove(Timesheet ts) {\n\t //attach category\n\t \tSystem.out.println(\"Remove in timehseet\");\n\t ts = find(ts.getTimesheetID());\n\t em.remove(ts);\n\t }", "void delPreferedCalendar(String calendarId);", "@Override\n public void deleteSelectedConnectathonParticipant() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteSelectedConnectathonParticipant\");\n }\n\n selectedConnectathonParticipant = entityManager.find(ConnectathonParticipant.class,\n selectedConnectathonParticipant.getId());\n\n try {\n\n entityManager.remove(selectedConnectathonParticipant);\n entityManager.flush();\n\n } catch (Exception e) {\n LOG.warn(USER + selectedConnectathonParticipant.getEmail()\n + \" cannot be deleted - This case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\",\n selectedConnectathonParticipant.getFirstname(), selectedConnectathonParticipant.getLastname(),\n selectedConnectathonParticipant.getEmail());\n }\n FinancialCalc.updateInvoiceIfPossible(selectedConnectathonParticipant.getInstitution(),\n selectedConnectathonParticipant.getTestingSession(), entityManager);\n getAllConnectathonParticipants();\n\n }", "@RequestMapping(value=\"/Scheduling/removeAppointment\", method= {RequestMethod.DELETE, RequestMethod.GET})\r\n\tpublic String removeAppointment(long id) {\r\n\t\tschedulingService.removeAppointment(id);\r\n\t\treturn \"redirect:/Scheduling\";\r\n\t}", "public void removeByschoolId(long schoolId);", "int updateByPrimaryKeySelective(Schedule record);", "public void secondaryRemoveI13nDateSaving(com.hps.july.persistence.I13nDateSaving anI13nDateSaving) throws java.rmi.RemoteException;", "public void removeResumeByRowId(long rowId) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n db.delete(DBHelper.TABLE_RESUME, \"rowid=\" + rowId, null);\r\n db.close();\r\n }", "@Override\n\tpublic void delTraineeByID(int traineeID) {\n\t\tQuery query = getSession().createSQLQuery(\"delete from WEB_TRAINEE where traineeID = :traineeID\");\n query.setInteger(\"traineeID\", traineeID);\n query.executeUpdate();\n\t}", "protected int remove(long id, String removeSql) throws RepositoryException {\n PreparedStatement preparedStatement = null;\n try {\n preparedStatement = connection.prepareStatement(removeSql);\n preparedStatement.setLong(1,id);\n return preparedStatement.executeUpdate();\n } catch (SQLException e) {\n throw new RepositoryException(\"Error in removing appointment\",e);\n } finally {\n close(preparedStatement);\n }\n }", "public void removeBycourse_id(long course_id);", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "int deleteByPrimaryKey(PracticeClassKey key);", "int deleteByPrimaryKey(Long pineAlarmId);", "@Override\r\n\tpublic void deleteCoursescheduleById(int id) {\n\t\tsession = sessionFactory.openSession(); \r\n\t\tTransaction transaction = session.beginTransaction();\r\n\t\t//session.delete(getCoursescheduleById(id));\r\n\t\tString hql = \"update Courseschedule set state =:state ,modifiedTime=:modifiedTime where id=:id\";\t\t\r\n\t\tint deleteNumber= session\r\n\t\t\t\t\t\t\t.createQuery(hql)\r\n\t\t\t\t\t\t\t.setInteger(\"state\", 1)\r\n\t\t\t\t\t\t\t.setInteger(\"id\", id)\r\n\t\t\t\t\t\t\t.setTimestamp(\"modifiedTime\",new Date())\r\n\t\t\t\t\t\t\t.executeUpdate();\r\n\t\tif(deleteNumber>0){\r\n\t\t\tlogger.debug(\"use the method named :deleteCourseschedule(Courseschedule courseschedule) ,delete success!\");\r\n\t\t}\r\n\t\ttransaction.commit();\r\n\t\tsession.close();\r\n\t\t\r\n\r\n\t}", "@Override\r\n public void delete(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement = \"DELETE FROM appointments WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "@Override\n\tpublic int deleteByPrimaryKey(String id) {\n\t\treturn attendanceRercordAllMapper.deleteByPrimaryKey(id);\n\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n subjectDAO.deleteFridayEntry(employee);\r\n subjectListAdapter.remove(employee);\r\n Toast.makeText(getActivity(), \"Subject Deleted\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }", "@Test\n\tpublic void deletingScheduleIntervalWorks() throws Exception {\n\t\tResource floatRes = new Resource();\n\t\tfloatRes.setName(\"scheduleTest\");\n\t\tfloatRes.setType(FloatResource.class);\n\t\t// floatRes.setDecorating(Boolean.TRUE);\n\t\tFloatSchedule schedule = createTestSchedule();\n\n\t\tfloatRes.getSubresources().add(schedule);\n\t\tResource meter1 = unmarshal(sman.toXml(meter), Resource.class);\n\t\tmeter1.getSubresources().add(floatRes);\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\t\t\n\t\tschedule.getEntry().clear();\n\t\tschedule.setStart(2L);\n\t\tschedule.setEnd(3L);\n\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\n\t\tSchedule ogemaSchedule = (Schedule) meter.getSubResource(\"scheduleTest\").getSubResource(\"data\");\n\n\t\tassertEquals(2, ogemaSchedule.getValues(0).size());\n\t\tassertEquals(42, ogemaSchedule.getValues(0).get(0).getValue().getFloatValue(), 0);\n\t\tassertEquals(44, ogemaSchedule.getValues(0).get(1).getValue().getFloatValue(), 0);\n\t}", "public void removeEvents() throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase(); \n\t\ttry {\n\t\t\tdb.delete(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, null);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public abstract CalendarEvent removeEvent(User user, String id);", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer prid) {\n\t\treturn 0;\r\n\t}", "int deleteByPrimaryKey(String courseId);", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "int deleteByPrimaryKey(Integer actPrizeId);", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "int deleteByPrimaryKey(String licFlow);", "public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}", "@Override\n\tpublic void delByPrimaryKey(int id) throws SQLException {\n\n\t}", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "@Transactional\n\tpublic void delete(SnmpEventsProcessPk pk) throws SnmpEventsProcessDaoException\n\t{\n\t\tjdbcTemplate.update(\"DELETE FROM \" + getTableName() + \" WHERE MARK = ?\",pk.getMark());\n\t}", "@Override\n\tpublic ScienceAppExecute remove(Serializable primaryKey)\n\t\tthrows NoSuchScienceAppExecuteException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tScienceAppExecute scienceAppExecute = (ScienceAppExecute)session.get(ScienceAppExecuteImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (scienceAppExecute == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchScienceAppExecuteException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(scienceAppExecute);\n\t\t}\n\t\tcatch (NoSuchScienceAppExecuteException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "int deleteByPrimaryKey(Integer teamId);", "int deleteByPrimaryKey(String bscid, Date day, Integer hour);", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "boolean deleteWholeWorkingScheduleForPlace(Long placeId);", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "int deleteByPrimaryKey(String taskid);", "public abstract void unschedule();", "public static void removeScheduleFromCart(Cart cart) {\n\n cart.setSchedule(null);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n\n }\n\n }", "@Test\n public void removeShift(){\n Shift dummy = new Shift(4, 1, 1, 1);\n shiftDAO.createShift(dummy);\n\n //clean up and test\n assertTrue(shiftResource.removeShift(dummy.getShift_id()));\n }", "public void remove()\n {\n domain.removeParticipant(participant);\n }", "public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn resumeMapper.deleteByPrimaryKey(id);\n\t}", "int deleteByPrimaryKey(String registerId);", "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchPhatVayException(\n\t\t\t\t\t_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\treturn remove(phatVay);\n\t\t}\n\t\tcatch (NoSuchPhatVayException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "int deleteByPrimaryKey(Integer rebateId);", "public void delete() throws InvalidIDException, SQLException {\r\n\r\n\t\t// Delete the general project entry first\r\n\t\tsuper.delete();\r\n\r\n\t\t// Get our connection to the database.\r\n\t\tConnection conn = DBConnectionManager.getPrConnection();\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\r\n\t\t\t// Our SQL statement\r\n\t\t\tString sqlStr = \"SELECT projectID FROM tblTechnology WHERE projectID = \" + super.id;\r\n\r\n\t\t\t// Our results\r\n\t\t\trs = stmt.executeQuery(sqlStr);\r\n\r\n\t\t\t// No rows returned.\r\n\t\t\tif( !rs.next() ) {\r\n\t\t\t\tthrow new InvalidIDException(\"Attempted to delete a Technology Project not found in the database.\");\r\n\t\t\t}\r\n\r\n\t\t\t// Delete the result row.\r\n\t\t\trs.deleteRow();\t\t\r\n\r\n\t\t\trs.close();\r\n\t\t\trs = null;\r\n\t\t\t\r\n\t\t\tstmt.close();\r\n\t\t\tstmt = null;\r\n\t\t\t\r\n\t\t\tconn.close();\r\n\t\t\tconn = null;\r\n\t\t\t\r\n\t\t\t// re-initialize the id\r\n\t\t\tsuper.id = 0;\r\n\t\t}\r\n\t\tcatch(SQLException e) { throw e; }\r\n\t\tcatch(InvalidIDException e) { throw e; }\r\n\t\tfinally {\r\n\r\n\t\t\t// Always make sure result sets and statements are closed,\r\n\t\t\t// and the connection is returned to the pool\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry { rs.close(); } catch (SQLException e) { ; }\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry { stmt.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry { conn.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void removeStudy(int studyID) {\n\t}", "int deleteByPrimaryKey(Integer announceid);", "public static int rmScheduledEvent(String rptEventName)\n\t{\n\t\tint event_id = Integer.parseInt(CommonUtil.getRptEventFromDb(rptEventName).get(\"ID\")); \n\t\t\n\t\t//Remove associated data from table BSM_SCHEDULER_EVENT_REPORT first\n\t\tString sql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT_REPORT WHERE SCHEDULER_EVENT_ID=%d\", event_id);\n\t\tDBUtil.executeSQL(sql);\n\t\n\t\t//Remove report event from table BSM_SCHEDULER_EVENT\n\t\tsql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT WHERE EVENT_TEXT='%s'\", rptEventName);\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\t\n\t\treturn ret;\n\t}", "int deleteByPrimaryKey(Integer taskid);", "int deleteByPrimaryKey(GpPubgPlayer record);", "int deleteByPrimaryKey(Integer educationid);", "public static void deleteSubject(int i) {\n //delete lessons\n for(int x = 0; x < 5; x++) {\n for(int y = 0; y < 9; y++) {\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n if (schedule.getLesson(x, y).getSubjectIndex() >= i) {\n if (schedule.getLesson(x, y).getSubjectIndex() == i) {\n schedule.setLessonToNull(x, y);\n }\n else {\n schedule.getLesson(x, y).setSubjectIndex(schedule.getLesson(x, y).getSubjectIndex()-1);\n }\n }\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n }\n else {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": null\");\n }\n }\n }\n }\n\n //delete grades\n for(int n = i; n < Storage.grades.size(); n++) {\n for(int g = 0; g < Storage.grades.get(n).size(); g++) {\n if(n == i) {\n FileSaver.deleteGrade(Storage.grades.get(n).get(g));\n }\n else {\n FileSaver.renameGradeFolder(Storage.grades.get(n).get(g), FileSaver.GRADE_MINUS_SUBJECT_INDEX);\n }\n }\n }\n grades.remove(i);\n\n //delete homework\n for(int n = i; n < Storage.homework.size(); n++) {\n for(int h = 0; h < Storage.homework.get(n).size(); h++) {\n if(n == i) {\n FileSaver.deleteHomework(Storage.homework.get(n).get(h));\n }\n else {\n FileSaver.renameHomeworkFolder(Storage.homework.get(n).get(h), FileSaver.HOMEWORK_MINUS_SUBJECT_INDEX);\n }\n }\n }\n homework.remove(i);\n\n //delete subject\n subjects.remove(i);\n for(int n = i; n < Storage.subjects.size(); n++) {\n Storage.subjects.get(n).decreaseIndex();\n }\n }", "public StatusInfo deleteSchedule(@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic void deleteById(int id) {\n\t\tdesignMapper.deleteById(id);\n\t}", "@Override\n\tpublic int deleteByPrimaryKey(String id) {\n\t\treturn siteReservoirInfoMapper.deleteByPrimaryKey(id);\n\t}", "@Override\n\tpublic void redo() {\n\t\tfor (TAPNQuery q : queriesInclusion) {\n\t\t\tq.inclusionPlaces().removePlace(timedPlace);\n\t\t}\n\n\t\ttapn.remove(timedPlace);\n\t\tguiModel.removePetriNetObject(timedPlaceComponent);\n\t}" ]
[ "0.73142505", "0.65290725", "0.63496315", "0.6125473", "0.60543084", "0.6052143", "0.5975684", "0.57386196", "0.5734491", "0.57236445", "0.5672639", "0.56690633", "0.5608607", "0.5538778", "0.55213267", "0.5520809", "0.5512068", "0.5504373", "0.54891557", "0.5483413", "0.54487073", "0.5431051", "0.5401076", "0.5386252", "0.538396", "0.5373336", "0.53711545", "0.53708583", "0.5367709", "0.5362972", "0.5362593", "0.5338344", "0.5337434", "0.53262246", "0.5308625", "0.53068405", "0.5285373", "0.5275165", "0.52664083", "0.5236614", "0.523522", "0.5226775", "0.52247036", "0.5221411", "0.5221243", "0.52128845", "0.51899886", "0.517288", "0.517227", "0.5172054", "0.5160733", "0.51591176", "0.51557034", "0.5155569", "0.51524085", "0.51365745", "0.5124357", "0.5122668", "0.5120884", "0.51208544", "0.5114041", "0.5112468", "0.50947666", "0.50913846", "0.50894177", "0.5084261", "0.5074806", "0.50744015", "0.50710064", "0.5055795", "0.5050456", "0.50502175", "0.5049109", "0.5047942", "0.5033293", "0.5032774", "0.50259423", "0.5024275", "0.5021977", "0.5018979", "0.5011775", "0.500808", "0.50033", "0.49933034", "0.49827838", "0.49811268", "0.4977576", "0.49733526", "0.49656367", "0.49639106", "0.49527782", "0.49519458", "0.49504727", "0.49477538", "0.4942902", "0.49419412", "0.4939597", "0.49369416", "0.4934065", "0.49336088" ]
0.66608953
1
Returns the interview schedule with the primary key or returns null if it could not be found.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey( long interviewScheduleId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (interviewSchedule == _nullInterviewSchedule) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (interviewSchedule == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tinterviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (interviewSchedule != null) {\n\t\t\t\t\tcacheResult(interviewSchedule);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class, primaryKey,\n\t\t\t\t\t\t_nullInterviewSchedule);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn interviewSchedule;\n\t}", "Schedule selectByPrimaryKey(Integer id);", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "SchedulingPlay selectByPrimaryKey(Long id);", "private JNASchedule getFirstSchedule() {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new DominoException(0, \"Schedule collection has been disposed\");\n\t\t}\n\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethObj = new IntByReference();\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetFirstSchedule(hSchedulesByVal, rethObj, schedulePtrMem);\n\t\t\tif (result == INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\tif (rethObj.getValue()==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tPointer pOwner = retpSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpSchedule.wOwnerNameSize-1) & 0xffff);\n\t\t\t\n\t\t\treturn new JNASchedule(this, retpSchedule, owner, rethObj.getValue());\n\t\t});\n\t}", "WorkingSchedule getById(Long workingScheduleId);", "@Override\n public Optional<ScheduledInterview> get(long id) {\n if (data.containsKey(id)) {\n return Optional.of(data.get(id));\n }\n return Optional.empty();\n }", "@RequestMapping(\"/Scheduling/findById\")\r\n\t@ResponseBody\r\n\tpublic Optional<Scheduling> findById(long scheduleId) {\r\n\t\treturn schedulingService.findById(scheduleId);\r\n\t}", "public Schedule get(String arg0) {\n\t\treturn null;\n\t}", "public int getSchedule_id() {\r\n return schedule_id;\r\n }", "public ScheduleDisplayInfo getScheduleDisplay (@WebParam(name = \"scheduleId\") String scheduleId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "java.lang.String getSchedule();", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "protected Schedule getSchedule(String command, Calendar calendar) {\n List<Schedule> scheduleList = calendar.getSchedules();\n int index;\n\n try {\n index = Integer.parseInt(command) - 1;\n if (index < scheduleList.size() && !(index < 0)) {\n return scheduleList.get(index);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n } catch (NumberFormatException e) {\n if (command.equals(\"q\")) {\n return null;\n } else if (calendar.getSchedule(command) != null) {\n return calendar.getSchedule(command);\n } else {\n System.out.println(\"please choose a valid input\");\n return null;\n }\n }\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "public Schedule getSchedule(String route, int direction){\r\n // A schedule to hold all the data returned from the query\r\n Schedule weekdayZero = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n weekdayZero.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return weekdayZero;\r\n }", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId) throws SystemException {\n\t\treturn fetchByVacancyCandidateAndInterview(vacancyCandidateId,\n\t\t\tinterviewId, true);\n\t}", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "public Schedule getSchedule() {\n\n return schedule;\n }", "ScheduleStartType getScheduleStart();", "public JNASchedule getNextSchedule(JNASchedule schedule) {\n\t\tif (this.isDisposed()) {\n\t\t\tthrow new ObjectDisposedException(this);\n\t\t}\n\n\t\tif (schedule.isDisposed()) {\n\t\t\tthrow new ObjectDisposedException(schedule);\n\t\t}\n\t\t\n\t\tDHANDLE hSchedules = getAllocations().getSchedulesHandle();\n\t\t\n\t\tint hCurrSchedule = getScheduleHandle(schedule);\n\t\t\n\t\tif (hCurrSchedule==0) {\n\t\t\tthrow new DominoException(0, \"Handle of specified schedule is 0\");\n\t\t}\n\n\t\treturn LockUtil.lockHandle(hSchedules, (hSchedulesByVal) -> {\n\t\t\tIntByReference rethNextSchedule = new IntByReference();\n\t\n\t\t\tMemory schedulePtrMem = new Memory(Native.POINTER_SIZE);\n\t\t\tshort result = NotesCAPI.get().SchContainer_GetNextSchedule(hSchedulesByVal, hCurrSchedule, rethNextSchedule,\n\t\t\t\t\tschedulePtrMem);\n\t\t\tif (result==INotesErrorConstants.ERR_SCHOBJ_NOTEXIST) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\n\t\t\tlong peer = schedulePtrMem.getLong(0);\n\t\t\tif (peer==0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\tPointer schedulePtr = new Pointer(peer);\n\t\t\tNotesScheduleStruct retpNextSchedule = NotesScheduleStruct.newInstance(schedulePtr);\n\t\t\tretpNextSchedule.read();\n\t\t\t\n\t\t\tint scheduleSize = JNANotesConstants.scheduleSize;\n\t\t\tif (PlatformUtils.isMac() && PlatformUtils.is64Bit()) {\n\t\t\t\t//on Mac/64, this structure is 4 byte aligned, other's are not\n\t\t\t\tint remainder = scheduleSize % 4;\n\t\t\t\tif (remainder > 0) {\n\t\t\t\t\tscheduleSize = 4 * (scheduleSize / 4) + 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPointer pOwner = retpNextSchedule.getPointer().share(scheduleSize);\n\t\t\tString owner = NotesStringUtils.fromLMBCS(pOwner, (retpNextSchedule.wOwnerNameSize-1) & 0xffff);\n\t\n\t\t\treturn new JNASchedule(this, retpNextSchedule, owner, rethNextSchedule.getValue());\n\t\t});\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private Task getTask(Integer identifier) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(identifier)) {\n return nextTask;\n }\n }\n\n return null;\n }", "@RequestMapping(method = RequestMethod.GET, value=\"/findSchedule\")\n public ResponseEntity<?> findSchedule(@RequestParam(value=\"idSchedule\") int idSchedule){\n try{\n Schedule schedule = scheduleService.findSchedule(idSchedule);\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n }", "AoD5e466WorkingDay selectByPrimaryKey(Integer id);", "public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and interviewId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and interviewId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param interviewId the interview ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule where vacancyCandidateId = &#63; and status = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @param retrieveFromCache whether to use the finder cache\n\t* @return the matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes the interview schedule where vacancyCandidateId = &#63; and status = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the interview schedule that was removed\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63; and status = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param status the status\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tjava.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the first interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the last interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching interview schedule, or <code>null</code> if a matching interview schedule could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &#63;.\n\t*\n\t* @param interviewScheduleId the primary key of the current interview schedule\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Removes all the interview schedules where vacancyCandidateId = &#63; from the database.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules where vacancyCandidateId = &#63;.\n\t*\n\t* @param vacancyCandidateId the vacancy candidate ID\n\t* @return the number of matching interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the interview schedule in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedule the interview schedule\n\t*/\n\tpublic void cacheResult(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);\n\n\t/**\n\t* Caches the interview schedules in the entity cache if it is enabled.\n\t*\n\t* @param interviewSchedules the interview schedules\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);\n\n\t/**\n\t* Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.\n\t*\n\t* @param interviewScheduleId the primary key for the new interview schedule\n\t* @return the new interview schedule\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);\n\n\t/**\n\t* Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule that was removed\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule updateImpl(\n\t\tvn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or throws a {@link vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException} if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule\n\t* @throws vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;\n\n\t/**\n\t* Returns the interview schedule with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param interviewScheduleId the primary key of the interview schedule\n\t* @return the interview schedule, or <code>null</code> if a interview schedule with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the interview schedules.\n\t*\n\t* @return the interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @return the range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the interview schedules.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link vn.com.ecopharma.hrm.rc.model.impl.InterviewScheduleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of interview schedules\n\t* @param end the upper bound of the range of interview schedules (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the interview schedules from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of interview schedules.\n\t*\n\t* @return the number of interview schedules\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}", "public ScheduleType getScheduleType();", "List<WorkingSchedule> getByPlaceId(Long placeId);", "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}", "@Override\n\tpublic Appointment getAppointmentById(Integer id) {\n\t\t\t\tAppointment foundAppointment = ar.getOne(id);\n\t\t\t\tif(foundAppointment != null) {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" found\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"Appointment with id: \" + id + \" not found\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn foundAppointment;\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create(\n\t\tlong interviewScheduleId);", "@Override\n\tpublic VcmsPortion fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tVcmsPortion vcmsPortion = (VcmsPortion)serializable;\n\n\t\tif (vcmsPortion == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tvcmsPortion = (VcmsPortion)session.get(VcmsPortionImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (vcmsPortion != null) {\n\t\t\t\t\tcacheResult(vcmsPortion);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tVcmsPortionImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(VcmsPortionModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tVcmsPortionImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn vcmsPortion;\n\t}", "public String getSchedule() {\n return schedule;\n }", "long getScheduleID() {return mScheduleID; }", "public static Reservation getWhereId(int entryId) {\r\n \t\tResultSet result = ModelEntity.model.get(\"reservation\", entryId);\r\n \t\t// Examine if the result has any data\r\n \t\tif (getFirstRowInResultSet(result)) {\r\n \t\t\ttry {\r\n \t\t\t\tint id \t\t\t = result.getInt(1);\r\n \t\t\t\tCustomer customer = Customer.getWhereId(result.getInt(2));\r\n \t\t\t\tPeriod period \t = Period.getWhereId(result.getInt(3));\r\n \t\t\t\tVehicle vehicle = Vehicle.getWhereId(result.getInt(4));\r\n \t\t\t\t// Return\r\n \t\t\t\treturn new Reservation(id, customer, period, vehicle);\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\tLog.error(\"Unable to retrieve data from result: \" + e);\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tLog.info(\"Query for Reservation returned empty.\");\r\n \t\t}\r\n \r\n \t\t// If nothing is found return null.\r\n \t\treturn null;\r\n \t}", "public XPMScheduleAddressModel getXPmScheduleAddressByPK(XPMScheduleAddressPK theXPmScheduleAddressPK) throws AAException, RemoteException ;", "com.google.cloud.compute.v1.Scheduling getScheduling();", "public static ScheduleData getSchedule(final String replicaId, final Class<?> clazz)\n\t\t\tthrows IllegalAccessException, InstantiationException {\n\t\tTasklet annot = clazz.getAnnotation(Tasklet.class);\n\t\tString[] effectiveSchedDefs = null;\n\n\t\tif (annot == null)\n\t\t\treturn null;\n\t\tString[] schedDefs = annot.schedule();\n\t\tSystem.out.println(\"### Tasklet: \" + clazz.getName() + \" \" + replicaId + \" Sched: \" + Arrays.toString(schedDefs));\n\t\tfor (String schedDef : schedDefs) {\n\t\t\tif (!schedDef.equals(\"\")) {\n\t\t\t\teffectiveSchedDefs = schedDefs;\n\t\t\t\tif (schedDef.equals(\"dynamic\")) {\n\t\t\t\t\tTasklet.Interface ti = (Interface) clazz.newInstance();\n\t\t\t\t\teffectiveSchedDefs = ti.getDynamicSchedule();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (effectiveSchedDefs == null)\n\t\t\treturn null;\n\t\treturn new ScheduleDataNSF(replicaId, clazz.getName(), effectiveSchedDefs, annot.onAllServers());\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public Schedule getScheduleForSelectedStopAndRoute(String route, int direction, int stopId){\n Schedule selectedStopSchedule = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND stops._id = \" + stopId + \" \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n selectedStopSchedule.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return selectedStopSchedule;\r\n }", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Nullable\n public Task getTask(int id) {\n Task output = null;\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return null;\n\n // run the query to get the matching task\n Cursor rawTask = db.rawQuery(\"SELECT * FROM Tasks WHERE id = ? ORDER BY due_date ASC;\", new String[]{String.valueOf(id)});\n\n // move the cursor to the first result, if one exists\n if (rawTask.moveToFirst()) {\n // convert the cursor to a task and assign it to our output\n output = new Task(rawTask);\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTask.close();\n db.close();\n\n // return the (possibly null) output\n return output;\n }", "@Override\r\n\tpublic ConventionStage find(int id) {\n\t\tConventionStage obj = null;\r\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tResultSet result = request.executeQuery(\"SELECT * FROM \" + ConventionStageDAO.TABLE + \" WHERE NO_CONVENTION = \" + id);\r\n\r\n\t\t\tif(result.first()){\r\n\t\t\t\r\n\t\t\t\tobj = new ConventionStage((result.getInt(\"NO_CONTRAT\")),DAO.dateFromOracleToJava(result.getDate(\"DATE_SIGNATURE\")),(result.getInt(\"DUREE\")));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\trequest.close();\r\n\t } catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return obj;\r\n\t}", "public ISchedulingRule getSchedulingRule(IDeploymentTarget target) {\n return null;\r\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "Research findOne(Long id);", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n @Transactional(readOnly = true)\n public Optional<PerSubmit> findOne(Long id) {\n log.debug(\"Request to get PerSubmit : {}\", id);\n return perSchedulerRepository.findById(id);\n }", "public interface ScheduleService {\n\n Optional<Schedule> findScheduleByScheduleId(long scheduleId);\n\n List<Schedule> findSchedulesByCinemaIdAndMovieId(long cinemaId, long movieId);\n\n List<Schedule> findSchedulesByCinemaId(long cinemaId);\n\n}", "public Timesheet find(int id) {\n\t return em.find(Timesheet.class, id);\n\t }", "java.util.Calendar getSearchRecurrenceStart();", "private ResourceLocation findMatchingEntry(String publicId) {\n return getElements().stream()\n .filter(e -> e.getPublicId().equals(publicId)).findFirst()\n .orElse(null);\n }", "@Override\n\tpublic InterviewSchedule remove(long interviewScheduleId)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\treturn remove((Serializable)interviewScheduleId);\n\t}", "public Appointment getAppointment(int mrn) {\n\t\treturn null;\r\n\t}", "ParkCurrent selectByPrimaryKey(Integer id);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows SystemException {\n\t\tList<InterviewSchedule> list = findByVacancyCandidate(vacancyCandidateId,\n\t\t\t\t0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "com.google.ads.googleads.v6.resources.AdScheduleView getAdScheduleView();", "public static ITask findWorkOnTaskById(long taskId) {\r\n Ivy ivy = Ivy.getInstance();\r\n IPropertyFilter<TaskProperty> taskFilter =\r\n ivy.session.getWorkflowContext().createTaskPropertyFilter(TaskProperty.ID, RelationalOperator.EQUAL, taskId);\r\n IQueryResult<ITask> queryResult =\r\n ivy.session.findWorkTasks(taskFilter, null, 0, 1, true,\r\n EnumSet.of(TaskState.SUSPENDED, TaskState.RESUMED, TaskState.PARKED));\r\n List<ITask> tasks = queryResult.getResultList();\r\n if (tasks != null && tasks.size() > 0) {\r\n return tasks.get(0);\r\n }\r\n return null;\r\n }", "public static ITask findTaskById(final long taskId) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<ITask>() {\r\n public ITask call() throws Exception {\r\n ITask t = null;\r\n try {\r\n TaskQuery query = TaskQuery.create().where().taskId().isEqual(taskId);\r\n t = Ivy.wf().getGlobalContext().getTaskQueryExecutor().getResults(query).get(0);\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n }\r\n return t;\r\n }\r\n });\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "ResumePractice selectByPrimaryKey(Integer id);", "private Shift getShift(CharSequence title) {\n\t\tList<Shift> shifts = null;\n try {\n\t\t\tshifts = getHelper().getShiftDao().queryForEq(CalshareContract.Shift.COLUMN_NAME_SHIFT_TITLE, title);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n if (shifts != null && shifts.size() != 0) {\n \tLog.i(EditShiftActivity.class.getName(), \"found Shift object with title \\'\" + title + \"\\'\");\n \treturn shifts.get(0);\n }\n else {\n \treturn null;\n }\n\t}", "@Override\n\tpublic Turkey findById(Integer i) {\n\t\treturn null;\n\t}", "static WorkflowRun findRun(String externalizableId) {\n Run run = Run.fromExternalizableId(externalizableId);\n if (run == null) {\n throw new NullPointerException(\"not run found for id `\" + externalizableId + \"` this should not happen here.\");\n }\n if (!(run instanceof WorkflowRun)) {\n throw new NullPointerException(\"run with id `\" + externalizableId + \"` cannot be an instance of WorkflowRun.\");\n }\n return (WorkflowRun) run;\n }", "@Override\n public HorseRace findById(Integer id) throws PersistentException {\n if (id != null) {\n HorseRaceDao dao = factory.createDao(HorseRaceDao.class);\n HorseRace horseRace = dao.read(id);\n buildHorseRace(horseRace);\n return horseRace;\n }\n return null;\n }", "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)serializable;\n\n\t\tif (phatVay == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tphatVay = (PhatVay)session.get(PhatVayImpl.class, primaryKey);\n\n\t\t\t\tif (phatVay != null) {\n\t\t\t\t\tcacheResult(phatVay);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tentityCache.putResult(\n\t\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPhatVayImpl.class, primaryKey, nullModel);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tentityCache.removeResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn phatVay;\n\t}", "public String getScheduleRow() {\n\t\treturn uSRow;\n\t}", "public Key<Microtask> lookupMicrotaskAssignment(String workerID)\n\t{\n\t\tString microtaskKeyString = microtaskAssignments.get( workerID );\n\t\tif( microtaskKeyString == null )\n\t\t\treturn null;\n\n\t\treturn Microtask.stringToKey(microtaskKeyString);\n\t}", "public com.exacttarget.wsdl.partnerapi.HourlyRecurrence getHourlyRecurrence()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.HourlyRecurrence target = null;\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().find_element_user(HOURLYRECURRENCE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "SchoolSubject findSchoolSubjectById(Integer id) throws DaoException;", "public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }", "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public Schedule getSchedule() {\n\n Schedule sched = new Schedule();\n\n if (m_startDate.getDate() != null) {\n sched.setStartDate(m_startDate.getDate());\n } else {\n return null; // execute unscheduled (right now)\n }\n if (m_endDate.getDate() != null) {\n sched.setEndDate(m_endDate.getDate());\n }\n\n m_repeat.applyToSchedule(sched);\n\n return sched;\n }", "@Override\n\tpublic Workout getWorkout(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tWorkout theWorkout = currentSession.get(Workout.class, theId);\n\t\t\n\t\treturn theWorkout;\n\t}", "public PerformanceReview getSinglePerformanceReview(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from PerformanceReview as performanceReview where performanceReview.performanceReviewId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (PerformanceReview) results.get(0);\n }\n\n }", "public Discipline getDisciplineById(int id) {\r\n for (Discipline discipline : disciplines) {\r\n if (discipline.getId() == id) {\r\n return discipline;\r\n }\r\n }\r\n return null;\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "@Override\n\tpublic Score findById(Long id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId, OrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = fetchByVacancyCandidate_First(vacancyCandidateId,\n\t\t\t\torderByComparator);\n\n\t\tif (interviewSchedule != null) {\n\t\t\treturn interviewSchedule;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"vacancyCandidateId=\");\n\t\tmsg.append(vacancyCandidateId);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchInterviewScheduleException(msg.toString());\n\t}", "@Override\n\tpublic TvShow fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tTvShow tvShow = (TvShow)EntityCacheUtil.getResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tTvShowImpl.class, primaryKey);\n\n\t\tif (tvShow == _nullTvShow) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (tvShow == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\ttvShow = (TvShow)session.get(TvShowImpl.class, primaryKey);\n\n\t\t\t\tif (tvShow != null) {\n\t\t\t\t\tcacheResult(tvShow);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tTvShowImpl.class, primaryKey, _nullTvShow);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tTvShowImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn tvShow;\n\t}", "HomeWork selectByPrimaryKey(Long id);", "public Study findStudy(PlanTreeNode node) {\n if (node instanceof PlannedCalendar) return ((PlannedCalendar) node).getStudy();\n else return findAncestor(node, PlannedCalendar.class).getStudy();\n }", "int updateByPrimaryKey(Schedule record);", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByTeacherId(int teacherId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where teacherId=:teacherId and state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"teacherId\", teacherId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByTeacherId(int teacherId)\");\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}", "Stop getStopPerID(String id);", "public static Scrivania fetchByPrimaryKey(\n\t\tautorizzazione.dir.mef.service.persistence.ScrivaniaPK scrivaniaPK) {\n\t\treturn getPersistence().fetchByPrimaryKey(scrivaniaPK);\n\t}", "Schedule createSchedule();", "Optional<Timeline> findByName(String name);", "public Task getTask(String analysis) {\n\t\tfor (int i = 0; i < tasks.size(); i++) {\n\t\t\tif (tasks.get(i).getAnalysis().toString().equals(analysis))\n\t\t\t\treturn tasks.get(i);\n\t\t}\n\t\treturn null;\n\t}", "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 }", "public LayoutThread find(int x, int y) {\n Iterator<LayoutThread> it = map.keySet().iterator(); while (it.hasNext()) {\n LayoutThread layout_thread = it.next(); if (map.get(layout_thread).contains(x,y)) return layout_thread;\n }\n return null;\n }", "public Student find(int id) {\n\n\t\tfor (int i = 0; i < studentList.size(); i++) {\n\t\t\tif (studentList.get(i).getId() == id) {\n\t\t\t\treturn studentList.get(i);\n\n\t\t\t}\n\n\t\t}\n\t\treturn null;\n\n\t}", "int getRecurrenceTimeZoneCode();", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "Optional<MovieCinema> findById(Long id);", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows SystemException {\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof InterviewSchedule) {\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)result;\n\n\t\t\tif ((vacancyCandidateId != interviewSchedule.getVacancyCandidateId()) ||\n\t\t\t\t\t(interviewId != interviewSchedule.getInterviewId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_INTERVIEWSCHEDULE_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_VACANCYCANDIDATEID_2);\n\n\t\t\tquery.append(_FINDER_COLUMN_VACANCYCANDIDATEANDINTERVIEW_INTERVIEWID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(vacancyCandidateId);\n\n\t\t\t\tqPos.add(interviewId);\n\n\t\t\t\tList<InterviewSchedule> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"InterviewSchedulePersistenceImpl.fetchByVacancyCandidateAndInterview(long, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tInterviewSchedule interviewSchedule = list.get(0);\n\n\t\t\t\t\tresult = interviewSchedule;\n\n\t\t\t\t\tcacheResult(interviewSchedule);\n\n\t\t\t\t\tif ((interviewSchedule.getVacancyCandidateId() != vacancyCandidateId) ||\n\t\t\t\t\t\t\t(interviewSchedule.getInterviewId() != interviewId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\t\t\tfinderArgs, interviewSchedule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (InterviewSchedule)result;\n\t\t}\n\t}" ]
[ "0.6893947", "0.6748445", "0.6735467", "0.6285745", "0.6222615", "0.61782545", "0.617216", "0.60321957", "0.5991951", "0.5969679", "0.572114", "0.5703223", "0.556892", "0.547692", "0.54251385", "0.53364944", "0.5249778", "0.5228218", "0.5224761", "0.5201799", "0.51920825", "0.5191604", "0.51770335", "0.5171538", "0.5170945", "0.5170608", "0.5159407", "0.5152896", "0.51183826", "0.5117513", "0.51098996", "0.50969666", "0.507876", "0.50428516", "0.5040366", "0.50342757", "0.50320303", "0.5026196", "0.4997616", "0.49906448", "0.49750024", "0.49728072", "0.4972269", "0.49645138", "0.49636036", "0.4952487", "0.49275172", "0.49187127", "0.4915013", "0.49027207", "0.48874006", "0.48785537", "0.48749116", "0.48639286", "0.48510003", "0.4844114", "0.4829059", "0.48119345", "0.4804494", "0.48035985", "0.48017567", "0.47981462", "0.4787778", "0.47813085", "0.47809827", "0.47656325", "0.47630084", "0.47616684", "0.4761143", "0.4758565", "0.47538957", "0.47402188", "0.4739019", "0.47153732", "0.47092795", "0.47070703", "0.4707012", "0.46994963", "0.46967933", "0.46963227", "0.46945018", "0.4692033", "0.4682531", "0.46816", "0.46807885", "0.4677049", "0.46738455", "0.46732044", "0.46727645", "0.46691665", "0.46683824", "0.4663934", "0.4660595", "0.4655563", "0.46533436", "0.46512213", "0.4650832", "0.4647524", "0.46458483", "0.46451065" ]
0.6637116
3
Returns all the interview schedules.
public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@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}", "public ApiSchedule[] getSchedules() {\n return this.schedules;\n }", "List<WorkingSchedule> getAll();", "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 }", "public static List<Schedule> fetchGeneratedSchedules() {\r\n if (!isComplete()) {\r\n return null;\r\n }\r\n\r\n return generatedSchedules;\r\n }", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);", "@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}", "public Iterator<Appointment> appointments()\n {\n return this.agenda.iterator();\n }", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}", "@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}", "public ArrayList<TrainScheduleEntity> viewTrainSchedule(String dayType);", "public ArrayList<TreeSet<Task>> getWeeklySchedule(){\r\n return weeklySchedule;\r\n }", "public List<String> getWeekSchedule() {\n\t\tList<String> schedule = new ArrayList<String>();\n\t\tfor (DelegatedWork dw: this.delegatedWork) {\n\t\t\tActivity currentActivity = dw.getActivity();\n\t\t\tint totalRegHours = 0;\n\t\t\tfor (RegisteredWork rw: this.registeredWork) {\n\t\t\t\tif (rw.getActivity().equals(currentActivity)) {\n\t\t\t\t\ttotalRegHours += rw.getHalfHoursWorked();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttotalRegHours /= 2;\n\t\t\tschedule.add(currentActivity.getName() + \": \" + totalRegHours + \"/\" + dw.getHalfHoursWorked()/2);\n\t\t}\n\t\treturn schedule;\n\t}", "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 }", "@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 }", "public ArrayList<Schedule> getBuddiesSchedules() {\n\n return new ArrayList<Schedule>(buddies);\n }", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "public 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}", "public Iterator<Appointment> appointments() {\n return appointments.iterator();\n }", "@Override\n public List<SurveillantSchedule> getSurveillantSchedule() {\n return surveillantRepository.getSurveillantSchedule();\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "java.lang.String getSchedule();", "public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@DisplayValue\n\tpublic final String existingSchedules() {\n\t\tfinal List<Schedule> schedules = target.getSubResources(Schedule.class, false);\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<ul>\");\n\t\tfor (Schedule s: schedules) {\n\t\t\tsb.append(\"<li>\").append(s.getLocationResource().toString()).append(\"<br>Values: \").append(s.getValues(Long.MIN_VALUE).size()); // FIXME replace by size() method\n\t\t}\n\t\tsb.append(\"</li>\");\n\t\treturn sb.toString();\n\t}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);", "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 }", "private List<Schedule> getSchedules(String traverserName, int delay) {\n List<ScheduleTimeInterval> intervals =\n new ArrayList<ScheduleTimeInterval>();\n intervals.add(new ScheduleTimeInterval(\n new ScheduleTime(0),\n new ScheduleTime(0)));\n \n List<Schedule> schedules = new ArrayList<Schedule>();\n Schedule schedule = new Schedule(traverserName, false, 60, delay, intervals);\n schedules.add(schedule);\n return schedules;\n }", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public ArrayList<Discipline> getAll() {\r\n return this.disciplines;\r\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<int[]> getSchedule(){\n // Initialize the output list\n ArrayList<int[]> schedule = new ArrayList<>();\n\n // Initialize a list of tuples in the form (rally id, rally duration, rally deadline)\n ArrayList<int[]> rallyList = new ArrayList<>();\n for (int i = 0; i < _rallies.size(); i++) {\n int[] info = new int[] {i, _rallies.get(i)[0], _rallies.get(i)[1]};\n rallyList.add(info);\n }\n\n // Sort them in an increasing order of the deadline\n rallyList.sort(Comparator.comparingInt(rally -> rally[2]));\n\n // Set the start time\n int f = 0;\n\n // If there is no way to finish any one of the rally before its deadline, then we will set this to true.\n boolean nuke = false;\n\n // Run a greedy algorithm (Scheduling to Minimize Lateness)\n for (int[] rally : rallyList) {\n int[] plan = new int[] {rally[0], f};\n int duration = rally[1];\n int deadline = rally[2];\n f += duration;\n\n if (f > deadline) {\n nuke = true;\n break;\n }\n\n schedule.add(plan);\n }\n\n if (nuke) {\n return new ArrayList<>();\n }\n\n return schedule;\n }", "List<WorkingSchedule> getByPlaceId(Long placeId);", "public void showAllSchedules(ArrayList<Scheduler> schedulesToPrint) {\n for (int i = 0; i < schedulesToPrint.size(); i++) {\n System.out.println(\" ____ \" + (i + 1) + \":\");\n printSchedule(schedulesToPrint.get(i));\n System.out.println(\" ____ \");\n }\n }", "@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}", "public Timesheet[] getAll() {\n\t TypedQuery<Timesheet> query = em.createQuery(\"select c from Timesheet c\", Timesheet.class); \n\t java.util.List<Timesheet> categories = query.getResultList();\n\t Timesheet[] catarray = new Timesheet[categories.size()];\n\t for (int i=0; i < catarray.length; i++) {\n\t catarray[i] = categories.get(i);\n\t }\n\t return catarray;\n\t }", "@Override\n\tpublic List<Tourneys> getAllTourneys() {\n\t\tList<Tourneys>listOfTourneys = new ArrayList<>();\n\t\tString sql = \"select * from tournaments\";\n\t\t\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(results.next()) {\n\t\t\t\tTourneys tourney = mapRowToTourneys(results);\n\t\t\t\tlistOfTourneys.add(tourney);\n\t\t\t}\t\n\t\treturn listOfTourneys;\n\t}", "public Map<String, List<TimePeriodModel>> getAllTimePeriods();", "@Override\n\tpublic List getCalendars() {\n\t return null;\n\t}", "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 }", "public ArrayList<Activity> getGolfSchedule(int tripId,ActivityType activityType) throws Exception;", "public String getSchedule() {\n return schedule;\n }", "public List<TimeSheet> showAllTimeSheet(){\n log.info(\"Inside TimeSheetService#ShowAllTimeSheet() Method\");\n List<TimeSheet> allTimeSheet = timeSheetRepository.findAll();\n return allTimeSheet;\n }", "public Schedule getOptSchedule() \n\t{\n\t\tScheduledTask[] schedule = new ScheduledTask[tasks.length];\n\t\tbest = heuristicScheduling(); \n\t\trecursive(schedule, 0, new int[m]);\n\t\treturn best;\n\t}", "public ArrayList<ArrayList<Dog>> getVetSchedule() {\r\n\t\tif (root == null)\r\n\t\t\treturn new ArrayList<ArrayList<Dog>>();\r\n\t\t\t\r\n\t\treturn root.getVetSchedule();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Schedule with \" + this.courses.size() + \" courses.\";\n\t}", "public List<Timetable> getAllTimetable() throws Exception;", "public void generateSchedule(){\n\t\t\n\t}", "public List<ScheduleInfo> getSchedulesByIds(@WebParam(name = \"scheduleIds\") List<String> scheduleIds,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@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 }", "public List<ScheduleDisplayInfo> searchForScheduleDisplays(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "@PermitAll\n public void cmdShowSchedule(User teller) {\n command.sendQuietly(\"qtell {0} {1}\", teller, \"Current Schedule:\\\\n\");\n Collection<Game> games = tournamentService.findAllGames();\n for (Game game : games) {\n int boardNum = game.boardNumber;\n String whiteStatus = (game.whitePlayer.isOnline()) ? \"\" : \" ?\";\n String whitePlayer = game.whitePlayer.getHandle();\n String blackStatus = (game.blackPlayer.isOnline()) ? \"\" : \" ?\";\n String blackPlayer = game.blackPlayer.getHandle();\n String gameStatus = game.getStatusString();\n String msg = String.format(\"Board %2d: %18s%2s %18s%2s %s\", boardNum, whitePlayer, whiteStatus, blackPlayer, blackStatus, gameStatus);\n command.sendQuietly(\"qtell {0} {1}\", teller, msg);\n }\n command.sendQuietly(\"qtell {0}\", teller);\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "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}", "public List<ScheduleResource> neededSpecificResources();", "public IPage<SchedulerLog> findScheduleInfos(QueryPage queryPage) {\n\t\tqueryPage.setSort(\"prevStartTime\", \"desc\");\n\t\treturn super.findPageBy(queryPage);\n\t}", "@Override\r\n\tpublic List<Tour> getAllTours() {\n\t\treturn null;\r\n\t}", "public Schedule() {\r\n\t\tschedule = new boolean[WEEK_DAYS][];\r\n\t\tfor(int i = 0; i < WEEK_DAYS; i++)\r\n\t\t\tschedule[i] = new boolean[SEGMENTS_PER_DAY];\r\n\t\tlisteners = new ArrayList<ScheduleChangeListener>();\r\n\t}", "List<Schedule> selectByExample(ScheduleCriteria example);", "@SuppressWarnings(\"unchecked\")\n public Collection<ControlSchedule> findByFireTime(boolean asc) {\n return null;\t\n }", "@Override\n\tpublic List<Meeting> getAllMettingList() {\n\t\treturn (List<Meeting>) meetingRepository.findAll();\n\t}", "public void showAppointments()\n {\n System.out.println(\"=== Day \" + dayNumber + \" ===\");\n int time = START_OF_DAY;\n for(Appointment appointment : appointments) {\n System.out.print(time + \": \");\n if(appointment != null) {\n System.out.println(appointment.getDescription());\n }\n else {\n System.out.println();\n }\n time++;\n }\n }", "public List<String> getScheduledDates() {\n if (_schedDates == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(_schedDates);\n }", "Schedule createSchedule();", "protected Object[][] getScheduleData() {\r\n\t\tScheduleItem[] arrScheduleItems = scheduleWindow.getSubmitSchedule().getScheduleItems();\r\n\t\tObject[][] arr = new Object[arrScheduleItems.length][];\r\n\t\tfor (int i = 0; i < arrScheduleItems.length; i++) {\r\n\t\t\tarr[i] = new Object[] { arrScheduleItems[i].toString(true) };\r\n\t\t\t// \r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(long interviewScheduleId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)interviewScheduleId);\n\t}", "public Collection<TimePeriod> getTimeSlots() {\n\t\treturn null;\n\t}", "public List<ScheduleDisplayInfo> getScheduleDisplaysByIds(@WebParam(name = \"scheduleIds\") List<String> scheduleIds,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws DoesNotExistException,\n InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "private void getActivatedWeekdays() {\n }", "protected void listActivities(Schedule schedule) {\n List<Activity> activities = schedule.getActivities();\n List<String> list = new ArrayList<>();\n\n for (Activity activity : activities) {\n list.add(activity.getName());\n }\n listItem(list);\n }", "ScheduledEvents getScheduledEvents();", "@Override\n public Iterator<ScheduledTask> iterator() {\n return new Iterator<ScheduledTask>() {\n private PartialSolution current = PartialSolution.this;\n\n @Override\n public boolean hasNext() {\n return current.getScheduledTask() != null;\n }\n\n @Override\n public ScheduledTask next() {\n ScheduledTask thisTask = current.getScheduledTask();\n if (current.getParent() != null) {\n current = current.getParent();\n }\n return thisTask;\n }\n };\n }", "public SpaceSchedule getSchedule() {\n\t\treturn null;\n\t}", "protected static String listSchedule(ArrayList<Room> roomList) {\n String roomName = getRoomName();\n System.out.println(roomName + \" Schedule\");\n System.out.println(\"------------\");\n\n for (Meeting m : getRoomFromName(roomList, roomName).getMeetings()) {\n System.out.println(m.toString());\n }\n\n return \"\";\n }", "@Override\n\tpublic List<ShowTime> getShowTimes() {\n\t\treturn moviesListed;\n\t}", "@Test\n\tpublic void testCreateAndGetSchedules() throws Exception {\n\t\tString[] multipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 1, 0);\n\n\t\t// Test multiple applications each having multiple specific date schedules, no recurring schedule\n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 5, 0);\n\n\t\t// Test multiple applications each having single recurring schedule, no specific date schedules\n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 0, 1);\n\n\t\t// Test multiple applications each having multiple recurring schedule, no specific date schedules\n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 0, 5);\n\n\t\t// Test multiple applications each having multiple specific date and multiple recurring schedule \n\t\tmultipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertCreateAndGetSchedules(multipleAppIds, 5, 5);\n\t}", "@GetMapping(\"/sys-appointments\")\n @Timed\n public List<SysAppointment> getAllSysAppointments() {\n log.debug(\"REST request to get all SysAppointments\");\n return sysAppointmentService.findAll();\n }", "List<Tour> getTourSchedule(String line);", "List<Appointment> getCurrentlyAppointment();", "public Schedule() {\n\t\tcourses = new ArrayList<Course>();\n\t}", "public java.util.List<referential.store.v2.TimeRange> getSundayTimeRanges() {\n return sundayTimeRanges;\n }", "public ArrayList<Task> getTasks() {\n // List of workouts to return\n ArrayList<Task> tasks = new ArrayList<>();\n\n // Cursor is what moves throughout the entire database\n Cursor cursor = database.query(SQLiteHelper.TABLE_TASKS,\n allColumns, null, null, null, null,\n SQLiteHelper.COLUMN_ID + \" ASC\");\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Task task = cursorToTask(cursor);\n\n tasks.add(task);\n\n cursor.moveToNext();\n }\n cursor.close();\n\n return tasks;\n }", "public List<String> investigateWeekSchedule(String problemType) {\n\t\treturn _weekSchedule.getProblems(problemType);\n\t}", "private void loadSavedSchedules() {\n scheduleList = new ScheduleList(new ArrayList<>());\n try {\n scheduleList = reader.readSchedules();\n } catch (IOException e) {\n System.err.println(\"Schedule File Missing\");\n } catch (JSONException je) {\n System.err.println(\"Empty File - Schedule\");\n System.out.println(je);\n }\n }", "public static String[] getSchedule(final Object obj) {\n\t\tTasklet annot = obj.getClass().getAnnotation(Tasklet.class);\n\t\tString[] effectiveSchedDefs = null;\n\n\t\tif (annot != null) {\n\t\t\tString[] schedDefs = annot.schedule();\n\n\t\t\tfor (String schedDef : schedDefs) {\n\t\t\t\tif (!schedDef.equals(\"\")) {\n\t\t\t\t\teffectiveSchedDefs = schedDefs;\n\t\t\t\t\tif (schedDef.equals(\"dynamic\")) {\n\t\t\t\t\t\tTasklet.Interface ti = (Interface) obj;\n\t\t\t\t\t\teffectiveSchedDefs = ti.getDynamicSchedule();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn effectiveSchedDefs;\n\t}", "public List<? extends JobEntry> getScheduledJobs()\n {\n return schedulerService.listJobs();\n }", "public ScheduleExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "public java.util.List<referential.store.v2.TimeRange> getSundayTimeRanges() {\n return sundayTimeRanges;\n }", "public final List<Meeting> listAllMeeting() {\n\t\tList<Meeting> results;\n\t\tfinal TypedQuery<Meeting> query;\n\t\tquery = em.createQuery(\"SELECT e FROM Meeting e \"\n\t\t\t\t+ \"ORDER BY e.startDate DESC \", Meeting.class);\n\t\tresults = query.getResultList();\n\t\treturn results;\n\t}", "@RequestMapping(path = \"/\", method = RequestMethod.GET)\n\tList<Appointment> findAll() {\n\t\treturn appointmentService.findAll();\n\t}", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByTeacherId(int teacherId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where teacherId=:teacherId and state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"teacherId\", teacherId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByTeacherId(int teacherId)\");\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}", "public List<String> searchForScheduleIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public ProgramScheduled getProgramScheduleById(int scheduleId);", "public List<Activity> getActivities() {\n getRoutesFromDao();\n updateOverridenRoutes();\n List<Activity> activities = new ArrayList<>();\n for(Route route: routes){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n for(Route route: overrideTeamRoutes.values()){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n Collections.sort(activities, (a,b) -> {\n return ActivityUtils.stringToTime(a.getDetail(Activity.DATE))\n .compareTo(ActivityUtils.stringToTime(b.getDetail(Activity.DATE)));\n });\n return activities;\n }", "List<SportActivity> findAll();", "public List<Tour> findAllTours(){\n\t\treturn tourRepository.findAll();\n\t}", "@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}" ]
[ "0.7558978", "0.7035799", "0.70232934", "0.6950603", "0.6896758", "0.6354308", "0.6333895", "0.63258845", "0.62889594", "0.6281464", "0.6277163", "0.62764627", "0.62501425", "0.6226148", "0.6203887", "0.6192226", "0.6109774", "0.6092263", "0.60173595", "0.59902585", "0.59820205", "0.59652627", "0.58924544", "0.58893603", "0.5884849", "0.58812976", "0.57967806", "0.5786182", "0.5779929", "0.5768453", "0.57476807", "0.5727346", "0.5726493", "0.5713621", "0.57099694", "0.5694867", "0.5660888", "0.5646124", "0.56303155", "0.56223726", "0.56079453", "0.56003755", "0.55889535", "0.5579793", "0.55787426", "0.55727077", "0.55706364", "0.5519668", "0.5504952", "0.5500611", "0.548774", "0.5486159", "0.54721457", "0.54689085", "0.5463528", "0.5456756", "0.54523164", "0.54459625", "0.54275393", "0.54152644", "0.5410383", "0.53804445", "0.5344998", "0.5335941", "0.5335672", "0.5327587", "0.532312", "0.53160363", "0.531414", "0.5312421", "0.53116983", "0.530232", "0.53021955", "0.5287781", "0.5281391", "0.52754056", "0.52683705", "0.52661514", "0.5260317", "0.52531356", "0.5248368", "0.52372015", "0.52307624", "0.52233875", "0.5220276", "0.5219165", "0.52157", "0.5212089", "0.52075464", "0.51939446", "0.5187588", "0.5185081", "0.51704305", "0.51703084", "0.5166242", "0.5166019", "0.51512873", "0.51490307", "0.514569", "0.5143189" ]
0.82493734
0
Removes all the interview schedules from the database.
public void removeAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public void clear() {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++) {\r\n\t\t\t\tschedule[i][j] = false;\r\n\t\t\t\tnotifyListeners(i, j);\r\n\t\t\t}\r\n\t}", "public synchronized void resetSchedules() {\n schedules = null;\n }", "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }", "public void clearAppointments(){\n appointments.clear();\n }", "void unsetSchedule();", "@Override\n\tpublic void deleteAll() {\n\t\tmDB.execSQL(\"DROP TABLE EVENT\");\n\t}", "public void removeEvents() throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase(); \n\t\ttry {\n\t\t\tdb.delete(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, null);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "private void clearRecords() {\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(HabitEntry.COLUMN_SUNDAY, 0);\n values.put(HabitEntry.COLUMN_MONDAY, 0);\n values.put(HabitEntry.COLUMN_TUESDAY, 0);\n values.put(HabitEntry.COLUMN_WEDNESDAY, 0);\n values.put(HabitEntry.COLUMN_THURSDAY, 0);\n values.put(HabitEntry.COLUMN_FRIDAY, 0);\n values.put(HabitEntry.COLUMN_SATURDAY, 0);\n\n db.update(HabitEntry.TABLE_NAME, values, null, null);\n\n loaderManager.restartLoader(HABITS_LOADER_ID, null, this);\n }", "public static void deleteSubject(int i) {\n //delete lessons\n for(int x = 0; x < 5; x++) {\n for(int y = 0; y < 9; y++) {\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n if (schedule.getLesson(x, y).getSubjectIndex() >= i) {\n if (schedule.getLesson(x, y).getSubjectIndex() == i) {\n schedule.setLessonToNull(x, y);\n }\n else {\n schedule.getLesson(x, y).setSubjectIndex(schedule.getLesson(x, y).getSubjectIndex()-1);\n }\n }\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n }\n else {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": null\");\n }\n }\n }\n }\n\n //delete grades\n for(int n = i; n < Storage.grades.size(); n++) {\n for(int g = 0; g < Storage.grades.get(n).size(); g++) {\n if(n == i) {\n FileSaver.deleteGrade(Storage.grades.get(n).get(g));\n }\n else {\n FileSaver.renameGradeFolder(Storage.grades.get(n).get(g), FileSaver.GRADE_MINUS_SUBJECT_INDEX);\n }\n }\n }\n grades.remove(i);\n\n //delete homework\n for(int n = i; n < Storage.homework.size(); n++) {\n for(int h = 0; h < Storage.homework.get(n).size(); h++) {\n if(n == i) {\n FileSaver.deleteHomework(Storage.homework.get(n).get(h));\n }\n else {\n FileSaver.renameHomeworkFolder(Storage.homework.get(n).get(h), FileSaver.HOMEWORK_MINUS_SUBJECT_INDEX);\n }\n }\n }\n homework.remove(i);\n\n //delete subject\n subjects.remove(i);\n for(int n = i; n < Storage.subjects.size(); n++) {\n Storage.subjects.get(n).decreaseIndex();\n }\n }", "@Override\n\tpublic void clearDBRisposte() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}", "public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "private void reset(){\r\n\t\tScheduleDao dao = new ScheduleDaoImpl();\r\n\t\tfinal List<Schedule> result = dao.queryAll();\r\n\t\tif (result != null && result.size() > 0) {\r\n\t\t\tfor (Schedule schedule : result) {\r\n\t\t\t\tif(schedule.getStatus() == Schedule.STATUS_PENDING||schedule.getStatus()==Schedule.STATUS_INPROGRESS){\r\n\t\t\t\t\treset(schedule);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "private void cleanSweep(){\n // Corrects the reminder dates for those reminders which will be repeating.\n refreshAllRepeatReminderDates();\n\n // Starts removing expired reminders.\n Calendar timeRightNow = Calendar.getInstance();\n boolean cleanList;\n for (int outerCounter=0; outerCounter<reminderItems.size();outerCounter++) {\n cleanList=true;\n for (int counter = 0; counter < reminderItems.size(); counter++) {\n int year = reminderItems.get(counter).getReminderYear();\n int month = reminderItems.get(counter).getReminderMonth();\n int day = reminderItems.get(counter).getReminderDay();\n int hour = reminderItems.get(counter).getReminderHour();\n int minute = reminderItems.get(counter).getReminderMinute();\n int second = 0;\n\n Calendar timeOfDeletion = Calendar.getInstance();\n timeOfDeletion.set(year, month, day, hour, minute, second);\n\n if (timeOfDeletion.before(timeRightNow)) {\n deleteReminderItem(counter);\n cleanList=false;\n break;\n }\n }\n if(cleanList){\n break;\n }\n }\n\n // Refreshes the reminder date descriptions (correcting \"Today\" and \"Tomorrow\" depending on the date).\n refreshAllDateDescriptions();\n }", "@Test\n\tpublic void testDeleteSchedules() throws Exception {\n\t\tString[] multipleAppIds = TestDataSetupHelper.generateAppIds(5);\n\t\tassertDeleteSchedules(multipleAppIds, 5, 0);\n\n\t\t// Test multiple applications each having multiple recurring schedule, no specific date schedules\n\t\tassertDeleteSchedules(multipleAppIds, 0, 5);\n\n\t\t// Test multiple applications each having multiple specific date and multiple recurring schedule \n\t\tassertDeleteSchedules(multipleAppIds, 5, 5);\n\n\t}", "public void unAssignFromAllGames() {\n for (Game game : getGames()) {\n game.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllGames(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "public void clearFinishedTasks(){\n todayLayout.removeAllViewsInLayout();\n tomorrowLayout.removeAllViewsInLayout();\n weekLayout.removeAllViewsInLayout();\n laterLayout.removeAllViewsInLayout();\n expiredLayout.removeAllViewsInLayout();\n tasksNumber = 0;\n taskManager.updateTasksTimeTag();\n for (Task t : taskManager.getTasksList()){\n t.setIdInView(tasksNumber);\n updateTaskInDatabase(t);\n submit(t.getName(), tasksNumber, t.getTimeForTask(), t.isFinished());\n tasksNumber++;\n }\n }", "public void clearRealmCollection() {\n if (mRvHistoryAdapter.getData() != null) {\n mRealm.beginTransaction();\n for (TranslationInfo translationInfo : mRvHistoryAdapter.getData()) {\n translationInfo.getTranslation().deleteFromRealm();\n translationInfo.getDictionary().getDefinitionsList().deleteAllFromRealm();\n translationInfo.getDictionary().deleteFromRealm();\n }\n mRvHistoryAdapter.getData().deleteAllFromRealm();\n mRealm.commitTransaction();\n }\n }", "private void refreshScheduleTable() {\n\t\tint gameIdx = 0;\n\t\tList<GameDetails> games = getGames();\n\t\tif (games != null) {\n\t\t\tfor (GameDetails game : games) {\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tboolean isHome = (i == 0);\n\n\t\t\t\t\tTeamDetails team = (isHome ? game.getHomeTeam() : game.getAwayTeam()); \n\n\t\t\t\t\tboolean isSelected = false;\n\t\t\t\t\tboolean canSelect = true;\n\t\t\t\t\tif (getUiHandlers() != null) {\n\t\t\t\t\t\tisSelected = getUiHandlers().isTeamSelected(team);\n\t\t\t\t\t\tcanSelect = getUiHandlers().canSelectTeam(team);\n\t\t\t\t\t}\n\n\t\t\t\t\tString text = (isHome ? \"@ \" + team.getDisplayName() : team.getDisplayName());\n\n\t\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\t\tsetScheduleCell(row, col, text, isSelected, canSelect);\t\n\t\t\t\t}\n\n\t\t\t\tgameIdx++;\n\t\t\t}\n\t\t}\n\n\t\t// Clear out any remaining cells (in case of bye weeks).\n\t\tfor (; gameIdx < NFLConstants.MAX_GAMES_PER_WEEK; gameIdx++) {\n\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\tboolean isHome = (i == 0);\n\t\t\t\t\n\t\t\t\tint row = rowFromGameIdx(gameIdx, isHome);\n\t\t\t\tint col = colFromGameIdx(gameIdx, isHome);\n\n\t\t\t\tsetScheduleCell(row, col, \"\", false, true);\n\t\t\t}\n\t\t}\n\t}", "public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }", "public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}", "public void removeAll() {\n db.delete(TABLE_NAME, null, null);\n Log.d(\"deleteHistoryCS\", \"Remove All HistoryCS\");\n }", "public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);", "private void clearAllDatabases()\n\t{\n\t\tdb.clear();\n\t\tstudent_db.clear();\n\t}", "public void unAssignFromAllSeasons() {\n for (Season season : getSeasons()) {\n season.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllSeasons(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "void deleteAllChallenges();", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "@Query(\"DELETE FROM train_stations\")\n\tvoid deleteAll();", "public void deleteSchedule(int idx) throws Exception {\n\t\t// delete schedule information from DB. \n\t\tConnection conn = null;\n Statement stmt = null;\n \n try {\n conn = DefaultConnectionFactory.create().getConnection();\n stmt = conn.createStatement();\n \n StringBuilder sql = new StringBuilder();\n sql.append(\" DELETE FROM SCHEDULE_TABLE WHERE SCHE_IDX=\").append(idx);\n \n stmt.executeUpdate(sql.toString());\n\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) { }\n }\n if (conn != null) {\n try {\n conn.close();\n } catch (Exception e) { }\n }\n }\n\t}", "public void deleteAll() {\n tasks = new ArrayList<>();\n }", "public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}", "private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public void removeAllTime() {\r\n\t\tBase.removeAll(this.model, this.getResource(), TIME);\r\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (ScienceAppExecute scienceAppExecute : findAll()) {\n\t\t\tremove(scienceAppExecute);\n\t\t}\n\t}", "private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }", "public void removeAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_GAS_SENSOR, null, null);\n // db.delete(DatabaseHelper.TAB_USERS_GROUP, null, null);\n }", "public static void deleteAll() throws RocksDBException {\n RocksIterator iter = db.newIterator();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n db.delete(iter.key());\n }\n\n iter.close();\n }", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "public void clearDatabase();", "public void deleteAllRepeaters() {\n new DeleteAllRepeatersAsyncTask(repeaterDao).execute();\n }", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "public void removeOldRecords();", "protected void deletePlannedCalendar(PlannedCalendar calendar) {\n deleteEpochs(calendar.getEpochs());\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "@Override\n\tpublic void redo() {\n\t\tfor (TAPNQuery q : queriesInclusion) {\n\t\t\tq.inclusionPlaces().removePlace(timedPlace);\n\t\t}\n\n\t\ttapn.remove(timedPlace);\n\t\tguiModel.removePetriNetObject(timedPlaceComponent);\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Answer answer : findAll()) {\n\t\t\tremove(answer);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "void cleanUpEventsAndPlaces();", "public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (TvShow tvShow : findAll()) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}", "@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}", "public void clear() {\n this.dates = new HashSet<>();\n }", "public static void clearHomework() {\n for(int i = 0; i < homework.size(); i++) {\n homework.get(i).clear();\n }\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}", "public void removeTasks() {\n\t\t\r\n\t}", "public void clearTables() {\r\n // your code here\r\n\t\ttry {\r\n\t\t\tdeleteReservationStatement.executeUpdate();\r\n\t\t\tdeleteBookingStatement.executeUpdate();\r\n\t\t\tdeleteUserStatement.executeUpdate();\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public void DeleteAllRecordsInTable() {\n\n final List<Address> gndPlan = GetAllRecordsFromTable();\n for (int i = 0; i < gndPlan.size(); i++) {\n\n gndPlan.get(i).delete();\n //delete all item in table House\n }\n\n }", "@Override\n public void purgeFlows() {\n setOfFlowsToAdd.clear();\n setOfFlowsToDelete.clear();\n }", "public void clearCollections() {\n sevenStates = new int[7][16];\n moveGeneratedFrom.clear();\n movesWithFreeTurn.clear();\n movesWhichPreventSteals.clear();\n opponentChoicesToSteal.clear();\n opponentBoardsBeforeSteal.clear();\n }", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "@Override\n\tpublic void deleteAllStudents() {\n\t\t\n\t}", "@Override\n public void removeFromDb() {\n }", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "public void clearLifeloggingTables() throws SQLException, ClassNotFoundException {\n\t\tString sqlCommand1 = \"DELETE TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DELETE TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.close();\n\t}", "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (interviewSchedule == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchInterviewScheduleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(interviewSchedule);\n\t\t}\n\t\tcatch (NoSuchInterviewScheduleException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "@Override\n public void deleteAllConnectathonParticipantsForSession() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteAllConnectathonParticipantsForSession\");\n }\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n ConnectathonParticipant cpToDelete = entityManager.find(ConnectathonParticipant.class, cp.getId());\n try {\n\n entityManager.remove(cpToDelete);\n entityManager.flush();\n\n } catch (Exception e) {\n\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n }\n }\n FinancialCalc.updateInvoiceIfPossible(choosenInstitutionForAdmin, TestingSession.getSelectedTestingSession(),\n entityManager);\n }", "public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove(\n\t\tlong interviewScheduleId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;", "@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}", "void unsetAppointmentsToIgnore();", "public void deleteHistory() {\n weatherRepo.deleteAll();\n }", "public void removeAll() throws SystemException {\n\t\tfor (VCal vCal : findAll()) {\n\t\t\tremove(vCal);\n\t\t}\n\t}", "public void removeScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j].isScenery())\n\t\t\t\t\tgrid[i][j]=null;\n\t\t\t}\n\t\t}\n\t}", "public void removeFromReminders(Date reminders);", "@Query(\"DELETE FROM issue_table\")\n void deleteAll();", "@Override\n\tpublic void removeAll() {\n\t\tfor (VcmsPortion vcmsPortion : findAll()) {\n\t\t\tremove(vcmsPortion);\n\t\t}\n\t}", "private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);" ]
[ "0.7716571", "0.6243162", "0.6125788", "0.6028666", "0.5890876", "0.58008397", "0.57791233", "0.5764059", "0.5735248", "0.571268", "0.5692714", "0.56923676", "0.56738627", "0.56338143", "0.5630871", "0.5597316", "0.5519209", "0.5513444", "0.54949665", "0.54911804", "0.54846454", "0.54707444", "0.5457779", "0.543591", "0.5432856", "0.54183275", "0.5399844", "0.5372653", "0.5371085", "0.5362529", "0.5359071", "0.53486663", "0.5343413", "0.5336995", "0.5318501", "0.53180563", "0.53158253", "0.53158253", "0.53158253", "0.53158253", "0.53158253", "0.53158253", "0.53158253", "0.53158253", "0.53158253", "0.53158253", "0.53146845", "0.5305381", "0.5303353", "0.5302452", "0.5298286", "0.52711505", "0.5263981", "0.5261562", "0.52530336", "0.52455574", "0.5244338", "0.5239433", "0.52374095", "0.5236633", "0.5221913", "0.52044183", "0.52014613", "0.5194157", "0.51894224", "0.51886666", "0.51819974", "0.5180465", "0.51732755", "0.5163759", "0.5159523", "0.5158885", "0.5156431", "0.51513094", "0.5150028", "0.5143882", "0.5140667", "0.5137642", "0.5137215", "0.51340556", "0.51340556", "0.51340556", "0.51340556", "0.5131068", "0.5131068", "0.5131068", "0.5130913", "0.512664", "0.5126187", "0.5124807", "0.5123947", "0.5123129", "0.51094836", "0.5097729", "0.5093735", "0.5092465", "0.5091632", "0.5081106", "0.5072986", "0.50691706", "0.50642943" ]
0.0
-1
Returns the number of interview schedules.
public int countAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumTimes();", "int getResumesCount();", "int getTransitFlightsCount();", "int countByExample(ScheduleCriteria example);", "public int getNumberOfPastes() \n {\n return DEFAULT_PASTES; \n }", "int getSeasonShareCount();", "int getQuestCount();", "public int getActiveRunwaysCount();", "protected int getTotalEnrolledMorning() {\n return getMorningRoster().size();\n }", "int getSlotsCount();", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "int getInterestsCount();", "public int numberOfOccorrence();", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "long countWorkflows();", "public String getScheduleDaysCount(String prefName){\n return sharedPreferences.getString(prefName, \"7\");\n }", "int getScoresCount();", "public int getRuns();", "int getRepeatCount();", "public int numberOfTeams() {\n return noTeams;\n }", "int getNumberOfAllQuestions();", "int getTaskDetailsCount();", "int getSheetCount();", "public int getHowManyInPeriod();", "int getNumberOfQuestions();", "int getNewlyAvailableQuestsCount();", "public Integer getNumCompetitions() {\r\n return numCompetitions;\r\n }", "public int getNumSeats() {\r\n\t\treturn numSeats;\r\n\t}", "public int getCalendarCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getCalendarCount() CalendarCount: \" + _calendarCount);\r\n\t\treturn _calendarCount;\r\n\t}", "int getStagesCount();", "public abstract void countLaunchingActivities(int num);", "int getAoisCount();", "public int getRunCount() {\n return runCount;\n }", "public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "int getUserQuestJobsCount();", "int getNumberOfStonesOnBoard();", "int getWifisCount();", "public static int getNos() {\n\t\treturn numberOfStudents;\n\t}", "public int getNumSeats() {\n return numSeats;\n }", "int getTaskIdCount();", "Integer getNumQuestions();", "public int getTotalStudentsInInstitute() {\n\t\tint noOfStudents = 0;\n\t\tList<Student> students;\n\t\tfor (Department dept : departments) {\n\t\t\tstudents = dept.getStudents();\n\t\t\tfor (Student s : students) {\n\t\t\t\tnoOfStudents++;\n\t\t\t}\n\t\t}\n\t\treturn noOfStudents;\n\t}", "private int jobLength(){\n LocalDate completedLocalDate = LocalDate.of(this.dateCompleted.getYear(), \n this.dateCompleted.getMonth(), this.dateCompleted.getDay());\n \n LocalDate startedLocalDate = LocalDate.of(this.dateStarted.getYear(), \n this.dateStarted.getMonth(), this.dateStarted.getDay());\n \n return startedLocalDate.until(completedLocalDate).getDays();\n }", "@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_INTERVIEWSCHEDULE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public static int numberOfEvents() {\n List<Events> listOfEvents = retrieveEvents();\n if (listOfEvents != null) {\n return listOfEvents.size();\n } else {\n return 0;\n }\n }", "public int getAnnounceCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ANNOUNCEMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}", "int getExperiencesCount();", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "int getRulesCount();", "int getEntryCount();", "public int getNumberOfNurse() {\n return numberOfNurse;\n }", "public static int getNrReservas() {\r\n\t\tint reservas = 0;\r\n\t\tString sql=\"select count(*) as reservas from reserva;\";\r\n\r\n\t\ttry {\r\n\t\t\tConnection conn=singleton.getConnector().getConnection();\r\n\t\t\tPreparedStatement stat=conn.prepareStatement(sql);\r\n\t\t\tResultSet utils=stat.executeQuery();\r\n\t\t\twhile(utils.next()) {\r\n\t\t\t\treservas = utils.getInt(\"reservas\");\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn reservas;\r\n\t}", "public int getNumberOfSpaceActivities(Identity spaceIdentity);", "public int getNoOfTickets() {\n\t\treturn noOfTickets;\r\n\t}", "public int getNumTrials() \n {\n return cumulativeTrials; \n }", "int getViewsCount();", "int getWayCount();", "int getNumberOfInfantry();", "int getExperimentsCount();", "int getParticipantsCount();", "int getParticipantsCount();", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "int getStudentCount();", "public int getRuns() {\n return runs;\n }", "int getNumberOfServeyQuestions(Survey survey);", "public int getNumberOfSlides();", "public int getTimeEntryCount()\n throws RedmineException\n {\n return getTimeEntryCount(null);\n }", "public int getNumTasks() {\n return tasks.size();\n }", "int getQualifiedActivityCount(long studentId, Date start, Date end);", "public int getSpineInstanceCount() {\n if (spineInstanceList == null) {\n return 0;\n }\n return spineInstanceList.size();\n }", "public int getTodayCount(){\n\t\tint count = 0;\n\t\tfor ( Task task : m_Tasks ){\n\t\t\tif( task.folder.equals(\"Today\") && !task.done) count++;\n\t\t}\n\t\treturn count;\n\t}", "public int getNumberOfSoldiersPlayed() {\n\t\t\treturn developmentCardHand.getNumberOfSoldiersPlayed();\n\t\t}", "int getMetricCostsCount();", "public int getNumOfCourses() {\n return numOfCourses;\n }", "int getNumberOfResults();", "@Override\n\tpublic int countTeam() {\n\t\treturn 0;\n\t}", "public int getNumDayWorkWeek(){\r\n return numDayWorkWeek;\r\n }", "int numSeatsAvailable();", "public int getNumAssists () {\r\n\t\treturn numAssists;\r\n\t}", "public static int numberOfStops() {\n return getAllStops().size();\n }", "@Override\r\n\tpublic int list_count(SearchCriteria scri) throws Exception {\n\t\treturn sql.selectOne(\"cms_board.list_count\", scri);\r\n\t}", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public int getPlayedTimes() {\n return playedTimes;\n }", "public int numSubmissions() {\n int counter = 0;\n\n for (int i = 0; i < studentList.size(); i++) {\n // number of submits for each student in student list is accumulated\n counter += (studentList.get(i)).getNumberSubmits();\n }\n\n return counter;\n }", "public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}", "public int getNumberStopOvers(){\n int out = -1;\n for (int i=0; i<flights.size(); i++){\n if(flights.get(i).getStopOverCode()!=null){\n out++;\n }\n out++;\n }\n return out;\n }", "public Integer numberOfSeats() {\n\t\treturn this.numberOfSeats;\n\t}", "public static Integer getNumberOfships() {\n\t\treturn NUMBEROFSHIPS;\n\t}", "int getNoOfParties();", "public int pageCount()\n {\n return (int)Math.ceil((double)getTaskVector().size() /\n (double)getRecordsPerPage());\n }", "public int getOccurrences() {\n\t\treturn this.occurrenceFactors.size();\n\t}", "public int getProblemCount();", "public int getNumStudents()\n\t{\n\t\treturn numStudents;\n\t}", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public static int getNumberOfStudents() {\n\t\treturn numberOfStudents;\n\t}", "List<PlayedQuestion> getPlayedQuestionsCount();", "public String getNum_of_sat_test_takers() {\n return num_of_sat_test_takers;\n }", "public int getResumesCount() {\n if (resumesBuilder_ == null) {\n return resumes_.size();\n } else {\n return resumesBuilder_.getCount();\n }\n }", "public int getNumberOfSoldiersPlayed() {\n\t\tint numberPlayed = 0;\n\t\t// Iterate through all the player owned soldier cards to check, which of these have been played\n\t\tfor(DevelopmentCard card: soldierCards) {\n\t\t\tif(card.hasBeenPlayed()) {\n\t\t\t\tnumberPlayed++;\n\t\t\t}\n\t\t}\n\t\treturn numberPlayed;\n\t}" ]
[ "0.6309429", "0.62978846", "0.61678153", "0.6137679", "0.6125422", "0.61199415", "0.6118349", "0.60755324", "0.6032555", "0.5987565", "0.59783465", "0.59625566", "0.5962381", "0.59562373", "0.59562373", "0.59562373", "0.5952348", "0.5940124", "0.59282684", "0.5925677", "0.5913767", "0.5899715", "0.5894654", "0.5891648", "0.5889017", "0.5885817", "0.58850175", "0.58765376", "0.5866394", "0.5859056", "0.58272123", "0.581649", "0.5814977", "0.5807078", "0.58021706", "0.5801601", "0.5796733", "0.57963026", "0.578568", "0.57817775", "0.5768382", "0.57478637", "0.57393515", "0.57350355", "0.57280177", "0.5722739", "0.57221675", "0.57191855", "0.5707295", "0.5704325", "0.5694328", "0.5684392", "0.5680101", "0.56796664", "0.56758535", "0.56609035", "0.5655305", "0.56468904", "0.564687", "0.5638244", "0.56300825", "0.56300753", "0.56300753", "0.5623179", "0.5617328", "0.56169856", "0.56153363", "0.56152725", "0.5607369", "0.56032205", "0.56008345", "0.5599606", "0.55977726", "0.55950993", "0.5591986", "0.55894965", "0.5588704", "0.5583521", "0.5576355", "0.5575576", "0.5568698", "0.55621", "0.5558958", "0.5558827", "0.5556789", "0.555623", "0.5556165", "0.5555565", "0.55469614", "0.554695", "0.55458176", "0.55422413", "0.55403775", "0.5538572", "0.55365247", "0.55353725", "0.5529399", "0.5529134", "0.5527514", "0.55221033", "0.55214775" ]
0.0
-1
/ converts a 2D Squarelotron to a 1D array
public int[] numbers();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] boardConvertto1d() {\n for (int i = 0; i < 9; i++) {\n int row = i / 3;\n int col = i % 3;\n board[i] = board2d[row][col];\n }\n return board;\n }", "private int[][] convertTo2D(char[] array1D)\n {\n int n = (int) Math.sqrt(array1D.length);\n int[][] array2D = new int[n][n];\n \n for (int i = 0; i < n; i++)\n {\n for (int j = 0; j < n; j++)\n {\n array2D[i][j] = (int) (array1D[i * n + j]);\n }\n }\n \n return array2D;\n }", "public Object[][] get2DArray();", "public long[][] flatTo2D (long[] in_array1d){\n\t\tint sl = (int)Math.sqrt(in_array1d.length);\n\t\tlong[][] out_array = new long[sl][sl]; //declares output 2D array\n\t\tint q = 0; //temporary variable, used in following nested for loop\n\t\tfor(int a = 0; a < sl; a++){ //loops until a == side length\n\t\t\tfor(int b = 0; a < sl ; b++){ //loops until b == side length\n\t\t\t\t//q is initially set to zero. With each iteration of the b for-loop, the value of\n\t\t\t\t//out_array[a][b] is replaced with in_array[q], and q is incremented by 1. This means\n\t\t\t\t//that, for every iteration of the a for-loop, q is incremented by sl\n\t\t\t\tout_array[a][b] = in_array1d[q]; \n\t\t\t\tq = q + 1;\n\t\t\t\t}\n\t\t\t}\n\t\treturn out_array;\n\t\t}", "private static double [][][] convertToArray1(BufferedImage image) {\n int width = image.getWidth();\n int height = image.getHeight();\n\n double [][][] result = new double [width][height][4];\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int p = image.getRGB(x, y);\n int a = (p >> 24) & 0xff;\n int r = (p >> 16) & 0xff;\n int g = (p >> 8) & 0xff;\n int b = p & 0xff;\n\n result[x][y][0] = a;\n result[x][y][1] = r;\n result[x][y][2] = g;\n result[x][y][3] = b;\n }\n }\n return result;\n }", "public char[][] convert2D(char[] board){\r\n\t\tchar[][] result = new char[4][4];\r\n\t\tint curr = 0;\r\n\t\tfor(int i = 0; i < 4; i++) {\r\n\t\t\tfor(int j = 0; j < 4;j++) {\r\n\t\t\t\tresult[i][j] = this.board[curr];\r\n\t\t\t\tcurr++;\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn result;\r\n\t}", "public static double[][] array1Dto2D(int[] matrixVal) {\n int size = (int) Math.sqrt(matrixVal.length);\n double[][] values = new double[size][size];\n int i, j, k;\n for (i = 0, k = 0; i < size; ++i) {\n for (j = 0; j < size; ++j) {\n values[i][j] = matrixVal[k];\n k++;\n }\n }\n return values;\n }", "public double[] toOneDimensionalArray() {\n double[] result = new double[rows * cols];\n for (int i = 0; i < rows; i++) {\n System.arraycopy(this.data[i], 0, result, i * cols, cols);\n }\n\n return result;\n }", "public static double[][] array1Dto2D(Integer[] matrixVal) {\n int size = (int) Math.sqrt(matrixVal.length);\n double[][] values = new double[size][size];\n int i, j, k;\n for (i = 0, k = 0; i < size; ++i) {\n for (j = 0; j < size; ++j) {\n values[i][j] = matrixVal[k];\n k++;\n }\n }\n return values;\n }", "public static int[][] intArray1Dto2D(int[] matrixVal) {\n int size = (int) Math.sqrt(matrixVal.length);\n int[][] values = new int[size][size];\n int i, j, k;\n for (i = 0, k = 0; i < size; ++i) {\n for (j = 0; j < size; ++j) {\n values[i][j] = matrixVal[k];\n k++;\n }\n }\n return values;\n }", "public native short[][] __short2dArrayMethod( long __swiftObject, short[][] arg );", "public int[][] get2DAsteroids(){\n int[][] result = new int[field.length][2];\n for (int i = 0; i<field.length;i++){\n //casting to int maybe inaccurate but this is used for 2d representation so its not that important\n //NOTE: being able to access the x and y fields is very unsafe (getters/setters?)\n result[i][0] = (int)field[i].x;\n result[i][1] = (int)field[i].y;\n }\n return result;\n }", "public int[] create1DArrayFrom2D(int[][] array2D) {\r\n\t\t//printArray2D(array2D);\r\n\t\tint[] array1D = new int[array2D.length * array2D[0].length];\r\n\t\tfor (int i = 0; i < array2D.length; i++) {\r\n\t\t\tfor (int j = 0; j < array2D[i].length; j++) {\r\n\t\t\t\t//System.out.println(\"i: \"+i+\" j: \"+j+\" length: \"+array2D[0].length);\r\n\t\t\t\tarray1D[i * array2D[0].length + j] = array2D[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printArray1D(array1D);\r\n\t\treturn array1D;\r\n\t}", "private static int[][][] convertToArray(BufferedImage image) {\n int width = image.getWidth();\n int height = image.getHeight();\n\n int[][][] result = new int[width][height][4];\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int p = image.getRGB(x, y);\n int a = (p >> 24) & 0xff;\n int r = (p >> 16) & 0xff;\n int g = (p >> 8) & 0xff;\n int b = p & 0xff;\n\n result[x][y][0] = a;\n result[x][y][1] = r;\n result[x][y][2] = g;\n result[x][y][3] = b;\n }\n }\n return result;\n }", "public Object[][] toJava2D() {\n\n\t\tObject[][] d = new Object[numRows][numCols];\n\t\tfor ( int j = 0; j < numRows; j++ ) {\n\t\t\tfor ( int i = 0; i < numCols; i++ ) {\n\t\t\t\td[i][j] = get(i, j);\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "ArrayList<ArrayList<Integer>> convert2DArrayToList(int[][] image) {\n ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>();\n for(int i=0;i < image.length;i++) {\n list.add(new ArrayList<Integer>());\n for(int j=0; j< image[0].length;j++) {\n list.get(i).add(image[i][j]);\n }\n }\n return list;\n }", "double[][] asArray(){\n double[][] array_to_return = new double[this.rows][this.cols];\n for(int i=0; i<this.rows; i++){\n for(int j=0; j<this.cols; j++) array_to_return[i][j] = this.data[i*this.cols + j];\n }\n\n return array_to_return;\n }", "BigDecimal[][] toTriangular();", "public char[] convert1D(char[][] board) {\r\n\t\tchar[] result = new char[16];\r\n\t\tint index = 0; \r\n\t\tfor(int i = 0; i < 4; i++) {\r\n\t\t\tfor(int j = 0; j < 4; j++) {\r\n\t\t\t\tresult[index] = board[i][j];\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private Sign[] flattenBoard(){\r\n Sign[] flatBoard = new Sign[10]; // an array to save the board as one dimensional array\r\n int count = 1; //counter to help the transition from matrix to array\r\n\r\n /* transfer the matrix to array */\r\n for (int i=0;i<3;i++)\r\n for (int j=0;j<3;j++)\r\n flatBoard[count++] = board[i][j];\r\n\r\n return flatBoard;\r\n }", "private int[] convertToOneDimensionMatrix(int[][] twoDimensionMatrix, int varNum)\r\n\t{\r\n\t // twoDimensionMatrix: the two dimension matrix that you want to convert\r\n\t\t// varNum: the size (equals to the row or the column length) of the two dimension matrix \r\n\t\t\r\n\t\t// length: the total number of units of the two dimension matrix that you want to convert:\r\n\t\tint length = varNum * varNum;\r\n\t\t\r\n\t\t// tempArrayList: store the result in the format of ArrayList, then convert it to int[]:\r\n\t\tArrayList <Integer> tempArrayList = new ArrayList<Integer>();\r\n\t\t\r\n\t\t// result (one dimensional)\r\n\t\tint[] result = new int[length];\r\n\t\t\r\n\t\tfor(int m = 0; m < varNum; m++)\r\n\t\t{\r\n\t\t\tfor(int n = 0; n < varNum; n++)\r\n\t\t\t{\r\n\t\t\t\ttempArrayList.add(twoDimensionMatrix[m][n]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// convert the tempArrayList to int[]:\r\n\t\tfor (int i = 0; i < tempArrayList.size(); i++)\r\n\t\t{\r\n\t\t\tresult[i] = tempArrayList.get(i);\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public native int[][] __int2dArrayMethod( long __swiftObject, int[][] arg );", "private double[] gridArrayToPixels(double[] gridValues) {\n double[] result = new double[gridValues.length];\n\n for (int i = 0; i < gridValues.length; i++) {\n result[i] = gridValues[i] * gridSize;\n }\n return result;\n }", "public native byte[][] __byte2dArrayMethod( long __swiftObject, byte[][] arg );", "public static int[] twoToOne(int[][] two_board){\n int[] one_board = new int[24];\n int i=0;\n for(int row=0; row<ROW; row++){\n for(int column = 0; column < COLUMN; column++){\n one_board[i] = two_board[row][column];\n i++;\n }\n }\n return one_board;\n }", "int[] toArray();", "public native double[][] __double2dArrayMethod( long __swiftObject, double[][] arg );", "@Override\n\tpublic double[][] toArray() {\n\t\tint m = this.getRowsCount();\n\t\tint n = this.getColsCount();\n\t\tdouble[][] arr = new double[m][n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tarr[i][j] = this.get(i, j);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "Function<double[], double[]> convertTo(T coordinateSystem);", "private int[][] convertToTwnDimensionMatrix(int[] oneDimensionMatrix, int varNum)\r\n\t{\r\n\t\t// oneDimensionMatrix: the one dimension matrix that you want to convert:\r\n\t\t// matrixSize: the size (equals to the row or the column length) of the two dimension matrix of the result\r\n\t\tint[][] result = new int[varNum][varNum];\r\n\t\t\r\n\t\tfor (int m = 0; m < varNum; m++)\r\n\t\t{\r\n\t\t\tfor (int n = 0; n < varNum; n++)\r\n\t\t\t{\r\n\t\t\t\tresult[m][n] = oneDimensionMatrix[m*varNum + n];\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t return result;\r\n\t}", "public native long[][] __long2dArrayMethod( long __swiftObject, long[][] arg );", "public abstract short[] toShortArray();", "private static final double[][] doubleArray2d (final List points) {\n final int m = points.size();\n final int n = ((List) points.get(0)).size();\n final double[][] a = new double[m][n];\n for (int i=0;i<m;i++) {\n final List row = (List) points.get(i);\n for (int j=0;j<n;j++) {\n a[i][j] = ((Number) row.get(j)).doubleValue(); } }\n return a; }", "private int xyTo1D(final int row, final int col) {\n return (row - 1) * size + (col - 1);\n }", "public native char[][] __char2dArrayMethod( long __swiftObject, char[][] arg );", "public native float[][] __float2dArrayMethod( long __swiftObject, float[][] arg );", "private int xyTo1D(int i, int j) {\n return (mGridSize * (i - 1) + j);\n }", "@Override\n public Object getNDArray() {\n NDArray<?>[] arr = new NDArray[2];\n arr[0] = new NDArray<>(getMagGrid().getFloats(), getMagGrid().getYdim(),\n getMagGrid().getXdim());\n arr[1] = new NDArray<>(getDirGrid().getFloats(), getDirGrid().getYdim(),\n getDirGrid().getXdim());\n return arr;\n }", "public int[][] create2DArrayFrom1D(int[] array1D, int height, int width) {\r\n\t\t//printArray1D(array1D);\r\n\t\tint[][] array2D = new int[height][width];\r\n\t\tfor (int i = 0; i < height; i++) {\r\n\t\t\tfor (int j = 0; j < width; j++) {\r\n\t\t\t\t//System.out.println(\"i: \"+i+\" j: \"+j+\" width: \"+width);\r\n\t\t\t\tarray2D[i][j] = array1D[i * width + j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printArray2D(array2D);\r\n\t\treturn array2D;\r\n\t}", "public double[][] toIntArray() {\r\n return matrix;\r\n }", "public double[] toArray() \r\n\t{ \r\n\t\treturn Arrays.copyOf(storico, storico.length) ; \r\n\t}", "private int[][] getSquare(int row, int col) {\n int[][] square = new int[3][3];\n\n int rowStart = (row/3)*3;\n int colStart = (col/3)*3;\n\n for (int r = rowStart; r < rowStart + 3; r++) {\n for (int c = colStart; c < colStart + 3; c++) {\n square[r-rowStart][c-colStart] = numbers[r][c];\n }\n }\n\n return square;\n }", "static double[] getArrayb(double[][] matrix) {\n double[][] res1 = transMatrix(matrix);\n double[] b = new double[res1[res1.length - 1].length];\n for (int i = 0; i < b.length; i++) {\n b[i] = res1[res1.length - 1][i];\n }\n // we get b that is array of right parts\n return b;\n }", "double[][] asDouble();", "public abstract int[] toIntArray();", "private int xyTo1D(int row, int col)\n {\n validate(row, col);\n return (row-1) * gridSize + col-1;\n }", "public static void transpose(int[][] myArr2D)\n {\n if(isRect(myArr2D)== false)\n {\n System.out.println(\"The array is not a rectangle\");\n }\n else\n {\n for( int row = 0; row < myArr2D.length; row++)\n { \n for( int col = row; col < myArr2D.length; col++)\n { \n int z = myArr2D[row][col];\n myArr2D[row][col] = myArr2D[col][row];\n myArr2D[col][row] = z;\n }\n }\n }\n }", "public double[][] getArrayCopy(){\r\n \tdouble[][] c = new double[this.nrow][this.ncol];\r\n\t\tfor(int i=0; i<nrow; i++){\r\n\t\t \tfor(int j=0; j<ncol; j++){\r\n\t\t \tc[i][j]=this.matrix[i][j];\r\n\t\t \t}\r\n\t\t }\r\n \treturn c;\r\n \t}", "private String[][] twoDArray(LinkedList<QuadTree> Linked) {\n if (Linked.size() < 1) {\n return new String[0][0];\n } else if (Linked.size() == 1) {\n return new String[1][1];\n } else {\n int rowCount, columnCount;\n Set<Double> count = new HashSet<>();\n for (QuadTree q : Linked) {\n count.add(q.ullat);\n }\n rowCount = count.size();\n columnCount = Linked.size() / rowCount;\n return new String[rowCount][columnCount];\n }\n }", "private int convert2d(int x, int y) {\n return x + y * width;\n }", "public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}", "private static INDArray imageToNDArray(BufferedImage image) {\n float[][][][] data = new float[1][1][image.getWidth()][image.getHeight()];\n\n // Loop through each pixel of the image\n for (int x = 0; x < image.getWidth(); x++) {\n for (int y = 0; y < image.getHeight(); y++) {\n\n // Get color components (r, g, b)\n Color color = new Color(image.getRGB(x, y));\n int red = color.getRed();\n int green = color.getGreen();\n int blue = color.getBlue();\n\n // Calculate grey scale value and normalise\n float grey = (float) (red + green + blue) / 3;\n float normalised = 1 - grey / 255.0f;\n\n // Save value into array\n data[0][0][y][x] = normalised;\n }\n }\n\n // Convert java array to NDArray\n return Nd4j.create(data);\n }", "public void makeBoard2d() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board2d[i][j] = this.board[(i * 3) + j];\n }\n }\n }", "public Box[] getBoxes1D() {\n\t\tBox[] temp = new Box[size];\n\t\tint tempCounter = 0;\n\t\tfor (int j = 0; j < length; j++) {\n\t\t for (int i = 0; i < height; i++) {\n\t\t\t\ttemp[tempCounter] = boxes[i][j];\n\t\t\t\ttempCounter++;\n\t\t }\n\t\t}\n\t\treturn temp;\n }", "public String[][] cellsTo2dArray(Cell[][] cells) {\n\t\t/* we add an additional row to temp so we can store the row number */\n\t\tString[][] temp = new String[cells.length][cells[0].length + 1];\n\n\t\t/* position [0][0] must always have LINHA */\n\t\ttemp[0][0] = \"LINHA\";\n\n\t\tfor (int i = 0; i < temp.length; i++) {\n\t\t\t/* if it's [i][0] other than [0][0] then we go get the row */\n\t\t\tif (i > 0) {\n\t\t\t\ttemp[i][0] = Integer\n\t\t\t\t\t\t.toString(cells[i][0].getAddress().getRow());\n\t\t\t}\n\t\t\t/* the rest of the columns are filled with cells conent */\n\t\t\tfor (int j = 1; j < temp[0].length; j++) {\n\t\t\t\ttemp[i][j] = cells[i][j - 1].getContent().toString();\n\t\t\t}\n\t\t}\n\t\treturn temp;\n\t}", "public abstract double[] toDoubleArray();", "private Color[] imageToArray(BufferedImage image){\n Color[] pixels = new Color[image.getWidth() * image.getWidth()];\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n Color color = new Color(image.getRGB(j,i));\n pixels[i*image.getWidth() + j] = color;\n }\n }\n return pixels;\n }", "public int[][] toInt() {\r\n\t\tint dim=this.getDimensión();\r\n\t\tint convertida [][]=new int[dim][dim];\r\n\t\tfor(int i=0; i<dim; i++) {\r\n\t\t\tfor(int j=0; j<dim; j++) {\r\n\t\t\t\tconvertida[i][j]=this.getCuadrícula()[i][j].getValor();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn convertida;\r\n\t}", "public List<Integer> toList (int[][] twoDarray) {\r\n\r\n List<Integer> list = new ArrayList<>();\r\n\r\n// for(Integer[] array : twoDarray) {\r\n// list.addAll(Arrays.asList(array));\r\n// }\r\n\r\n for (int i = 0; i < twoDarray.length; i++) {\r\n for (int j = 0; j < twoDarray.length; j++) {\r\n list.add(twoDarray[i][j]);\r\n }\r\n }\r\n return list;\r\n }", "public List<Square> getSquareGrid();", "public native boolean[][] __boolean2dArrayMethod( long __swiftObject, boolean[][] arg );", "public native java.lang.String[][] __String2dArrayMethod( long __swiftObject, java.lang.String[][] arg );", "public int[][] create2DimArray(int row, int col) {\n\t\treturn new int[row][col];\n\t}", "int[][][] sepiaToneImage(int[][][] imageArray, int height, int width);", "protected int xyTo1D(final int i, final int j) {\n return i * m + j;\n }", "public short[][] getIntensity(){ return intensity; }", "public int[] squareArrayValues(int[] arr){\n for(int i = 0; i < arr.length; i++){\n arr[i] = arr[i] * arr[i];\n }\n return arr;\n }", "Array createArray();", "private double[] b2() {\n double[] r = b;\n for (int j = 0; j < nBinVars2; j++) {\n r = Maths.append(r, 1d);\n }\n return r;\n }", "E[] toArray();", "private native void convertToLum( short[] data, int w, int h );", "@Override\n public void makeArray(Grid myGrid) {\n allShapes = new Triangle[myGrid.gridRows()][myGrid.gridColumns()];\n for (int r = 0; r < myGrid.gridRows(); r++) {\n for (int c = 0; c < myGrid.gridColumns(); c++) {\n Triangle mynewPixel = new Triangle(r, c, triangleBase(), cellHeight());\n allShapes[r][c] = mynewPixel;\n }\n }\n }", "public double[][] convert_img_mat()\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tputpixel_1();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//rotate the image and get the pixels as usual form\t\n \t\tputpixel_2();\n\t\t}\n\treturn matrix;\n\t}", "public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}", "int[][][] greyscaleImage(int[][][] imageArray, int height, int width);", "public static int[] createBoard(Gamepiece[][] gBoard){\n\t\tint[] ret = new int[100];\n\t\tfor(int x = 0; x < GRID; x++){\n\t\t\tfor(int y = 0; y < GRID; y++){\n\t\t\t\tret[y*GRID+x] = gBoard[y][x].val();\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}", "public int[][] toMatrix() \n {\n \tint[][] matrix = new int[2][7];\n \tfor (int i = 0; i < 14; ++i)\n \t\tmatrix[i/7][i%7] = state[i];\n \treturn matrix;\n }", "public int[] convertPixelsInRowCol(int x, int y) {\n\t\tint[] row_col = new int[2];\n\t\t// filas\n\t\trow_col[0] = y / config.getLevelBoxSize();\n\t\t// columnas\n\t\trow_col[1] = x / config.getLevelBoxSize();\n\t\treturn row_col;\n\t}", "public Vertex2d[] square_vertex(int x, int y, int sizelen, spritecomponent s) {\r\n\t\tsizelen = sizelen * 2;\r\n\t\tfloat sizex = convert_coordinate(sizelen, width);\r\n\t\tfloat sizey = convert_coordinate(sizelen, height);\r\n\t\tx = x * 2;\r\n\t\ty = y * 2;\r\n\t\tx = x - (width);\r\n\t\ty = y - (height - sizelen);\r\n\t\tVertex2d new_coords = convert_coordinates(x, y);\r\n\r\n\t\tfloat xp = new_coords.x;\r\n\t\tfloat yp = new_coords.y;\r\n\t\tVertex2d[] data = new Vertex2d[] { new Vertex2d(xp, yp, s.x, s.y),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp, s.ex, s.y),\r\n\t\t\t\tnew Vertex2d(xp, yp - sizey, s.x, s.ey),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp - sizey, s.ex, s.ey),\r\n\t\t\t\tnew Vertex2d(xp, yp - sizey, s.x, s.ey),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp, s.ex, s.y) };\r\n\t\treturn data;\r\n\t}", "@Override\n\tpublic int[] numbers() {\n\t\tint length = squarelotron.length;\n\t\t//sets the first count to 0\n\t\tint count = 0;\n\t\t//loops through each outer and then inner variable in the squarelotron and records a count for each\n\t\tfor(int i = 0; i < length; i++){\n\t\t\tfor(int j = 0; j < squarelotron[i].length; j++){\n\t\t\t\tcount = count +1;\n\t\t\t}\n\t\t}\n\t\t//sets count2 as zero, this will do the same thing as the original count but use it as an index marker for the array\n\t\tint count2 = 0;\n\t\t//defines a new array having the length of the total number of variables\n\t\tint[] array = new int[count];\n\t\t//loops through the squarelotron and stores each variable in the array\n\t\tfor(int a = 0; a < length; a++){\n\t\t\tfor(int j = 0; j < squarelotron[a].length; j++){\n\t\t\t\tint d = squarelotron[a][j];\n\t\t\t\tarray[count2]=d;\n\t\t\t\tcount2 = count2 + 1;\n\t\t\t}\n\t\t}\n\t\treturn array;\n\t}", "int[][][] sharpenImage(int[][][] imageArray, int height, int width);", "T[] toArray(T[] a);", "public static Object[][] array2DCast2Objects(Object obj)\n\t\t\tthrows IllegalArgumentException {\n\t\t// TODO isArray, getType,Dim-Test refactor to MyArray?\n\t\tClass objClass = obj.getClass();\n\n\t\tif (!objClass.isArray()) {\n\t\t\tString errorMsg = \"Only Arrays allowed !\";\n\t\t\t// System.out.println(ToolBox.getCallerMethod(obj)+\": \"+errorMsg);\n\t\t\tthrow new IllegalArgumentException(errorMsg);\n\t\t} else {\n\t\t\tClass row1Class = Array.get(obj, 0).getClass();\n\t\t\tif (!row1Class.isArray()) {\n\t\t\t\tString errorMsg = \"Only 2 dim Arrays allowed !\";\n\t\t\t\t// System.out.println(ToolBox.getCallerMethod(obj)+\":\n\t\t\t\t// \"+errorMsg);\n\t\t\t\tthrow new IllegalArgumentException(errorMsg);\n\n\t\t\t}\n\t\t}\n\n\t\tObject[] rowArray = new Object[Array.getLength(obj)];\n\t\tint maxRowlength = 0;\n\t\tfor (int i = 0; i < rowArray.length; i++) {\n\t\t\trowArray[i] = Array.get(obj, i);\n\t\t\tint rowLength = Array.getLength(rowArray[i]);\n\t\t\tmaxRowlength = (rowLength > maxRowlength) ? rowLength\n\t\t\t\t\t: maxRowlength;\n\t\t\t// System.out.println(maxRowlength);\n\t\t}\n\n\t\tObject[][] twoDimArray = new Object[rowArray.length][maxRowlength];\n\t\tfor (int j = 0; j < twoDimArray.length; j++) {\n\t\t\ttwoDimArray[j] = arrayCast2Objects(rowArray[j]);\n\t\t}\n\t\treturn twoDimArray;\n\t}", "int[] shape(){\n int[] dimensions = new int[2];\n dimensions[0] = this.rows;\n dimensions[1] = this.cols;\n return dimensions;\n }", "public static int[][] copyArray(int[][] a) {\n\t\tint[][] returnArray = new int[a.length][a[0].length];\n\t\tfor (int row = 0; row < a.length; row++) {\n\t\t\tfor (int column = 0; column < a[row].length; column++) {\n\t\t\t\treturnArray[row][column] = a[row][column];\n\t\t\t}\n\t\t}\n\t\treturn returnArray;\n\t}", "public static <T> T[][] clone2DArray(T[][] array) {\r\n\t int rows = array.length ;\r\n\r\n\t //clone the 'shallow' structure of array\r\n\t T[][] newArray = array.clone();\r\n\r\n\t //clone the 'deep' structure of array\r\n\t for(int row = 0 ; row < rows; row++){\r\n\t newArray[row] = array[row].clone();\r\n\t }\r\n\r\n\t return newArray;\r\n\t}", "public static int[][] makeSymmetric(int[][] m)\n { \n return new int[m.length][m[0].length];\n }", "public double[][] getDoubleArray2D (String variable){\r\n if (matlabEng==null) return null;\r\n return matlabEng.engGetArray(id,variable);\r\n }", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "public double[] toArray() {\n\t\treturn new double[] {x, y, z};\n\t}", "public Squarelotron(int n){\n\t\t//defines size as n\n\t\tsize = n;\n\t\t//assigns the 2D array/matrix as n x n\n\t\tthis.squarelotron = new int[n][n];\n\t\t//loops from the 0 index to the last index in the rows\n\t\tfor(int i = 1; i <= size; i++){\n\t\t\t//loops through each row by defining the length of the row as the max length defined by n\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\t//fills in the matrix from 1 to the n squared\n\t\t\t\tsquarelotron[i-1][j] = (i*size)-size+j+1;\n\t\t\t\n\t\t}\n\t\t}\n\t}", "protected abstract NDArray[] onMatrix(NDArray matrix);", "private int xyTo1D(int i, int j) {\n int result = j + number * (i - 1) - 1;\n return result;\n }", "public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }", "private int matrixColToV1(int j) \n {\n return (j % dimSquared) / gDim + 1;\n }", "public static double[][] translate(Complex[] ac) {\n double[][] ret = new double[2][ac.length];\n for (int i = 0; i < ac.length; i++) {\n ret[0][i] = ac[i].r;\n ret[1][i] = ac[i].i;\n }\n return ret;\n }", "public interface Array2D {\n}", "public static int[][] init2DArray(int count){\r\n return new int[count][count];\r\n }", "public double[] asArray() {\n final double[] result = new double[COMPONENTS];\n asArray(result);\n return result;\n }" ]
[ "0.6776569", "0.6750534", "0.6732838", "0.6551331", "0.6469128", "0.6395073", "0.63871247", "0.63842", "0.6383336", "0.6325033", "0.63080585", "0.6198138", "0.6178814", "0.61747086", "0.61617506", "0.61514354", "0.6129367", "0.61290944", "0.6127316", "0.6118867", "0.61063576", "0.60834837", "0.60425663", "0.59750015", "0.5928955", "0.5926797", "0.59205353", "0.5911811", "0.5895468", "0.5887892", "0.5878463", "0.5862762", "0.58449763", "0.58422494", "0.58093125", "0.5783455", "0.5755323", "0.5753015", "0.572026", "0.5713345", "0.5708016", "0.56988984", "0.5682679", "0.56721556", "0.5640531", "0.5622454", "0.56059116", "0.5586845", "0.55808735", "0.5568703", "0.5500964", "0.5498399", "0.5496377", "0.54773057", "0.5465259", "0.54593354", "0.5446949", "0.5446155", "0.54385173", "0.5430805", "0.54161894", "0.53998107", "0.5358329", "0.5357868", "0.53468996", "0.5332043", "0.53252894", "0.5321108", "0.53173643", "0.5317352", "0.5314347", "0.53125125", "0.5297489", "0.52817047", "0.52813226", "0.5265243", "0.5261656", "0.5260775", "0.52488005", "0.5235831", "0.5231873", "0.5230754", "0.5230038", "0.5227097", "0.5226529", "0.52248603", "0.5223264", "0.5203371", "0.5200394", "0.5200394", "0.5200394", "0.5198098", "0.5186826", "0.5183185", "0.5170285", "0.51666254", "0.5132491", "0.51289874", "0.5121392", "0.5114455", "0.51134175" ]
0.0
-1
/ flips the selected ring from top to bottom
public Squarelotron upsideDownFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n dialog.setPadding(new Insets(0,0,0,7));\n }", "public Squarelotron leftRightFlip(int ring);", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "public Squarelotron mainDiagonalFlip(int ring);", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public Squarelotron inverseDiagonalFlip(int ring);", "private GObject hFlipGObject(GObject o, double x) {\n\t\to.setLocation(2 * x - o.getWidth() - o.getX(), o.getY());\n\t\treturn o;\n\t}", "public void flip() {\n flipRecur(root);\n }", "public void setFlipped() {\n\t\thasFlipped = true;\n\t}", "public void flip() {\n float tx = x1;\n float ty = y1;\n x1 = x2;\n y1 = y2;\n x2 = tx;\n y2 = ty;\n nx = -nx;\n ny = -ny;\n }", "public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "@Override\n\t/*\n\t * \tThis method performs the Upside-Down Flip of the squarelotron, as described above,\n\t\tand returns the new squarelotron. The original squarelotron should not be modified\n\t\t(we will check for this).(non-Javadoc)\n\t * @see squarelotron.SquarelotronMethods#upsideDownFlip(int)\n\t */\n\tpublic Squarelotron upsideDownFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\t//copies the 2D array associated with the Squarelotron \n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//this loop takes the first and last rows and flips their numbers\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = ring-1; j <= newSquarelotron[ring-1].length - ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1][j];\n\t\t\t//selects example: r 1 [0][0] and sets it equal to (if 5x5) [4][0], second iteration, [4][1]\n\t\t\tnewSquarelotron[ring-1][j]=newSquarelotron[size-ring][j];\n\t\t\t//sets the [4][0] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[size-ring][j] = number;\n\t\t}\n\t\t\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t//example size 7x7, ring 1; i = 1 ends at 7-1=5/2 =2 or for 8x8: ring1 starts at i=1 ends at 8-2=6/2=3\n\t\tfor(int i = ring; i <=(size-2)/2; i++){\n\t\t\t//left side\n\t\t\t//using example 7x7: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] \n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\t//example: 1st iteration ->[1][0] = [5][0], 2nd iteration -> [2][0]=[4][0], 3rd->[3][0]=[3][0] (wouldnt happen in 7x7)\n\t\t\t//example 8x8 ring 1: 1st->[1][0]=[6][0], [2][0]=[5][0],[3][0]=[4][0]; [i ends at 3]\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-i-ring][ring-1];\n\t\t\t//example:1st iteration ->[5][0]=[1][0], second[4][0]=[2],no third\n\t\t\tnewSquarelotron[size-ring-i][ring-1] = numberLft;\n\t\t\t//right side\n\t\t\t//7x7/ring=1: 1st iteration [1][6],2nd:[2][6]\n\t\t\tint numberRt = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring] = newSquarelotron[size-i-ring][size-ring];\n\t\t\t//1st:7-1-1=[5][6]=[1][6]\n\t\t\tnewSquarelotron[size-i-ring][size-ring] = numberRt;\n\t\t}\n\t\t//outputs the new Squarelotron with the new 2D array\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t\t\n\t}", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public GJEllipseShape2D reverse();", "public void shrinkSnake() {\n\t\tSnakeObj.length--;\n\t\tSnakeArray[xTail][yTail] = 0; \n\t\txTail--;\n\t\tyTail--; \n\t\tthis.repaint(); \n\t}", "public void slideFragmentsToLeft();", "void reverseDirection();", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "private void flipArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(-1);\n arrow.setRotation(50);\n }", "@Override\n\tpublic Squarelotron mainDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips along the main diagonal\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1]=numberRt;\n\t\t\tint numberLft = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring]= newSquarelotron[size-ring][i];\n\t\t\tnewSquarelotron[size-ring][i]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public BackgroundRippleObject revive(){\n return this.revive(\n randomPosInObjBounds(),\n makeRandomColor()\n );\n }", "private void reposition(){\n int lastBackgroundIndex = firstBackgroundIndex-1;\n if(firstBackgroundIndex == 0){\n lastBackgroundIndex = backgrounds.length-1;\n }\n backgrounds[firstBackgroundIndex].getPosition().x = backgrounds[lastBackgroundIndex].getPosition().x + drawingWidth;\n firstBackgroundIndex = (firstBackgroundIndex+1) % backgrounds.length;\n }", "public Squarelotron sideFlip(String side);", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "public void revert()\n\t{\n\t\tswingingWay1 = !swingingWay1;\n\t}", "public void setFlippedH(final boolean selected) {\r\n\t\tif (current != null) {\r\n\t\t\tcurrent.setFlippedH(selected);\r\n\t\t\telementView.repaint();\r\n\t\t\tnotifyModificationListeners();\r\n\t\t}\r\n\t}", "public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}", "@Override\n\tpublic Squarelotron inverseDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips with the inverse diagonal\n\t\tfor(int i = ring-1; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[size-i-1][size-ring];\n\t\t\tnewSquarelotron[size-i-1][size-ring]=numberRt;\n\t\t}\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-ring][size-i-1];\n\t\t\tnewSquarelotron[size-ring][size-i-1]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public void makeSwitcherBall(TPaintDropListItem paintSelectedItem);", "private GCompound hFlipGCompound(GCompound c) {\n\t\tfor (Iterator<GObject> i = c.iterator(); i.hasNext();)\n\t\t\thFlipGObject(i.next(), c.getWidth() / 2);\n\t\treturn c;\n\t}", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "void flip() {\n _flipped = !_flipped;\n }", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void flip() {\n\t\t\tif (showing.getImage() == faceUp) {\n\t\t\t\tshowing.setImage(FACE_DOWN);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tshowing.setImage(faceUp);\n\t\t\t}\n\t\t}", "void unsetStraight();", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "public void setFlippedV(final boolean selected) {\r\n\t\tif (current != null) {\r\n\t\t\tcurrent.setFlippedV(selected);\r\n\t\t\telementView.repaint();\r\n\t\t\tnotifyModificationListeners();\r\n\t\t}\r\n\t}", "public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}", "void retract()\n\t\t{\n\t\t\tsides = sides-1;\n\t\t\t\n\t\t\tDimension[] dime2 = new Dimension[d.length - 1];\n\t\t\t\n\t\t\tfor (int i=0; i< d.length-1; i++)\n\t\t\t{\n\t\t\t\tdime2[i]= d[i];\n\t\t\t}\n\t\t\t\n\t\t\td = new Dimension[d.length - 1];\n\t\t\tfor(int i = 0; i< dime2.length; i++)\n\t\t\t{\n\t\t\t\td[i] = dime2[i];\n\t\t\t}\n\t\t\t\t\n\t\t}", "void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }", "public Piece flip(){\n if(this == BLACK){\n return WHITE;\n }\n else{\n return BLACK;\n }\n }", "public final void lp() {\n for (int size = this.aue.size() - 1; size >= 0; size--) {\n addView((View) this.aue.get(size));\n }\n this.aue.clear();\n }", "public void cornersMovedToFocus() {\n int shift = context.getResources().getDisplayMetrics().densityDpi >= 640 ? 400 : 300;\n setMarginLayout(findViewById(R.id.corner_left_top), cornerPositions.getLeftTop().x + shift, cornerPositions.getLeftTop().y + shift);\n setMarginLayout(findViewById(R.id.corner_left_bottom), cornerPositions.getLeftBottom().x + shift, cornerPositions.getLeftBottom().y - shift);\n setMarginLayout(findViewById(R.id.corner_right_top), cornerPositions.getRightTop().x - shift, cornerPositions.getRightTop().y + shift);\n setMarginLayout(findViewById(R.id.corner_right_bottom), cornerPositions.getRightBottom().x - shift, cornerPositions.getRightBottom().y - shift);\n }", "public void swap() {\n\t\tPGraphics tmp = this.src;\n\t\tthis.src = this.dst;\n\t\tthis.dst = tmp;\n\t}", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "void decreaseAngle() {\n this.strokeAngle -= 3;\n this.updateAcc();\n this.updateStick();\n }", "public void flipBoard() {\r\n\t\tfor (int i = 0; i < this.SIZE/2; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tswap(j, this.SIZE - 1 - i, j, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void bottomInv() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.CLOCKWISE);\n bottomCubeSwap();\n bottomCubeSwap();\n bottomCubeSwap();\n }", "private void flip(int i) {\n int start = 0;\n while(start < i){\n int temp = toSort[start].val;\n toSort[start].val = toSort[i].val;\n toSort[i].val = temp;\n start++;\n i--;\n sorting.add(paintIntegers.deepCopy(toSort));\n }\n }", "public void flipHidden()\n {\n for(int i=0;i<7;i++)\n {\n if(tableauVisible[i].isEmpty() && !tableauHidden[i].isEmpty())\n tableauVisible[i].forcePush(tableauHidden[i].pop());\n } \n }", "@Override\n public void swapLayerDown(int index) {\n if (index - 1 < 0) {\n throw new RuntimeException(\n \"Can't swap down when already at the bottom.\");\n }\n\n BoardLayerView hold = this.layers.get(index - 1);\n BoardLayerView move = this.layers.get(index);\n this.layers.set(index - 1, move);\n this.layers.set(index, hold);\n }", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "public void onMirrorVertical() {\n mirror(TransformDesign.MIRROR_VERTICAL, 0.0f);\n }", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif(mClicked==true)\n\t\t\t{\n\t\t\t\tmClicked = false;\n\t\t\t\tmRect.top+=(int)(15*dm.density);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmClicked =true;\n\t\t\t\tmRect.top-=(int)(15*dm.density);\n\t\t\t}\n\t\t\tinvalidate();\n\t\t}", "public void go_to_reverse_position() {\n stop_hold_arm();\n Pneumatics.get_instance().set_solenoids(false);\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_reverse, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }", "@Override\n\tpublic Squarelotron leftRightFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = 0; j <= size-2*ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1+j][ring-1];\n\t\t\t//matrix = 3x3, size = 3, index max =2, [0][0]->[0]\n\t\t\tnewSquarelotron[ring-1+j][ring-1]=newSquarelotron[ring-1+j][size-ring];\n\t\t\t//sets the [0][4] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[ring-1+j][size-ring] = number;\n\t\t}\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t\t\t//example size 7x7, ring 1; i = 1 ends 7-2=5 or for 8x8: ring1 starts at i=1 ends at 8-2=6 or for 5x5 5-2=3\n\t\tfor(int i = 0; i <=(size-2*ring); i++){\n\t\t\t//left side\n\t\t\t//using example 5x5: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] , 3rd:i=3 [3][0]\n\t\t\tint numberLft = this.squarelotron[ring-1][ring+i-1];\n\t\t\t//for 5x5:[1][0]=[1][4]. [2][0]=[2][4], i=3: [3][0]=[3][4]\n\t\t\tnewSquarelotron[ring-1][ring+i-1] = this.squarelotron[ring-1][size-ring-i];\n\t\t\t//example:1st iteration ->[1][4]=[1][0], 2nd:[2][4]=\n\t\t\tnewSquarelotron[ring-1][size-ring-i] = numberLft;\n\t\t\tint numberBot = this.squarelotron[size-ring][ring+i-1];\n\t\t\tnewSquarelotron[size-ring][ring+i-1]= this.squarelotron[size-ring][size-ring-i];\n\t\t\tnewSquarelotron[size-ring][size-ring-i] = numberBot;\n\t\t\t\t}\n\t\t\n\t\t\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public void alignSelectedFurnitureOnBackSide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float [][] points = leadPiece.getPoints();\n Line2D backLine = new Line2D.Float(points [0][0], points [0][1], points [1][0], points [1][1]); \n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n alignPieceOfFurnitureAlongSides(alignedPiece.getPieceOfFurniture(), leadPiece, backLine, false, null, 0);\n }\n }\n });\n }", "protected void clearToBack()\n {\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,getBackground());\n\trenderFilledRect(g,0,0,width,height);\n }", "private void Lose(){\n touchable = false;\n RevealAll();\n }", "public void resetUpperface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setRaiseBrow(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setFurrowBrow(0);\n\t}", "private void turnAround() {\r\n this.setCurrentDirection(-getCurrentDirection());\r\n }", "public void backToCenterClick() {\n canvasDrawer.resetOffset(board, canvasArea);\n draw();\n }", "private void flipColors(Node h) {\n h.color = !h.color;\n h.left.color = !h.left.color;\n h.right.color = !h.right.color;\n }", "void sharpen();", "void sharpen();", "public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }", "public void reset()\t{\n\t\tthis.snake.clear();\r\n\t\tdir = 1;\r\n\t\tthis.snake.add(new Dimension(2,5));\r\n\t\tthis.snake.add(new Dimension(2,6));\r\n\t\tthis.snake.add(new Dimension(2,7));\r\n\t}", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "public void rotateBack() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[i][j] = tmp_grid[i][j];\n\t\t}", "@Override\n public void onClick(View theView) {\n if(frontSideShowing){\n setBackSide();\n }else{\n setFrontSide();\n }\n\n\n }", "public void reverseLastTranslation() {\r\n this.translate(-lastDx,-lastDy);\r\n }", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "void slideUpDownWithHandle(int byPixels);", "@Override\n public void undo() {\n node.toggleBoundaryMarker();\n }", "public void flipJags(){\n \t\tint length = jagsLeft.length/2;\n \t\tJaguar[] tempJags = new Jaguar[length];\n \t\t\n \t\ttempJags=jagsLeft;\n \t\tfor(int i=0; i < length; i++){ \n \t\t\tjagsLeft[i]=tempJags[length-1-i]; //Flip jaguars on left\n \t\t}\n \t\tfor(int i=0; i < length; i++){\n \t\t\ttempJags[i]=jagsRight[length-1-i]; //Flip jaguars on right\n \t\t}\n \t\t\n \t\tjagsRight = jagsLeft;\n \t\tjagsLeft = tempJags;\n assignLiveWindow();\n \t}", "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "private final void flipBonusCard() {\n\t\tstate.setBonusCard(deck.removeTopCard());\n\t}", "public void circulos() {\n pushMatrix();\n translate(width/2, height/2);\n rotate(-h);\n noFill();\n strokeWeight(5);\n stroke(255);\n ellipse(10, 10, 20, 20);\n popMatrix();\n\n h = h + 0.3f;\n }", "void flipUp( ) {\n\t\t\t\t\t\tUpCommand . execute ( ) ;\n\n\n\t\t}", "public void resetPaddleToStartingPosition(){\n myRectangle.setX(initialXLocation);\n }", "void unsetDirection();", "public Direction invertAll(){\n switch(this){\n case STAY:\n return STAY;\n case SPIN_BACK:\n return SPIN_BACK;\n case FORWARD:\n return BACKWARD;\n case BACKWARD:\n return FORWARD;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "private Coordinate flipCorner(int cornerState) {\n Coordinate coordinate;\n coordinate = centerPointCoordinate;\n if (cornerState == 0) {\n angle = 180 + angle;\n } else if (cornerState == 1) {\n angle = 180 - angle;\n } else if (cornerState == 2) {\n angle = 180 - angle;\n } else if (cornerState == 3) {\n angle = 180 + angle;\n }\n return coordinate;\n }", "void changeDirection();", "private void alternateBeeper(){\n\t\tputBeeper();\n\t\tif(frontIsClear()){\n\t\tmove();\n\t\t}\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t} \n\t}", "private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}", "public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t Graphics2D graphics = (Graphics2D)g;\r\n\t \r\n\t for (int i = 0; i < tom.snake.size() -1; i++) {\r\n\t \tDimension xy = new Dimension(tom.snake.get(i));\r\n\t \tgraphics.setColor(BLACK);\r\n\t \tgraphics.fillRect(xy.width*SNAKE_SIZE, xy.height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \t\r\n\t }\r\n\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE);\r\n\t \r\n\t switch (tom.getDir()){\r\n\t\tcase 0: //up\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE, SNAKE_SIZE/2+2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/2, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 1: //down\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE, SNAKE_SIZE/2);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 2: //left\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\tcase 3: //right\r\n\t\t graphics.fillRect(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE, SNAKE_SIZE/2, SNAKE_SIZE);\r\n\t\t graphics.setColor(WHITE);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);\r\n\t\t graphics.fillOval(tom.snake.get(tom.snake.size()-1).width*SNAKE_SIZE+SNAKE_SIZE/3*2, tom.snake.get(tom.snake.size()-1).height*SNAKE_SIZE+SNAKE_SIZE/4, SNAKE_SIZE/3, SNAKE_SIZE/3);break;\r\n\t\t } \r\n\t \r\n\t graphics.setColor(RED);\r\n\t graphics.fillOval(apple.x*SNAKE_SIZE-1, apple.y*SNAKE_SIZE-1, SNAKE_SIZE+2, SNAKE_SIZE+2);\r\n\t graphics.setColor(BLACK);\r\n\t graphics.setStroke(new BasicStroke(2));\r\n\t graphics.drawLine(apple.x*SNAKE_SIZE+SNAKE_SIZE/2, apple.y*SNAKE_SIZE+SNAKE_SIZE/4, apple.x*SNAKE_SIZE+SNAKE_SIZE/3, apple.y*SNAKE_SIZE-3);\r\n\t \r\n\t if (!game) {\r\n\t \tgraphics.setColor(DIMSCREEN);\r\n\t \tgraphics.fillRect(0, 0, 607, 607);\r\n\t \tgraphics.setColor(RED);\r\n\t \tgraphics.setFont(new Font(\"TimesRoman\", Font.BOLD, 50));\r\n\t \tif(Game.status()) { //Igra je bila zakljucena\r\n\t \t\tgraphics.drawString(\"GAME OVER\", 150, 260);\r\n\t \t\tgraphics.drawString(\"CTRL-P to restart\", 110, 320);\r\n\t \t}\r\n\t \telse if(Game.firstTime) { //Zacetni prikaz drugacen kot za navadno pavzo\r\n\t\t\t\tgraphics.drawString(\"Arrow keys to move\", 80, 260);\r\n\t\t \tgraphics.drawString(\"CTRL-P to start/pause\", 55, 320);\r\n\t \t}\r\n\t \telse \r\n\t \t\tgraphics.drawString(\"PAUSED\", 200, 300);\r\n\t }\t \r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\timgfinalImage.setImageBitmap(flipImage(RateItScreen.bmp, \"Vertical\"));\r\n\t\t\t}", "@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}" ]
[ "0.6730749", "0.6730749", "0.6730749", "0.6662876", "0.6290525", "0.60939056", "0.60905457", "0.6073964", "0.60513765", "0.59262025", "0.59029233", "0.58553404", "0.58192354", "0.5769243", "0.5731391", "0.5692912", "0.5642154", "0.5624642", "0.5615487", "0.560389", "0.558774", "0.55713177", "0.55459416", "0.5533615", "0.55331236", "0.5515189", "0.5503455", "0.5484072", "0.5470558", "0.5455186", "0.5453397", "0.5449092", "0.544224", "0.540849", "0.5403924", "0.54017717", "0.53863263", "0.5378857", "0.5345859", "0.5333101", "0.5329347", "0.5328428", "0.5306476", "0.5304265", "0.5300978", "0.5289972", "0.5285088", "0.5282035", "0.5265759", "0.52650356", "0.5264366", "0.52553916", "0.5249491", "0.5247019", "0.5236426", "0.52312136", "0.52252424", "0.52184874", "0.52169096", "0.5209588", "0.5209137", "0.5199513", "0.51956147", "0.51796013", "0.51767635", "0.51640415", "0.51424545", "0.5128959", "0.51259816", "0.5110856", "0.5109708", "0.5104245", "0.5104245", "0.51028335", "0.5101741", "0.50990134", "0.5095739", "0.5091171", "0.50844127", "0.5083198", "0.5081275", "0.5076406", "0.5064706", "0.50618964", "0.5059465", "0.5052756", "0.50526595", "0.505152", "0.5050502", "0.5046505", "0.5036365", "0.50361127", "0.50299746", "0.50200695", "0.5017762", "0.5017557", "0.50151414", "0.5009464", "0.5008267", "0.50078773" ]
0.7022648
0
/ flips the selected ring from left to right
public Squarelotron leftRightFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Squarelotron upsideDownFlip(int ring);", "public Squarelotron inverseDiagonalFlip(int ring);", "public Squarelotron mainDiagonalFlip(int ring);", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "public void flip() {\n flipRecur(root);\n }", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n dialog.setPadding(new Insets(0,0,0,7));\n }", "void reverseDirection();", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public Squarelotron sideFlip(String side);", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "@Override\n\tpublic Squarelotron leftRightFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = 0; j <= size-2*ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1+j][ring-1];\n\t\t\t//matrix = 3x3, size = 3, index max =2, [0][0]->[0]\n\t\t\tnewSquarelotron[ring-1+j][ring-1]=newSquarelotron[ring-1+j][size-ring];\n\t\t\t//sets the [0][4] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[ring-1+j][size-ring] = number;\n\t\t}\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t\t\t//example size 7x7, ring 1; i = 1 ends 7-2=5 or for 8x8: ring1 starts at i=1 ends at 8-2=6 or for 5x5 5-2=3\n\t\tfor(int i = 0; i <=(size-2*ring); i++){\n\t\t\t//left side\n\t\t\t//using example 5x5: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] , 3rd:i=3 [3][0]\n\t\t\tint numberLft = this.squarelotron[ring-1][ring+i-1];\n\t\t\t//for 5x5:[1][0]=[1][4]. [2][0]=[2][4], i=3: [3][0]=[3][4]\n\t\t\tnewSquarelotron[ring-1][ring+i-1] = this.squarelotron[ring-1][size-ring-i];\n\t\t\t//example:1st iteration ->[1][4]=[1][0], 2nd:[2][4]=\n\t\t\tnewSquarelotron[ring-1][size-ring-i] = numberLft;\n\t\t\tint numberBot = this.squarelotron[size-ring][ring+i-1];\n\t\t\tnewSquarelotron[size-ring][ring+i-1]= this.squarelotron[size-ring][size-ring-i];\n\t\t\tnewSquarelotron[size-ring][size-ring-i] = numberBot;\n\t\t\t\t}\n\t\t\n\t\t\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "@Override\n\tpublic Squarelotron mainDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips along the main diagonal\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1]=numberRt;\n\t\t\tint numberLft = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring]= newSquarelotron[size-ring][i];\n\t\t\tnewSquarelotron[size-ring][i]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "@Override\n\tpublic Squarelotron inverseDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips with the inverse diagonal\n\t\tfor(int i = ring-1; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[size-i-1][size-ring];\n\t\t\tnewSquarelotron[size-i-1][size-ring]=numberRt;\n\t\t}\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-ring][size-i-1];\n\t\t\tnewSquarelotron[size-ring][size-i-1]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public void flip() {\n float tx = x1;\n float ty = y1;\n x1 = x2;\n y1 = y2;\n x2 = tx;\n y2 = ty;\n nx = -nx;\n ny = -ny;\n }", "public void setFlipped() {\n\t\thasFlipped = true;\n\t}", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "public void revert()\n\t{\n\t\tswingingWay1 = !swingingWay1;\n\t}", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "void flip() {\n _flipped = !_flipped;\n }", "void setLeftToRight(boolean ltor);", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "@Override\n\t/*\n\t * \tThis method performs the Upside-Down Flip of the squarelotron, as described above,\n\t\tand returns the new squarelotron. The original squarelotron should not be modified\n\t\t(we will check for this).(non-Javadoc)\n\t * @see squarelotron.SquarelotronMethods#upsideDownFlip(int)\n\t */\n\tpublic Squarelotron upsideDownFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\t//copies the 2D array associated with the Squarelotron \n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//this loop takes the first and last rows and flips their numbers\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = ring-1; j <= newSquarelotron[ring-1].length - ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1][j];\n\t\t\t//selects example: r 1 [0][0] and sets it equal to (if 5x5) [4][0], second iteration, [4][1]\n\t\t\tnewSquarelotron[ring-1][j]=newSquarelotron[size-ring][j];\n\t\t\t//sets the [4][0] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[size-ring][j] = number;\n\t\t}\n\t\t\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t//example size 7x7, ring 1; i = 1 ends at 7-1=5/2 =2 or for 8x8: ring1 starts at i=1 ends at 8-2=6/2=3\n\t\tfor(int i = ring; i <=(size-2)/2; i++){\n\t\t\t//left side\n\t\t\t//using example 7x7: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] \n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\t//example: 1st iteration ->[1][0] = [5][0], 2nd iteration -> [2][0]=[4][0], 3rd->[3][0]=[3][0] (wouldnt happen in 7x7)\n\t\t\t//example 8x8 ring 1: 1st->[1][0]=[6][0], [2][0]=[5][0],[3][0]=[4][0]; [i ends at 3]\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-i-ring][ring-1];\n\t\t\t//example:1st iteration ->[5][0]=[1][0], second[4][0]=[2],no third\n\t\t\tnewSquarelotron[size-ring-i][ring-1] = numberLft;\n\t\t\t//right side\n\t\t\t//7x7/ring=1: 1st iteration [1][6],2nd:[2][6]\n\t\t\tint numberRt = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring] = newSquarelotron[size-i-ring][size-ring];\n\t\t\t//1st:7-1-1=[5][6]=[1][6]\n\t\t\tnewSquarelotron[size-i-ring][size-ring] = numberRt;\n\t\t}\n\t\t//outputs the new Squarelotron with the new 2D array\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t\t\n\t}", "public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "public Direction invertAll(){\n switch(this){\n case STAY:\n return STAY;\n case SPIN_BACK:\n return SPIN_BACK;\n case FORWARD:\n return BACKWARD;\n case BACKWARD:\n return FORWARD;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "private void flipArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(-1);\n arrow.setRotation(50);\n }", "public Direction invertTurns(){\n switch(this){\n case SPIN_BACK:\n return SPIN_BACK;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "private GObject hFlipGObject(GObject o, double x) {\n\t\to.setLocation(2 * x - o.getWidth() - o.getX(), o.getY());\n\t\treturn o;\n\t}", "public void slideFragmentsToLeft();", "public void reverseDirectionX()\n\t{\n\t\t\n\t\tvx = -vx;\n\t\t\n\t}", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "void changeDirection();", "public void flip(int bitIndex);", "public GJEllipseShape2D reverse();", "public void reverseX()\r\n {\r\n\t if(moveX < 0)\r\n\t\t moveX = moveX * (-1);\r\n\t else if(moveX > 0)\r\n\t\t moveX = moveX * (-1);\r\n }", "void disableFlipMode();", "private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rightBack.setPower(TURN_POWER);\n robot.rightFront.setPower(TURN_POWER);\n }", "public void changeDirection(){\n\t\tthis.toRight ^= true;\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.currElem + 1) % players.size();\n\t\telse\n\t\t\tthis.nextElem = (this.currElem - 1 + players.size()) % players.size();\n\t}", "public void changeCurrentSide() {\r\n\tthis.currentSide = getAdversarySide(this.currentSide);\r\n\r\n\tfireChanged(CURRENT_SIDE, NO_SIDE, NO_POSITION);\r\n }", "public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }", "public void invert(boolean direction){\n intake.setInverted(direction);\n }", "public void changeDirection()\n {\n if(goLeft){\n goLeft = false;\n }else{\n goLeft = true;\n }\n }", "@Override\n public void turnRight(Double angle) {\n turnLeft(angle * -1);\n }", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "private static void leftRotateByOne(int[] array) {\n int tmp = array[0];\n for (int i = 0; i < array.length - 1; i++) {\n array[i] = array[i + 1];\n }\n array[array.length - 1] = tmp;\n }", "void enableFlipMode();", "public Piece flip(){\n if(this == BLACK){\n return WHITE;\n }\n else{\n return BLACK;\n }\n }", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "public void flipDirection(Direction flip){\n \tswitch (direction){\n\t\t\tcase NORTH: \n\t\t\t\tdirection = Direction.SOUTH;\n\t\t\t\tbreak;\n\t\t\tcase NORTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.NORTHWEST;\n\t\t\t\telse direction = Direction.SOUTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase EAST:\n\t\t\t\tdirection = Direction.WEST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.SOUTHWEST;\n\t\t\t\telse direction = Direction.NORTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTH:\n\t\t\t\tdirection = Direction.NORTH;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHWEST:\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.SOUTHEAST;\n\t\t\t\telse direction = Direction.NORTHWEST;\n\t\t\t\tbreak;\n\t\t\tcase WEST:\n\t\t\t\tdirection = Direction.EAST;\n\t\t\t\tbreak;\n\t\t\tdefault: //NORTHWEST\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.NORTHEAST;\n\t\t\t\telse direction = Direction.SOUTHWEST;\n\t\t\t\tbreak;\n \t\t}\n }", "public void mirror() {\n this.mirrored = !this.mirrored;\n }", "void rightInv() {\n startAnimation(rightSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n rightCubeSwap();\n rightCubeSwap();\n rightCubeSwap();\n }", "public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}", "public void rightOff() {\r\n\t\tsetRightColor(0, 0, 0);\r\n\t}", "void unsetDirection();", "public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }", "void retract()\n\t\t{\n\t\t\tsides = sides-1;\n\t\t\t\n\t\t\tDimension[] dime2 = new Dimension[d.length - 1];\n\t\t\t\n\t\t\tfor (int i=0; i< d.length-1; i++)\n\t\t\t{\n\t\t\t\tdime2[i]= d[i];\n\t\t\t}\n\t\t\t\n\t\t\td = new Dimension[d.length - 1];\n\t\t\tfor(int i = 0; i< dime2.length; i++)\n\t\t\t{\n\t\t\t\td[i] = dime2[i];\n\t\t\t}\n\t\t\t\t\n\t\t}", "private Coordinate flipCorner(int cornerState) {\n Coordinate coordinate;\n coordinate = centerPointCoordinate;\n if (cornerState == 0) {\n angle = 180 + angle;\n } else if (cornerState == 1) {\n angle = 180 - angle;\n } else if (cornerState == 2) {\n angle = 180 - angle;\n } else if (cornerState == 3) {\n angle = 180 + angle;\n }\n return coordinate;\n }", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "private void rotateRight() {\n robot.leftBack.setPower(TURN_POWER);\n robot.leftFront.setPower(TURN_POWER);\n robot.rightBack.setPower(-TURN_POWER);\n robot.rightFront.setPower(-TURN_POWER);\n }", "@Override\n public void Invert() {\n\t \n }", "void unsetStraight();", "private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "private GCompound hFlipGCompound(GCompound c) {\n\t\tfor (Iterator<GObject> i = c.iterator(); i.hasNext();)\n\t\t\thFlipGObject(i.next(), c.getWidth() / 2);\n\t\treturn c;\n\t}", "public void flip() {\n\t\t\tif (showing.getImage() == faceUp) {\n\t\t\t\tshowing.setImage(FACE_DOWN);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tshowing.setImage(faceUp);\n\t\t\t}\n\t\t}", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void rightPressed() {\n System.out.println(\"rightPressed()\");\n current.translate(0, 1);\n display.showBlocks();\n }", "protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }", "public void flipCard() {\n this.faceUp = !faceUp;\n }", "void decreaseAngle() {\n this.strokeAngle -= 3;\n this.updateAcc();\n this.updateStick();\n }", "public void flipBoard() {\r\n\t\tfor (int i = 0; i < this.SIZE/2; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tswap(j, this.SIZE - 1 - i, j, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void turnRight() { turn(\"RIGHT\"); }", "public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}", "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "public void leftOff() {\r\n\t\tsetLeftColor(0, 0, 0);\r\n\t}", "public void turnRight() {\n\t\tthis.setSteeringDirection(getSteeringDirection()+5);\n\t}", "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "public void slideRight() {\n turnRight();\n move();\n turnLeft();\n }", "@Override\r\n\tpublic void rotateLeft() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir - THETA);\r\n\t\t\r\n\t}", "void reverseTurnOrder() {\n turnOrder *= -1;\n }", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public void switchActiveArm() {\r\n\t\tif (this.activeArm.equals(Arm.RIGHT)) {\r\n\t\t\tthis.activeArm = Arm.LEFT;\r\n\t\t} else {\r\n\t\t\tthis.activeArm = Arm.RIGHT;\r\n\t\t}\r\n\t}", "public void reverseXVelocity() {\n xVelocity *= -1;\n }", "public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}", "private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}", "void slideLeftRightWithHandle(int byPixels);", "public void rotateLeft() {\n\t\tthis.direction = this.direction.rotateLeft();\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tif (angle < rightAngle) {\n\t\t\t\t\t\tangle++;\n\t\t\t\t\t\trightAngle = 110;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tangle--;\n\t\t\t\t\t\trightAngle = leftAngle;\n\t\t\t\t\t}\n\t\t\t\t\trepaint();\n\t\t\t\t}", "private void fixDirections() {\n\t\tdouble sensDir = sens.getDirection();\n\t\tif (sensDir > 360) {\n\t\t\tsensDir -= 360;\n\t\t} // Rotate back around to keep it tidy\n\t\telse if (sensDir < 1) {\n\t\t\tsensDir += 360;\n\t\t}\n\t\tsens.setDirection(sensDir);\n\n\t\tif (desiredDirection > 360) {\n\t\t\tdesiredDirection -= 360;\n\t\t} // Rotate back around to keep it tidy\n\t\telse if (desiredDirection < 1) {\n\t\t\tdesiredDirection += 360;\n\t\t}\n\t}", "public void onMirrorHorizontal() {\n mirror(TransformDesign.MIRROR_HORIZONTAL, 0.0f);\n }", "public void go_to_reverse_position() {\n stop_hold_arm();\n Pneumatics.get_instance().set_solenoids(false);\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_reverse, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }", "private static void circular_shift(boolean[] array, boolean right)\n\t{\n\t\tboolean saved_value, tmp;\n\t\tint i;\n\t\t\n\t\tsaved_value = right ? array[array.length - 1] : array[0];\n\t\ti = right ? 0 : array.length - 1;\n\t\t\n\t\twhile(i < array.length && i >= 0)\n\t\t{\n\t\t\ttmp = array[i];\n\t\t\tarray[i] = saved_value;\n\t\t\tsaved_value = tmp;\n\t\t\t\n\t\t\tif(right) ++i;\n\t\t\telse --i;\n\t\t}\n\t}", "public void normaliza() {\n switch (o) {\n case SurEste:\n setPos(getX()+1, getY());\n o = OrientacionArista.NorOeste;\n break;\n case SurOeste: \n setPos(getX(), getY()+1);\n o = OrientacionArista.NorEste;\n break;\n case Oeste: \n setPos(getX()-1, getY()+1);\n o = OrientacionArista.Este;\n break;\n }\n }" ]
[ "0.7294961", "0.6809843", "0.6787972", "0.67560804", "0.67560804", "0.67560804", "0.6602968", "0.6596508", "0.65057564", "0.64310855", "0.64179593", "0.6385201", "0.6354568", "0.63466895", "0.63352484", "0.6305882", "0.6297991", "0.62839806", "0.6259384", "0.61824083", "0.6171194", "0.6147391", "0.6139267", "0.60904145", "0.6074271", "0.6059398", "0.6049917", "0.60430855", "0.599633", "0.5994234", "0.59703326", "0.59359896", "0.5928805", "0.5928673", "0.5927655", "0.5890295", "0.5857717", "0.5789964", "0.57863116", "0.57768965", "0.5766592", "0.57404345", "0.5736177", "0.5727949", "0.57117724", "0.5710871", "0.5699553", "0.5690411", "0.5683759", "0.5680892", "0.5676393", "0.56737447", "0.5668027", "0.5661705", "0.5661106", "0.5660933", "0.5653203", "0.5635724", "0.56302464", "0.56163543", "0.56153995", "0.56106836", "0.56078804", "0.5607243", "0.56043744", "0.5604245", "0.5581174", "0.557932", "0.5562434", "0.5552148", "0.5551112", "0.5536804", "0.5533502", "0.55219644", "0.5507241", "0.5504588", "0.5503221", "0.54957926", "0.5480853", "0.5462765", "0.54579574", "0.54555607", "0.54529697", "0.54524255", "0.54431474", "0.54296607", "0.54281193", "0.5403577", "0.5402357", "0.5401513", "0.54006314", "0.53953683", "0.5393142", "0.53826994", "0.53802073", "0.5379753", "0.5378112", "0.53709203", "0.5365783", "0.5344023" ]
0.7623902
0
/ flips the selected ring along the inverse diagonal
public Squarelotron inverseDiagonalFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Squarelotron mainDiagonalFlip(int ring);", "@Override\n\tpublic Squarelotron inverseDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips with the inverse diagonal\n\t\tfor(int i = ring-1; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[size-i-1][size-ring];\n\t\t\tnewSquarelotron[size-i-1][size-ring]=numberRt;\n\t\t}\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-ring][size-i-1];\n\t\t\tnewSquarelotron[size-ring][size-i-1]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public Squarelotron upsideDownFlip(int ring);", "public Squarelotron leftRightFlip(int ring);", "@Override\n\tpublic Squarelotron mainDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips along the main diagonal\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1]=numberRt;\n\t\t\tint numberLft = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring]= newSquarelotron[size-ring][i];\n\t\t\tnewSquarelotron[size-ring][i]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "@Override\n\t/*\n\t * \tThis method performs the Upside-Down Flip of the squarelotron, as described above,\n\t\tand returns the new squarelotron. The original squarelotron should not be modified\n\t\t(we will check for this).(non-Javadoc)\n\t * @see squarelotron.SquarelotronMethods#upsideDownFlip(int)\n\t */\n\tpublic Squarelotron upsideDownFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\t//copies the 2D array associated with the Squarelotron \n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//this loop takes the first and last rows and flips their numbers\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = ring-1; j <= newSquarelotron[ring-1].length - ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1][j];\n\t\t\t//selects example: r 1 [0][0] and sets it equal to (if 5x5) [4][0], second iteration, [4][1]\n\t\t\tnewSquarelotron[ring-1][j]=newSquarelotron[size-ring][j];\n\t\t\t//sets the [4][0] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[size-ring][j] = number;\n\t\t}\n\t\t\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t//example size 7x7, ring 1; i = 1 ends at 7-1=5/2 =2 or for 8x8: ring1 starts at i=1 ends at 8-2=6/2=3\n\t\tfor(int i = ring; i <=(size-2)/2; i++){\n\t\t\t//left side\n\t\t\t//using example 7x7: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] \n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\t//example: 1st iteration ->[1][0] = [5][0], 2nd iteration -> [2][0]=[4][0], 3rd->[3][0]=[3][0] (wouldnt happen in 7x7)\n\t\t\t//example 8x8 ring 1: 1st->[1][0]=[6][0], [2][0]=[5][0],[3][0]=[4][0]; [i ends at 3]\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-i-ring][ring-1];\n\t\t\t//example:1st iteration ->[5][0]=[1][0], second[4][0]=[2],no third\n\t\t\tnewSquarelotron[size-ring-i][ring-1] = numberLft;\n\t\t\t//right side\n\t\t\t//7x7/ring=1: 1st iteration [1][6],2nd:[2][6]\n\t\t\tint numberRt = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring] = newSquarelotron[size-i-ring][size-ring];\n\t\t\t//1st:7-1-1=[5][6]=[1][6]\n\t\t\tnewSquarelotron[size-i-ring][size-ring] = numberRt;\n\t\t}\n\t\t//outputs the new Squarelotron with the new 2D array\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t\t\n\t}", "@Override\n public void Invert() {\n\t \n }", "public void invert(boolean direction){\n intake.setInverted(direction);\n }", "public Squarelotron sideFlip(String side);", "void flip() {\n _flipped = !_flipped;\n }", "public void flip() {\n float tx = x1;\n float ty = y1;\n x1 = x2;\n y1 = y2;\n x2 = tx;\n y2 = ty;\n nx = -nx;\n ny = -ny;\n }", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "public Direction invertTurns(){\n switch(this){\n case SPIN_BACK:\n return SPIN_BACK;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public void flip(int bitIndex);", "public void flipV() {\r\n int tmp, sym;\r\n for (int col = 0; col < pixels.length; ++col) {\r\n for (int row = 0; row < pixels[col].length / 2; ++row) {\r\n // find the column index of the vertically symmetric pixel\r\n sym = pixels[col].length - 1 - row;\r\n // swap the pixel value between the two\r\n tmp = pixels[col][row];\r\n pixels[col][row] = pixels[col][sym];\r\n pixels[col][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public Direction invertAll(){\n switch(this){\n case STAY:\n return STAY;\n case SPIN_BACK:\n return SPIN_BACK;\n case FORWARD:\n return BACKWARD;\n case BACKWARD:\n return FORWARD;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "@Override\n\tpublic Squarelotron leftRightFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = 0; j <= size-2*ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1+j][ring-1];\n\t\t\t//matrix = 3x3, size = 3, index max =2, [0][0]->[0]\n\t\t\tnewSquarelotron[ring-1+j][ring-1]=newSquarelotron[ring-1+j][size-ring];\n\t\t\t//sets the [0][4] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[ring-1+j][size-ring] = number;\n\t\t}\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t\t\t//example size 7x7, ring 1; i = 1 ends 7-2=5 or for 8x8: ring1 starts at i=1 ends at 8-2=6 or for 5x5 5-2=3\n\t\tfor(int i = 0; i <=(size-2*ring); i++){\n\t\t\t//left side\n\t\t\t//using example 5x5: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] , 3rd:i=3 [3][0]\n\t\t\tint numberLft = this.squarelotron[ring-1][ring+i-1];\n\t\t\t//for 5x5:[1][0]=[1][4]. [2][0]=[2][4], i=3: [3][0]=[3][4]\n\t\t\tnewSquarelotron[ring-1][ring+i-1] = this.squarelotron[ring-1][size-ring-i];\n\t\t\t//example:1st iteration ->[1][4]=[1][0], 2nd:[2][4]=\n\t\t\tnewSquarelotron[ring-1][size-ring-i] = numberLft;\n\t\t\tint numberBot = this.squarelotron[size-ring][ring+i-1];\n\t\t\tnewSquarelotron[size-ring][ring+i-1]= this.squarelotron[size-ring][size-ring-i];\n\t\t\tnewSquarelotron[size-ring][size-ring-i] = numberBot;\n\t\t\t\t}\n\t\t\n\t\t\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public void setInverted(boolean inv) {\n/* 69 */ int dat = getData() & 0x7;\n/* 70 */ if (inv) {\n/* 71 */ dat |= 0x8;\n/* */ }\n/* 73 */ setData((byte)dat);\n/* */ }", "public void flip() {\n flipRecur(root);\n }", "void reverseDirection();", "public void flipBoard() {\r\n\t\tfor (int i = 0; i < this.SIZE/2; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tswap(j, this.SIZE - 1 - i, j, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setFlipped() {\n\t\thasFlipped = true;\n\t}", "public void invert()\n {\n assert isComplete;\n \n isInverted = !isInverted;\n }", "void invertAllBits();", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}", "public void invert() {\n int len= currentIm.getRows() * currentIm.getCols();\n \n // invert all pixels (leave alpha/transparency value alone)\n \n // invariant: pixels 0..p-1 have been complemented.\n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= 255 - DM.getRed(rgb);\n int blue= 255 - DM.getBlue(rgb);\n int green= 255 - DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n currentIm.setPixel(p,\n (alpha << 24) | (red << 16) | (green << 8) | blue);\n }\n }", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "public void revert()\n\t{\n\t\tswingingWay1 = !swingingWay1;\n\t}", "public static void flipHorizontalAxis(int[][] matrix) {\n for(int i = matrix.length - 1; i >= matrix.length/2; i-- ){\n for(int j = 0; j < matrix[i].length; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[(matrix.length - 1) - i][j];\n matrix[(matrix.length - 1) - i][j] = temp;\n }\n }\n}", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "public void mirror() {\n this.mirrored = !this.mirrored;\n }", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "public void toggle(int x, int y) {\r\n\r\n //The value at index [y][x] is multiplied by -1, toggling it between -1 and 1, and stored\r\n gameBoard[y][x] *= -1; \r\n }", "private void invertStreets() {\n this.canCross = !this.canCross;\n String calleAux = this.calleVerde;\n this.calleVerde = this.calleRojo;\n this.calleRojo = this.calleVerde;\n }", "public void invert() {\n \n float[] result = new float[16];\n System.arraycopy(IDENTITY, 0, result, 0, 16);\n \n for(int i = 0; i < 4; i++){\n int i4 = i*4;\n \n // make sure[i,i] is != 0\n \n for(int j = 0; matrix[i4+i] == 0 && j < 4; j++){\n if(j != i && matrix[j*4+i] != 0){\n transform(i, 1, j, matrix, result);\n }\n }\n \n // ensure tailing 0s\n \n for(int j = 0; j < i; j++){\n if(matrix[i4+j] != 0){\n transform(i, -matrix[i4+j]/matrix[j*4+j], j, matrix, result);\n }\n }\n\n if(matrix[i4+i] == 0){\n throw new IllegalArgumentException(\"Not invertable\");\n }\n\n // dump(\"row \"+i+\" leading zeros\", matrix, result);\n }\n \n for(int i = 3; i >= 0; i--){\n int i4 = i*4;\n if(matrix[i4+i] != 1){\n float f = matrix[i4+i];\n matrix[i4+i] = 1;\n for(int j = 0; j < 4; j++){\n result[i4+j] /= f;\n if(j > i){\n matrix[i4+j] /= f;\n }\n }\n }\n\n// dump(\"row \"+i+\" leading 1\", matrix, result);\n \n for(int j = i+1; j < 4; j++){\n if(matrix[i*4+j] != 0){\n transform(i, -matrix[i*4+j], j, matrix, result);\n }\n }\n\n// dump(\"row \"+i+\" tailing 0\", matrix, result);\n\n }\n\n matrix = result;\n }", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "public Piece flip(){\n if(this == BLACK){\n return WHITE;\n }\n else{\n return BLACK;\n }\n }", "Edge inverse() {\n return bond.inverse().edge(u, v);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "public Matrix opposite(){\r\n \tMatrix opp = Matrix.copy(this);\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\topp.matrix[i][j]=-this.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}", "void disableFlipMode();", "Direction invert() {\n switch (this) {\n case NORTH: return SOUTH;\n case SOUTH: return NORTH;\n case EAST: return WEST;\n case WEST: return EAST;\n case NORTH_EAST: return SOUTH_WEST;\n case NORTH_WEST: return SOUTH_EAST;\n case SOUTH_EAST: return NORTH_WEST;\n case SOUTH_WEST: return NORTH_EAST;\n default: return NULL;\n }\n }", "public final void invert() {\n\tdouble s = determinant();\n\tif (s == 0.0)\n\t return;\n\ts = 1/s;\n\t// alias-safe way.\n\tset(\n\t m11*m22 - m12*m21, m02*m21 - m01*m22, m01*m12 - m02*m11,\n\t m12*m20 - m10*m22, m00*m22 - m02*m20, m02*m10 - m00*m12,\n\t m10*m21 - m11*m20, m01*m20 - m00*m21, m00*m11 - m01*m10\n\t );\n\tmul((float)s);\n }", "public static void invert(int[] a) {\r\n\t\tint n = a.length;\r\n\t\tint j = n - 1;\r\n\t\tfor (int i = 0; i < j; i++) {\r\n\t\t\tint tmp = a[i];\r\n\t\t\ta[i] = a[j];\r\n\t\t\ta[j] = tmp;\r\n\t\t\tj--;\r\n\t\t}\r\n\t}", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public void reverseEdge(int[][] mat) {\n\t\tint row = mat.length;\n\t\tfor(int i = 0; i < row; i++) {\n\t\t\tfor(int j = i; j < row; j ++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tint temp = mat[i][j];\n\t\t\t\t\tmat[i][j] = mat[j][i];\n\t\t\t\t\tmat[j][i] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final void invert(Matrix4rad toInvert) {\r\n\t\tthis.set(toInvert);\r\n\t\tinvert();\r\n\t}", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "public final void negate() {\n \n \tthis.m00 = -this.m00;\n \tthis.m01 = -this.m01;\n \tthis.m02 = -this.m02;\n this.m10 = -this.m10;\n this.m11 = -this.m11;\n this.m12 = -this.m12;\n this.m20 = -this.m20;\n this.m21 = -this.m21;\n this.m22 = -this.m22;\n }", "public void flip_it(int i){\n // flip the coins i and i + 1\n int ni = (i+1)%board.length; // if (i+1 == board.length) ni = 0;\n\n int tmp = board[i];\n\n board[i] = board[ni];\n board[ni] = tmp;\n }", "public void toggle(int x, int y){\n\t\tgrid[x][y]=!grid[x][y];\n\t}", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "public void flipH() {\r\n int tmp, sym;\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length / 2; ++col) {\r\n // find the column index of the horizontally symmetric pixel\r\n sym = pixels[row].length - 1 - col;\r\n // swap the pixel value between the two\r\n tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][sym];\r\n pixels[row][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public final native Mat4 inverse() /*-{\n return $wnd.mat4.inverse(this, $wnd.mat4.create());\n }-*/;", "public GJEllipseShape2D reverse();", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n dialog.setPadding(new Insets(0,0,0,7));\n }", "public void inverse(Projection projection);", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "public void setInverted(boolean invert) {\r\n inverted = invert;\r\n }", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "static public int[][] flipAndInvertImage(int[][] A) {\n for(int i =0;i<A.length;i++){\n processARow(A[i]);\n }\n return A;\n }", "public static void switchRow(boolean[] row, int x){\n\t\tfor(int i = -1; i < 2; i++){\r\n\t \tif(x+i >= 0 && x+i < row.length)\r\n\t \t\trow[x+i] = !row[x+i]; \r\n\t }\r\n\t}", "public void flipHidden()\n {\n for(int i=0;i<7;i++)\n {\n if(tableauVisible[i].isEmpty() && !tableauHidden[i].isEmpty())\n tableauVisible[i].forcePush(tableauHidden[i].pop());\n } \n }", "<T> void inverse(final T[] array);", "void reverseTurnOrder() {\n turnOrder *= -1;\n }", "public static Direction inverse(Direction direction) {\n if (direction.isHorizontal()) {\n if (direction.equals(Direction.EAST))\n return Direction.WEST;\n else\n return Direction.EAST;\n } else {\n if (direction.equals(Direction.NORTH))\n return Direction.SOUTH;\n else\n return Direction.NORTH;\n }\n }", "void retract()\n\t\t{\n\t\t\tsides = sides-1;\n\t\t\t\n\t\t\tDimension[] dime2 = new Dimension[d.length - 1];\n\t\t\t\n\t\t\tfor (int i=0; i< d.length-1; i++)\n\t\t\t{\n\t\t\t\tdime2[i]= d[i];\n\t\t\t}\n\t\t\t\n\t\t\td = new Dimension[d.length - 1];\n\t\t\tfor(int i = 0; i< dime2.length; i++)\n\t\t\t{\n\t\t\t\td[i] = dime2[i];\n\t\t\t}\n\t\t\t\t\n\t\t}", "private void flipArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(-1);\n arrow.setRotation(50);\n }", "public Matrix inverse() {\n\t\tMatrix a = copy();\n\t\tif (a.M != a.N) {\n\t\t\tthrow new RuntimeException(\"This matrix is not square!\");\n\t\t}\n\t\tMatrix i = identity(a.N);\n\t\tMatrix ai = a.augment(i);\n\t\tai = ai.specialrref();\n\t\tMatrix[] split = ai.split(a.N);\n\t\tif (split[0].equals(i)) {\n\t\t\treturn split[1];\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"This matrix is not invertible!\");\n\t\t}\n\t}", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public static void toggle(boolean[] array){\n for(int i = 1; i < array.length; ++i){\n for(int j = i; j < array.length; j += i){\n array[j] = !array[j];\n }\n }\n }", "public void invert() {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n Double sim = get(first, second);\n \n if(sim!=null && sim > 0.0) {\n set(first, second, 1.0/sim);\n }\n \n }\n \n }\n }", "private Coordinate flipCorner(int cornerState) {\n Coordinate coordinate;\n coordinate = centerPointCoordinate;\n if (cornerState == 0) {\n angle = 180 + angle;\n } else if (cornerState == 1) {\n angle = 180 - angle;\n } else if (cornerState == 2) {\n angle = 180 - angle;\n } else if (cornerState == 3) {\n angle = 180 + angle;\n }\n return coordinate;\n }", "public final void invert() {\r\n\t\tRadical1 s = determinant();\r\n\t\tif (s.equals(Radical1.ZERO))\r\n\t\t\treturn;\r\n\r\n\t\tif (!s.equals(Radical1.ONE))\r\n\t\t\tthrow new ArithmeticException(\"can't invert radical expressions that have non-1 determinant (i.e. that rescale)\");\r\n\r\n\t\t// see Matrix4f.invert for an explination\r\n\r\n\t\tl1.setZero();\r\n\t\tl2.setZero();\r\n\t\tl3.setZero();\r\n\t\tl4.setZero();\r\n\t\tl5.setZero();\r\n\t\tl6.setZero();\r\n\t\tl7.setZero();\r\n\t\tl8.setZero();\r\n\t\tl9.setZero();\r\n\t\tl10.setZero();\r\n\t\tl11.setZero();\r\n\t\tl12.setZero();\r\n\t\tl13.setZero();\r\n\t\tl14.setZero();\r\n\t\tl15.setZero();\r\n\t\tl16.setZero();\r\n\r\n\t\tcalcPartInverse(5, 10, 15, 11, 14, op1, op2, op3, op4, l1);\r\n\t\tcalcPartInverse(6, 11, 13, 9, 15, op1, op2, op3, op4, l1);\r\n\t\tcalcPartInverse(7, 9, 14, 10, 13, op1, op2, op3, op4, l1);\r\n\r\n\t\tcalcPartInverse(9, 2, 15, 3, 14, op1, op2, op3, op4, l2);\r\n\t\tcalcPartInverse(10, 3, 13, 1, 15, op1, op2, op3, op4, l2);\r\n\t\tcalcPartInverse(11, 1, 14, 2, 13, op1, op2, op3, op4, l2);\r\n\r\n\t\tcalcPartInverse(13, 2, 7, 3, 6, op1, op2, op3, op4, l3);\r\n\t\tcalcPartInverse(14, 3, 5, 1, 7, op1, op2, op3, op4, l3);\r\n\t\tcalcPartInverse(15, 1, 6, 2, 5, op1, op2, op3, op4, l3);\r\n\r\n\t\tcalcPartInverse(1, 7, 10, 6, 11, op1, op2, op3, op4, l4);\r\n\t\tcalcPartInverse(2, 5, 11, 7, 9, op1, op2, op3, op4, l4);\r\n\t\tcalcPartInverse(3, 6, 9, 5, 10, op1, op2, op3, op4, l4);\r\n\r\n\t\tcalcPartInverse(6, 8, 15, 11, 12, op1, op2, op3, op4, l5);\r\n\t\tcalcPartInverse(7, 10, 12, 8, 14, op1, op2, op3, op4, l5);\r\n\t\tcalcPartInverse(4, 11, 14, 10, 15, op1, op2, op3, op4, l5);\r\n\r\n\t\tcalcPartInverse(10, 0, 15, 3, 12, op1, op2, op3, op4, l6);\r\n\t\tcalcPartInverse(11, 2, 12, 0, 14, op1, op2, op3, op4, l6);\r\n\t\tcalcPartInverse(8, 3, 14, 2, 15, op1, op2, op3, op4, l6);\r\n\r\n\t\tcalcPartInverse(14, 0, 7, 3, 4, op1, op2, op3, op4, l7);\r\n\t\tcalcPartInverse(15, 2, 4, 0, 6, op1, op2, op3, op4, l7);\r\n\t\tcalcPartInverse(12, 3, 6, 2, 7, op1, op2, op3, op4, l7);\r\n\r\n\t\tcalcPartInverse(2, 7, 8, 4, 11, op1, op2, op3, op4, l8);\r\n\t\tcalcPartInverse(3, 4, 10, 6, 8, op1, op2, op3, op4, l8);\r\n\t\tcalcPartInverse(0, 6, 11, 7, 10, op1, op2, op3, op4, l8);\r\n\r\n\t\tcalcPartInverse(7, 8, 13, 9, 12, op1, op2, op3, op4, l9);\r\n\t\tcalcPartInverse(4, 9, 15, 11, 13, op1, op2, op3, op4, l9);\r\n\t\tcalcPartInverse(5, 11, 12, 8, 15, op1, op2, op3, op4, l9);\r\n\r\n\t\tcalcPartInverse(11, 0, 13, 1, 12, op1, op2, op3, op4, l10);\r\n\t\tcalcPartInverse(8, 1, 15, 3, 13, op1, op2, op3, op4, l10);\r\n\t\tcalcPartInverse(9, 3, 12, 0, 15, op1, op2, op3, op4, l10);\r\n\r\n\t\tcalcPartInverse(15, 0, 5, 1, 4, op1, op2, op3, op4, l11);\r\n\t\tcalcPartInverse(12, 1, 7, 3, 5, op1, op2, op3, op4, l11);\r\n\t\tcalcPartInverse(13, 3, 4, 0, 7, op1, op2, op3, op4, l11);\r\n\r\n\t\tcalcPartInverse(3, 5, 8, 4, 9, op1, op2, op3, op4, l12);\r\n\t\tcalcPartInverse(0, 7, 9, 5, 11, op1, op2, op3, op4, l12);\r\n\t\tcalcPartInverse(1, 4, 11, 7, 8, op1, op2, op3, op4, l12);\r\n\r\n\t\tcalcPartInverse(4, 10, 13, 9, 14, op1, op2, op3, op4, l13);\r\n\t\tcalcPartInverse(5, 8, 14, 10, 12, op1, op2, op3, op4, l13);\r\n\t\tcalcPartInverse(6, 9, 12, 8, 13, op1, op2, op3, op4, l13);\r\n\r\n\t\tcalcPartInverse(8, 2, 13, 1, 14, op1, op2, op3, op4, l14);\r\n\t\tcalcPartInverse(9, 0, 14, 2, 12, op1, op2, op3, op4, l14);\r\n\t\tcalcPartInverse(10, 1, 12, 0, 13, op1, op2, op3, op4, l14);\r\n\r\n\t\tcalcPartInverse(12, 2, 5, 1, 6, op1, op2, op3, op4, l15);\r\n\t\tcalcPartInverse(13, 0, 6, 2, 4, op1, op2, op3, op4, l15);\r\n\t\tcalcPartInverse(14, 1, 4, 0, 5, op1, op2, op3, op4, l15);\r\n\r\n\t\tcalcPartInverse(0, 5, 10, 6, 9, op1, op2, op3, op4, l16);\r\n\t\tcalcPartInverse(1, 6, 8, 4, 10, op1, op2, op3, op4, l16);\r\n\t\tcalcPartInverse(2, 4, 9, 5, 8, op1, op2, op3, op4, l16);\r\n\r\n\t\tvalues[0].set(l1);\r\n\t\tvalues[1].set(l2);\r\n\t\tvalues[2].set(l3);\r\n\t\tvalues[3].set(l4);\r\n\t\tvalues[4].set(l5);\r\n\t\tvalues[5].set(l6);\r\n\t\tvalues[6].set(l7);\r\n\t\tvalues[7].set(l8);\r\n\t\tvalues[8].set(l9);\r\n\t\tvalues[9].set(l10);\r\n\t\tvalues[10].set(l11);\r\n\t\tvalues[11].set(l12);\r\n\t\tvalues[12].set(l13);\r\n\t\tvalues[13].set(l14);\r\n\t\tvalues[14].set(l15);\r\n\t\tvalues[15].set(l16);\r\n\r\n\t\tif (s.equals(Radical1.MINUS_ONE))\r\n\t\t\tnegate();\r\n\t}", "void enableFlipMode();", "public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}", "public Index invert() {\n \t\tint n=length();\n \t\tIndex ni=new Index(n);\n \t\tfor (int i=0; i<n; i++) {\n \t\t\tni.set(this.get(i), i);\n \t\t}\n \t\treturn ni;\n \t}", "public void flipDirection(Direction flip){\n \tswitch (direction){\n\t\t\tcase NORTH: \n\t\t\t\tdirection = Direction.SOUTH;\n\t\t\t\tbreak;\n\t\t\tcase NORTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.NORTHWEST;\n\t\t\t\telse direction = Direction.SOUTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase EAST:\n\t\t\t\tdirection = Direction.WEST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.SOUTHWEST;\n\t\t\t\telse direction = Direction.NORTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTH:\n\t\t\t\tdirection = Direction.NORTH;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHWEST:\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.SOUTHEAST;\n\t\t\t\telse direction = Direction.NORTHWEST;\n\t\t\t\tbreak;\n\t\t\tcase WEST:\n\t\t\t\tdirection = Direction.EAST;\n\t\t\t\tbreak;\n\t\t\tdefault: //NORTHWEST\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.NORTHEAST;\n\t\t\t\telse direction = Direction.SOUTHWEST;\n\t\t\t\tbreak;\n \t\t}\n }", "public int[] flip() {\n if (used.size() == total)\n return new int[] {};\n\n int index = new Random().nextInt(total);\n while (used.contains(index))\n index = ++index % total;\n used.add(index);\n\n return new int[] {index / cols, index % cols};\n }", "public RMTransform getTransformInverse() { return getTransform().invert(); }", "public void rotateBack() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[i][j] = tmp_grid[i][j];\n\t\t}", "void rightInv() {\n startAnimation(rightSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n rightCubeSwap();\n rightCubeSwap();\n rightCubeSwap();\n }", "@Override\n public void invert() {\n getInvertibles().parallelStream().forEach(Invertible::invert);\n }", "public void turnOff(int x, int y);", "public void flip(int x, int y){\n\t\tPiece temp = grid[x][y];\n\t\tint tempRepeats; //used to work out how many times in a diagonal to go\n\t\ttry{\n\t\t\t//UP\n\t\t\tfor (int i = 0;i < y; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y-i-1] == null || grid[x][y-i-1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y-i-1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y-(j+1)] = grid[x][y-(j+1)].flip();\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}\n\t\t\t}\n\t\t\t//DOWN\n\t\t\tfor (int i = 0;i < grid.length - y - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y+i+1] == null || grid[x][y+i+1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y+i+1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y+(j+1)] = grid[x][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//LEFT\n\t\t\tfor (int i = 0;i < x; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y] == null || grid[x-(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y] = grid[x-(j+1)][y].flip();\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}\n\t\t\t}\n\n\t\t\t//RIGHT\n\t\t\tfor (int i = 0;i < grid.length - x - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y] == null || grid[x+(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y] = grid[x+(j+1)][y].flip();\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}\n\t\t\t}\n\n\t\t\t//Top left\n\t\t\tif(x < y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y-(i+1)] == null || grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y-(j+1)] = grid[x-(j+1)][y-(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//top right\n\t\t\t\n\t\t\tif(grid.length - x < y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y-(i+1)] == null || grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y-(j+1)] = grid[x+(j+1)][y-(j+1)].flip();\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}\n\t\t\t}\n\t\t\t\n\n\t\t\t//down Right\n\t\t\tif(grid.length - x < grid.length - y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y+(i+1)] == null || grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y+(j+1)] = grid[x+(j+1)][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//down Left\n\t\t\tif(x < grid.length - y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y+(i+1)] == null || grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y+(j+1)] = grid[x-(j+1)][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t}\tcatch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\tfinally {\n\n\t\t}\n\t}", "public void setInvert (boolean invert) {\r\n\t\tthis.invert = invert;\r\n\t}", "public void flipCard() {\n this.faceUp = !faceUp;\n }", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "@NotNull\n private Coordinate flipV() {\n angle = -angle;\n Coordinate nextCenterPointCoordinate = new Coordinate(this.centerPointCoordinate.getXCoordinate(),\n this.centerPointCoordinate.getYCoordinate() + (Constants.BULLET_SPEED * Math.sin(Math.toRadians(90 - angle))));\n return nextCenterPointCoordinate;\n }", "public void changeisReversed()\r\n\t{\r\n\t\tisReversed = !isReversed;\r\n\t}", "public void flip(int[] arr, int index) {\n moves.add(index);\n int temp;\n for (int i = 0; i < index/2; i ++) {\n temp = arr[i];\n arr[i] = arr[index - 1 - i];\n arr[index - 1 - i] = temp;\n }\n }" ]
[ "0.7882044", "0.7502157", "0.73108506", "0.70757735", "0.67685914", "0.65059566", "0.63516015", "0.63290066", "0.62892413", "0.6215985", "0.61648464", "0.6164683", "0.6151994", "0.6138917", "0.6112178", "0.6102054", "0.60958683", "0.6084163", "0.606293", "0.6046371", "0.6004091", "0.60010064", "0.5999313", "0.5971034", "0.5970742", "0.5957501", "0.5944386", "0.59245026", "0.59189904", "0.5911479", "0.59015167", "0.5898526", "0.58309865", "0.58278817", "0.5810772", "0.5793448", "0.5786146", "0.57641304", "0.57564056", "0.5752556", "0.5750589", "0.57415396", "0.5733801", "0.5727425", "0.5727425", "0.5727425", "0.567055", "0.5638369", "0.56280816", "0.56207883", "0.561226", "0.5584586", "0.5571382", "0.55581695", "0.55571026", "0.5549506", "0.5548246", "0.55477875", "0.5541121", "0.5535662", "0.55319864", "0.55299926", "0.55271965", "0.55187654", "0.5475264", "0.5471522", "0.54503214", "0.5434877", "0.5415459", "0.5413966", "0.5407023", "0.5400989", "0.5380997", "0.5380236", "0.5380174", "0.5377645", "0.5377567", "0.5375743", "0.53751355", "0.5369083", "0.53672856", "0.53607005", "0.53527635", "0.53520447", "0.5346396", "0.5343396", "0.533702", "0.5328643", "0.53281796", "0.5326677", "0.5321411", "0.53129715", "0.53110945", "0.53075397", "0.5298253", "0.528797", "0.5285156", "0.52799916", "0.527823", "0.52763915" ]
0.84900296
0
/ flips the selected ring along the main diagonal
public Squarelotron mainDiagonalFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Squarelotron inverseDiagonalFlip(int ring);", "public Squarelotron upsideDownFlip(int ring);", "@Override\n\tpublic Squarelotron mainDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips along the main diagonal\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1]=numberRt;\n\t\t\tint numberLft = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring]= newSquarelotron[size-ring][i];\n\t\t\tnewSquarelotron[size-ring][i]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public Squarelotron leftRightFlip(int ring);", "@Override\n\tpublic Squarelotron inverseDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips with the inverse diagonal\n\t\tfor(int i = ring-1; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[size-i-1][size-ring];\n\t\t\tnewSquarelotron[size-i-1][size-ring]=numberRt;\n\t\t}\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-ring][size-i-1];\n\t\t\tnewSquarelotron[size-ring][size-i-1]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "@Override\n\t/*\n\t * \tThis method performs the Upside-Down Flip of the squarelotron, as described above,\n\t\tand returns the new squarelotron. The original squarelotron should not be modified\n\t\t(we will check for this).(non-Javadoc)\n\t * @see squarelotron.SquarelotronMethods#upsideDownFlip(int)\n\t */\n\tpublic Squarelotron upsideDownFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\t//copies the 2D array associated with the Squarelotron \n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//this loop takes the first and last rows and flips their numbers\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = ring-1; j <= newSquarelotron[ring-1].length - ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1][j];\n\t\t\t//selects example: r 1 [0][0] and sets it equal to (if 5x5) [4][0], second iteration, [4][1]\n\t\t\tnewSquarelotron[ring-1][j]=newSquarelotron[size-ring][j];\n\t\t\t//sets the [4][0] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[size-ring][j] = number;\n\t\t}\n\t\t\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t//example size 7x7, ring 1; i = 1 ends at 7-1=5/2 =2 or for 8x8: ring1 starts at i=1 ends at 8-2=6/2=3\n\t\tfor(int i = ring; i <=(size-2)/2; i++){\n\t\t\t//left side\n\t\t\t//using example 7x7: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] \n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\t//example: 1st iteration ->[1][0] = [5][0], 2nd iteration -> [2][0]=[4][0], 3rd->[3][0]=[3][0] (wouldnt happen in 7x7)\n\t\t\t//example 8x8 ring 1: 1st->[1][0]=[6][0], [2][0]=[5][0],[3][0]=[4][0]; [i ends at 3]\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-i-ring][ring-1];\n\t\t\t//example:1st iteration ->[5][0]=[1][0], second[4][0]=[2],no third\n\t\t\tnewSquarelotron[size-ring-i][ring-1] = numberLft;\n\t\t\t//right side\n\t\t\t//7x7/ring=1: 1st iteration [1][6],2nd:[2][6]\n\t\t\tint numberRt = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring] = newSquarelotron[size-i-ring][size-ring];\n\t\t\t//1st:7-1-1=[5][6]=[1][6]\n\t\t\tnewSquarelotron[size-i-ring][size-ring] = numberRt;\n\t\t}\n\t\t//outputs the new Squarelotron with the new 2D array\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t\t\n\t}", "@Override\n\tpublic Squarelotron leftRightFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = 0; j <= size-2*ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1+j][ring-1];\n\t\t\t//matrix = 3x3, size = 3, index max =2, [0][0]->[0]\n\t\t\tnewSquarelotron[ring-1+j][ring-1]=newSquarelotron[ring-1+j][size-ring];\n\t\t\t//sets the [0][4] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[ring-1+j][size-ring] = number;\n\t\t}\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t\t\t//example size 7x7, ring 1; i = 1 ends 7-2=5 or for 8x8: ring1 starts at i=1 ends at 8-2=6 or for 5x5 5-2=3\n\t\tfor(int i = 0; i <=(size-2*ring); i++){\n\t\t\t//left side\n\t\t\t//using example 5x5: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] , 3rd:i=3 [3][0]\n\t\t\tint numberLft = this.squarelotron[ring-1][ring+i-1];\n\t\t\t//for 5x5:[1][0]=[1][4]. [2][0]=[2][4], i=3: [3][0]=[3][4]\n\t\t\tnewSquarelotron[ring-1][ring+i-1] = this.squarelotron[ring-1][size-ring-i];\n\t\t\t//example:1st iteration ->[1][4]=[1][0], 2nd:[2][4]=\n\t\t\tnewSquarelotron[ring-1][size-ring-i] = numberLft;\n\t\t\tint numberBot = this.squarelotron[size-ring][ring+i-1];\n\t\t\tnewSquarelotron[size-ring][ring+i-1]= this.squarelotron[size-ring][size-ring-i];\n\t\t\tnewSquarelotron[size-ring][size-ring-i] = numberBot;\n\t\t\t\t}\n\t\t\n\t\t\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public Squarelotron sideFlip(String side);", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public void flip() {\n flipRecur(root);\n }", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "public void setFlipped() {\n\t\thasFlipped = true;\n\t}", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "public void flip() {\n float tx = x1;\n float ty = y1;\n x1 = x2;\n y1 = y2;\n x2 = tx;\n y2 = ty;\n nx = -nx;\n ny = -ny;\n }", "public void flipBoard() {\r\n\t\tfor (int i = 0; i < this.SIZE/2; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tswap(j, this.SIZE - 1 - i, j, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void shrinkSnake() {\n\t\tSnakeObj.length--;\n\t\tSnakeArray[xTail][yTail] = 0; \n\t\txTail--;\n\t\tyTail--; \n\t\tthis.repaint(); \n\t}", "void flip() {\n _flipped = !_flipped;\n }", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "public Piece flip(){\n if(this == BLACK){\n return WHITE;\n }\n else{\n return BLACK;\n }\n }", "public void toggle(int x, int y) {\r\n\r\n //The value at index [y][x] is multiplied by -1, toggling it between -1 and 1, and stored\r\n gameBoard[y][x] *= -1; \r\n }", "public void revert()\n\t{\n\t\tswingingWay1 = !swingingWay1;\n\t}", "public void resetHalfCarry() {\n\t\tset((byte) (get() & ~(1 << 5)));\n\t}", "public void mirror() {\n this.mirrored = !this.mirrored;\n }", "public void flipV() {\r\n int tmp, sym;\r\n for (int col = 0; col < pixels.length; ++col) {\r\n for (int row = 0; row < pixels[col].length / 2; ++row) {\r\n // find the column index of the vertically symmetric pixel\r\n sym = pixels[col].length - 1 - row;\r\n // swap the pixel value between the two\r\n tmp = pixels[col][row];\r\n pixels[col][row] = pixels[col][sym];\r\n pixels[col][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public Direction invertTurns(){\n switch(this){\n case SPIN_BACK:\n return SPIN_BACK;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "public void flip(int bitIndex);", "void retract()\n\t\t{\n\t\t\tsides = sides-1;\n\t\t\t\n\t\t\tDimension[] dime2 = new Dimension[d.length - 1];\n\t\t\t\n\t\t\tfor (int i=0; i< d.length-1; i++)\n\t\t\t{\n\t\t\t\tdime2[i]= d[i];\n\t\t\t}\n\t\t\t\n\t\t\td = new Dimension[d.length - 1];\n\t\t\tfor(int i = 0; i< dime2.length; i++)\n\t\t\t{\n\t\t\t\td[i] = dime2[i];\n\t\t\t}\n\t\t\t\t\n\t\t}", "public Direction invertAll(){\n switch(this){\n case STAY:\n return STAY;\n case SPIN_BACK:\n return SPIN_BACK;\n case FORWARD:\n return BACKWARD;\n case BACKWARD:\n return FORWARD;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}", "void unsetStraight();", "void reverseDirection();", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n dialog.setPadding(new Insets(0,0,0,7));\n }", "public void circulos() {\n pushMatrix();\n translate(width/2, height/2);\n rotate(-h);\n noFill();\n strokeWeight(5);\n stroke(255);\n ellipse(10, 10, 20, 20);\n popMatrix();\n\n h = h + 0.3f;\n }", "public void invert(boolean direction){\n intake.setInverted(direction);\n }", "public static void flipHorizontalAxis(int[][] matrix) {\n for(int i = matrix.length - 1; i >= matrix.length/2; i-- ){\n for(int j = 0; j < matrix[i].length; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[(matrix.length - 1) - i][j];\n matrix[(matrix.length - 1) - i][j] = temp;\n }\n }\n}", "public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "public void toggle(int x, int y){\n\t\tgrid[x][y]=!grid[x][y];\n\t}", "public GJEllipseShape2D reverse();", "public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}", "@Override\n public void Invert() {\n\t \n }", "private Coordinate flipCorner(int cornerState) {\n Coordinate coordinate;\n coordinate = centerPointCoordinate;\n if (cornerState == 0) {\n angle = 180 + angle;\n } else if (cornerState == 1) {\n angle = 180 - angle;\n } else if (cornerState == 2) {\n angle = 180 - angle;\n } else if (cornerState == 3) {\n angle = 180 + angle;\n }\n return coordinate;\n }", "public void rotateBack() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[i][j] = tmp_grid[i][j];\n\t\t}", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "public static void switchRow(boolean[] row, int x){\n\t\tfor(int i = -1; i < 2; i++){\r\n\t \tif(x+i >= 0 && x+i < row.length)\r\n\t \t\trow[x+i] = !row[x+i]; \r\n\t }\r\n\t}", "private void flipArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(-1);\n arrow.setRotation(50);\n }", "void decreaseAngle() {\n this.strokeAngle -= 3;\n this.updateAcc();\n this.updateStick();\n }", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "void disableFlipMode();", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "private GObject hFlipGObject(GObject o, double x) {\n\t\to.setLocation(2 * x - o.getWidth() - o.getX(), o.getY());\n\t\treturn o;\n\t}", "private void invertStreets() {\n this.canCross = !this.canCross;\n String calleAux = this.calleVerde;\n this.calleVerde = this.calleRojo;\n this.calleRojo = this.calleVerde;\n }", "public static void toggle(boolean[] array){\n for(int i = 1; i < array.length; ++i){\n for(int j = i; j < array.length; j += i){\n array[j] = !array[j];\n }\n }\n }", "public int[] flip() {\n if (used.size() == total)\n return new int[] {};\n\n int index = new Random().nextInt(total);\n while (used.contains(index))\n index = ++index % total;\n used.add(index);\n\n return new int[] {index / cols, index % cols};\n }", "public void flipHidden()\n {\n for(int i=0;i<7;i++)\n {\n if(tableauVisible[i].isEmpty() && !tableauHidden[i].isEmpty())\n tableauVisible[i].forcePush(tableauHidden[i].pop());\n } \n }", "public void reverseEdge(int[][] mat) {\n\t\tint row = mat.length;\n\t\tfor(int i = 0; i < row; i++) {\n\t\t\tfor(int j = i; j < row; j ++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tint temp = mat[i][j];\n\t\t\t\t\tmat[i][j] = mat[j][i];\n\t\t\t\t\tmat[j][i] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void flip(int x, int y){\n\t\tPiece temp = grid[x][y];\n\t\tint tempRepeats; //used to work out how many times in a diagonal to go\n\t\ttry{\n\t\t\t//UP\n\t\t\tfor (int i = 0;i < y; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y-i-1] == null || grid[x][y-i-1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y-i-1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y-(j+1)] = grid[x][y-(j+1)].flip();\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}\n\t\t\t}\n\t\t\t//DOWN\n\t\t\tfor (int i = 0;i < grid.length - y - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y+i+1] == null || grid[x][y+i+1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y+i+1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y+(j+1)] = grid[x][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//LEFT\n\t\t\tfor (int i = 0;i < x; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y] == null || grid[x-(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y] = grid[x-(j+1)][y].flip();\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}\n\t\t\t}\n\n\t\t\t//RIGHT\n\t\t\tfor (int i = 0;i < grid.length - x - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y] == null || grid[x+(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y] = grid[x+(j+1)][y].flip();\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}\n\t\t\t}\n\n\t\t\t//Top left\n\t\t\tif(x < y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y-(i+1)] == null || grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y-(j+1)] = grid[x-(j+1)][y-(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//top right\n\t\t\t\n\t\t\tif(grid.length - x < y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y-(i+1)] == null || grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y-(j+1)] = grid[x+(j+1)][y-(j+1)].flip();\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}\n\t\t\t}\n\t\t\t\n\n\t\t\t//down Right\n\t\t\tif(grid.length - x < grid.length - y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y+(i+1)] == null || grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y+(j+1)] = grid[x+(j+1)][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//down Left\n\t\t\tif(x < grid.length - y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y+(i+1)] == null || grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y+(j+1)] = grid[x-(j+1)][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t}\tcatch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\tfinally {\n\n\t\t}\n\t}", "public void turnOff(int x, int y);", "public void flipH() {\r\n int tmp, sym;\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length / 2; ++col) {\r\n // find the column index of the horizontally symmetric pixel\r\n sym = pixels[row].length - 1 - col;\r\n // swap the pixel value between the two\r\n tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][sym];\r\n pixels[row][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public void changeCurrentSide() {\r\n\tthis.currentSide = getAdversarySide(this.currentSide);\r\n\r\n\tfireChanged(CURRENT_SIDE, NO_SIDE, NO_POSITION);\r\n }", "public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "public void setInverted(boolean inv) {\n/* 69 */ int dat = getData() & 0x7;\n/* 70 */ if (inv) {\n/* 71 */ dat |= 0x8;\n/* */ }\n/* 73 */ setData((byte)dat);\n/* */ }", "public void reset()\t{\n\t\tthis.snake.clear();\r\n\t\tdir = 1;\r\n\t\tthis.snake.add(new Dimension(2,5));\r\n\t\tthis.snake.add(new Dimension(2,6));\r\n\t\tthis.snake.add(new Dimension(2,7));\r\n\t}", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "private void alternateBeeper(){\n\t\tputBeeper();\n\t\tif(frontIsClear()){\n\t\tmove();\n\t\t}\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t} \n\t}", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}", "public void rightOff() {\r\n\t\tsetRightColor(0, 0, 0);\r\n\t}", "void rightInv() {\n startAnimation(rightSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n rightCubeSwap();\n rightCubeSwap();\n rightCubeSwap();\n }", "private void spiral() {\n\t\t// If in top right, increase size and go down right.\n\t\tif(xtraversed == size && ytraversed == size){\n\t\t\tsize++;\n\t\t\tmemory.nextMove = GameConstants.SOUTHEAST;\n\t\t\tytraversed--;\n\t\t\txtraversed++;\n\t\t}\n\t\t\n\t\t// If in top, go right.\n\t\telse if(ytraversed == size){\n\t\t\tmemory.nextMove = GameConstants.EAST;\n\t\t\txtraversed++;\n\t\t}\n\t\t\n\t\t// If in left, go up.\n\t\telse if(xtraversed == -size){\n\t\t\tmemory.nextMove = GameConstants.NORTH;\n\t\t\tytraversed++;\n\t\t}\n\t\t\n\t\t// If in bottom, go left.\n\t\telse if(ytraversed == -size){\n\t\t\tmemory.nextMove = GameConstants.WEST;\n\t\t\txtraversed--;\n\t\t}\n\t\t\n\t\t// If in right, go down.\n\t\telse if(xtraversed == size){\n\t\t\tmemory.nextMove = GameConstants.SOUTH;\n\t\t\tytraversed--;\n\t\t}\n\t\t\n\t\t// Else go right.\n\t\telse {\n\t\t\tmemory.nextMove = GameConstants.EAST;\n\t\t\txtraversed++;\n\t\t}\n\t}", "public void flipCard() {\n this.faceUp = !faceUp;\n }", "private void toggleSelectedAlgorithm(int index) {\n if (selected[index] == true) {\n selected[index] = false;\n } else {\n selected[index] = true;\n }\n }", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public static void spiralTraversalAlternate(int[][] input){\n int k = 0;\n int l = 0;\n int m = input.length - 1;\n int n = input[0].length - 1;\n while(k <= m && l <= n){\n for(int j = l ; j <= n ; j++){\n System.out.print(input[k][j] + \" \");\n }\n k++;\n for(int i = k; i <= m ; i++){\n System.out.print(input[i][n] + \" \");\n }\n n--;\n if(k <= m){\n for(int j = n ; j >= l ; j--){\n System.out.print(input[m][j] + \" \");\n }\n m--;\n }\n if(l <= n){\n for(int i = m; i >= k; i--){\n System.out.print(input[i][l] + \" \");\n }\n l++;\n }\n }\n }", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "public void flipDirection(Direction flip){\n \tswitch (direction){\n\t\t\tcase NORTH: \n\t\t\t\tdirection = Direction.SOUTH;\n\t\t\t\tbreak;\n\t\t\tcase NORTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.NORTHWEST;\n\t\t\t\telse direction = Direction.SOUTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase EAST:\n\t\t\t\tdirection = Direction.WEST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.SOUTHWEST;\n\t\t\t\telse direction = Direction.NORTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTH:\n\t\t\t\tdirection = Direction.NORTH;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHWEST:\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.SOUTHEAST;\n\t\t\t\telse direction = Direction.NORTHWEST;\n\t\t\t\tbreak;\n\t\t\tcase WEST:\n\t\t\t\tdirection = Direction.EAST;\n\t\t\t\tbreak;\n\t\t\tdefault: //NORTHWEST\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.NORTHEAST;\n\t\t\t\telse direction = Direction.SOUTHWEST;\n\t\t\t\tbreak;\n \t\t}\n }", "public void flip_it(int i){\n // flip the coins i and i + 1\n int ni = (i+1)%board.length; // if (i+1 == board.length) ni = 0;\n\n int tmp = board[i];\n\n board[i] = board[ni];\n board[ni] = tmp;\n }", "void invertAllBits();", "void unsetDirection();", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public BackgroundRippleObject revive(){\n return this.revive(\n randomPosInObjBounds(),\n makeRandomColor()\n );\n }", "void toggle();", "public void reverseDirectionX()\n\t{\n\t\t\n\t\tvx = -vx;\n\t\t\n\t}", "public void setSquareSide (int newLength){\r\n model.setSideLength(newLength);\r\n view.resetView(model);\r\n }", "public void onMirrorHorizontal() {\n mirror(TransformDesign.MIRROR_HORIZONTAL, 0.0f);\n }", "public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "private void Lose(){\n touchable = false;\n RevealAll();\n }", "public void invert() {\n int len= currentIm.getRows() * currentIm.getCols();\n \n // invert all pixels (leave alpha/transparency value alone)\n \n // invariant: pixels 0..p-1 have been complemented.\n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= 255 - DM.getRed(rgb);\n int blue= 255 - DM.getBlue(rgb);\n int green= 255 - DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n currentIm.setPixel(p,\n (alpha << 24) | (red << 16) | (green << 8) | blue);\n }\n }", "void enableFlipMode();", "void setStraight(boolean straight);", "public void toggle(){\r\n isDown = !isDown;\r\n }" ]
[ "0.8046064", "0.735856", "0.7201689", "0.7129303", "0.7103483", "0.64826", "0.626356", "0.6237691", "0.6008805", "0.5980713", "0.59793675", "0.59605896", "0.5960539", "0.5935375", "0.58678293", "0.5860861", "0.5853912", "0.58469456", "0.5832614", "0.5771318", "0.5751832", "0.5722601", "0.5722601", "0.5722601", "0.5697656", "0.5661357", "0.5638796", "0.5636001", "0.5616755", "0.56165904", "0.5596459", "0.5596089", "0.55821705", "0.557326", "0.5559295", "0.555769", "0.5538007", "0.5529896", "0.552855", "0.5527584", "0.5526607", "0.5525216", "0.55075604", "0.548194", "0.5458404", "0.5449562", "0.5434317", "0.5420385", "0.54121983", "0.53955656", "0.53827417", "0.53788686", "0.5360275", "0.53210235", "0.5283117", "0.52671117", "0.52593684", "0.52415705", "0.5236541", "0.5228753", "0.5228027", "0.5213193", "0.52090764", "0.52033705", "0.52030236", "0.51986295", "0.5196473", "0.5193929", "0.5192255", "0.5191673", "0.5189518", "0.51738274", "0.51722014", "0.51665163", "0.5158568", "0.51563144", "0.5147642", "0.5140327", "0.51395994", "0.51342595", "0.5132707", "0.5125802", "0.51250887", "0.5104043", "0.51000684", "0.5095287", "0.50948954", "0.5091502", "0.5089296", "0.5083941", "0.50802565", "0.5073145", "0.5072076", "0.5071616", "0.5060095", "0.5057902", "0.5056351", "0.50544983", "0.50535893", "0.50496227" ]
0.80603546
0
/ flips the sidemost rows or columns with the opposite sides (2)
public Squarelotron sideFlip(String side);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void flipHorizontalAxis(int[][] matrix) {\n for(int i = matrix.length - 1; i >= matrix.length/2; i-- ){\n for(int j = 0; j < matrix[i].length; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[(matrix.length - 1) - i][j];\n matrix[(matrix.length - 1) - i][j] = temp;\n }\n }\n}", "public void flipBoard() {\r\n\t\tfor (int i = 0; i < this.SIZE/2; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tswap(j, this.SIZE - 1 - i, j, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public Squarelotron inverseDiagonalFlip(int ring);", "public void flipV() {\r\n int tmp, sym;\r\n for (int col = 0; col < pixels.length; ++col) {\r\n for (int row = 0; row < pixels[col].length / 2; ++row) {\r\n // find the column index of the vertically symmetric pixel\r\n sym = pixels[col].length - 1 - row;\r\n // swap the pixel value between the two\r\n tmp = pixels[col][row];\r\n pixels[col][row] = pixels[col][sym];\r\n pixels[col][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public void flipH() {\r\n int tmp, sym;\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length / 2; ++col) {\r\n // find the column index of the horizontally symmetric pixel\r\n sym = pixels[row].length - 1 - col;\r\n // swap the pixel value between the two\r\n tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][sym];\r\n pixels[row][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "protected AbstractMatrix3D vColumnFlip() {\n\tif (columns>0) {\n\t\tcolumnZero += (columns-1)*columnStride;\n\t\tcolumnStride = -columnStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "public Squarelotron mainDiagonalFlip(int ring);", "public void flip() {\n float tx = x1;\n float ty = y1;\n x1 = x2;\n y1 = y2;\n x2 = tx;\n y2 = ty;\n nx = -nx;\n ny = -ny;\n }", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "public static void flipHorizontalAxis(int[][] matrix){\n\n int beginIndex = 0;\n int endIndex = (matrix.length - 1);\n int[] begin = matrix[beginIndex];\n int[] end = matrix[endIndex];\n int[] temp;\n\n\n while(endIndex > beginIndex){\n //swap the arrays with a temp variable\n temp = Arrays.copyOf(begin, begin.length);\n begin = Arrays.copyOf(end, end.length);\n end = Arrays.copyOf(temp, temp.length);\n\n //update the new arrays in the matrix\n matrix[beginIndex] = begin;\n matrix[endIndex] = end;\n\n //update the new indexes\n beginIndex++;\n endIndex--;\n\n //move begin and end to the next set to be swapped\n begin = matrix[beginIndex];\n end = matrix[endIndex];\n }\n\n }", "public Matrix opposite(){\r\n \tMatrix opp = Matrix.copy(this);\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\topp.matrix[i][j]=-this.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "public void compactRight() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la columna anterior\n\t// de la misma fila es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[i][j] == EMPTY && board[i][j - 1] != EMPTY) {\n\t\t board[i][j] = board[i][j - 1];\n\t\t board[i][j - 1] = EMPTY;\n\t\t compactRight();\n\t\t}\n\t }\n\t}\n }", "protected AbstractMatrix3D vRowFlip() {\n\tif (rows>0) {\n\t\trowZero += (rows-1)*rowStride;\n\t\trowStride = -rowStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "private static String[] flipGridVertical(String[] grid) {\n\t\tString[] tmp = new String[grid.length];\n\t\tfor(int row = 0; row < grid.length; row++) {\n\t\t\ttmp[grid.length - (row+1)] = grid[row];\n\t\t}\n\t\treturn tmp;\n\t}", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "public void flipHidden()\n {\n for(int i=0;i<7;i++)\n {\n if(tableauVisible[i].isEmpty() && !tableauHidden[i].isEmpty())\n tableauVisible[i].forcePush(tableauHidden[i].pop());\n } \n }", "public void flipHorizontal() {\n\t\t\tfor(int row = 0; row < TILE_DIM; row++) {\n\t\t\t\tString tmp = \"\";\n\t\t\t\tfor(int col = TILE_DIM-1; col >= 0; col--) {\n\t\t\t\t\ttmp += this.data[row].charAt(col);\n\t\t\t\t}\n\t\t\t\tthis.data[row] = tmp;\n\t\t\t}\n\t\t\tcomputeHashes();\n\t\t}", "public void flip(int x, int y){\n\t\tPiece temp = grid[x][y];\n\t\tint tempRepeats; //used to work out how many times in a diagonal to go\n\t\ttry{\n\t\t\t//UP\n\t\t\tfor (int i = 0;i < y; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y-i-1] == null || grid[x][y-i-1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y-i-1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y-(j+1)] = grid[x][y-(j+1)].flip();\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}\n\t\t\t}\n\t\t\t//DOWN\n\t\t\tfor (int i = 0;i < grid.length - y - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y+i+1] == null || grid[x][y+i+1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y+i+1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y+(j+1)] = grid[x][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//LEFT\n\t\t\tfor (int i = 0;i < x; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y] == null || grid[x-(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y] = grid[x-(j+1)][y].flip();\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}\n\t\t\t}\n\n\t\t\t//RIGHT\n\t\t\tfor (int i = 0;i < grid.length - x - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y] == null || grid[x+(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y] = grid[x+(j+1)][y].flip();\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}\n\t\t\t}\n\n\t\t\t//Top left\n\t\t\tif(x < y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y-(i+1)] == null || grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y-(j+1)] = grid[x-(j+1)][y-(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//top right\n\t\t\t\n\t\t\tif(grid.length - x < y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y-(i+1)] == null || grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y-(j+1)] = grid[x+(j+1)][y-(j+1)].flip();\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}\n\t\t\t}\n\t\t\t\n\n\t\t\t//down Right\n\t\t\tif(grid.length - x < grid.length - y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y+(i+1)] == null || grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y+(j+1)] = grid[x+(j+1)][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t\t//down Left\n\t\t\tif(x < grid.length - y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y+(i+1)] == null || grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y+(j+1)] = grid[x-(j+1)][y+(j+1)].flip();\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}\n\t\t\t}\n\n\t\t}\tcatch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\tfinally {\n\n\t\t}\n\t}", "public static int[][][] flipVertically(int[][][] source) {\n\n\t\tint[][][] verticalTemp = source;\n\t\tint[][][] vertical = new int[source.length][source[0].length][3]; \n\t\tint rows = (vertical.length) - 1; \n\n\t\t// Using one loop to swift the content\n\t\tfor (int i = 0; i < (rows + 1); i++) { \n\t\t\tvertical[i] = verticalTemp[rows - i];\n\t\t}\n\t\treturn vertical;\n\t}", "private void transpose() {\n Utils.transpose(this._board);\n }", "public void reverseEdge(int[][] mat) {\n\t\tint row = mat.length;\n\t\tfor(int i = 0; i < row; i++) {\n\t\t\tfor(int j = i; j < row; j ++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tint temp = mat[i][j];\n\t\t\t\t\tmat[i][j] = mat[j][i];\n\t\t\t\t\tmat[j][i] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int[] flip() {\n if (used.size() == total)\n return new int[] {};\n\n int index = new Random().nextInt(total);\n while (used.contains(index))\n index = ++index % total;\n used.add(index);\n\n return new int[] {index / cols, index % cols};\n }", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "public static int[][] flipBoard(final int[][] board) {\n final int numRows = board.length;\n final int numCols = board[0].length;\n\n final int[][] flippedBoard = cloneBoard(board);\n\n for (int r = 0; r < numRows; r++) {\n for (int c = 0; c < numCols; c++) {\n flippedBoard[r][c] *= -1;\n }\n }\n return flippedBoard;\n }", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "public void compactDown() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la fila anterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[j][i] == EMPTY && board[j - 1][i] != EMPTY) {\n\t\t board[j][i] = board[j - 1][i];\n\t\t board[j - 1][i] = EMPTY;\n\t\t compactDown();\n\t\t}\n\t }\n\t}\n }", "public void rotateBack() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[i][j] = tmp_grid[i][j];\n\t\t}", "@Override\n\tpublic Squarelotron inverseDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips with the inverse diagonal\n\t\tfor(int i = ring-1; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[size-i-1][size-ring];\n\t\t\tnewSquarelotron[size-i-1][size-ring]=numberRt;\n\t\t}\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-ring][size-i-1];\n\t\t\tnewSquarelotron[size-ring][size-i-1]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public void decrementColumn() {\n setRowAndColumn(row, Math.max(column - 1, 0));\n }", "public static void main(String[] args) {\n int[][] inp = new int[][] {\n {1,2,3},\n {5,6,7},\n {9,10,11}};\n \n int temp;\n \n\t for(int i = inp.length-1,j=0; i>=0 ; i--,j=0)\n {\n System.out.print(inp[i][j] + \" \");\n\t\t \n temp = i; // store old row where we started \n \n\t\t while(i+1 < inp.length && j+1 < inp[0].length)\n {\n System.out.print(inp[i+1][j+1] + \" \"); // keep print right diagonal\n i++;j++;\n }\n \n\t\t i = temp; // restore old row\n \n\t\t System.out.println();\n\t\t \n\t\t // special case - when we switch from processing row to processing column\n if(i == 0)\n {\n\t\t\t // now, column will go from 1 to inp[0].length-1\n\t\t\t \n for (int k = 1; k < inp[0].length; k++) {\n\n\t\t\t\t temp = k; // save old column\n \n\t\t\t\t System.out.print(inp[i][k] + \" \");\n\t\t\t\t \n\t\t\t\t // keep getting right diagonal\n while (i + 1 < inp.length && k + 1 < inp[0].length) {\n System.out.print(inp[i + 1][k + 1] + \" \");\n i++;\n k++;\n }\n \n\t\t\t\t k = temp;\n \n\t\t\t\t i = 0;\n \n\t\t\t\t System.out.println();\n\n }\n }\n }\n \n }", "public Squarelotron leftRightFlip(int ring);", "public void toggle(int x, int y) {\r\n\r\n //The value at index [y][x] is multiplied by -1, toggling it between -1 and 1, and stored\r\n gameBoard[y][x] *= -1; \r\n }", "public Squarelotron upsideDownFlip(int ring);", "public void setFlipped() {\n\t\thasFlipped = true;\n\t}", "public void flip(int bitIndex);", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "void flip() {\n _flipped = !_flipped;\n }", "public void toggle(int x, int y){\n\t\tgrid[x][y]=!grid[x][y];\n\t}", "void reverseDirection();", "static public int[][] flipAndInvertImage(int[][] A) {\n for(int i =0;i<A.length;i++){\n processARow(A[i]);\n }\n return A;\n }", "public boolean isOvert() {\n\t\t// Even columns indices are overts in the upper half of the board\n\t\treturn (row + column) % 2 != 0;\n\t}", "@Override\n\t/*\n\t * \tThis method performs the Upside-Down Flip of the squarelotron, as described above,\n\t\tand returns the new squarelotron. The original squarelotron should not be modified\n\t\t(we will check for this).(non-Javadoc)\n\t * @see squarelotron.SquarelotronMethods#upsideDownFlip(int)\n\t */\n\tpublic Squarelotron upsideDownFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\t//copies the 2D array associated with the Squarelotron \n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//this loop takes the first and last rows and flips their numbers\n\t\t//starts at the ring-1 [so for ring 1, this is [0], for ring 2 [1], etc.] goes until j = the length of current row minus the ring\n\t\t//therefore if the ring is one and the current row is 0, it finds the length of [0] and then subtracts one; for example\n\t\t//if the squarelotron is a 5x5 with input of ring 1 the starting point would be 0 and ending point of j would be 4, advances by 1\n\t\tfor(int j = ring-1; j <= newSquarelotron[ring-1].length - ring; j++){\n\t\t\t//assigns number to the first row and first index so if the ring is 1, [0][0] and then iterates\n\t\t\t//the second iteration would be [0][1], the third [0][2], etc. For example if it is the second ring: first iteration \n\t\t\t//[1][1], second->[1][2]\n\t\t\tint number = newSquarelotron[ring-1][j];\n\t\t\t//selects example: r 1 [0][0] and sets it equal to (if 5x5) [4][0], second iteration, [4][1]\n\t\t\tnewSquarelotron[ring-1][j]=newSquarelotron[size-ring][j];\n\t\t\t//sets the [4][0] to [0][0] for the first iteration\n\t\t\tnewSquarelotron[size-ring][j] = number;\n\t\t}\n\t\t\n\t\t//the following method flips the non-1st and last parts of the rings needs to only go half way\n\t\t//example size 7x7, ring 1; i = 1 ends at 7-1=5/2 =2 or for 8x8: ring1 starts at i=1 ends at 8-2=6/2=3\n\t\tfor(int i = ring; i <=(size-2)/2; i++){\n\t\t\t//left side\n\t\t\t//using example 7x7: 1st iteration -> [1][0], i=2, 2nd iteration [2][0] \n\t\t\tint numberLft = newSquarelotron[i][ring-1];\n\t\t\t//example: 1st iteration ->[1][0] = [5][0], 2nd iteration -> [2][0]=[4][0], 3rd->[3][0]=[3][0] (wouldnt happen in 7x7)\n\t\t\t//example 8x8 ring 1: 1st->[1][0]=[6][0], [2][0]=[5][0],[3][0]=[4][0]; [i ends at 3]\n\t\t\tnewSquarelotron[i][ring-1] = newSquarelotron[size-i-ring][ring-1];\n\t\t\t//example:1st iteration ->[5][0]=[1][0], second[4][0]=[2],no third\n\t\t\tnewSquarelotron[size-ring-i][ring-1] = numberLft;\n\t\t\t//right side\n\t\t\t//7x7/ring=1: 1st iteration [1][6],2nd:[2][6]\n\t\t\tint numberRt = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring] = newSquarelotron[size-i-ring][size-ring];\n\t\t\t//1st:7-1-1=[5][6]=[1][6]\n\t\t\tnewSquarelotron[size-i-ring][size-ring] = numberRt;\n\t\t}\n\t\t//outputs the new Squarelotron with the new 2D array\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t\t\n\t}", "public void flipOverY(){\n int len = tileChars.length;\r\n \r\n // swap columns\r\n for (int i = 0; i < len; i++)\r\n {\r\n for (int j = 0; j < len / 2; j++)\r\n {\r\n char temp = tileChars[i][j];\r\n tileChars[i][j] = tileChars[i][len - j - 1];\r\n tileChars[i][len - j - 1] = temp;\r\n }\r\n }\r\n \r\n boolean temp = this.matchFound[1];\r\n this.matchFound[1] = this.matchFound[3];\r\n this.matchFound[3] = temp;\r\n \r\n this.recalculateEdges(); //fix edges\r\n }", "public void verticalFlip(Image im, int x, int y, int pixels, GraphicsContext gc2) {\n //permite que la imagen se pueda editar\n imageView = new ImageView(im);\n SnapshotParameters snap = new SnapshotParameters();\n //selecciona el bloque que se va a voltear\n snap.setViewport(new Rectangle2D(x, y, pixels, pixels));\n im = imageView.snapshot(snap, null);\n //voltea la imagen\n gc2.drawImage(im, 0, 0, pixels, pixels, x + pixels, y, -pixels, pixels);\n }", "public void removeHorizontalSeam(int[] seam) {\n //handle exceptions\n for (int columns = 0; columns < width; columns++) {\n for (int rows = seam[columns]; rows < height - 1; rows++) {\n this.pic.set(columns, rows, this.pic.get(columns, rows + 1));\n }\n }\n height--;\n }", "public void removeVerticalSeam(int[] seam) {\n for (int rows = 0; rows < height; rows++) {\n for (int columns = seam[rows]; columns < width - 1; columns++) {\n this.pic.set(columns, rows, this.pic.get(columns + 1, rows));\n }\n }\n width--;\n }", "public void decrementRow() {\n setRowAndColumn(Math.max(row - 1, 0), column);\n }", "public Piece flip(){\n if(this == BLACK){\n return WHITE;\n }\n else{\n return BLACK;\n }\n }", "private void removeColumn() {\n gridWidth--;\n for (ArrayList<EscapeBlock> row : grid) { // for each row\n this.remove(row.get(gridWidth)); // remove the last block from the UI\n for(EscapeBlock block : row)\n block.disconnectAll();\n row.remove(gridWidth); // remove the last block from the grid\n }\n \n }", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "public void transpose() {\n // Follow this plan: \n // (1) Create a new ImageArray ia, using currentIM's row-major order array\n // and rows and columns, but swap the roles of its numbers\n // of rows and columns.\n // (2) Store the transpose of the currentIm array in ia, using currentIm's\n // 2-parameter getPixel function and ia's 3-parameter setPixel\n // function.\n // (3) assign ia to currentIm.\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n ImageArray ia= new ImageArray(currentIm.getRmoArray(), cols, rows);\n \n //Copy each element ImageArray[r,c] to ia[c,r]\n // invariant: rows 0..r-1 have been copied to ia[.., 0..r-1]\n for (int r= 0; r != rows; r= r+1)\n // invariant: elements [r..0..c-1] have been copied to ia[0..c-1, r]\n for (int c= 0; c != cols; c= c+1) {\n ia.setPixel(c, r, currentIm.getPixel(r,c));\n }\n \n currentIm= ia;\n }", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "private void alternateBeeper(){\n\t\tputBeeper();\n\t\tif(frontIsClear()){\n\t\tmove();\n\t\t}\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t} \n\t}", "public void invert() {\n \n float[] result = new float[16];\n System.arraycopy(IDENTITY, 0, result, 0, 16);\n \n for(int i = 0; i < 4; i++){\n int i4 = i*4;\n \n // make sure[i,i] is != 0\n \n for(int j = 0; matrix[i4+i] == 0 && j < 4; j++){\n if(j != i && matrix[j*4+i] != 0){\n transform(i, 1, j, matrix, result);\n }\n }\n \n // ensure tailing 0s\n \n for(int j = 0; j < i; j++){\n if(matrix[i4+j] != 0){\n transform(i, -matrix[i4+j]/matrix[j*4+j], j, matrix, result);\n }\n }\n\n if(matrix[i4+i] == 0){\n throw new IllegalArgumentException(\"Not invertable\");\n }\n\n // dump(\"row \"+i+\" leading zeros\", matrix, result);\n }\n \n for(int i = 3; i >= 0; i--){\n int i4 = i*4;\n if(matrix[i4+i] != 1){\n float f = matrix[i4+i];\n matrix[i4+i] = 1;\n for(int j = 0; j < 4; j++){\n result[i4+j] /= f;\n if(j > i){\n matrix[i4+j] /= f;\n }\n }\n }\n\n// dump(\"row \"+i+\" leading 1\", matrix, result);\n \n for(int j = i+1; j < 4; j++){\n if(matrix[i*4+j] != 0){\n transform(i, -matrix[i*4+j], j, matrix, result);\n }\n }\n\n// dump(\"row \"+i+\" tailing 0\", matrix, result);\n\n }\n\n matrix = result;\n }", "private void compactHorizontally (List<List<NodeRealizer>> cellColumns)\n {\n int centerIndex = (cellColumns.size () - 1) / 2;\n List<NodeRealizer> minXList = cellColumns.get (centerIndex);\n List<NodeRealizer> maxXList = cellColumns.get (centerIndex);\n for (int i = 1; i <= centerIndex; i++)\n {\n List<NodeRealizer> leftList = cellColumns.get (centerIndex - i);\n moveToRight (leftList, minXList);\n minXList = leftList;\n List<NodeRealizer> rightList = cellColumns.get (centerIndex + i);\n moveToLeft (rightList, maxXList);\n maxXList = rightList;\n }\n if (cellColumns.size () % 2 == 0)\n {\n List<NodeRealizer> rightList = cellColumns.get (cellColumns.size () - 1);\n moveToLeft (rightList, maxXList);\n }\n }", "public void swapColumns( int c1, int c2 ) {\n\tfor (int r = 0; r < this.size(); r++){\n\t Object c1Val = matrix[r][c1];\n\t matrix[r][c1] = matrix[r][c2];\n\t matrix[r][c2] = c1Val;\n\t}\n }", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "public static Matrix opposite(Matrix amat){\r\n \tMatrix opp = Matrix.copy(amat);\r\n \tfor(int i=0; i<amat.nrow; i++){\r\n \t\tfor(int j=0; j<amat.ncol; j++){\r\n \t\topp.matrix[i][j]=-amat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}", "Direction invert() {\n switch (this) {\n case NORTH: return SOUTH;\n case SOUTH: return NORTH;\n case EAST: return WEST;\n case WEST: return EAST;\n case NORTH_EAST: return SOUTH_WEST;\n case NORTH_WEST: return SOUTH_EAST;\n case SOUTH_EAST: return NORTH_WEST;\n case SOUTH_WEST: return NORTH_EAST;\n default: return NULL;\n }\n }", "public void flip_it(int i){\n // flip the coins i and i + 1\n int ni = (i+1)%board.length; // if (i+1 == board.length) ni = 0;\n\n int tmp = board[i];\n\n board[i] = board[ni];\n board[ni] = tmp;\n }", "public static int[][][] flipHorizontally(int[][][] source) {\n\n\t\t// Getting the source in a temp Matrix\n\t\tint[][][] horizontalTemp = source; \n\t\t// Creating the new matrix\n\t\tint[][][] horizontal = new int[source.length][source[0].length][3];\n\t\tint columns = (horizontal[0].length); \n\t\tint rows = (horizontal.length);\n\n\t\tfor (int j = 0; j < rows; j++) { // Creating two loop to flip\n\t\t\tfor (int i = 0; i < columns; i++) { // To flip horizontally\n\t\t\t\thorizontal[j][i] = horizontalTemp[j][(columns - i) - 1];\n\t\t\t}\n\t\t}\n\n\t\treturn horizontal;\n\t}", "public int flip(int i, int j){\n int oldScore = 0;\n int newScore = 0;\n int current = lattice[i][j].getValue();\n if(current*lattice[(i-1+n)%n][j].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //up\n if(current*lattice[(i+1)%n][j].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //down\n if(current*lattice[i][(j-1+n)%n].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //left\n if(current*lattice[i][(j+1)%n].getValue() < 0)\n newScore+=2;\n else oldScore+=2; //right\n //Perform flip\n lattice[i][j].flip();\n //Update score\n score -= oldScore;\n score += newScore;\n //Change nums negative and positives\n if(lattice[i][j].getValue() < 0){\n numNegatives++;\n }else{\n numNegatives--;\n }\n //Return score\n return score;\n }", "protected AbstractMatrix3D vSliceFlip() {\n\tif (slices>0) {\n\t\tsliceZero += (slices-1)*sliceStride;\n\t\tsliceStride = -sliceStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public void flip() {\n flipRecur(root);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n dialog.setPadding(new Insets(0,0,0,7));\n }", "public void stitchCells() {\r\n int x;\r\n int y;\r\n ACell currCell;\r\n ACell nextRight;\r\n ACell nextDown;\r\n\r\n for (x = -1; x < this.blocks; x += 1) {\r\n for (y = -1; y < this.blocks; y += 1) {\r\n\r\n currCell = this.indexHelp(x, y);\r\n nextRight = this.indexHelp(x + 1, y);\r\n nextDown = this.indexHelp(x, y + 1);\r\n\r\n currCell.stitchCells(nextRight, nextDown);\r\n }\r\n }\r\n }", "public void onMirrorVertical() {\n mirror(TransformDesign.MIRROR_VERTICAL, 0.0f);\n }", "public void swapBlocks(int row0, int col0, int row1, int col1, int nr, int nc) {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int ht= rows/nr;\n int wd= cols/nc;\n for (int r= 0; r < ht; r= r+1) {\n for (int c= 0; c < wd; c= c+1) {\n currentIm.swapPixels(row0*ht+r, col0*wd+c, row1*ht+r, col1*wd+c);\n }\n }\n }", "private static int reverse(int i) {\n\t\tint r = 0;\n\t\tfor(int b = 0; b < TILE_DIM; b++) {\n\t\t\tr = r << 1;\n\t\t\tr += (i % 2);\n\t\t\ti = i >> 1;\n\t\t}\n\t\treturn r;\n\t}", "private Side secondSide(final Cell cell, final Side prev) {\n switch (cell.getCellNdx()) {\n case 8:\n case 12:\n case 14:\n return LEFT;\n case 1:\n case 9:\n case 13:\n return BOTTOM;\n case 2:\n case 3:\n case 11:\n return RIGHT;\n case 4:\n case 6:\n case 7:\n return TOP;\n case 5:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case LEFT:\n return cell.isFlipped() ? BOTTOM : TOP;\n case RIGHT:\n return cell.isFlipped() ? TOP : BOTTOM;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n case 10:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case BOTTOM:\n return cell.isFlipped() ? RIGHT : LEFT;\n case TOP:\n return cell.isFlipped() ? LEFT : RIGHT;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n default:\n final String m = \"Attempt to use a trivial Cell as a node: \" + cell;\n throw new IllegalStateException(m);\n }\n }", "void colFull(int col);", "public static void switchRow(boolean[] row, int x){\n\t\tfor(int i = -1; i < 2; i++){\r\n\t \tif(x+i >= 0 && x+i < row.length)\r\n\t \t\trow[x+i] = !row[x+i]; \r\n\t }\r\n\t}", "public void invert() {\n int len= currentIm.getRows() * currentIm.getCols();\n \n // invert all pixels (leave alpha/transparency value alone)\n \n // invariant: pixels 0..p-1 have been complemented.\n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= 255 - DM.getRed(rgb);\n int blue= 255 - DM.getBlue(rgb);\n int green= 255 - DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n currentIm.setPixel(p,\n (alpha << 24) | (red << 16) | (green << 8) | blue);\n }\n }", "@Override\n public void Invert() {\n\t \n }", "public void horizontalFlip(Image im, int x, int y, int pixels, GraphicsContext gc2) {\n //permite que la imagen se pueda editar\n imageView = new ImageView(im);\n SnapshotParameters snap = new SnapshotParameters();\n //selecciona el bloque que se va a voltear\n snap.setViewport(new Rectangle2D(x, y, pixels, pixels));\n im = imageView.snapshot(snap, null);\n //voltea la imagen\n gc2.drawImage(im, 0, 0, pixels, pixels, x, y + pixels, pixels, -pixels);\n }", "public PImage flipVH(PImage img)\n {\n PImage flipped = createImage(img.width,img.height,RGB);\n flipped.loadPixels();\n for(int i = 0; i < img.width; i++)\n {\n for(int j = 0; j < img.height; j++)\n {\n int loc = i + j * flipped.width;\n int locFlipped = (img.width-i-1) + (img.height-j-1) * flipped.width;\n if(img.pixels[loc] == color(0,0,0))\n {\n flipped.pixels[locFlipped] = color(0,0,0);\n }\n else\n {\n flipped.pixels[locFlipped] = color(255,255,255);\n }\n }\n }\n flipped.updatePixels();\n return flipped;\n }", "public void removeHorizontalSeam(int[] seam) {\n Picture original = picture;\n Picture transpose = new Picture(original.height(), original.width());\n\n for (int w = 0; w < transpose.width(); w++) {\n for (int h = 0; h < transpose.height(); h++) {\n transpose.set(w, h, original.get(h, w));\n }\n }\n\n this.picture = transpose;\n transpose = null;\n original = null;\n\n // call removeVerticalSeam\n removeVerticalSeam(seam);\n\n // Transpose back.\n original = picture;\n transpose = new Picture(original.height(), original.width());\n\n for (int w = 0; w < transpose.width(); w++) {\n for (int h = 0; h < transpose.height(); h++) {\n transpose.set(w, h, original.get(h, w));\n }\n }\n\n this.picture = transpose;\n transpose = null;\n original = null;\n }", "static void TwoDimTrav(int[][] arr, int row, int col){\n\n int[] dr = new int[]{ -1, 1, 0, 0};\n int[] dc = new int[]{ 0, 0, 1, -1};\n\n for(int i = 0; i < 4; i++){\n int newRow = row + dr[i];\n int newCol = col + dc[i];\n\n if(newRow < 0 || newCol < 0 || newRow >= arr.length || newCol >= arr[0].length)\n continue;\n\n // do your code here\n\n }\n\n // All Directions\n // North, South, East, West, NW NE SW SE\n // dr = [ -1, 1, 0, 0 -1, -1, 1, 1 ]\n // dc = [ 0, 0, 1, -1 -1, 1, 1, -1 ]\n\n// int[] dr = new int[]{ -1, 1, 0, 0, -1, -1, 1, 1};\n// int[] dc = new int[]{ 0, 0, 1, -1, -1, 1, -1, 1};\n//\n// for(int i = 0; i < 8; i++){\n// int newRow = row + dr[i];\n// int newCol = col + dc[i];\n//\n// if(newRow < 0 || newCol < 0 || newRow >= arr.length || newCol >= arr[0].length)\n// continue;\n//\n// // do your code here\n//\n// }\n }", "@Override\n\tpublic Squarelotron mainDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//loops through and flips along the main diagonal\n\t\tfor(int i = ring; i <= (size-ring); i++){\n\t\t\tint numberRt = newSquarelotron[ring-1][i];\n\t\t\tnewSquarelotron[ring-1][i] = newSquarelotron[i][ring-1];\n\t\t\tnewSquarelotron[i][ring-1]=numberRt;\n\t\t\tint numberLft = newSquarelotron[i][size-ring];\n\t\t\tnewSquarelotron[i][size-ring]= newSquarelotron[size-ring][i];\n\t\t\tnewSquarelotron[size-ring][i]=numberLft;\n\t\t}\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "private void swapCol(int col1, int col2) {\r\n List<Integer> columnTmp = new ArrayList<Integer>();\r\n for (int row = 0; row < 9; row++)\r\n columnTmp.add(solution[row][col1]);\r\n for(int row = 0; row<9; row++)\r\n solution[row][col1] = solution[row][col2];\r\n for(int row = 0; row<9; row++)\r\n solution[row][col2] = columnTmp.get(row);\r\n }", "private void checkVertical() {\n\n for(int i = 0; i < 2; i++){ // winning column can be either 0-1-2-(3) or (0)-1-2-3\n for (int j = 0; j < stateArray[3].length; j++) {\n\n if (check3Vertical(i, j)) {\n maskResultArray[stateArray[i][j]] = 1;\n maskArray[i][j] = 1;\n maskArray[i+1][j] = 1;\n maskArray[i+2][j] = 1;\n }\n\n }\n }\n\n }", "public void flipDirection(Direction flip){\n \tswitch (direction){\n\t\t\tcase NORTH: \n\t\t\t\tdirection = Direction.SOUTH;\n\t\t\t\tbreak;\n\t\t\tcase NORTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.NORTHWEST;\n\t\t\t\telse direction = Direction.SOUTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase EAST:\n\t\t\t\tdirection = Direction.WEST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.SOUTHWEST;\n\t\t\t\telse direction = Direction.NORTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTH:\n\t\t\t\tdirection = Direction.NORTH;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHWEST:\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.SOUTHEAST;\n\t\t\t\telse direction = Direction.NORTHWEST;\n\t\t\t\tbreak;\n\t\t\tcase WEST:\n\t\t\t\tdirection = Direction.EAST;\n\t\t\t\tbreak;\n\t\t\tdefault: //NORTHWEST\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.NORTHEAST;\n\t\t\t\telse direction = Direction.SOUTHWEST;\n\t\t\t\tbreak;\n \t\t}\n }", "public Direction invertTurns(){\n switch(this){\n case SPIN_BACK:\n return SPIN_BACK;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public void stitchCells(ACell right, ACell down) {\r\n this.right = right;\r\n right.left = this;\r\n\r\n this.bottom = down;\r\n down.top = this;\r\n }", "public abstract void toggleSortOrder(int column);", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "public void rotateColumn(int a, int b) {\n for (int i = 0; i < b; i++) {\n char last = screen[screen.length - 1][a];\n for (int j = screen.length - 2; j >= 0; j--) {\n screen[j + 1][a] = screen[j][a];\n }\n screen[0][a] = last;\n }\n }", "public static void transpose(int[][] myArr2D)\n {\n if(isRect(myArr2D)== false)\n {\n System.out.println(\"The array is not a rectangle\");\n }\n else\n {\n for( int row = 0; row < myArr2D.length; row++)\n { \n for( int col = row; col < myArr2D.length; col++)\n { \n int z = myArr2D[row][col];\n myArr2D[row][col] = myArr2D[col][row];\n myArr2D[col][row] = z;\n }\n }\n }\n }", "private void swapFirstTwoTiles() {\n ((Board) boardManager.getBoard()).swapTiles(0, 0, 0, 1);\n }", "public static void flipVertical (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n\n // Temp image, to store pixels as we reverse everything\n BufferedImage newBi = new BufferedImage (xSize, ySize, 3); \n\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n int rgb = bi.getRGB(i,j);\n newBi.setRGB(i,ySize-j-1, rgb); //flip the pixels\n }\n }\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n bi.setRGB(i,j,newBi.getRGB(i,j)); // set each pixel of the original image \n }\n }\n redoList.add(deepCopy(bi)); // add the new image to the redo list\n }" ]
[ "0.7292256", "0.707873", "0.67825574", "0.6694961", "0.6607876", "0.64992714", "0.6422631", "0.6359594", "0.63073415", "0.6255062", "0.6246515", "0.6215183", "0.6154194", "0.6136281", "0.6117263", "0.6077343", "0.6053387", "0.6009957", "0.5975448", "0.5957598", "0.59545034", "0.593365", "0.59172237", "0.59018415", "0.58671916", "0.58600354", "0.5823875", "0.58224237", "0.58207905", "0.57910305", "0.5776938", "0.5776938", "0.5776938", "0.5774238", "0.5754162", "0.57384384", "0.5729523", "0.5712235", "0.57051533", "0.56932896", "0.5685637", "0.56333345", "0.5583114", "0.55821455", "0.5567074", "0.55568594", "0.5556731", "0.55512434", "0.55423886", "0.5531571", "0.55272305", "0.55260354", "0.5520817", "0.55167806", "0.5515085", "0.5507035", "0.5506473", "0.5485483", "0.54837126", "0.5479701", "0.5475665", "0.5463023", "0.5456487", "0.5452556", "0.544948", "0.5447733", "0.5438794", "0.54268336", "0.5391623", "0.5389873", "0.5385199", "0.538508", "0.5380113", "0.5379022", "0.5372126", "0.5368505", "0.5362483", "0.536031", "0.53526884", "0.53506905", "0.5339555", "0.5335922", "0.5331004", "0.5330396", "0.5326818", "0.5318821", "0.53161263", "0.5315943", "0.5310375", "0.5302343", "0.5291586", "0.52778214", "0.5276788", "0.52745306", "0.52735543", "0.52705073", "0.5270192", "0.5254301", "0.52355796", "0.52313316" ]
0.6230024
11
/ rotates the /Squarelotron by of turns clockwise (+) or counterclockwise () with each turn being 90 degrees
public void rotateRight(int numberOfTurns);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n //log rotation\n LogEvent(\"rotate\");\n\t\t}", "void rotate();", "public void rotateCCW(){\n rotState = (rotState + 3) % 4;\n for (int i = 0; i < tiles.length; ++i){\n tiles[i] = new Point(tiles[i].y , -tiles[i].x);\n }\n }", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "void rotate() {\n startAnimation(allSubCubes(), Axis.Y, Direction.CLOCKWISE);\n rotateCubeSwap();\n }", "void rotateTurtle(int turtleIndex, double degrees);", "void rotate () {\n final int rows = currentPiece.height;\n final int columns = currentPiece.width;\n int[][] rotated = new int[columns][rows];\n\n for (int i = 0; i < rows; i++)\n for (int j = 0; j < columns; j++)\n rotated[j][i] = currentPiece.blocks[i][columns - 1 - j];\n\n Piece rotatedPiece = new Piece(currentPiece.color, rotated);\n int kicks[][] = {\n {0, 0},\n {0, 1},\n {0, -1},\n //{0, -2},\n //{0, 2},\n {1, 0},\n //{-1, 0},\n {1, 1},\n //{-1, 1},\n {1, -1},\n //{-1, -1},\n };\n for (int kick[] : kicks) {\n if (canMove(currentRow + kick[0], currentColumn + kick[1], rotatedPiece)) {\n //System.out.println(\"Kicking \" + kick[0] + \", \" + kick[1]);\n currentPiece = rotatedPiece;\n currentRow += kick[0];\n currentColumn += kick[1];\n updateView();\n break;\n }\n }\n }", "public void rotate(boolean clockwise) \n\t{\n\t\tcircular_shift(connections, clockwise);\n\t\torientation = next(orientation, clockwise);\n\t}", "public void turnClockWise90(){\n int tmp = this.front;\n this.front = this.right;\n this.right = this.back;\n this.back = this.left;\n this.left = tmp;\n }", "public void rotateClockWise() {\r\n\r\n transpose();\r\n\r\n // swap columns\r\n for (int col = 0; col < pixels[0].length / 2; col++) {\r\n for (int row = 0; row < pixels.length; row++) {\r\n int tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][pixels[0].length - 1 - col];\r\n pixels[row][pixels[0].length - 1 - col] = tmp;\r\n }\r\n }\r\n\r\n this.pix2img();\r\n }", "public void rotate(float angle);", "public static void rotate90CCWGrid(char[][] grid) {\r\n\t\tchar tmp = grid[0][0];\r\n\t\tgrid[0][0] = grid[0][2];\r\n\t\tgrid[0][2] = grid[2][2];\r\n\t\tgrid[2][2] = grid[2][0];\r\n\t\tgrid[2][0] = tmp;\r\n\r\n\t\ttmp = grid[0][1];\r\n\t\tgrid[0][1] = grid[1][2];\r\n\t\tgrid[1][2] = grid[2][1];\r\n\t\tgrid[2][1] = grid[1][0];\r\n\t\tgrid[1][0] = tmp;\r\n\t}", "public void zRotate() {\n\t\t\n\t}", "public void turn()\n {\n turn(90);\n }", "public abstract void rotate();", "@Override\n\tpublic void rotate90() {\n\n\t\tint[][] rotate = new int[this.frame[0].length][this.frame.length];\n\n\t\tfor (int x = 0; x < rotate[0].length; x++) {\n\t\t\tfor (int y = 0; y < rotate.length; y++) {\n\t\t\t\trotate[y][x] = this.frame[this.frame.length - x - 1][y];\n\t\t\t}\n\t\t} \n\n\t\tthis.frame = rotate;\n\n\t}", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "public void turn(int angle)\n {\n setRotation(getRotation() + angle);\n }", "void rotatePiece() {\n boolean temp = this.left;\n boolean temp2 = this.up;\n boolean temp3 = this.right;\n boolean temp4 = this.down;\n this.left = temp4;\n this.up = temp;\n this.right = temp2;\n this.down = temp3;\n }", "public void rotate(double deg) {\n deg = deg % 360;\n// System.out.println(\"Stopni:\" + deg);\n double e = 0;\n double f = 0;\n\n// for(int i = 0; i < pixels.length; i++) {\n// for(int j = 0; j < pixels[i].length; j++) {\n// e += pixels[i][j].getX();\n// f += pixels[i][j].getY();\n// }\n// }\n //e = e / (pixels.length * 2);\n //f = f / (pixels[0].length * 2);\n e = pixels.length / 2;\n f = pixels[0].length / 2;\n System.out.println(e);\n System.out.println(f);\n\n// System.out.println(e + \":\" + f);\n Matrix affineTransform;\n Matrix translateMinus = Matrix.translateRotate(-e, -f);\n Matrix translatePlus = Matrix.translateRotate(e, f);\n Matrix movedTransform = Matrix.multiply(translateMinus, Matrix.rotate(deg));\n //movedTransform.display();\n affineTransform = Matrix.multiply(movedTransform, translatePlus);\n //affineTransform.display();\n\n for(int i = 0; i < pixels.length; i++) {\n for(int j = 0; j < pixels[i].length; j++) {\n double[][] posMatrix1 = {{pixels[i][j].getX()}, {pixels[i][j].getY()}, {1}};\n Matrix m1 = new Matrix(posMatrix1);\n Matrix result1;\n result1 = Matrix.multiply(Matrix.transpose(affineTransform.v), m1);\n\n pixels[i][j].setX(Math.round(result1.v[0][0]));\n pixels[i][j].setY(Math.round(result1.v[1][0]));\n }\n }\n\n\n }", "void turn(float degrees) {\n _rotVector.rotate(radians(degrees));\n }", "public void rotateClockwise(int[][] matrix) {\n int n = matrix.length;\n\n // 1. Transpose matrix , change row to column, could use XOR operator to remove temp dependency\n for (int i = 0; i < n; i++) {\n for (int j = i; j < n; j++) {\n int temp = matrix[j][i];\n matrix[j][i] = matrix[i][j];\n matrix[i][j] = temp;\n }\n }\n\n // 2. Reverse elements of matrix\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n / 2; j++) {\n int temp = matrix[i][j];\n matrix[i][j] = matrix[i][n - j - 1];\n matrix[i][n - j - 1] = temp;\n }\n }\n }", "@Override\n\tpublic void rotateRight(int numberOfTurns) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] arrayCopy = copySquarelotron.squarelotron;\n\t\tfor(int i = 0; i <=size-1; i++){\n\t\t\tfor(int j = 0; j<=size-1; j++){\n\t\t\t\t//checks for each rotation to account for repeats and negatives and rotates accordingly\n\t\t\t\tif((numberOfTurns-1)%4==0){\n\t\t\t\t\tarrayCopy[i][j]=this.squarelotron[size-j-1][i];\n\t\t\t\t}\n\t\t\t\telse if((numberOfTurns-2)%4==0){\n\t\t\t\t\tarrayCopy[i][j]=this.squarelotron[size-i-1][size-j-1];\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if((numberOfTurns-3)%4==0){\n\t\t\t\t\tarrayCopy[i][j]=this.squarelotron[j][size-i-1];\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\tthis.squarelotron = arrayCopy;\n\t}", "public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "void rotateInv() {\n startAnimation(allSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n rotateCubeSwap();\n rotateCubeSwap();\n rotateCubeSwap();\n }", "public AutoTurnASquare() {\n\n /**\n // Add your commands in the super() call, e.g. super(new FooCommand(), new BarCommand());\n super( new AutoDriveStraightTime(0.45, 2.0).andThen(new WaitCommand(0.4)), // go forward\n new AutoTurnToAngle(-90.0, 0.40).andThen(new WaitCommand(0.4)), // turn right\n new AutoDriveStraightTime(0.45, 2.0).andThen(new WaitCommand(0.4)), // go forward\n new AutoTurnToAngle(-90.0, 0.40).andThen(new WaitCommand(0.4)), // turn right\n new AutoDriveStraightTime(0.45, 2.0).andThen(new WaitCommand(0.4)), // go forward\n new AutoTurnToAngle(-90.0, 0.40).andThen(new WaitCommand(0.4)), // turn right\n new AutoDriveStraightTime(0.45, 2.0) // go forward to starting point\n );\n */\n\n // alternate way to do a square\n for (int i = 0; i < 4; i++) {\n addCommands(new AutoDriveStraightTime(0.45, 2.0).andThen(new WaitCommand(0.4))); // repeat 4 times\n addCommands(new AutoSpinToAngle(-90.0, 0.40).andThen(new WaitCommand(0.4)));\n }\n \n }", "public void rotate(){\n\t\tint oneLoop = 0;\r\n\t\tmotherLoop: while(oneLoop == 0){\r\n\t\t\toneLoop = 1;\r\n\t\t// tworze i zeruje macierz 4x4\r\n\t\tint d = type == 1 ? 4 : 3;\t// dla podłużnego będzie klatka 4x4, dla reszty: 3x3\r\n\t\tif(type != 2 ){\t// a dla kwadratowego nic nie trzeba obracac\r\n\t\t\t// tworze macierz i przerzucam do niej klocka:\r\n\t\t\t// tworze i zeruje macierz dxd\r\n\t\t\tint[][] matrix = new int[d][d];\r\n\t\t\tfor(int i = 0 ; i < d ; i++)\r\n\t\t\t\tfor(int j = 0 ; j < d ; j++)\r\n\t\t\t\t\tmatrix[i][j] = 0;\r\n\t\t\t// wyznaczam najmniejsze X i Y z tablic X[] i Y[]\r\n\t\t\tint minX = X[0], minY = Y[0];\r\n\t\t\tfor(int i = 1 ; i < d ; i++){\r\n\t\t\t\tif(X[i] < minX)\tminX = X[i];\r\n\t\t\t\tif(Y[i] < minY)\tminY = Y[i];\r\n\t\t\t}\r\n\t\t\t// przepisuje do czystej macierzy klocka, odejmujac najmniejsze X i Y\r\n\t\t\t// dzieki temu przystaje on do lewej i gornej krawedzi macierzy.\r\n\t\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\t\tmatrix[Y[i]-minY][X[i]-minX] = 1;\r\n\t\t\t\r\n\t\t\t// dla przypadkow przy scianie przerywam calosc:\r\n\t\t\tif(minX + d > Board.getWidth()){\r\n\t\t\t\tSystem.out.println(\"Protestuje, bo: minX+d=\" +(minX+d)+ \", a Board.getWidth()=\" + Board.getWidth());\r\n\t\t\t\tbreak motherLoop;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(d==4){\t// dla dlugiego przycinam jeszcze raz\r\n\t\t\t\tif(matrix[3][0] == 1){\t// jest pionowo\r\n\t\t\t\t\tfor(int i = 0 ; i < 4 ; i++){\r\n\t\t\t\t\t\tmatrix[i][0] = 0;\r\n\t\t\t\t\t\tmatrix[i][1] = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\t// jest poziomo\r\n\t\t\t\t\tfor(int i = 0 ; i < 4 ; i++){\r\n\t\t\t\t\t\tmatrix[0][i] = 0;\r\n\t\t\t\t\t\tmatrix[1][i] = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// nowa macierz to macierz z klockiem obrocona o 90 stopni\r\n\t\t\tint[][] newMatrix = new int[d][d];\r\n\t\t\tfor(int i = 0 ; i < d ; i++){\r\n\t\t\t\tfor(int j = 0 ; j < d ; j++){\r\n\t\t\t\t\tnewMatrix[i][j] = matrix[j][d-i-1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tboolean isFree = true;\t// sprawdzam czy nowy klocek nie naruszy statycznych klockow\r\n\t\t\tint index = 0;\r\n\t\t\tfor(int i = 0 ; i < d ; i++){\r\n\t\t\t\tfor(int j = 0 ; j < d ; j++){\r\n\t\t\t\t\tif(i+minY < Board.getHeight() && j+minX < Board.getWidth()){\r\n\t\t\t\t\t\tif(motherBoard.getField(j+minX, i+minY).getContent() == 2){\r\n\t\t\t\t\t\t\tisFree = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(isFree){\r\n\t\t\t\tindex = 0;\r\n\t\t\t\tfor(int i = 0 ; i < d ; i++){\r\n\t\t\t\t\tfor(int j = 0 ; j < d ; j++){\r\n\t\t\t\t\t\tif( minY >= 0 && j+minX < Board.getWidth() && i+minY < Board.getHeight()){\t// wymiary sie beda zgadzac z plansza.\r\n\t\t\t\t\t\t\tif(newMatrix[i][j] == 1){\r\n\t\t\t\t\t\t\t\tX[index] = j+minX;\r\n\t\t\t\t\t\t\t\tY[index] = i+minY;\r\n\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t}", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "public void xRotate() {\n\t\t\n\t}", "void rotation(String sensRotation);", "private void turnClockwise() {\n\t\torientation = TurnAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(orientation);\n\t}", "static void rotate(int[][] matrix) {\n int n = matrix.length;\n for (int i = 0; i < (n + 1) / 2; i++) {\n for (int j = 0; j < n / 2; j++) {\n int temp = matrix[n - 1 - j][i];\n matrix[n - 1 - j][i] = matrix[n - 1 - i][n - j - 1];\n matrix[n - 1 - i][n - j - 1] = matrix[j][n - 1 - i];\n matrix[j][n - 1 - i] = matrix[i][j];\n matrix[i][j] = temp;\n }\n }\n }", "public static void waltz() {\n //test code written by bokun: self rotation\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n leftMotor.forward();\n rightMotor.backward();\n }", "private void rotate(int direction){\n\t\t//Gdx.app.debug(TAG, \"rotating, this.x: \" + this.x + \", this.y: \" + this.y);\n\t\tif (direction == 1 || direction == -1){\n\t\t\tthis.orientation = (this.orientation + (direction*-1) + 4) % 4;\n\t\t\t//this.orientation = (this.orientation + direction) % 4;\n\t\t} else{\n\t\t\tthrow new RuntimeException(\"Tile invalid direction\");\n\t\t}\n\t}", "public void rotate180 (View view){\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(180f).setDuration(50); //turn toy robot AROUND (180')\n\n rotateRight += 2; //counter to determine orientation\n System.out.println(\"rotateRight \" + rotateRight);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight));\n\n } else errorMessage(\"Please place toy robot\");\n }", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "public void setRotation(){\n\t\t\tfb5.accStop();\n\t\t\twt.turning = true;\n\t\t\tif(state == BotMove.RIGHT_15){\n\t\t\t\tfb5.turnRightBy(6);\n\t\t\t\tangle = (angle+360-20)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.RIGHT_10){\n\t\t\t\tfb5.turnRightBy(3);\n\t\t\t\tangle = (angle+360-10)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT_5){\n\t\t\t\tfb5.turnLeftBy(2);\n\t\t\t\tangle = (angle+360+5)%360;\n\t\t\t}\n\t\t}", "@Override\r\n public void rotateClockwise() {\r\n super.rotateClockwise(); //To change body of generated methods, choose Tools | Templates.\r\n // TODO: Fix me\r\n undo.push('c');\r\n redo = new LinkedListStack();\r\n }", "void testRotatePiece(Tester t) {\n initData();\n gamePiece1.left = true;\n gamePiece1.rotatePiece();\n t.checkExpect(gamePiece1.left, false);\n t.checkExpect(gamePiece1.up, true);\n gamePiece1.down = true;\n gamePiece1.rotatePiece();\n t.checkExpect(gamePiece1.up, false);\n t.checkExpect(gamePiece1.down, false);\n t.checkExpect(gamePiece1.left, true);\n t.checkExpect(gamePiece1.right, true);\n gamePiece2.right = true;\n gamePiece2.left = true;\n gamePiece2.up = true;\n gamePiece2.rotatePiece();\n t.checkExpect(gamePiece2.down, true);\n t.checkExpect(gamePiece2.up, true);\n t.checkExpect(gamePiece2.left, false);\n t.checkExpect(gamePiece2.right, true);\n }", "@Override\n\tpublic void rotate() {\n\t}", "public void RotateActionPerformed(java.awt.event.ActionEvent evt) { \r\n degree = degree + 90;\r\n drawingPanel.setDegree(degree); \r\n }", "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "public Matrix rotate90DegreeInPlace() {\n\t\tfor(int layer = 0; layer < this.getWidth() / 2; ++layer) {\n\t\t\tint first = layer;\n\t\t\tint last = this.getWidth() - 1 - layer;\n\t\t\t\n\t\t\tfor(int i = first; i < last; ++i) {\n\t\t\t\tint offset = i - first;\n\t\t\t\t\n\t\t\t\t//save top\n\t\t\t\tdouble top = this.getElement(first, i);\n\t\t\t\t\n\t\t\t\t// left -> top\n\t\t\t\tthis.setElement(first, i, this.getElement(last - offset, first));\n\t\t\t\t// bottom -> left\n\t\t\t\tthis.setElement(last - offset, first, this.getElement(last, last - offset));\n\t\t\t\t// right -> bottom\n\t\t\t\tthis.setElement(last, last - offset, this.getElement(i, last));\n\t\t\t\t// top -> right\n\t\t\t\tthis.setElement(i, last, top);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "public void rotateY90() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x_ = vertexX[v];\n\t\t\tvertexX[v] = vertexZ[v];\n\t\t\tvertexZ[v] = -x_;\n\t\t}\n\t}", "private void turnClockwise(){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\tfacingDirection = Direction.EAST;\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tfacingDirection = Direction.WEST;\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tfacingDirection = Direction.NORTH;\n\t\t\tbreak;\n\t\tcase EAST:\n\t\t\tfacingDirection = Direction.SOUTH;\n\t\t}\n\t}", "public Direction rotate90() {\n return values()[r90index];\n }", "@Test\n public void testRotate90Degrees2(){\n double[][] a = new double[2][3];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.rotateArray90(a);\n checkRotate(a, newA);\n }", "public void degrees() throws InterruptedException{\n\n\t\tif(keyPressed){\n\t\t\twhile(deg < 90){\n\t\t\t\tdeg += 15;\n\t\t\t\tSystem.out.println(\"Rotating UP \" + opcode);\n\t\t\t}\n\t\t}\n\t\telse if(!keyPressed){\n\t\t\twhile(deg > 0){\n\t\t\t\tdeg -= 15;\n\t\t\t\tSystem.out.println(\"Rotating Down \" + opcode);\n\t\t\t}\n\t\t}\n\t}", "public void turn(int degree) {\n rightMotor.setSpeed(DEFAULT_TURN_SPEED);\n leftMotor.setSpeed(DEFAULT_TURN_SPEED);\n rightMotor.rotate((int) Math.round(TURN_RATIO * degree), true);\n leftMotor.rotate((int) Math.round(-TURN_RATIO * degree), true);\n }", "@Override\r\n\tpublic void rotar() {\n\r\n\t}", "public void rotate() {\n \t// Parameters\n \tdouble z0 = angle;\n \tint n = numberIterations;\n \t\n \t// Get color of target and current vector for explanation texts\n \tColor vectorColor = (Color) angleVectorProperties.get(AnimationPropertiesKeys.COLOR_PROPERTY);\n \tColor goalColor = (Color) trueAngleVectorProperties.get(AnimationPropertiesKeys.COLOR_PROPERTY);\n \t\n \t// Animation title + frame (rectangle around title)\n\t\tTextProperties titleProps = new TextProperties();\n\t\ttitleProps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\n\t\ttitleProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\", \n\t\t\t Font.BOLD, 24));\n\t\t\n\t\tText title = lang.newText(new Coordinates(20, 30), \"CORDIC\", \"title\", null, titleProps);\n\t\tRect titleFrame = lang.newRect(new Offset(-5, -5, \"title\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"title\", AnimalScript.DIRECTION_SE), \"titleFrame\", null);\n\n\t\t// Animation background information\n\t\tInfoBox description = new InfoBox(lang, new Offset(0, 20, \"title\", AnimalScript.DIRECTION_SW), 20, \"Background Information\"); \n\t\tList<String> preText = Arrays.asList(\n\t\t\t\t\"CORDIC (COordinate Rotation DIgital Computer) is a numerical algorithm which efficiently calculates sine and cosine of\",\n\t\t\t\t\"a given angle in the circular rotation mode, which is shown here (other modes allow for different computations).\",\n\t\t\t\t\"It was designed to be written in hardware using only addition and shifts and has been used for example in calculators.\",\n\t\t\t\t\"However, today it is seldom used since memory is no longer an issue and one can store thousands of sine and cosine\",\n\t\t\t\t\"values and interpolate if the exact value is not available.\",\n\t\t\t\t\"In CORDIC sine and cosine of a given angle are calculated by reading their values from the vector (1, 0) that is rotated\",\n\t\t\t\t\"by the given angle. However, since only addition and shifts are available for the computation the rotation must be\",\n\t\t\t\t\"approximated through additions or subtractions of smaller, given angles that were calculated such that their tangent\",\n\t\t\t\t\"equals a power of 2 (and can thus be applied by shifting).\",\n\t\t\t\t\"Also, for convergence the given angle must be in the interval of [-1.7433, 1.7433] respectively [-99.88°, 99.88°]. Sine\",\n\t\t\t\t\"and cosine of values beyond this interval may be calculated using their symmetry properties.\");\n\t\tdescription.setText(preText);\n\t\t\n\t\tlang.nextStep(\"Introduction\");\n\n\t\t// More detailed animation background information\t\n\t\tdescription.hide();\n\t\tInfoBox formula = new InfoBox(lang, new Offset(0, 20, \"title\", AnimalScript.DIRECTION_SW), 20, \"Iteration Formula\"); \n\t\tList<String> formulaText = Arrays.asList(\n\t\t\t\t\" x[i+1] = x[i] - sigma[i]*2^(-i)*y[i]\",\n\t\t\t\t\" y[i+1] = sigma[i]*2^(-i)*x[i] + y[i]\",\n\t\t\t\t\" z[i+1] = z[i] - sigma[i]*alpha[i]\",\n\t\t\t\t\"with x[0] = 1*K, y[0] = 0 and z[0] = target angle, where\",\n\t\t\t\t\"- x and y are the cosine and sine values of the angle that the vector describes at the n-th step\",\n\t\t\t\t\"- z is the target angle minus all rotations of (i-1) steps (i.e. the difference of the current angle to the target angle)\",\n\t\t\t\t\"- sigma[i] is the direction of rotation (either -1 for clockwise or 1 for counterclockwise); it is derived from z[i] and\",\n\t\t\t\t\" multiplied with the current angle to adjust the rotation direction (which is a simple sign change in hardware)\",\n\t\t\t\t\"- alpha[i] is the current angle of rotation looked up from a table of precomputed angles with a tangent equal to a power\",\n\t\t\t\t\" of 2\",\n\t\t\t\t\"The tangent is used because instead of applying the common rotation matrix the pseudo rotation matrix\",\n\t\t\t\t\" 1 -tan(angle)\",\n\t\t\t\t\" tan(angle) 1\",\n\t\t\t\t\"is used. Multiplying the pseudo rotation matrix by a correction factor cos(angle) yields the common rotation matrix\",\n\t\t\t\t\" cos(angle) -sin(angle)\",\n\t\t\t\t\" sin(angle) cos(angle\",\n\t\t\t\t\"Since multiplication in hardware is costly and one is only interested in the sine and cosine values of x and y at step n\",\n\t\t\t\t\"of the iteration this correction factor is precomputed, looked up in a table and used for x[0], so the vector will have\",\n\t\t\t\t\"size 1 at the n-th step of the iteration. Thus\",\n\t\t\t\t\"- K = Product_i=0^n-1*cos(alpha[i])\");\n\t\tformula.setText(formulaText);\n\t\t\n\t\tlang.nextStep();\n\t\t\n\t\tformula.hide();\n\t\t\n\t\t// Function graph\n\t\tint offsetFromLeft = 20;\n\t\tint lengthOfXY = 150;\n\t\tPolyline y = lang.newPolyline(new Offset[]{(new Offset(offsetFromLeft+lengthOfXY, 55+lengthOfXY*2, \"title\", AnimalScript.DIRECTION_SW)), (new Offset(offsetFromLeft+lengthOfXY, 55, \"title\", AnimalScript.DIRECTION_SW))}, \"yArrow\", null, functionGraphProperties);\n\t\tPolyline x = lang.newPolyline(new Offset[]{(new Offset(-lengthOfXY, -lengthOfXY, \"yArrow\", AnimalScript.DIRECTION_SW)), (new Offset(lengthOfXY, -lengthOfXY, \"yArrow\", AnimalScript.DIRECTION_SW))}, \"xArrow\", null, functionGraphProperties);\n\t\t\n\t\t// Create legend (angles of vectors) with rectangle frame (hidden until vectors are created)\n\t\tTextProperties targetProperties = new TextProperties();\n\t\ttargetProperties.set(AnimationPropertiesKeys.COLOR_PROPERTY, goalColor);\n\t\ttargetProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\", Font.BOLD, 12));\n\t\tTextProperties vectorLegendProperties = new TextProperties();\n\t\tvectorLegendProperties.set(AnimationPropertiesKeys.COLOR_PROPERTY, vectorColor);\n\t\tvectorLegendProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\", Font.BOLD, 12));\n\t\t\n\t\tText legendVector = lang.newText(new Offset(50, -lengthOfXY, \"xArrow\", AnimalScript.DIRECTION_NE), \"Current Angle\", \"legendVector\", null, vectorLegendProperties);\n\t\tText legendTarget = lang.newText(new Offset(0, 10, \"legendVector\", AnimalScript.DIRECTION_SW), \"Target Angle = \" + Math.toDegrees(z0), \"legendTarget\", null, targetProperties);\n\t\t\n\t\tRect legendFrame = lang.newRect(new Offset(-15, -15, \"legendVector\", AnimalScript.DIRECTION_NW), new Offset(15, 15, \"legendTarget\", AnimalScript.DIRECTION_SE), \"legendFrame\", null, legendFrameProperties);\n\n\t\tlegendVector.hide();\n\t\tlegendTarget.hide();\n\t\tlegendFrame.hide();\n\t\t\n\t\t// Source code and frame placed to the right of the legend\n\t\tSourceCode code = lang.newSourceCode(new Offset(50, 100, \"legendFrame\", AnimalScript.DIRECTION_NE), \"code\", null, sourceCodeProperties);\n\t\tcode.addCodeLine(\"define cordic(angle, numberIterations) //rotation mode\", \"definition\", 0, null);\n\t\tcode.addCodeLine(\"x[0] = K // get K from table\", \"xdef\", 2, null);\n\t\tcode.addCodeLine(\"y[0] = 0\", \"ydef\", 2, null);\n\t\tcode.addCodeLine(\"for i=0 to numberIterations-1 do\", \"for\", 2, null);\n\t\tcode.addCodeLine(\"if z[i] > 0\", \"if\", 4, null);\n\t\tcode.addCodeLine(\"sigma_i = 1\", \"posSigma\", 6, null);\n\t\tcode.addCodeLine(\"else\", \"else\", 4, null);\n\t\tcode.addCodeLine(\"sigma_i = -1\", \"negSigma\", 6, null);\n\t\tcode.addCodeLine(\"x[i+1] = x[i] - sigma_i*2^(-i)*y[i]\", \"xi\", 4, null);\n\t\tcode.addCodeLine(\"y[i+1] = sigma_i*2^(-i)*x[i] + y[i]\", \"yi\", 4, null);\n\t\tcode.addCodeLine(\"z[i+1] = z[i] - sigma_i*alpha_i // get alpha_i from table\", \"zi\", 4, null);\n\t\tcode.addCodeLine(\"return (x[numberIterations], y[numberIterations])\", \"return\", 2, null);\n\t\t\n\t\tRect codeFrame = lang.newRect(new Offset(-5, -5, \"code\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"code\", AnimalScript.DIRECTION_SE), \"codeFrame\", null, codeFrameProperties);\n\t\t\n\t\tlang.nextStep();\n\t\t\n\t\tcode.highlight(0);\n\t\t\n\t\t// Target vector\n\t\tPolyline goal = lang.newPolyline(new Offset[]{(new Offset(-lengthOfXY, 0, \"xArrow\", AnimalScript.DIRECTION_NE)), (new Offset(0, 0, \"xArrow\", AnimalScript.DIRECTION_NE))}, \"goalVector\", null, trueAngleVectorProperties);\n\t\tgoal.rotate(new Offset(-lengthOfXY, 0, \"xArrow\", AnimalScript.DIRECTION_NE), (int)Math.toDegrees(z0), null, null);\n\t\t\n\t\t// Show legend\n\t\tlegendVector.show();\n\t\tlegendTarget.show();\n\t\tlegendFrame.show();\n\t\t\n\t\t// Create number counter of iterations\n\t\tText nText = lang.newText(new Offset(0, 10, \"legendFrame\", AnimalScript.DIRECTION_SW), \"Iteration = 0\", \"nText\", null);\n\t\tnText.hide();\n\t\t// Create display text for z_i\n\t\tText ziText = lang.newText(new Offset(0, 8, \"nText\", AnimalScript.DIRECTION_SW), \"z_0 = \" + z0, \"ziText\", null);\n\t\tziText.hide();\n\t\t\n\t\tlang.nextStep(\"Initialization\");\n\t\t\n\t\tcode.unhighlight(0);\n\t\t\n\t\t// Call algorithm for CORDIC circular rotation and get the result for x[n] and y[n]\n\t\tdouble result[] = algorithmRotation(z0, n, lengthOfXY, code, legendVector, nText, ziText);\n\t\t\n\t\tcode.highlight(11);\n\n\t\t// Show marker for final sine and cosine values\n\t\tint xOffset = (int)(result[0]*lengthOfXY+lengthOfXY);\n\t\tint yOffset = (int)(result[1]*lengthOfXY+lengthOfXY);\n\t\tPolyline sin = lang.newPolyline(new Offset[]{(new Offset(6, -yOffset, \"yArrow\", AnimalScript.DIRECTION_SW)), (new Offset(-6, -yOffset, \"yArrow\", AnimalScript.DIRECTION_SW))}, \"sine\", null);\n\t\tPolyline cos = lang.newPolyline(new Offset[]{(new Offset(xOffset, 6, \"xArrow\", AnimalScript.DIRECTION_NW)), (new Offset(xOffset, -6, \"xArrow\", AnimalScript.DIRECTION_NW))}, \"cosine\", null);\n\t\t\n\t\t// Show final values of CORDIC and values of target angle\n\t\tText sinText = lang.newText(new Offset(-50, -35, \"yArrow\", AnimalScript.DIRECTION_N), \"sine = \" + result[1], \"sineText\", null, vectorLegendProperties);\n\t\tText cosText = lang.newText(new Offset(0, 0, \"xArrow\", AnimalScript.DIRECTION_SE), \"cosine = \" + result[0], \"cosineText\", null, vectorLegendProperties);\n\t\t\n\t\tText trueSinText = lang.newText(new Offset(0, 5, \"sineText\", AnimalScript.DIRECTION_SW), \"sine = \" + Math.sin(z0), \"sineText\", null, targetProperties);\n\t\tText trueCosText = lang.newText(new Offset(0, 5, \"cosineText\", AnimalScript.DIRECTION_SW), \"cosine = \" + Math.cos(z0), \"cosineText\", null, targetProperties);\n\t\t\n\t\tnText.hide();\n\t\tziText.hide();\n\t\t\n\t\tlang.nextStep(\"Leave Algorithm\");\n\t\t\n\t\t// HideAllPrimitivesExcept does not seem to work with\n\t\t// lang.hideAllPrimitivesExcept(Arrays.asList(title, titleFrame));\n\t\tlang.hideAllPrimitives();\n\t\t\n\t\ttitle.show();\n\t\ttitleFrame.show();\n\t\t\n\t\t// Final remark\n\t\tInfoBox outlook = new InfoBox(lang, new Offset(0, 20, \"title\", AnimalScript.DIRECTION_SW), 20, \"Final Remark\"); \n\t\tList<String> postText = Arrays.asList(\n\t\t\t\t\"This animation displayed the so called circular rotation mode of CORDIC for calculating sine and cosine of a given angle.\",\n\t\t\t\t\"The circular mode of CORDIC includes another so called vector mode which is the reverse of the rotation mode and provides\",\n\t\t\t\t\"the absolute of a vector and its angle. The changes necessary to apply this mode is to set z[0] = 0 and let the user\",\n\t\t\t\t\"define x[0] and y[0] (though the absolute value x[n] must be divided by K to obtain the real absolute value). Also, sigma[i]\",\n\t\t\t\t\"is evaluated using y[i-1] instead of z[i-1] (the basic idea is to try to rotate until y is zero instead of until the\",\n\t\t\t\t\"difference between the target and current angle is zero).\",\n\t\t\t\t\"Beyond that, even more modes exist which calculate for example the hyperbolical functions. These modes require different\",\n\t\t\t\t\"values for the variables than the circular mode and an additional one to generalize the algorithm.\");\n\t\toutlook.setText(postText);\n\t\t\n\t\tlang.nextStep(\"Final Remark\");\n\t}", "public abstract void rotateLeft();", "@Test\n public void rotateCommand() {\n ICommand cmd = Commands.getComand(\"rotate\");\n Robot robot = new Robot(0, 0);\n Vector2Di dir = robot.getDir();\n int rot_amount = 90;\n double orig_angle = dir.angle();\n cmd.exec(rot_amount, robot, null);\n assertEquals(orig_angle + rot_amount, dir.angle(), 0.1);\n }", "static PT RotateCCW90(PT p) {\r\n\t\treturn new PT(-p.y, p.x);\r\n\t}", "public abstract void rotateRight();", "private static void rotate(int[][] matrix) {\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = i; j < matrix[0].length; j++) {\r\n\t\t\t\tint temp = 0;\r\n\t\t\t\ttemp = matrix[i][j];\r\n\t\t\t\tmatrix[i][j] = matrix[j][i];//转置,第i行变成第i列\r\n\t\t\t\tmatrix[j][i] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = 0; j < matrix.length / 2; j++) {\r\n\t\t\t\tint temp = 0;\r\n\t\t\t\ttemp = matrix[i][j];\r\n\t\t\t\tmatrix[i][j] = matrix[i][matrix.length - 1 - j];\r\n\t\t\t\tmatrix[i][matrix.length - 1 - j] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void rotate() {\n\t\tclearPiece();\n\t\trotateFirstBlock();\n\t\trotateSecondBlock();\n\t\trotateFourthBlock();\n\t\tsetPiece();\n\t\trepaint();\n\t}", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "public void rotate (int row) {\n\t\tif ( row < n / 2)\n\t\t\trotate(row + 1);\n\t\telse\n\t\t\treturn;\n\t\t//rotate the outter most row and col\n\t\trotateRow(row);\n\t}", "void rotatePolygon() {\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].rotate();\n\t}", "public boolean rotateClockwise(Circle main, Circle... neighbours) {\n\t\tif (canRotate(main)) {\n\t\t\tCircle circleB = main;\n\t\t\tCircle circleA = neighbours[0];\n\t\t\tCircle circleC = neighbours[1];\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "public double turn (double degrees) {\n setHeading(getHeading() + degrees);\n return Math.abs(degrees);\n }", "public TurnInstruction(Rotation rot) {\r\n\t\tthis.rotation = rot;\r\n\t}", "@Test\n public void testRotate() {\n\t\tGPSCoordinate testCoordinatesRotate[] = {\n\t\t\tnew GPSCoordinate(0.0, 0.01), //SE shifted\n new GPSCoordinate(0.0, 0.0), //SW shifted\n new GPSCoordinate(0.01, 0.0), // NW shifted\n\t\t\tnew GPSCoordinate(0.01, 0.01), //NE shifted\n\t\t\t\n\t\t\tnew GPSCoordinate(0.0, 0.01), //SE shifted\n new GPSCoordinate(0.0, 0.0), //SW shifted\n new GPSCoordinate(0.01, 0.0), // NW shifted\n\t\t\tnew GPSCoordinate(0.01, 0.01), //NE shifted\n\t\t\t\n new GPSCoordinate(-0.005, 0.005), //SE\n new GPSCoordinate(-0.005, -0.005), //SW\n new GPSCoordinate(0.005, -0.005), // NW \n\t\t\tnew GPSCoordinate(0.005, 0.005), //NE\n\t\t\t\n\t\t\tnew GPSCoordinate(0.005, 0.005), //NE\n new GPSCoordinate(-0.005, 0.005), //SE\n new GPSCoordinate(-0.005, -0.005), //SW\n new GPSCoordinate(0.005, -0.005), // NW \n\t\t\t\n\t\t\tnew GPSCoordinate(0.005, 0.005), //NE\n new GPSCoordinate(-0.005, 0.005), //SE\n new GPSCoordinate(-0.005, -0.005), //SW\n new GPSCoordinate(0.005, -0.005), // NW \n\t\t\t\n\t\t\tnew GPSCoordinate(0.00065, 0.00065), //NE\n new GPSCoordinate(-0.00065, 0.00065), //SE\n new GPSCoordinate(-0.00065, -0.00065), //SW\n new GPSCoordinate(0.00065, -0.00065), // NW \n\t\t};\n\t\t\n GPSCoordinate coordinatesExpected[] = {\n\t\t\tnew GPSCoordinate(0.005 - 0.007071068, 0.005), //SE shifted -ve rotation\n\t\t\tnew GPSCoordinate(0.005, 0.005 - 0.007071068), //SW shifted -ve rotation\n\t\t\tnew GPSCoordinate(0.005 + 0.007071068, 0.005), //NW shifted -ve rotation\n\t\t\tnew GPSCoordinate(0.005, 0.007071068 + 0.005), //NE shifted -ve rotation\n\t\t\t\n\t\t\tnew GPSCoordinate(0.005, 0.007071068 + 0.005), //SE shifted\n new GPSCoordinate(0.005 - 0.007071068, 0.005), //SW shifted\n new GPSCoordinate(0.005, 0.005 - 0.007071068), // NW shifted\n\t\t\tnew GPSCoordinate(0.005 + 0.007071068, 0.005), //NE shifted\n\t\t\t\n new GPSCoordinate(0.005, 0.005), //SE rotated 90\n new GPSCoordinate(-0.005, 0.005), //SW rotated 90\n new GPSCoordinate(-0.005, -0.005), // NW rotated 90\n\t\t\tnew GPSCoordinate(0.005, -0.005), //NE rotated 90\n\t\t\t\n new GPSCoordinate(0.005, 0.005), //NE not rotated\n new GPSCoordinate(-0.005, 0.005), //SE not rotated\n new GPSCoordinate(-0.005, -0.005), //SW not rotated\n new GPSCoordinate(0.005, -0.005), // NW not rotated\n\t\t\t\n\t\t\tnew GPSCoordinate(0.007071068, 0.0), //NE rotated 45 degrees\n new GPSCoordinate(0.0, 0.007071068), //SE rotated 45 degrees\n new GPSCoordinate(-0.007071068, 0.0), //SW rotated 45 degrees\n new GPSCoordinate(0.0, -0.007071068), // NW rotated 45 degrees\n\t\t\t\n\t\t\tnew GPSCoordinate(0.000919239, 0.0), //NE rotated 45 degrees\n new GPSCoordinate(0.0, 0.000919239), //SE rotated 45 degrees \n new GPSCoordinate(-0.000919239, 0.0), //SW rotated 45 degrees \n new GPSCoordinate(0.0, -0.000919239), // NW rotated 45 degrees \n };\n\t\t\n\t\tGPSCoordinate origin2 = new GPSCoordinate(0.005, 0.005);\n\t\t\n\t\tSystem.out.println(\"Testing rotate() function with a bearing of -45.0 with shifted origin\");\n\t\tfor (int i = 0; i < 4; i++) {\n GPSCoordinate expResult = coordinatesExpected[i];\n GPSCoordinate result = origin2.rotate(testCoordinatesRotate[i], -45.0);\n\t\t\tSystem.out.println(\"Expected Lat: \" + expResult.latitude() + \", Actual Lat: \" + result.latitude());\n\t\t\tSystem.out.println(\"Expected Lon: \" + expResult.longitude() + \", Actual Lon: \" + result.longitude());\n\t\t\tSystem.out.println(\"\");\n assertEquals(expResult.latitude(), result.latitude(), 0.000001);\n\t\t\tassertEquals(expResult.longitude(), result.longitude(), 0.000001);\n }\n\t\t\n\t\tSystem.out.println(\"Testing rotate() function with a bearing of 45.0 with shifted origin\");\n\t\tfor (int i = 4; i < 8; i++) {\n GPSCoordinate expResult = coordinatesExpected[i];\n GPSCoordinate result = origin2.rotate(testCoordinatesRotate[i], 45.0);\n\t\t\tSystem.out.println(\"Expected Lat: \" + expResult.latitude() + \", Actual Lat: \" + result.latitude());\n\t\t\tSystem.out.println(\"Expected Lon: \" + expResult.longitude() + \", Actual Lon: \" + result.longitude());\n\t\t\tSystem.out.println(\"\");\n assertEquals(expResult.latitude(), result.latitude(), 0.000001);\n\t\t\tassertEquals(expResult.longitude(), result.longitude(), 0.000001);\n }\n\t\t\n\t\tSystem.out.println(\"Testing rotate() function with a bearing of 90.0\");\n\t\tfor (int i = 8; i < 12; i++) {\n GPSCoordinate expResult = coordinatesExpected[i];\n GPSCoordinate result = this.origin.rotate(testCoordinatesRotate[i], 90.0);\n\t\t\tSystem.out.println(\"Expected Lat: \" + expResult.latitude() + \", Actual Lat: \" + result.latitude());\n\t\t\tSystem.out.println(\"Expected Lon: \" + expResult.longitude() + \", Actual Lon: \" + result.longitude());\n\t\t\tSystem.out.println(\"\");\n assertEquals(expResult.latitude(), result.latitude(), 0.000001);\n\t\t\tassertEquals(expResult.longitude(), result.longitude(), 0.000001);\n }\n\t\t\n\t\tSystem.out.println(\"Testing rotate() function with a bearing of 0.0\");\n\t\tfor (int i = 12; i < 16; i++) {\n GPSCoordinate expResult = coordinatesExpected[i];\n GPSCoordinate result = this.origin.rotate(testCoordinatesRotate[i], 0.0);\n\t\t\tSystem.out.println(\"Expected Lat: \" + expResult.latitude() + \", Actual Lat: \" + result.latitude());\n\t\t\tSystem.out.println(\"Expected Lon: \" + expResult.longitude() + \", Actual Lon: \" + result.longitude());\n\t\t\tSystem.out.println(\"\");\n assertEquals(expResult.latitude(), result.latitude(), 0.000001);\n\t\t\tassertEquals(expResult.longitude(), result.longitude(), 0.000001);\n }\n\t\t\n\t\tSystem.out.println(\"Testing rotate() function with a bearing of 45.0\");\n for (int i = 16; i < testCoordinatesRotate.length; i++) {\n GPSCoordinate expResult = coordinatesExpected[i];\n GPSCoordinate result = this.origin.rotate(testCoordinatesRotate[i], 45.0);\n\t\t\tSystem.out.println(\"Expected Lat: \" + expResult.latitude() + \", Actual Lat: \" + result.latitude());\n\t\t\tSystem.out.println(\"Expected Lon: \" + expResult.longitude() + \", Actual Lon: \" + result.longitude());\n\t\t\tSystem.out.println(\"\");\n assertEquals(expResult.latitude(), result.latitude(), 0.000001);\n\t\t\tassertEquals(expResult.longitude(), result.longitude(), 0.000001);\n }\n }", "public void startRotate()\n {\n rotateAroundYAxis(miniEarth).play();\n }", "public static void main(String[] args) {\n Rotate rotate = new Rotate();\n /* int[] arr = new int[] {1,2,3,4,5,6,7};\n rotate.printArray(arr);\n System.out.println(\" \");*/\n /*rotate.rotateWithNewArray(arr, arr.length,3);\n System.out.println(\" \");\n rotate.rotateWithNewArrayBetter(arr, arr.length,3);\n System.out.println(\" \");\n int[] arr1 = new int[] {1,2,3,4,5,6,7};\n rotate.rotateLeftWithJugglingSolution(arr1, 3, 7);*/\n\n int[] arr2 = new int[] {1,2,3,4,5};\n rotate.printArray(arr2);\n System.out.println(\" \");\n rotate.rotateLeftWithReverse(arr2,5,2);\n }", "public void rotateTurtle(double deg){\n\t\tSystem.out.println(\"in rotate\");\n\n\t\tmyTurtle.turn(deg);\n\t\tthis.updateTurtleOnView();\n\t}", "private static void rotate(char[] programs, int distance) {\n int border = programs.length - distance;\n reverse(programs, 0, border - 1);\n reverse(programs, border, programs.length - 1);\n reverse(programs, 0, programs.length - 1);\n }", "private void turn(String rotate) {\n if(Objects.nonNull(this.position)) {\n int currentIntDirection = this.directionConversionMap.get(this.position.getDirection());\n int newIntDirection = this.rotateRobotMap.get(rotate).apply(currentIntDirection,directionConversionMap);\n Optional<Direction> direction = findDirection(newIntDirection);\n this.position = new Position(this.position.getX(), this.position.getY(), direction.get());\n }\n }", "public void rotate(float val){\n\t\trot = val % 360;\n\t\tif(w>0){\n\t\t\tinvalidate();\t\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void rotateRight() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir + THETA);\r\n\t\t\r\n\t}", "public Squarelotron mainDiagonalFlip(int ring);", "@Test\n public void testRotate90Degrees1(){\n double[][] a = new double[5][5];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.rotateArray90(a);\n checkRotate(a, newA);\n }", "public void rotateShip(){\n if (this.orientation == false){\n this.orientation = true;\n }else\n orientation = false;\n \n return;\n }", "public static void turnByDegree(double degree) {\n LEFT_MOTOR.rotate(convertAngle(WHEEL_RAD, TRACK, degree), true);\n RIGHT_MOTOR.rotate(-convertAngle(WHEEL_RAD, TRACK, degree), false);\n }", "public void rotate() \n {\n \tint[] rotatedState = new int[state.length];\n \tfor (int i = 0; i < state.length; ++i)\n \t\trotatedState[(i+7)%14] = state[i];\n \tstate = rotatedState;\n }", "public void calculateAngleAndRotate(){\n\t\tdouble cumarea = 0;\n\t\tdouble sina = 0;\n\t\tdouble cosa = 0;\n\t\tdouble area, angle;\n\t\tfor (int n = 0; n < rt.size();n++) {\n\t\t\tarea = rt.getValueAsDouble(rt.getColumnIndex(\"Area\"),n);\n\t\t\tangle = 2*rt.getValueAsDouble(rt.getColumnIndex(\"Angle\"),n);\n\t\t\tsina = sina + area*Math.sin(angle*Math.PI/180);\n\t\t\tcosa = cosa + area*Math.cos(angle*Math.PI/180);\n\t\t\tcumarea = cumarea+area;\n\t\t}\n\t\taverageangle = Math.abs(0.5*(180/Math.PI)*Math.atan2(sina/cumarea,cosa/cumarea)); // this is the area weighted average angle\n\t\t// rotate the data \n\t\tIJ.run(ActiveImage,\"Select All\",\"\");\n\t\tActiveImageConverter.convertToGray32();\n\t\tIJ.run(ActiveImage,\"Macro...\", \"code=[v= x*sin(PI/180*\"+averageangle+\")+y*cos(PI/180*\"+averageangle+\")]\");\n\t\treturn;\n\t}", "private void rotateRight() {\n robot.leftBack.setPower(TURN_POWER);\n robot.leftFront.setPower(TURN_POWER);\n robot.rightBack.setPower(-TURN_POWER);\n robot.rightFront.setPower(-TURN_POWER);\n }", "Point rotate (double angle);", "private static void rotate(int[][] a) {\n\t\tint len = a.length;\n\t\tint k,l=0;\n\t\tint b[][] = new int[len][len];\n\t\tfor(int i=len-1;i>=0;i--)\n\t\t{\n\t\t\tk=0;\n\t\t\tfor(int j=0;j<len && k<3 && l<3;j++)\n\t\t\t{\n\t\t\t b[k][l]=a[i][j];\n\t\t\t k++;\n\t\t\t if(k>2)\n\t\t\t \t l++;\n\t }\n\t\t}\n\t\tfor(int c[]:b) {\n\t\t\tfor( int d : c) {\n\t\t\t\tSystem.out.print(d + \" \");\n\t\t\t}\n\t\tSystem.out.println();\n\t}\n\t\t\n\t}", "public Matrix rotate90Degree() {\n\t\tMatrix rotatedMatrix = new Matrix(this.getHeight(), this.getWidth());\n\t\tfor(int i = 0; i < this.getWidth(); i++) {\n\t\t\tfor(int j = 0; j < this.getHeight(); j++) {\n\t\t\t\trotatedMatrix.setElement(j, (this.getWidth() -1) - i, data[i][j]);\n\t\t\t}\n\t\t}\n\t\tthis.show();\n\t\trotatedMatrix.show();\n\t\treturn rotatedMatrix;\n\t}", "void turnToDir(float angle) { \n float radian = radians(angle);\n _rotVector.set(cos(radian), sin(radian));\n _rotVector.setMag(1);\n }", "public void rotateBack() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[i][j] = tmp_grid[i][j];\n\t\t}", "void rotate(float x, float y, float z) {\n target_angle[0] += x;\n target_angle[1] += y;\n target_angle[2] += z;\n postSetAngle();\n }", "public void updateAngle(){\n\t\tif (turnUp && (angle < 180) ){\n\t\t\tangle+=1;\n\t\t}\n\t\tif (turnDown && (angle > 0)){\n\t\t\tangle-=1;\n\t\t}\n\t}", "private static void rotate(GraphicsContext gc, double angle, double px, double py) {\n Rotate r = new Rotate(angle, px, py);\n gc.setTransform(r.getMxx(), r.getMyx(), r.getMxy(), r.getMyy(), r.getTx(), r.getTy());\n }", "public void rotate(int[][] matrix) {\n if (matrix == null || matrix.length == 0) return;\n int n = matrix.length-1;\n for (int i = 0; i <= n / 2; i++) {\n for (int j = i; j < n; j++) {\n int temp = matrix[i][j];\n matrix[i][j] = matrix[n - j][i];\n matrix[n - j][i] = matrix[n - i][n - j];\n matrix[n - i][n - j] = matrix[j][n - i];\n matrix[j][n - i] = temp;\n }\n }\n }", "void turnUsingEncoder(double degrees, double power);", "Point rotate (double angle, Point result);", "void calculateRotationMatrix() {\n R[0][0] = (float) (Math.cos(angle[0]) * Math.cos(angle[1]));\n R[1][0] = (float) (Math.sin(angle[0]) * Math.cos(angle[1]));\n R[0][1] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) - Math.sin(angle[0]) * Math.cos(angle[2]));\n R[1][1] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) + Math.cos(angle[0]) * Math.cos(angle[2]));\n R[0][2] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) + Math.sin(angle[0]) * Math.sin(angle[2]));\n R[1][2] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) - Math.cos(angle[0]) * Math.sin(angle[2]));\n R[2][0] = (float) - Math.sin(angle[1]);\n R[2][1] = (float) (Math.cos(angle[1]) * Math.sin(angle[2]));\n R[2][2] = (float) (Math.cos(angle[1]) * Math.cos(angle[2]));\n }", "private static double rotate(double bearing, double degrees) {\n double newBearing = bearing + degrees;\n if (newBearing >= 360) {\n newBearing -= 360;\n }\n return newBearing;\n }", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "public void rotate(int[][] matrix) {\n int temp, len = matrix.length;\n\n int left = 0, top = 0, right = len-1, bottom = len-1;\n\n while(left < right) {\n for(int i = left; i < right; i++) {\n temp = matrix[top][i];\n matrix[top][i] = matrix[len-1-i][left];\n matrix[len-1-i][left] = matrix[bottom][len-1-i];\n matrix[bottom][len-1-i] = matrix[i][right];\n matrix[i][right] = temp;\n }\n left++;\n right--;\n top++;\n bottom--;\n }\n }", "static void rotateClockwise(Block b) {\n int[] pos = b.pos;\n char[][] piece = b.piece;\n\n int row = piece.length;\n int col = piece[0].length;\n\n if (row != col) //means we have a box\n return;\n\n char[][] rotated = new char[row][col];\n for (int r = 0; r < row; r++) {\n for (int c = 0; c < col; c++) {\n rotated[r][c] = piece[col - 1 - c][r];\n }\n }\n\n if (canPlace(pos[0], pos[1], rotated))\n b.piece = rotated;\n\n }", "public void rotateLeft (View view){ //onClick for LEFT Button\n\n if (toyRobotIsActive) {\n\n robot.animate().rotationBy(-90f).setDuration(50); //turn toy robot LEFT\n\n rotateLeft--; //counter to determine orientation\n System.out.println(\"rotateLeft \" + rotateLeft);\n System.out.println(\"rotateLeft + rotateRight = \"\n + orientation(rotateLeft, rotateRight)); //chk params in Logs\n\n } else errorMessage(\"Please place toy robot\");\n }", "static String leftrotate(String s) {\n\n System.out.print(\" left rotate \" + s + \" \");\n char arr[] = s.toCharArray();\n char newarr[]= new char[arr.length];\n for (int i = 0; i < arr.length - 1; i++) {\n newarr[i + 1] = arr[i];\n }\n newarr[0]=s.charAt(s.length()-1);\n\n s = \"\";\n for (int i = 0; i < arr.length; i++)\n s += newarr[i];\n System.out.println(\"Return \" + s);\n return s;\n\n }", "public void turnCW() {\n turn(true);\n }", "@Override\n\tpublic void rotateRight(int degrees) {\n\t\t\n\t}", "public void rotate(double degrees) {\n \tboolean added = CommandQueue.add(Commands.rotate((int) degrees, 50), name);\n \tif (added) { \n \t\tSystem.out.println(\"Rotated by \" + degrees);\n \t}\n }" ]
[ "0.69503856", "0.6888303", "0.6771187", "0.66489625", "0.6564968", "0.64617884", "0.64464015", "0.63917446", "0.63885593", "0.63824314", "0.63767", "0.63480157", "0.6305023", "0.6266452", "0.6249772", "0.61956835", "0.6185624", "0.6185624", "0.61803246", "0.61788315", "0.61493945", "0.6119455", "0.610455", "0.6083899", "0.60768247", "0.6073633", "0.60641307", "0.6057071", "0.6034372", "0.60206187", "0.60167634", "0.6001162", "0.5977921", "0.59738994", "0.5964413", "0.5956301", "0.5937908", "0.5906886", "0.58942515", "0.5879337", "0.5877076", "0.5874133", "0.5873837", "0.58698964", "0.58526826", "0.58362335", "0.5812299", "0.580721", "0.57927924", "0.57888865", "0.57886326", "0.578042", "0.5779848", "0.5771471", "0.5765558", "0.5762564", "0.5760297", "0.5753", "0.574747", "0.57423335", "0.5736026", "0.5729265", "0.5727387", "0.5723532", "0.5713729", "0.5706621", "0.57040375", "0.569478", "0.569187", "0.569151", "0.5680546", "0.5678356", "0.5677477", "0.5674398", "0.56699944", "0.5665723", "0.56647485", "0.56522983", "0.56300634", "0.5627329", "0.5608993", "0.5603574", "0.559826", "0.5593047", "0.5587997", "0.5571368", "0.5570649", "0.5563241", "0.55604357", "0.5559249", "0.5553575", "0.55459124", "0.554349", "0.55423224", "0.55400485", "0.5537754", "0.5535632", "0.5523296", "0.55195993", "0.55186003" ]
0.618628
16
/ creates new equal method to test two squarelotrons
@Override public boolean equals(Object object);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSampleEquals() {\n\n\t\tassertTrue(square.equals(squareRotate));\n\t\t\n\t\tassertTrue(pyr1.equals(pyr5));\n\t\t\n\t\tassertTrue(s.equals(sInitial));\n\t\tassertFalse(stick.equals(stickRotated));\n\t\tassertFalse(s.equals(sRotated));\n\n\n\t}", "@org.testng.annotations.Test\n public void test_equals_Symmetric()\n throws Exception {\n CategorieClient categorieClient = new CategorieClient(\"denis\", 1000, 10.2, 1.1, 1.2, false);\n Client x = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Client y = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Assert.assertTrue(x.equals(y) && y.equals(x));\n Assert.assertTrue(x.hashCode() == y.hashCode());\n }", "@Test\n\tpublic void testSymmetry() {\n\t\tPosition first = new Position(1,2);\n\t\tPosition second = new Position(4, 1);\n\n\t\tint firstDistance = euclideanSquaredMetric.calculateCost(first, second);\n\t\tint secondDistance = euclideanSquaredMetric.calculateCost(second, first);\n\n\t\tassertTrue(firstDistance == secondDistance);\n\t}", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "@Test\n public void equality() {\n new EqualsTester()\n .addEqualityGroup(UnitConverters.identity())\n .addEqualityGroup(UnitConverters.shift(100))\n .addEqualityGroup(UnitConverters.multiply(2))\n .addEqualityGroup(UnitConverters.pow(10, 6))\n .addEqualityGroup(UnitConverters.pow(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.root(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.compose(UnitConverters.shift(100), UnitConverters.multiply(2)))\n .testEquals();\n }", "Equality createEquality();", "public boolean equals(Square other){\n\t\t\treturn this.x==other.x && this.y==other.y;\n\t\t}", "@Test\n public void testEquals_differentParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI + 1,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are different\n assertThat(cellIdentityNr).isNotEqualTo(anotherCellIdentityNr);\n }", "@Test\r\n public void testCreatePopularTour_sameTours() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour result = tourA.createPopularTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result)); \r\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "@Test\n public void testSquare()\n {\n testSquareConstructor(10, 20);\n testSquareConstructor(30, 40);\n }", "public boolean almostEqual(Coordinates a, Coordinates b);", "public void setSquare(boolean equal) {\r\n\t\tsquare = equal;\r\n\t}", "@Test\n public void encodeSquaresXYTest() {\n Square square1 = new BasicSquare(0, 1);\n Square square2 = new BasicSquare(2, 2);\n Square square3 = new SpawnSquare(1, 1);\n ArrayList<Square> squaresList = new ArrayList<>();\n squaresList.add(square1);\n squaresList.add(square2);\n squaresList.add(square3);\n int[] squareX = Encoder.encodeSquareTargetsX(squaresList);\n int[] squareY = Encoder.encodeSquareTargetsY(squaresList);\n int[] expectedSquareX = new int[]{0, 2, 1};\n int[] expectedSquareY = new int[]{1, 2, 1};\n for (int i = 0; i < squareX.length; i++) {\n Assert.assertEquals(expectedSquareX[i], squareX[i]);\n Assert.assertEquals(expectedSquareY[i], squareY[i]);\n }\n }", "@Test\n\tpublic void testEquals2() {\n\t\tDistance d2 = new Distance();\n\t\tDistance d4 = new Distance(1, 1);\n\t\tassertEquals(true, d2.equals(d4));\n\t}", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "@Test\n\tpublic void test_equals2() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(521,\"Joe Tsonga\");\n\tassertFalse(c1.equals(c2));\n }", "@Test\n\tpublic void test_equals1() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(11,\"Joe Tsonga\");\n\tassertTrue(c1.equals(c2));\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "@Test\r\n public void testIsValidSquare()\r\n {\r\n for(int y = 0; y < 8; y++)\r\n for(int x = 0; x < 8; x++)\r\n assertTrue(board.isValidSqr(x, y));\r\n }", "@Test\n public void equals_trulyEqual() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n\n Assert.assertEquals(si1, si2);\n }", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "@Test\r\n public void testCreateTourWithoutDuplicates_MultipleDups() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}, {3, 3}, {1, 1}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}, {3, 3}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "@Test\r\n public void testCreateConcatenatedTour_TwoPlusOne() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}});\r\n Tour tourB = new Tour(new int[][]{{2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}}); \r\n Tour result = tourA.createConcatenatedTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }", "@Test\r\n public void test0IsEqual_ThreeElements() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}});\r\n assertTrue(tourA.isEqual(tourB));\r\n }", "@Test\n public void testEquals04() {\n System.out.println(\"equals\");\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n Object otherObject = new SocialNetwork(new HashSet(), cities);\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "public void testSquare(){\n\t\tSquare s = new Square(false);\n\t\ts.toggleSquare();\n\t\tassertTrue(s.isToggle());\n\t\ts.setToggle(false);\n\t\tassertFalse(s.isToggle());\n\n\t}", "@Test\n void solvesExample() {\n RottenOranges rottenOranges = new RottenOranges();\n int[][] grid = new int[][] {{2,1,1},{1,1,0},{0,1,1}};\n assertThat(rottenOranges.orangesRotting(grid)).isEqualTo(4);\n }", "public static void main(String[] args) {\n // Reflexive\n System.out.println(o.equals(o));\n System.out.println(r.equals(r));\n\n // Symmetric\n System.out.println(o.equals(p) + \" = \" + p.equals(o));\n System.out.println(r.equals(s) + \" = \" + s.equals(r));\n\n // Transitive\n System.out.println(o.equals(p) + \" = \" + p.equals(q) + \" = \" + o.equals(q));\n System.out.println(r.equals(s) + \" = \" + s.equals(t) + \" = \" + r.equals(t));\n\n // Comparing Point to ColorPoint\n System.out.println(p.equals(s.asPoint()));\n System.out.println(s.asPoint().equals(p));\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Commissioner instance = new Commissioner();\n Commissioner instance2 = new Commissioner();\n instance.setLogin(\"genie\");\n instance2.setLogin(\"genie\");\n boolean expResult = true;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void testEquivalentChords(){\n\t\ttry{\n\t\t\tchord = new Chord(rand_root, rand_tone, rand_octave, 0, \"\", 4);\n\t\t\tChord chord2 = new Chord(rand_root, rand_tone, rand_octave, 0, \"\", 4);\n\t\t\tassertTrue(chord.equals(chord2));\n\t\t\tassertTrue(chord2.equals(chord));\n\n\t\t\tchord2.changeOctave(rand_octave + 1);\n\t\t\tassertFalse(chord.equals(chord2));\n\t\t\tassertFalse(chord2.equals(chord));\n\n\t\t\tchord2.changeOctave(rand_octave);\n\t\t\tassertTrue(chord.equals(chord2));\n\t\t\tassertTrue(chord2.equals(chord));\n\n\t\t\tchord.makeDiminished();\n\t\t\tchord2.makeDiminished();\n\t\t\tassertTrue(chord.equals(chord2));\n\t\t\tassertTrue(chord2.equals(chord));\n\n\t\t\tchord.makeMinor();\n\t\t\tassertFalse(chord.equals(chord2));\n\t\t\tassertFalse(chord2.equals(chord));\n\n\t\t\tchord = new Chord(1, Tonality.maj, 4);\n\t\t\tchord2 = new Chord(1, Tonality.maj, 4);\n\t\t\tassertTrue(chord.equals(chord2));\n\t\t\tassertTrue(chord2.equals(chord));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(e.getMessage());\n\t\t}\n\t}", "@Test\n public void equals2() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 1);\n SmartPlayer y = new SmartPlayer(0, 2);\n assertFalse(x.equals(y));\n }", "public static void main(String[] args) {\n int[][] arr = {{1, 2, 3}, {4, 0, 5}, {6, 7, 8}};\n int[][] arr2 = {{1, 2, 3}, {5, 0, 4}, {6, 7, 8}};\n Board b = new Board(arr);\n Board b2 = new Board(arr2);\n System.out.println(b.toString());\n System.out.println(b.hamming());\n System.out.println(b.equals(b2));\n int[][] arr3 = {{8, 1, 3}, {4, 0, 2}, {7, 6, 5}};\n Board b3 = new Board(arr3);\n System.out.println(b3.manhattan());\n System.out.println(b3.hamming());\n System.out.println(\"----------original-------------------\");\n System.out.println(b3);\n System.out.println(\"----------neighbors-------------------\");\n\n\n for (Board x: b3.neighbors()) {\n System.out.println(x.toString());\n }\n\n System.out.println(\"----------twin-------------------\");\n int[][] arr4 = {{1, 0}, {3, 2}};\n Board b4 = new Board(arr4);\n System.out.println(b4.twin());\n\n\n }", "@Test\r\n public void testCopy_ThreeWaypoints() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {3, 3}});\r\n Tour result = tour.copy();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}, {3, 3}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n public void testEquals() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n Coctail c2 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n assertEquals(c1, c2);\n }", "@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }", "private static void checkEqualsAndHashCodeMethods(Object lhs, Object rhs,\n boolean expectedResult) {\n if ((lhs == null) && (rhs == null)) {\n Assert.assertTrue(\n \"Your check is dubious...why would you expect null != null?\",\n expectedResult);\n return;\n }\n\n if ((lhs == null) || (rhs == null)) {\n Assert.assertFalse(\n \"Your check is dubious...why would you expect an object \"\n + \"to be equal to null?\", expectedResult);\n }\n\n if (lhs != null) {\n assertEquals(expectedResult, lhs.equals(rhs));\n }\n if (rhs != null) {\n assertEquals(expectedResult, rhs.equals(lhs));\n }\n\n if (expectedResult) {\n String hashMessage =\n \"hashCode() values for equal objects should be the same\";\n Assert.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode());\n }\n }", "@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "@Test\n public void testSumUsingCommutativityProperty() {\n for (int i = 0; i < 100; i++) {\n int x = randomInt();\n int y = randomInt();\n assertThat(sum(x, y), equalTo(sum(y, x)));\n }\n }", "public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }", "@Test\n public void equals() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 0);\n SmartPlayer y = new SmartPlayer(0, 0);\n assertTrue(x.equals(y));\n }", "@Test\n public void equals_DifferentObjects_Test() {\n Assert.assertFalse(bq1.equals(ONE));\n }", "boolean equals(GameState b) {\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n if (board[i][j] != b.board[i][j]) {\n return false;\n }\n }\n }\n return true;\n\n }", "@Override\n public boolean equals(Object o) {\n\t// TODO\n\tif(o == null)\n\t\treturn false;\n\tif(o instanceof Square){\n\t //test if they have the same side and whether their upperleft\n\t //points point to the same reference\n\t return super.equals((Square)o) &&\n\t\tthis.getSide() == ((Square)o).getSide();\n\t}\n\treturn false;\n }", "@Test\n\tpublic void test() {\n\t\tTestUtil.testEquals(new Object[][]{\n\t\t\t\t{4, 2, 7, 1, 3},\n\t\t\t\t{3, 3, 5, 2, 1},\n\t\t\t\t{15, 2, 4, 8, 2}\n\t\t});\n\t}", "@Test\n public void testEquals() {\n assertFalse(jesseOberstein.equals(nathanGoodman));\n assertTrue(kateHutchinson.equals(kateHutchinson));\n }", "public static boolean squareSquare(GameObject obj1, GameObject obj2) {\r\n\t\tfloat obj1_size = (obj1.getScale() * EnvironmentVariables.getMeter()) / 2;\r\n\t\tfloat obj2_size = (obj2.getScale() * EnvironmentVariables.getMeter()) / 2;\r\n\t\t\r\n\t\tif(obj1.getX() + obj1_size >= obj2.getX() - obj2_size && \t//obj1 right edge past obj2 left edge\r\n\t\t\tobj1.getX() - obj1_size <= obj2.getX() + obj2_size &&\t//obj1 left edge past obj2 right edge\r\n\t\t\tobj1.getY() + obj1_size >= obj2.getY() - obj2_size &&\t//obj1 top edge past obj2 bottom edge\r\n\t\t\tobj1.getY() - obj1_size <= obj2.getY() + obj2_size\t\t//obj1 top edge past obj2 bottom edge\r\n\t\t\t\t) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean equals(Object y) {\n if (y == null) return false;\n if (y == this) return true;\n if (y.getClass() != this.getClass()) return false;\n Board that = (Board)y;\n if (N != that.N) return false;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (blocks[i][j] != that[i][j]) {\n retrun false;\n }\n }\n }\n return true;\n }", "@Test\r\n public void testCreatePopularTour_EveryScndWaypointFromFirst() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour result = tourA.createPopularTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result)); \r\n }", "public void testEquals() {\r\n\t\t// direct circle\r\n\t\tCircleArc2D arc0 = new CircleArc2D();\r\n\t\tCircle2D circle = new Circle2D(0, 0, 1, true);\r\n\t\tCircleArc2D arc1 = new CircleArc2D(circle, 0, PI/2);\r\n\t\tCircleArc2D arc2 = new CircleArc2D(circle, 0, PI/2, true);\r\n\t\tCircleArc2D arc3 = new CircleArc2D(0, 0, 1, 0, PI/2);\r\n\t\tCircleArc2D arc4 = new CircleArc2D(0, 0, 1, 0, PI/2, true);\r\n\t\tassertTrue(arc1.equals(arc0));\r\n\t\tassertTrue(arc1.equals(arc2));\r\n\t\tassertTrue(arc1.equals(arc3));\r\n\t\tassertTrue(arc1.equals(arc4));\r\n\r\n\t\t// direct circle, with different angles\r\n\t\tcircle = new Circle2D(0, 0, 1, true);\r\n\t\tarc1 = new CircleArc2D(circle, PI/2, PI/2);\r\n\t\tarc2 = new CircleArc2D(circle, PI/2, PI, true);\r\n\t\tarc3 = new CircleArc2D(0, 0, 1, PI/2, PI/2);\r\n\t\tarc4 = new CircleArc2D(0, 0, 1, PI/2, PI, true);\r\n\t\tassertTrue(arc1.equals(arc2));\r\n\t\tassertTrue(arc1.equals(arc3));\r\n\t\tassertTrue(arc1.equals(arc4));\r\n\t\t\r\n\t\t// indirect circle, with different angles\r\n\t\tcircle = new Circle2D(0, 0, 1, true);\r\n\t\tarc1 = new CircleArc2D(circle, PI/2, -PI/2);\r\n\t\tarc2 = new CircleArc2D(circle, PI/2, 2*PI, false);\r\n\t\tarc3 = new CircleArc2D(0, 0, 1, PI/2, -PI/2);\r\n\t\tarc4 = new CircleArc2D(0, 0, 1, PI/2, 2*PI, false);\r\n\t\tassertTrue(arc1.equals(arc2));\r\n\t\tassertTrue(arc1.equals(arc3));\r\n\t\tassertTrue(arc1.equals(arc4));\r\n\t}", "@Test\n public void testHashCodeAndEquals() {\n Set<Pair<String, String>> pairs = IntStream.rangeClosed(1, 10).mapToObj( i->Pair.of(\"l\"+i, \"r\"+i)).collect( toSet() );\n assertEquals( 10, pairs.size() );\n assertTrue( pairs.contains(Pair.of(\"l1\", \"r1\")));\n assertFalse( pairs.contains(Pair.of(\"l100\", \"r100\")));\n }", "private static boolean equalityTest5(String a, String b)\n {\n return a.hashCode() == b.hashCode();\n }", "private static boolean identityEqual(final I_GameState state1, final I_GameState state2) {\n if (state1 == state2)\n return true;\n\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .allMatch(pair -> pair.getKey() == pair.getValue());\n }", "public boolean equals(Object y) {\n if (y == this) return true;\n if (y == null) return false;\n if (y.getClass() != this.getClass()) return false;\n Board other = (Board) y;\n if (this.N != other.N) return false;\n for (int row = 0; row < N; ++row) {\n for (int col = 0; col < N; ++col) {\n if (this.tiles[row][col] != other.tiles[row][col]) {\n return false;\n }\n }\n }\n return true;\n }", "@Test\n\tpublic void test_equals1() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertTrue(t1.equals(t2));\n }", "public boolean equals( Object rightSide ) {\n\tif (this.size() == ((Matrix)rightSide).size()){ //identical dimensions\n\t for (int r = 0; r < this.size(); r++){ \n\t for (int c = 0; c < this.size(); c++){ \n\t\t if (matrix[r][c] != ((Matrix)rightSide).get(r,c))\n\t\t\treturn false;\n\t\t}\n\t }\n\t return true;\n\t}\n\treturn false; \n }", "LengthEquals createLengthEquals();", "boolean hasIsEquivalent();", "@Test\n public void testAsinsBehaveSimilarly() {\n double tolerance = 0.00000001;\n double standardAsin1 = Math.asin(1);\n double j2meAsin1 = MathUtils.asin(1);\n Assert.assertTrue(\"Math.asin(1) = \" + standardAsin1\n + \", while MathUtils.asin(1) = \" + j2meAsin1,\n Math.abs(standardAsin1 - j2meAsin1) < tolerance);\n }", "private boolean twoCornersWithSameColor(OthelloBitBoard board) {\r\n\t\tlong playerBoard = board.getBitBoardOf(playerColor);\r\n\t\tlong opponentBoard = board.getBitBoardOf(opponentColor);\r\n\t\treturn Long.bitCount(playerBoard & CORNER_MASK) > 1 || Long.bitCount(opponentBoard & CORNER_MASK) > 1;\r\n\t}", "public boolean equals( Matriz matriz2 )\n {\n //definir dados\n boolean answer = true;\n int lin;\n int col;\n int lin2;\n int col2;\n int i, j;\n int x, y;\n\n //verificar se matrizes sao validas\n if( table == null || matriz2 == null )\n {\n IO.println(\"ERRO: Matrize(s) invalida(s). \");\n } //end\n else\n {\n //obter dimensoes\n lin = lines();\n col = columns();\n lin2 = lines();\n col2 = columns();\n\n //verificar se dimensoes sao validas\n\n if( lin <= 0 || col <= 0 || lin2 <= 0 || col2 <= 0 )\n {\n IO.println(\"ERRO: Tamanhos invalidos. \");\n } //end\n else\n {\n if( lin == lin2 && col == col2 )\n {\n for (i = 0; i < lin; i++)\n {\n for (j = 0; j < col; j++)\n {\n\n x = IO.getint(matriz2.table[i][j]);\n y = IO.getint(table[i][j]);\n if(x != y)\n {\n answer = false;\n } //end\n } //end repetir\n } //end repetir\n } //end\n else\n {\n answer = false;\n } //end se\n } //end se\n } //end se\n //retornar resposta\n return ( answer );\n }", "@Test\n public void test21() throws Throwable {\n Complex complex0 = new Complex((-1392.0), (-1392.0));\n Complex complex1 = complex0.sinh();\n Complex complex2 = complex0.exp();\n Complex complex3 = complex0.conjugate();\n Complex complex4 = complex0.tan();\n Complex complex5 = complex1.divide(complex3);\n double double0 = complex4.abs();\n double double1 = complex4.getArgument();\n boolean boolean0 = complex4.equals(complex2);\n }", "@Override\n public boolean equals(Object o) {\n\tif (o == null)\n\t return false; \n\telse {\n\t Square p = (Square) o; \n\t return ( (rowIndex == p.rowIndex) && (colIndex == p.colIndex) );\n\t} \n }", "@Test\n\tpublic void testEqualsVerdadeiro() {\n\t\t\n\t\tassertTrue(contato1.equals(contato3));\n\t}", "@Test\r\n public void testCreateTourWithoutDuplicates_DupAtEnd() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\r\n public void ObjectsAreNotTheSame() {\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n Assert.assertNotSame(try_scorers ,try_scorers.updateGamesPlayed(4),\"The Objects are the same\"); \r\n \r\n }", "@Test\n public void testHashcodeReturnsSameValueForIdenticalRecords() {\n int hashcodeA = record.hashCode();\n int hashcodeB = otherRecord.hashCode();\n\n assertThat(hashcodeA == hashcodeB, is(true));\n }", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "public static BinaryExpression equal(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test\r\n\tpublic void testCloneEU() {\r\n\t\tExternUnit externu2 = externu1.clone();\r\n\t\tassertTrue(externu1.equals(externu2));\r\n\t}", "@Test\r\n\tpublic void testEqualsEU() {\r\n\t\tExternUnit externu2 = externu1.clone();\r\n\t\tassertTrue(externu1.equals(externu2));\r\n\t}", "@Test\n\tpublic void testEqualsFalso() {\n\t\t\n\t\tassertFalse(contato1.equals(contato2));\n\t}", "protected abstract boolean equalityTest(Object key, Object key2);", "@Test\n public void test05() throws Throwable {\n Complex complex0 = new Complex((-1392.0), (-1392.0));\n Complex complex1 = complex0.sinh();\n Complex complex2 = complex0.conjugate();\n Complex complex3 = complex0.tan();\n Complex complex4 = complex1.divide(complex2);\n boolean boolean0 = complex3.equals(complex1);\n }", "private void assertSymmetric(UMLMessageArgument msgArg1,UMLMessageArgument msgArg2) throws Exception\r\n\t{\r\n\t\tif( msgArg1!=null && msgArg2!=null)\r\n\t\t\tassertEquals(msgArg1.equals(msgArg2),msgArg2.equals(msgArg1));\r\n\t}", "public EqualityProtocol getEqualityCircuit(int bitLength, int securityParam, SInt x, SInt y, SInt result);", "@Override\n public boolean equals(Object y) {\n if (!(y instanceof Board) || ((Board) y).size() != _N) {\n return false;\n }\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (((Board) y).tileAt(i,j) != _tiles[i][j]) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Matrix)) return false;\n Matrix B = (Matrix) o;\n Matrix A = this;\n if (B.M != A.M || B.N != A.N) return false;\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n if (A.data[i][j] != B.data[i][j]) return false;\n return true;\n }", "@Test\n public void equals_SameBuyQuery_Test() {\n Assert.assertTrue(bq1.equals(bq0));\n }", "@Test\n \tpublic void testEqual() {\n \t\tAssert.assertTrue(f1.equals(f1));\n \t}", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "public Square(Point p1, Point p2) {\r\n super(p1,p2);\r\n \r\n \r\n // uses the fact that in a square, the diagonal line (Hypotenus) is x*Math.sqrt(2).\r\n // Checks by finding if they are equal using pythag theorem\r\n //if it isnt it throws an IllegalStateException\r\n if( Double.compare(p2.getX()-p1.getX(), p2.getY()-p1.getY()) == 0 ){\r\n \r\n }\r\n else{\r\n \r\n throw new IllegalStateException(\"Not a Square\");\r\n } \r\n \r\n }", "@Override\r\n public void ontTest( OntModel m ) throws Exception {\r\n Profile prof = m.getProfile();\r\n OntClass A = m.createClass( NS + \"A\" );\r\n Individual x = m.createIndividual( A );\r\n Individual y = m.createIndividual( A );\r\n Individual z = m.createIndividual( A );\r\n\r\n x.addSameAs( y );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n assertEquals( \"x should be the same as y\", y, x.getSameAs() );\r\n assertTrue( \"x should be the same as y\", x.isSameAs( y ) );\r\n\r\n x.addSameAs( z );\r\n assertEquals( \"Cardinality should be 2\", 2, x.getCardinality( prof.SAME_AS() ) );\r\n iteratorTest( x.listSameAs(), new Object[] {z,y} );\r\n\r\n x.setSameAs( z );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n assertEquals( \"x should be same indiv. as z\", z, x.getSameAs() );\r\n\r\n x.removeSameAs( y );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n x.removeSameAs( z );\r\n assertEquals( \"Cardinality should be 0\", 0, x.getCardinality( prof.SAME_AS() ) );\r\n }", "@Test\n\tpublic void testSquare() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers(); \n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.sqrt(zero);\n\t\t\tassertEquals(ac.square(zero), expResult, 0);\n\t\t}\n\t\t\n\t}", "@Test public void operationTest(){\n assertEquals(calculator.squareOf(8),64);\n assertEquals(calculator.elementOf(9),3);\n assertEquals(calculator.factorial(5),120);\n assertEquals(calculator.isPrimeNumber(2),true);\n assertEquals(calculator.isPrimeNumber(13),true);\n assertEquals(calculator.isPrimeNumber(9),false);\n // assertNotEquals(calculator.factorial(4),10);\n }", "boolean hasSameAs();", "@Test\n public void testEqualsIdentical() {\n int userID = 0;\n int[] pref = new int[11];\n int[] health = new int[9];\n int[] diet = new int[5];\n int[] meal = new int[3];\n UserProfile up2 = new UserProfile(userID, pref, health, diet, meal);\n assertEquals(up, up2);\n }", "private static boolean areTheyEqual(int[][] tempArray, int[][] array2) {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (tempArray[i][j] != array2[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Test\n\tpublic final void testClone(){\n\t\tShape starting = shape.clone();\n\t\tassertNotNull( starting );\n\t\tshape.shiftDown();\n\t\tCell[] startingCells = starting.getCells();\n\t\tCell[] endingCells = shape.getCells();\n\t\tfor( int i = 0; i < startingCells.length; i++ ){\n\t\t\tassertNotEquals( \"Cell \" + i, startingCells[i], endingCells[i] );\n\t\t}\n\t}", "@Test\n\tpublic void addPairToSet2Test() {\n\t\tClone subLeft = createMock(Clone.class);\n\t\tClone subRight = createMock(Clone.class);\n\t\t\n\t\tParseTree subLeftTree = createMock(ParseTree.class);\n\t\tParseTree subRightTree = createMock(ParseTree.class);\n\t\t\n\t\tClone other = createMock(Clone.class);\n\t\tParseTree otherTree = createMock(ParseTree.class);\n\t\t\n\t\texpect(subLeft.getParseTree()).andReturn(subLeftTree).anyTimes();\n\t\texpect(subRight.getParseTree()).andReturn(subRightTree).anyTimes();\n\t\texpect(other.getParseTree()).andReturn(otherTree).anyTimes();\n\t\t\n\t\texpect(leftTree.getChildCount()).andReturn(1).anyTimes();\n\t\texpect(leftTree.getChild(0)).andReturn(subLeftTree).anyTimes();\n\t\t\n\t\texpect(rightTree.getChildCount()).andReturn(1).anyTimes();\n\t\texpect(rightTree.getChild(0)).andReturn(subRightTree).anyTimes();\n\t\t\n\t\texpect(subLeftTree.getChildCount()).andReturn(0).anyTimes();\n\t\texpect(subRightTree.getChildCount()).andReturn(0).anyTimes();\n\t\t\n\t\texpect(otherTree.getChildCount()).andReturn(0).anyTimes();\n\t\t\n\t\treplay(left);\n\t\treplay(leftTree);\n\t\treplay(subLeft);\n\t\treplay(subLeftTree);\n\t\treplay(right);\n\t\treplay(rightTree);\n\t\treplay(subRight);\n\t\treplay(subRightTree);\n\t\treplay(other);\n\t\treplay(otherTree);\n\t\t\n\t\tclones.addClonePair(subLeft, subRight);\n\t\tclones.addClonePair(subRight, other);\n\t\t\n\t\tassertEquals(1, clones.size());\n\t\t\n\t\tclones.addClonePair(left, right);\n\t\t\n\t\tassertEquals(2, clones.size());\n\t\t\n\t\tassertEquals(2, clones.getItem(0).size());\n\t\tassertEquals(2, clones.getItem(1).size());\n\t\t\n\t\tverify(left);\n\t\tverify(leftTree);\n\t\tverify(subLeft);\n\t\tverify(subLeftTree);\n\t\tverify(right);\n\t\tverify(rightTree);\n\t\tverify(subRight);\n\t\tverify(subRightTree);\n\t\tverify(other);\n\t\tverify(otherTree);\n\t}", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }" ]
[ "0.6676447", "0.6579173", "0.64118993", "0.6324121", "0.628298", "0.6229468", "0.62131387", "0.6181306", "0.61654913", "0.61413306", "0.6074751", "0.6053554", "0.5949521", "0.5921364", "0.5903207", "0.5895445", "0.5884165", "0.58755237", "0.58608496", "0.5846653", "0.5840801", "0.58402705", "0.5837807", "0.5835636", "0.5815093", "0.5806053", "0.57613283", "0.57569546", "0.5748098", "0.5746226", "0.57449394", "0.5732484", "0.569948", "0.56866354", "0.56812555", "0.5675362", "0.56749594", "0.5674907", "0.56649786", "0.5651966", "0.5646424", "0.56438243", "0.5638696", "0.5635458", "0.5633542", "0.5628312", "0.5626563", "0.56216", "0.5619708", "0.5616973", "0.5615376", "0.5612558", "0.56120414", "0.56102026", "0.5607328", "0.5606992", "0.5604414", "0.56026375", "0.5600806", "0.55915487", "0.5590136", "0.55783874", "0.557646", "0.55729717", "0.5571362", "0.55597365", "0.55596584", "0.5552517", "0.5544092", "0.55414295", "0.55407983", "0.5538519", "0.5534477", "0.5532149", "0.55319834", "0.5531615", "0.55298406", "0.55293816", "0.5527279", "0.5524542", "0.5519946", "0.55191994", "0.55186856", "0.55159616", "0.55158514", "0.55157894", "0.5512555", "0.5508806", "0.5502947", "0.55013835", "0.5500217", "0.5497559", "0.5496362", "0.5494794", "0.54946953", "0.5487421", "0.54871386", "0.5483881", "0.5483794", "0.54826224", "0.5481336" ]
0.0
-1
/ outputs a Squarelotron as a text
@Override public String toString();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String showText() {\n\t\tString text = \"\";\n\t\ttry {\n\t\t\tString line1 = \"\";\n\t\t\tString line2 = \"\";\n\t\t\tString line3 = \"\";\n\t\t\tfor (LakeTile lake_tile : removed_laketile) {\n\t\t\t\tint i = removed_laketile.indexOf(lake_tile);\n\t\t\t\tPosition pos = removed_position.get(i);\n\t\t\t\tQueue<Color> color_queue = lake_tile.getColorOfFourSides();\n\t\t\t\tArrayList<Color> color_list = new ArrayList<Color>(color_queue);\n\n\t\t\t\tline1 += String.format(\"%12s\", \"\");\n\t\t\t\tline1 += Color.getColorText(color_list.get(0), \" \");\n\n\t\t\t\tline1 += String.format(\"%4s\", \"\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tline2 += String.format(\"%2s\", lake_tile.getIndex());\n\t\t\t\tline2 += \":\";\n\t\t\t\tline2 += String.format(\"%-7s\",\"(\" + pos.getX() + \",\" + pos.getY() + \")\");\n\t\t\t\tline2 += Color.getColorText(color_list.get(3), \" \");\n\t\t\t\tline2 += \" \";\n\t\t\t\tif (lake_tile.isPlatform()) {\n\t\t\t\t\tline2 += \"O\";\n\t\t\t\t} else {\n\t\t\t\t\tline2 += \"X\";\n\t\t\t\t}\n\t\t\t\tline2 += \" \" + Color.getColorText(color_list.get(1), \" \") + \" \";\n\n\t\t\t\tline3 += String.format(\"%12s\", \"\");\n\t\t\t\tline3 += Color.getColorText(color_list.get(2), \" \");\n\t\t\t\tline3 += String.format(\"%4s\", \"\");\n\n\t\t\t}\n\t\t\ttext += line1 + \"\\n\";\n\t\t\ttext += line2 + \"\\n\";\n\t\t\ttext += line3 + \"\\n\";\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\ttext = \"No Data\";\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\n\t}", "@Override\n public String toString() {\n String[] output = new String[getHeight()];\n for (int row=0; row < getHeight(); row++) {\n StringBuilder builder = new StringBuilder();\n for (int col=0; col < getWidth(); col++) {\n Square current = getSquare(row, col);\n builder.append(getCharForSquare(current));\n }\n output[row] = builder.toString();\n }\n return String.join(\"\\n\", output);\n }", "void drawOutput(String output);", "private void renderTypeString() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Typed the seed and end with letter S\");\n StdDraw.show();\n }", "@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}", "public String toString()\n\t{\n\t\treturn String.format(\"Square at x=%d, y=%d with sides %d\", anchor.x, anchor.y, oneside);\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "static void MichelMethod() {\n String CSI = \"\\u001B[\";\n System.out.print(CSI + \"32\" + \"m\");\n\n System.out.println(\"This is the group U calculator.\");\n System.out.println(\"Thanks for your preference!\");\n System.out.println(CSI + \"m\");\n\n }", "public void displayToScreen(String str){\r\n textPane1.setText(str);\r\n paintDiamond();\r\n }", "public void wave_1(int width,int height,int lenth)\r\n\t{\r\n\t\t\r\n\t\tfor(int i=1;i<=height;i++ )\r\n\t\t{\r\n\t\t\t\t\t\r\n\t\t\tcommon.printSpaceE(i, height);\r\n\t\t\t\r\n\t\t\tfor(int j=0;j<lenth;j++)\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tcommon.printChar(i, '/','\\\\');\r\n\t\t\t\tcommon.printSpaceC(i, height);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\tfor(int i=0;i<height;i++)\r\n\t\t{\r\n\t\t\tfor(int s=0;s<height-i;s++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t}\r\n\t\t\tfor(int j=0;j<=i*2;j++)\r\n\t\t\t{\r\n\t\t\t\tif(j==0||j==i*2)\r\n\t\t\t\t System.out.print(\"*\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}*/\r\n\t}", "public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\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 \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }", "@Override\n\tpublic void Render() {\n\t\t\n\t\tSystem.out.println(\"Chocolater Ice Cream\");\n\t\t\n\t}", "String getOutput();", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public String toString(){\n return (\"TextShape \"+x+\" \"+y+\" \"+col.getRed()+\" \"+col.getGreen()+\" \"+col.getBlue()+\" \"+str);\n }", "public void mostrar() {\r\n\t\tfor (int i = 0; i < bolsa.length; i++) {\r\n\t\t\tSystem.out.printf(\"#%d: %d\\t\", i, bolsa[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public static void cave() {\n System.out.println(\" ***** * * * * * * * * \");\n System.out.println(\" *** *** \");\n System.out.println(\" *** *** \");\n System.out.println(\" | *** *** \");\n System.out.println(\" | *** *** \");\n System.out.println(\" O __|__ *** *** \");\n System.out.println(\" ******l *** *** \");\n System.out.println(\" * * *** *** \");\n System.out.println(\" * * ********************* * * * * * * \");\n }", "java.lang.String getOutput();", "public void displayTextToConsole();", "void display(String w[][]){\r\n System.out.println(\"\\nGambaran dari area (world) yang di buat\\n\");\r\n for (int i = 1; i <= 4; i++) {\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n System.out.print(\"|\\t\");\r\n for (int j = 1; j <= 4; j++) {\r\n System.out.print(w[i][j]+ \"\\t|\\t\");\r\n }\r\n }\r\n\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n }", "@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}", "private void makeOutro()\r\n\t{\r\n\t TextProperties outroProperties = new TextProperties();\r\n\t outroProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(Font.SANS_SERIF, Font.PLAIN, width >= 80 ? 18 : 13));\r\n\t outroProperties.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.blue);\r\n\t \r\n\t String outro1Text = \"In the result all \"+amountOfStars+\" points are assigned to groups.\";\r\n\t String outro2Text = width > 80 ? \"This is used in astrophysics to find clusters of stars or dark matter out of millions of 2D or 3D points.\" : \"This is used in astrophysics to find clusters\";\r\n\t String outro3Text = \" of stars or dark matter out of millions of 2D or 3D points.\";\r\n\t \r\n\t\toutro1 = lang.newText(getStarPosition(0, height+3), outro1Text, \"outro1\", null, outroProperties);\r\n\t\toutro2 = lang.newText(new Offset(0, 0, \"outro1\", AnimalScript.DIRECTION_SW), outro2Text, \"outro2\", null, outroProperties);\r\n\t\tif(width <= 80) outro3 = lang.newText(new Offset(0, 0, \"outro2\", AnimalScript.DIRECTION_SW), outro3Text, \"outro3\", null, outroProperties);\r\n\t}", "public void monsterSound(){\n System.out.println(\"\\n\\nYou hear gutteral moans and the shambling of a creature nearby.\\n\\n\");\n }", "public String toString()\n {\n return \"I am the nice \" + NAME + \", I am now standing on square \" + x + \" , \" + y + \".\";\n }", "public static void display() {\n\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println(\"* Omar Oraby\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* 900133379\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Salma Talaat *\");\n\t\tSystem.out.println(\"* 900161560\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Ahmed Elshafey *\");\n\t\tSystem.out.println(\"* 900131045 *\");\n\t\tSystem.out.println(\"* Programming in Java *\");\n\t\tSystem.out.println(\"* (2018 Fall) *\");\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println();\n }", "public static void oralOutput(String text)\n\t{\n\t\tSystem.setProperty(\"mbrola.base\",\"E:\\\\Automation\\\\mbrola\");\n\t\tVoiceManager vm=VoiceManager.getInstance();\n\t\tVoice v=vm.getVoice(\"mbrola_us1\"); //or kevin16\n\t\tv.allocate();\n\t\tv.speak(text);\n\t\tv.deallocate();\n\t}", "private void generateTextArea()\n {\n //Clear the textArea\n textArea.selectAll();\n textArea.replaceSelection(\"\");\n\n MyCircle circle = panel.getCircle();\n\n //Add all of the required information to the textarea\n textArea.append(String.format(\"AREA: %.2f %n\", circle.getArea()));\n textArea.append(\"RADIUS: \"+circle.getRadius()+\"\\n\");\n textArea.append(\"DIAMETER: \"+circle.getDiameter()+\"\\n\");\n textArea.append(String.format(\"CIRCUMFERENCE: %.2f %n\", circle.getCircumference()));\n }", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "@Override\n\tpublic void smile() {\n\t\tSystem.out.println(\"黄种人-笑\");\n\t}", "void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}", "public abstract String visualize(byte input);", "public abstract String visualizar();", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "public void displayText() {\n\n // Draws the border on the slideshow aswell as the text\n image(border, slideshowPosX - borderDisplace, textPosY - textMargin - borderDisplace);\n\n // color of text background\n fill(textBackground);\n\n //background for text\n rect(textPosX - textMargin, textPosY - textMargin, textSizeWidth + textMargin * 2, textSizeHeight + textMargin * 2);\n\n //draw text\n image(texts[scene], textPosX, textPosY, textSizeWidth, textSizeHeight, 0, 0 + scrolled, texts[scene].width, textSizeHeight + scrolled);\n }", "public String printWall(){\n return \"\";\r\n }", "public String toString() {\n\t\tString returnString=\"\";\n\t\t\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\tfor (int j=0; j<squares.length; j++) {\n\t\t\t\treturnString+=Character.toString(squares[i][j].getValue());\n\t\t\t}\n\t\t\treturnString+=\"// \";\n\t\t}\n\t\t\n\t\treturn returnString;\n\t}", "public void textDisplay() {\r\n //goes through array and if it is true then print out 1, if not then print out 0\r\n for (int y = 0; y < grid.length; y++) {\r\n for (int x = 0; x < grid[0].length; x++) {\r\n if (grid[y][x] == true) {\r\n System.out.print(1);\r\n } else {\r\n System.out.print(0);\r\n }\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "public String toString() { \n return \"Hi, I'm a Wumpus. Eat me!\";\n }", "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "public String stampaSalute()\r\n\t{\r\n\r\n\t\tString s = \"\";\r\n\t\tint numeroAsterischi = (int)(energia*10.0);\r\n\t\tfor (int k = 0; k < numeroAsterischi; k++) s += \"*\";\r\n\t\treturn s;\r\n\r\n\t\t\r\n\t}", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public String render() {\n\t\tresetOutput();\n\t\trenderBorder();\n\t\trenderPlayerWalls();\n\t\trenderTargetTiles();\n\t\trenderPlayers();\n\n\t\treturn this.buildOutput();\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tString line = \"\";\n\t\tint lineLength = (sqRt + 1) + (sqRt) * (sqRt + sqRt + 1);\n\t\tfor(int i = 0; i < lineLength; i++) {\n\t\t\tline += \"-\";\n\t\t}\n\t\tsb.append(line + \"\\n\");\t\n\t\tfor(int i = 1; i <= dimension; i++) {\n\t\t\tfor(int j = 1; j <= dimension; j++) {\n\t\t\t\tif(j == 1) {\n\t\t\t\t\tsb.append(\"| \");\n\t\t\t\t}\n\t\t\t\tsb.append(puzzle[i - 1][j - 1]);\n\t\t\t\tsb.append(\" \");\n\t\t\t\tif(j % sqRt == 0) \n\t\t\t\t\tsb.append(\"| \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tif(i % sqRt == 0) \n\t\t\t\tsb.append(line + \"\\n\");\t\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void showSquareDetails(){\r\n view.printSquareDetails(model.getSideLength(), model.getColor());\r\n }", "public void drawNoticeText(int h){\r\n Font font=new Font(\"SanSerif\",Font.BOLD,15); \r\n g.setColor(Color.red);\r\n g.setFont(font);\r\n String t=\"NOTE: All players cannot be on the same team.\";\r\n g.drawString(t,50,265);\r\n t=\"Use WASD to move.\";\r\n g.drawString(t,50,48); \r\n t=\"Press SPACE on the Start Button to Begin!\";\r\n g.drawString(t,120,h-5); \r\n \r\n font=new Font(\"SanSerif\",Font.BOLD,40); \r\n g.setColor(Color.black);\r\n g.setFont(font); \r\n t=\"Settings\";\r\n g.drawString(t,330,40); \r\n }", "public void mostrarJet(){\r\n \r\n System.out.println(\"clase hija jet de vehiculo con motor \");\r\n System.out.println(\"LA CANTIDAD DE MOTORES ES : \" + this.cantidaddeMotores);\r\n\r\n\r\n System.out.println(\"***************************************************\");\r\n System.out.println(\"*************H**E**R**E**D**A**********************\");\r\n System.out.println(\"|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|\");\r\n }", "public String toString()\n {\n return \"The square's dimensions are \" + getLength() + \" X \" + getWidth();\n }", "public String toString() {\n // DecimalFormat class is used to format the output\n DecimalFormat df = new DecimalFormat(\".0\");\n return \"\\nCoordinates of Parallelogram are:\\n\"\n + super.toString()\n + \"\\nWidth is :\"\n + df.format(width)\n + \"\\nHeight is :\"\n + df.format(height)\n + \"\\nArea is :\"\n + df.format(area());\n }", "private void diplay() {\n\t\tSystem.out.println(new StringBuilder(HUMIDITY_CONSTANT + humidity + TEMPRETURE_CONSTANT + temp\n\t\t\t\t+ PRESSURE_CONSTANT + pressure));\n\n\t}", "public void printASCIIArt(String string) {\n\t\tint width = 500;\n int height = 30;\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n java.awt.Graphics g = image.getGraphics();\n g.setFont(new Font(\"SansSerif\", Font.CENTER_BASELINE, 16));\n\n Graphics2D graphics = (Graphics2D) g;\n graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n graphics.drawString(string, 10, 20);\n\n //save this image\n //ImageIO.write(image, \"png\", new File(\"/users/mkyong/ascii-art.png\"));\n\n for (int y = 0; y < height; y++) {\n StringBuilder sb = new StringBuilder();\n for (int x = 0; x < width; x++) {\n\n sb.append(image.getRGB(x, y) == -16777216 ? \" \" : \"$\");\n\n }\n\n if (sb.toString().trim().isEmpty()) {\n continue;\n }\n\n System.out.println(sb);\n }\n\t}", "public String makeNoise(){\n return \"Feline: make noise. \";\n }", "@Override\n public final String toString()\n {\n String str = formatInt(turn)+formatInt(fiftyMove);\n //int counter = 0;\n for (Square[] s1: getSquares())\n {\n for (Square s: s1)\n {\n if (!s.isEmpty())\n {\n str+=\"\"+s;\n //counter++;\n /*if (counter%4==0)\n str+=\"\\n\";*/\n }\n }\n }\n return str;\n }", "public String toString() { \n String canvas = \"\";\n for(int i=0; i<height; i++) {\n for(int j=0; j<width; j++) {\n if(drawingArray[i][j] == ' ') {\n canvas += \"_\";\n } else {\n canvas += drawingArray[i][j];\n }\n }\n canvas += System.lineSeparator();\n }\n return canvas;\n }", "@Override\n\tpublic void juxing() {\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t}", "public void speak(){\n System.out.println(\"Smile and wave boys. Smile and wave.\");\n }", "public void cowSound() {\n System.out.println(\"The cow sounds : meeee\");\n }", "public static void main(String[] args){\n System.out.println(\" -----------\");\n System.out.println(\" | WELCOME |\");\n System.out.println(\" -----------\");\n System.out.println(\" ^ ^ ^ ^ ^ ^\");\n System.out.println(\" / \\\\/ \\\\/ \\\\/ \\\\/ \\\\/ \\\\\"); //Use double backslashes to only\n System.out.println(\"|-G--J--J--2--1--5-|\"); //print one of them.\n System.out.println(\" \\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\");\n System.out.println(\" v v v v v v\");\n //Print out short autobioographic statement\n System.out.println(\"I've gone hiking in the Austrian Alps and I plan\");\n System.out.println(\"to go back to backpack Europe for a summer\");\n \n }", "public void toStrings() {\n String output = \"\";\n output += \"Gen Price: $\" + genPrice + \"0\"+ \"\\n\";\n output += \"Bronze Price: $\" + bronzePrice +\"0\"+ \"\\n\";\n output += \"Silver Price: $\" + silverPrice +\"0\"+ \"\\n\";\n output += \"Gold Price: $\" + goldPrice +\"0\"+ \"\\n\";\n output += \"Vip Price: $\" + vipPrice +\"0\"+ \"\\n\";\n System.out.println(output);\n }", "public String toStringConsole() {\n\t\treturn \" SoilMoisture Sensor Read [ \" \n\t\t\t\t+ \"Temperature= \" + getTemperature() \n\t\t\t\t+ \"°C,\\t Lux= \" + getLux() \n\t\t\t\t+ \"%,\\t Moisture=\" + getMoisture() \n\t\t\t\t+ \"%,\\t Read Time= \" + readTime + \" ]\";\n\t}", "public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }", "public void displayGameInstructions(){\n // System.out.println(\"============\");\n // System.out.println(\" _ | _ | _ \");\n // System.out.println(\"============\");\n // System.out.println(\" _ | _ | _ \");\n\n }", "private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }", "private void generate()\n {\n for (int i = 0; i < this.syllables; i++) {\n Word word = getNextWord();\n this.text += word.getWord();\n if (i < this.syllables - 1) {\n this.text += \" \";\n }\n }\n }", "@Override\n public void brew() {\n System.out.println(\"用沸水浸泡茶叶\");\n }", "public String toString2 () {\n\t\tString a = \"ChampionnatComplexe : [\";\n\t\ta = a + \" { ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA1 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA2 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") } { ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB1 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB2 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") } ] \\n\" ;\n\t\ta = a + \"\\tNote Equilibre:\\t\"+this.getNoteEquilibre()+\"\\n\" ;\n\t\ta = a + \"\\tNote Distance:\\t\"+this.getNoteDistance()+\"\\n\" ;\n\t\ta = a + \"\\tMoyenne pondérée:\\t\" +getNoteMoyennePondereeEqDist()+\" (coefDist=\"+opt.getPourcentageDistance()+\", coefEq=\"+(100-opt.getPourcentageDistance())+\")\\n\" ;\n\t\treturn a;\n\t}", "public void printCube(String title) {\n System.out.print(\"\\n\");\n System.out.println(\"[ \" + title + \" ]\");\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3,1)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3,2)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3,3)));\n System.out.println(singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3,1)));\n System.out.println(singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3,2)));\n System.out.println(singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3,3)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3,1)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3,2)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3,3)));\n }", "private void sout() {\n\t\t\n\t}", "public void Instructions ()\n {\n\tSystem.out.println (\"\\nA WILD TANGELA APPEARS!!!\");\n\tSystem.out.println (\" _____ ____\");\n\tSystem.out.println (\" ,\\\"' `. ,-\\\"' `\\\". ,.\");\n\tSystem.out.println (\" . ,---. |,' _... . | `.\");\n\tSystem.out.println (\" _.---'`'\\\"-._ | / .'.---`. ' ' |\");\n\tSystem.out.println (\" ,' `| /...-._____ | |`\\\".' |\");\n\tSystem.out.println (\" / _,---+-. ,' `-. || ' `..-.._\");\n\tSystem.out.println (\" . ,`._ `.`,'. _... \\\\` . `. `. `-.\");\n\tSystem.out.println (\" |_,.-...`---\\\"'| ,`.| .\\\"` \\\\`.`. `. \\\\ \\\\\");\n\tSystem.out.println (\" , ,' | | | | \\\\ \\\\ `.`._ `. \\\\`. .\");\n\tSystem.out.println (\"| \\\\ ' __......-\\\"| | | |`._\\\\ '. `\\\"-`. . . \\\\,\\\"'-._\");\n\tSystem.out.println (\"| `\\\"'| .\\\"' ___ | | ' `-...\\\\...|_`.._ | |..:-' `.\");\n\tSystem.out.println (\" `-..-| . .\\\" _`+.,' | `._ `-.,' | ,+\\\"|`. |\");\n\tSystem.out.println (\" ,' ,| | ,' ,\\\"' __,' `'\\\"\\\"\\\"\\\"'`-. . ,'...-' | | | |\");\n\tSystem.out.println (\". / ` | | . ,-'\\\"' ____ `. |-'-.| | ',' `'\");\n\tSystem.out.println (\"| | \\\\ | | | .' ,-'\\\"\\\"'-. ,'\\\" `. | |. | |__ ,.\");\n\tSystem.out.println (\"' `. `| ' | | .' \\\\ . | | `.`. ' . `\\\"-.' |\");\n\tSystem.out.println (\" \\\\ |\\\\`-..| .`.| | () | | () ' `._ ,.' \\\\ `---' ,\");\n\tSystem.out.println (\" `| `--\\\" | | ' ' ' . .' | |.____,' \\\\\");\n\tSystem.out.println (\" `. ,' ' `. _,' `. ___.'_..,' | | | `. .\");\n\tSystem.out.println (\" `-...-' .' _... `---\\\" _....._ _.'\\\" `..'| | | | |\");\n\tSystem.out.println (\" ,' _.\\\" ,' | .-' ___ `' _.. `/| |`.| | '\");\n\tSystem.out.println (\" ' ,'/ / _,.' ,' .-' `\\\". \\\\,' `. | . ` . ' /\");\n\tSystem.out.println (\" . ,` ' .' ' |/ / ____/ \\\\ . ,-\\\"'| '-.`.__,',' ,'\");\n\tSystem.out.println (\" | | | || |`-..\\\"/ /`.'\\\" / . |' _,' /. `. .\\\"' .'`..__,.\");\n\tSystem.out.println (\" ` `.|_..' `._ / / `._ / /| | ,'/ / \\\\ \\\\ ,\\\"._ _,'\");\n\tSystem.out.println (\" ,`. \\\\ `-._/ `. `-.,' | |. / ,' /. \\\\' __`--\\\"\");\n\tSystem.out.println (\" | |-..,.\\\"| `-._ `. `, \\\", '-j . ,',`. `\\\"' '\");\n\tSystem.out.println (\" | | `. `-../ `-. `.' `\\\"+-..' .' | |_,'.\\\" | | `._, '\");\n\tSystem.out.println (\" ' `-._ `._.' / `. | _,' |\\\"'|`-..| | | | | `\\\"\\\"\");\n\tSystem.out.println (\" `._ `\\\"' _.|__.-| |\\\" `---| '. | '.,' `.'\");\n\tSystem.out.println (\" `-.....-\\\"' |___, ' `. \\\\`+-`. `.\");\n\tSystem.out.println (\" .' ' / / \\\"'/ `\\\"--'-._\");\n\tSystem.out.println (\" _,: ,' `-\\\". . `._\");\n\tSystem.out.println (\" ,-' `\\\" | | `.\");\n\tSystem.out.println (\" ,' | ' `.\");\n\tSystem.out.println (\" / _,' `._ |\");\n\tSystem.out.println (\" | _,\\\" `-..__ _,'\");\n\tSystem.out.println (\" `. __..-' `\\\"\\\"\\\"`\\\"''\");\n\tSystem.out.println (\" `-----\\\"' mh\");\n\tspeed (45, 500, \"\\nIt challenges you to a drawing game, it seems you'll have to accept!\");\n\tspeed (45, 500, \"\\n\");\n\tspeed (45, 500, \"\\nThe goal of the drawing game is to be the first to draw the art in the correct order. \\nIn our game, we will draw a Stick Figure! \\nTo be able to draw a body part, you need to roll the correct number at the correct time. \");\n\tspeed (45, 500, \"\\n\");\n\tspeed (45, 500, \"\\nBody = 1\");\n\tspeed (45, 500, \"\\nHead = 2\");\n\tspeed (45, 500, \"\\nLeft Leg = 3\");\n\tspeed (45, 500, \"\\nRight Leg = 4\");\n\tspeed (45, 500, \"\\nLeft Arm = 5\");\n\tspeed (45, 500, \"\\nRight Arm= 6\");\n\n\tspeed (45, 500, \"\\nYou must roll the number's 1 through 6 in order \\nIf you don't roll what you're looking for, the turn passes on to your opponent\");\n\tspeed (45, 500, \"\\n\");\n }", "public void display(){\n System.out.println(\"\\n Car 2:\");\n System.out.println(toString());\n }", "public void printString()\r\n\t{\r\n\t\t//print the column labels\r\n\t\tSystem.out.printf(\"%-20s %s\\n\", \"Word\", \"Occurrences [form: (Paragraph#, Line#)]\");\r\n\t\tSystem.out.printf(\"%-20s %s\\n\", \"----\", \"-----------\");\r\n\t\troot.printString();\r\n\t}", "public void display(StringBuffer stream) {\n\t\tint iSet, iMove;\n\n\t\tstream.append(\"Player \" + (iPlayer + 1) + \"\\n\\n\");\n\n\t\tfor (iSet = 0; iSet < movesLists.length; iSet++) {\n\n\t\t\tstream.append(\"\\tInformation Set \" + (iSet + 1) + \"\\n\\n\");\n\t\t\tfor (iMove = 0; iMove < movesLists[iSet].size(); iMove++) {\n\t\t\t\tstream.append(\"\\t\\t\"\n\t\t\t\t\t\t+ movesLists[iSet].get(iMove)\n\t\t\t\t\t\t+ \"\\t->\\t\"\n\t\t\t\t\t\t+ roundValue(((Double) probsLists[iSet].get(iMove))\n\t\t\t\t\t\t\t\t.doubleValue()) + \"\\n\");\n\t\t\t}\n\t\t\tstream.append(\"\\n\");\n\t\t}\n\t}", "public void display() {System.out.println(skaitlis);}", "@Action\n public void addWrappedText() {\n if (Math.random() < .33) {\n addWrappedTextEndChar();\n } else if (Math.random() < .5) {\n addWrappedTextRandom();\n } else {\n addWrappedTextSmall();\n }\n }", "public void print() {\n System.out.print(\"\\033[H\\033[2J\");\n for(int y = 0; y < this.height; y++) {\n for (int x = 0; x < this.width; x++) {\n ColoredCharacter character = characterLocations.get(new Coordinate(x , y));\n if (character == null) {\n System.out.print(\" \");\n } else {\n System.out.print(character);\n }\n }\n System.out.print(\"\\n\");\n }\n }", "static void welcome() {\n System.out.println(getAnsiRed() + \"\\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 getAnsiReset());\n\n System.out.println(\"\\n\" +\n \" Built by Team NullPointer (Team 5)\\n\" +\n \" Neill Perry (https://github.com/neillperry)\\n\" +\n \" Bruce West (https://github.com/BruceBAWest)\\n\" +\n \" Tapan Trivedi (https://github.com/tapantriv)\\n\" +\n \" TLG Learning: Capstone Java Project\\n\" +\n \" https://github.com/NullPointer-Team\");\n }", "public String infoline()\n {\n return \" > You see delicious COFFEE being brewed from behind the starbucks counter\";}", "public String toString () {\n\t\tString s =\"\";\n\t\tString finalStr =\"\";\n\n\t\t// for all the chords in this verse\n\t\tfor (int j=0; j<chords.size(); j++){\n\t\t\t\n\t\t\t// print each element of the chord \n\t\t\tfor (int i=0; i<chords.get(j).length; i++){\n\t\t\t\ts+=chords.get(j)[i]+ \"|\";\n\t\t\t}\n\t\t\tfinalStr+=s+ \"\\n \";\n\t\t\ts =\"\";\n\t\t}\n\t\treturn finalStr;\n\t}", "public void display() {\n float dRadial = reactionRadialMax - reactionRadial;\n if(dRadial != 0){\n noStroke();\n reactionRadial += abs(dRadial) * radialEasing;\n fill(255,255,255,150-reactionRadial*(255/reactionRadialMax));\n ellipse(location.x, location.y, reactionRadial, reactionRadial);\n }\n \n // grow text from point of origin\n float dText = textSizeMax - textSize;\n if(dText != 0){\n noStroke();\n textSize += abs(dText) * surfaceEasing;\n textSize(textSize);\n }\n \n // draw agent (point)\n fill(255);\n pushMatrix();\n translate(location.x, location.y);\n float r = 3;\n ellipse(0, 0, r, r);\n popMatrix();\n noFill(); \n \n // draw text \n textSize(txtSize);\n float lifeline = map(leftToLive, 0, lifespan, 25, 255);\n if(mouseOver()){\n stroke(229,28,35);\n fill(229,28,35);\n }\n else {\n stroke(255);\n fill(255);\n }\n \n text(word, location.x, location.y);\n \n // draw connections to neighboars\n gaze();\n }", "@Override\n\tpublic void EmitirSom() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec\\n\");\t\t\n\t}", "private void showIntro() { \n \n System.out.println(\" \".repeat(32) + \"DIAMOND\");\n System.out.println(\" \".repeat(14) + \"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY\");\n System.out.println(\"\\n\\n\");\n \n }", "public String toStringFull() {\n PrintfFormat str = new PrintfFormat();\n str.append (\"The MRG32k3a stream\");\n if (name != null && name.length() > 0)\n str.append (\" \" + name);\n str.append (\":\" + PrintfFormat.NEWLINE + \" anti = \" +\n (anti ? \"true\" : \"false\")).append(PrintfFormat.NEWLINE);\n str.append (\" prec53 = \" + (prec53 ? \"true\" : \"false\")).append(PrintfFormat.NEWLINE);\n\n str.append (\" Ig = { \");\n for (int i = 0; i < 5; i++)\n str.append ((long) Ig[i] + \", \");\n str.append ((long) Ig[5] + \" }\" + PrintfFormat.NEWLINE);\n\n str.append (\" Bg = { \");\n for (int i = 0; i < 5; i++)\n str.append ((long) Bg[i] + \", \");\n str.append ((long) Bg[5] + \" }\" + PrintfFormat.NEWLINE);\n\n str.append (\" Cg = { \");\n str.append ((long) Cg0 + \", \");\n str.append ((long) Cg1 + \", \");\n str.append ((long) Cg2 + \", \");\n str.append ((long) Cg3 + \", \");\n str.append ((long) Cg4 + \", \");\n str.append ((long) Cg5 + \" }\" + PrintfFormat.NEWLINE +\n PrintfFormat.NEWLINE);\n\n return str.toString();\n }", "public void displayTitleScreen() {\n System.out.println(\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 \" %@%@@%@@% @@%@@@: @@@%%% #%@@%@@%@ @@%@@@@ @@%@@@@@@ @@@@ %%%@ %@%@@%@@@ \\n\" +\n \"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― \\n\" +\n \" Nouvelle partie \"\n );\n }", "public String toString()\n {\n String contents = \"\";\n double totalArea = 0;\n \n contents = contents + \"\\nThere are \" + shapes.size() + \" shapes in the container.\\n\";\n \n for(int i = 0; i < shapes.size(); i++)\n {\n totalArea = totalArea + shapes.get(i).getArea();\n contents = contents + shapes.get(i).toString();\n }\n contents = contents + \"\\nand total area of shapes is \" + totalArea + \"\\n\";\n return contents;\n }", "public void display() {\n System.out.println(toString());\n }", "public static void displayLogo(){\r\n System.out.println();\r\n }", "public String toString() {\n\n\t\tString divider = \"================================\\n\";\n\t\tString frames = \"\";\n\n\t\tfor (int i = 0; i < rows; i++) {\n\t\t\tfor (int j = 0; j < columns; j++) {\n\t\t\t\tframes += block[i][j];\n\t\t\t}\n\n\t\t\tframes += \"\\n\";\n\t\t}\n\n\t\treturn divider + frames + divider;\n\t}", "public String toString() {\n\t\tString s = \"Spike at x=\" + x + \"y=\" + y;\n\t\treturn s;\n\t}", "public String toString() {\n return \"\\nLotto\" + Lotto;\n }", "@Override\n\tprotected void 装入大象() {\n\t\tSystem.out.println(\"我是张飞,我叫喊着粗鲁的把大象放进去\");\n\t\t\n\t}", "private void txt() {\n\n\t}", "public String getOutput() {\n return String.format(\"DCode: %-7.0f \\\"%-9s\\\" \\t - %5.3fmm x %5.3fmm - \\t Area: %6.3fmm² \\t Area Ratio: %5.2f \\t Transfer Effeciency: %2.1f \\t Number of apertures: %-5.0f\"\n , (double) dCode\n , shape\n , x\n , y\n , getArea()\n , getAreaRatio()\n , getTransferEffeciency()\n , (double) numbOfApertures);\n }", "@Test\n\tpublic void whenDrawSquare() {\n\t\tnew Paint().draw(new Square());\n\t\tStringBuilder expected = new StringBuilder()\n\t\t\t\t.append(\"+++++++\")\n\t\t\t\t.append(System.lineSeparator())\n\t\t\t\t.append(\"+++++++\")\n\t\t\t\t.append(System.lineSeparator())\n\t\t\t\t.append(\"+++++++\")\n\t\t\t\t.append(System.lineSeparator())\n\t\t\t\t.append(\"+++++++\")\n\t\t\t\t.append(System.lineSeparator());\n\t\tassertThat(new String(out.toByteArray()), is(expected.toString()));\n\t}", "public String display();", "Text createText();", "public void draw() {\n if (numSides <= 6) {\n System.out.println(\"- - - - - -\");\n \n for (int i = numSides - 2; i < numSides; i++) {\n System.out.print(\" | \");\n for (int j = 0; j < this.value ; j++) {\n if (value == 1) {\n System.out.print(\" \");\n }\n if (i % 2 == 0) {\n System.out.print(\"*\");\n } else {\n System.out.print(\" \");\n }\n if (value == 1) {\n System.out.print(\" \");\n }\n }\n }\n System.out.println(\"\");\n System.out.println(\"- - - - - -\");\n } else {\n print();\n }\n }", "@Override\n public void println ()\n {\n if (text != null)\n {\n text.append (Out.NL);\n col = 0;\n }\n else\n super.println ();\n }", "public void print()\n {\n System.out.println();\n for (int i = 0; i < 6; i++) {\n for (int j = 0; j < 6; j++) {\n int index=0;\n if(j>2)\n index++;\n if(i>2)\n index+=2;\n char c='○';\n if(blocks[index].getCells()[i%3][j%3]==CellType.Black)\n c='B';\n if(blocks[index].getCells()[i%3][j%3]==CellType.Red)\n c='R';\n System.out.print(c+\" \");\n if(j==2)\n System.out.print(\"| \");\n }\n System.out.println();\n if(i==2)\n System.out.println(\"-------------\");\n }\n }", "public String toString(){\n\t\tFileHandler fw = new FileHandler(); //Create new object for file write\n \tformatText(title);\n \tformatText(snippet);\n \tsnippet = removeLineBreak(snippet);\n \t\n \t//Print out contents to screen\n \tSystem.out.println(urlLabel + link);\n \tSystem.out.println(titleLabel + title);\n\t\tSystem.out.println(snippetLabel + snippet);\n\t\t\n\t\t//Write contents to file\n\t\tfw.writeToFile(urlLabel, link, fw.file, false);\n\t\tfw.writeToFile(titleLabel, title, fw.file, false);\n\t\tfw.writeToFile(snippetLabel, snippet, fw.file, false);\n\t\tfw.writeToFile(\"---------- END OF RESULT -----------\",\"\", fw.file, false);\n\t return \"\";\n\t}", "public String showVision()\r\n {\r\n balayer();\r\n String res=\"Vision : +\\n\";\r\n for (int i=0; i<LONGUEUR ; i++) {\r\n res+=\" | \";\r\n for (int j=0; j<LARGEUR; j++) {\r\n res+=Vision[i][j][0];\r\n res+=\" | \";\r\n }\r\n res+=\"\\n\";\r\n }\r\n res += \"\\n\";\r\n for (int i=0; i<4 ; i++) {\r\n res+=\" | \";\r\n for (int j=0; j<4; j++) {\r\n res+=lignesHor[i][j];\r\n res+=\" | \";\r\n }\r\n res+=\"\\n\";\r\n }\r\n res += \"\\n\";\r\n for (int i=0; i<4 ; i++) {\r\n res+=\" | \";\r\n for (int j=0; j<4; j++) {\r\n res+=lignesVert[i][j];\r\n res+=\" | \";\r\n }\r\n res+=\"\\n\";\r\n }\r\n System.out.println(res);\r\n return res;\r\n }" ]
[ "0.6483064", "0.6284444", "0.62828064", "0.61544484", "0.6104563", "0.60740477", "0.6055721", "0.59685904", "0.5964552", "0.5940939", "0.5927173", "0.5893749", "0.5892616", "0.5874989", "0.58713686", "0.5866197", "0.58612806", "0.585797", "0.58572304", "0.584709", "0.5838414", "0.58266735", "0.5825201", "0.58056355", "0.5805583", "0.5798656", "0.57943726", "0.5752948", "0.5751805", "0.5734189", "0.57334924", "0.5727981", "0.57056695", "0.5687814", "0.5679986", "0.567969", "0.56727594", "0.5660288", "0.5655852", "0.56532174", "0.5622973", "0.56162363", "0.5615578", "0.5615578", "0.5595629", "0.55926126", "0.5575008", "0.5574946", "0.5572757", "0.55723554", "0.5571339", "0.55658615", "0.55623925", "0.55599666", "0.55585694", "0.5556178", "0.55555826", "0.5553029", "0.55505353", "0.5541365", "0.55400926", "0.5536504", "0.5534448", "0.5531801", "0.552799", "0.551677", "0.55165476", "0.55156857", "0.5513452", "0.54924786", "0.54783577", "0.5472192", "0.5472018", "0.54675305", "0.5466458", "0.5465796", "0.5465151", "0.54619604", "0.5461953", "0.54486424", "0.54427356", "0.54407585", "0.54370964", "0.5436616", "0.54349613", "0.5431231", "0.54299384", "0.5423986", "0.5422946", "0.5422776", "0.5417695", "0.54164875", "0.5415488", "0.5408726", "0.54018027", "0.54008406", "0.53978944", "0.53977424", "0.53922635", "0.53910166", "0.53904" ]
0.0
-1
reads the data from the scenario and interpolates the grid of known values to a higher resolution first with bilinear interpolation second with bicubic spline interpolation
public static void main(String[] args) { java.net.URL input100 = ClassLoader.getSystemResource(filename_data100+".txt"); java.net.URL input200 = ClassLoader.getSystemResource(filename_data200+".txt"); log.info("Reading data..."); sg100 = SpatialGrid.readFromFile(input100.getFile()); sg200 = SpatialGrid.readFromFile(input200.getFile()); try { out= new FileWriter(outputFile); out.write("interpolation method \t\t\t\t interp. time \t sum of abs. differences \t rel. difference \n"); out.write("-----------------------------------------------------------------------------------------\n"); } catch (IOException e) { e.printStackTrace(); } log.info("Start interpolation of file " + filename_data200 + " with the different interpolation methods:"); testOneMethod( Interpolation.BILINEAR, Double.NaN ); testOneMethod(Interpolation.BICUBIC, Double.NaN); for (int e=1; e<=12; e++){ testOneMethod(Interpolation.INVERSE_DISTANCE_WEIGHTING, e); } try { out.write("\nRemark: The interpolation difference is calculated to known data at the same resolution.\n"); out.close(); } catch (IOException e) { e.printStackTrace(); } log.info("interpolation test done"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testInterpolationAtEdges() {\n // Following constant is pixel size (in degrees).\n // This constant must be identical to the one defined in 'createRandomCoverage()'\n final double PIXEL_SIZE = 0.25;\n createRandomCoverage();\n coverage = coverage.view(ViewType.GEOPHYSICS);\n coverage = Interpolator2D.create(coverage, Interpolation.getInstance(Interpolation.INTERP_BILINEAR));\n assertTrue(coverage instanceof Interpolator2D);\n assertTrue(coverage.view(ViewType.GEOPHYSICS) instanceof Interpolator2D);\n assertTrue(coverage.view(ViewType.PACKED) instanceof Interpolator2D);\n final int band = 0; // Band to test.\n double[] buffer = null;\n final Raster data = coverage.getRenderedImage().getData();\n final Envelope envelope = coverage.getEnvelope();\n final GridExtent range = coverage.getGridGeometry().getExtent();\n final double left = envelope.getMinimum(0);\n final double upper = envelope.getMaximum(1);\n final Point2D.Double point = new Point2D.Double(); // Will maps to pixel upper-left corner\n for (long j=range.getSize(1); --j>=1;) {\n for (long i=range.getSize(0); --i>=1;) {\n point.x = left + PIXEL_SIZE*i;\n point.y = upper - PIXEL_SIZE*j;\n buffer = coverage.evaluate(point, buffer);\n double t = buffer[band];\n\n // Computes the expected value:\n double r00 = data.getSampleDouble((int) i-0, (int) j-0, band);\n double r01 = data.getSampleDouble((int) i-0, (int) j-1, band);\n double r10 = data.getSampleDouble((int) i-1, (int) j-0, band);\n double r11 = data.getSampleDouble((int) i-1, (int) j-1, band);\n double r = (r00 + r01 + r10 + r11) / 4;\n assertEquals(r, t, SAMPLE_TOLERANCE);\n }\n }\n }", "@Test\r\n public void testSplineApproximator() {\r\n List<Point> data = createConvergingDataset();\r\n List<ExpectedApproximation> exp = new ArrayList<ExpectedApproximation>();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(1000, 17, 1050));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(1062, 40, 1066));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n\r\n data = createLinearDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(100, 3, 200));\r\n exp.add(new ExpectedApproximation(300, 11, 400));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 100));\r\n exp.add(new ExpectedApproximation(400, 17, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n \r\n data = createIncreasingDecreasingDataset();\r\n exp.clear();\r\n // inside\r\n exp.add(new ExpectedApproximation(400, 3, 700));\r\n exp.add(new ExpectedApproximation(700, 23, 900));\r\n // outside\r\n exp.add(new ExpectedApproximation(0, 0, 400));\r\n exp.add(new ExpectedApproximation(0, 35, 500));\r\n test(SplineInterpolationLinearExtrapolationApproximator.INSTANCE, data, exp);\r\n }", "private void resample(){\n\n\t\tint iRow;\n\t\t\n\t\t//saving copies\n\t\tif(rgdX0==null){\n\t\t\trgdX0=rgdX;\n\t\t\trgdY0=rgdY;\n\t\t}\n\t\t\n\t\t//initializing resamples\n\t\trgdX = new double[rgdX0.length][rgdX0[0].length];\n\t\trgdY = new double[rgdY0.length];\n\t\t\n\t\t//resampling\n\t\tfor(int i=0;i<rgdX.length;i++){\n\t\t\tiRow = rnd1.nextInt(rgdX.length);\n\t\t\tfor(int j=0;j<rgdX[0].length;j++){\n\t\t\t\trgdX[i][j]=rgdX0[iRow][j];\n\t\t\t}\n\t\t\trgdY[i]=rgdY0[iRow];\n\t\t}\n\t\tloadData(rgdX,rgdY);\n\t\tthis.mapCoefficients=null;\n\t}", "private void updateChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n int SPLINEPRECISION = jSlider2.getValue(); // 1 is highest precision; default = 40\n// int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n //System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, calibrate((double) convertYCoordToFreq(row)));\n System.out.println(\"adding data point (\" + col + \",\" + calibrate((double) convertYCoordToFreq(row)) + \")\");\n }\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), calibrate((double) convertYCoordToFreq(row)));\n }\n }\n }\n }\n //replace Data with new series\n dataset.removeSeries(1);\n dataset.removeSeries(0);\n dataset.addSeries(xy);\n dataset.addSeries(xySpline);\n\n XYPlot xyplot = (XYPlot) chartPanel.getChart().getPlot();\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShapesVisible(0, jCheckBox1.isSelected());\n xylineandshaperenderer.setSeriesLinesVisible(1, jCheckBox2.isSelected());\n\n if (jCheckBox3.isSelected()) {\n xyplot.getRangeAxis().setLabel(jTextField8.getText() + \" (\" + jTextField3.getText() + \")\");\n } else {\n xyplot.getRangeAxis().setLabel(\"Frequency (Hz)\");\n }\n\n // Show Crosshairs\n chartPanel.setVerticalAxisTrace(true);\n\n chartPanel.repaint();\n }", "public abstract void interpolate(int i, float f, Object obj);", "private void initializeChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n// int SPLINEPRECISION = chartPrefJSlider2.getValue(); // 1 is highest precision; default = 40\n int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n }\n\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), (double) convertYCoordToFreq(row));\n }\n }\n }\n }\n\n dataset.removeAllSeries();\n dataset.addSeries(xy);\n\n //XYSeriesCollection splineDataset = new XYSeriesCollection();\n dataset.addSeries(xySpline);\n\n JFreeChart chart = ChartFactory.createXYLineChart(\n //JFreeChart chart = ChartFactory.createScatterPlot(\n clip.getFileName(), \"Time (ms)\", \"Frequency (Hz)\", dataset, PlotOrientation.VERTICAL, true, true, false);\n XYPlot xyplot = (XYPlot) chart.getPlot();\n xyplot.setRenderer(new XYSplineRenderer());\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShape(0, new java.awt.Rectangle(1, 1, 1, 1));\n xylineandshaperenderer.setSeriesLinesVisible(0, false);\n xylineandshaperenderer.setSeriesShapesVisible(0, true);\n xylineandshaperenderer.setSeriesLinesVisible(1, false);\n xylineandshaperenderer.setSeriesShapesVisible(1, false);\n\n// ChartFrame frame = new ChartFrame(\"First\", chart);\n// frame.pack();\n// frame.setVisible(true);\n\n\n jCheckBox1.setEnabled(true);\n jCheckBox1.setSelected(true);\n\n jCheckBox2.setEnabled(true);\n jCheckBox2.setSelected(false);\n\n jSlider1.setEnabled(true);\n jSlider2.setEnabled(true);\n\n jTextField9.setText(clip.getFileName());\n\n chartPanel = new ChartPanel(chart);\n }", "public static void main(String[] args) throws Exception {\n File file = new File(\"out/gSeries\" + Interpolate.prefix + \"/zeros.dat\");\n// DataOutputStream out = Interpolate.outputStream( file);\n ZeroInfo zeroInput = null;\n int N = 1003814;\n double[] nextValues = null;\n double max = 70;\n int run = 0;\n int beginRun = 0;\n for (int i = 0; i < N ; i++) {\n zeroInput = readSingleZero( Interpolate.zeroIn, nextValues);\n nextValues = zeroInput.nextValues;\n// if(i>1003800){\n// if(Math.abs(zeroInput.lastZero[1])>max){\n// run = 0;\n// beginRun = i;\n// } else {\n// run++;\n// }\n// }\n// if(run>40){\n// //run at 1003813\n// System.out.println(\"run at \" + beginRun);\n// break;\n// }\n if(i<3792 ){\n continue;\n }\n final double z0 = zeroInput.lastZero[0];\n final double z1 = zeroInput.nextValues[0];\n final double d0 = zeroInput.lastZero[1];\n final double d1 = zeroInput.nextValues[1];\n final double maxFromInput = d0>0?zeroInput.lastZero[2]:-zeroInput.lastZero[2];\n if(i==3792 || i==1003813){\n //gSeries.begin 476.85026008636953\n Poly4 poly = new Poly4(z0,z1, d0,d1,maxFromInput);\n System.out.println(i + \", \" + Arrays.toString(zeroInput.lastZero) +\n \", \\n\" + \"positionMax \" + poly.positionMax \n + \", \" + poly.eval(poly.positionMax) \n + \", \\n\" + Arrays.toString(nextValues));\n }\n// for (int j = 0; j < zeroInput.lastZero.length; j++) {\n// out.writeDouble(zeroInput.lastZero[j]);\n// }\n// out.writeDouble(poly.positionMax);\n }\n// out.close();\n// DataInputStream in = Interpolate.dataInputStream( file);\n// double[] tmin = new double[4];\n// for (int i = 0; i < N-3792 ; i++) \n// {\n// for (int i1 = 0; i1 < tmin.length; i1++) \n// {\n// tmin[i1] = in.readDouble();\n// }\n// System.out.println(Arrays.toString(tmin));\n// }\n// in.close();\n }", "private void resampleAbdomenVOI() {\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), 0 ) );\r\n }\r\n }", "public abstract Interpolation getInterpolation() throws RemoteException;", "public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }", "public abstract List<Point2D> getInterpolatedPoints();", "@FunctionalInterface\npublic interface Interpolation {\n Interpolation LINEAR = (x, a, b) -> a + x * (b - a);\n Interpolation QUADRATIC = (x, a, b) -> a + (b - a) * x * x;\n Interpolation CUBIC = (x, a, b) -> a + (b - a) * x * x * x;\n Interpolation QUARTIC = (x, a, b) -> a + (b - a) * x * x * x * x;\n Interpolation COSINE = (x, a, b) -> a + ((1.0 - Math.cos(x * Math.PI)) / 2.0) * (b - a);\n\n /**\n * Interpolates a value between two known values.\n *\n * @param x Position for the data to be interpolated.\n * @param a The first known value.\n * @param b The second known value.\n * @return an interpolated value for x.\n */\n double lerp(double x, double a, double b);\n\n /**\n * Interpolates between an unknown number of values.\n * The amount of positions repsents the dimension\n * The amount of values must be 2^(amount of position).\n *\n * @param positions A list of positions starting with the first stage position and going up in order.\n * @param values A list of values starting with the first stage values and going up in order.\n * @return an interpolated value between all the given positions.\n */\n default double lerp(double[] positions, double[] values) {\n if (values.length != 1 << positions.length) {\n throw new IllegalArgumentException(\"The amount of values must be 2^(amount of fractals).\");\n }\n for (int i = 0; i < positions.length; i++) {\n for (int j = 0; j < ((1 << positions.length) - i); j += 2) {\n values[j / 2] = lerp(positions[i], values[j], values[j + 1]);\n }\n }\n // This should only have 1 element, the final value!\n return values[0];\n }\n}", "private void interpolateIfNeeded(TimeSeries data, SparklineValues.SparklineValue value, SparklineValues.SparklineValue nextValue, List<SparkLinePlotBand> plotBands) {\n if (nextValue != null && value.getValue() != null && nextValue.getValue() != null) {\n long x1 = value.getInstant().toEpochMilli();\n long x2 = nextValue.getInstant().toEpochMilli();\n double y1 = value.getValue();\n double y2 = nextValue.getValue();\n\n double delta = (maxY - minY) / 100.0;\n\n for (SparkLinePlotBand plotBand : plotBands) {\n double from = plotBand.getFromValue();\n double to = plotBand.getToValue();\n\n if (from >= y1 && from < y2) {\n addInterpolatedItem(data, x1, x2, y1, y2, from - delta);\n addInterpolatedItem(data, x1, x2, y1, y2, from + delta);\n }\n if (to >= y1 && to < y2) {\n addInterpolatedItem(data, x1, x2, y1, y2, to - delta);\n addInterpolatedItem(data, x1, x2, y1, y2, to + delta);\n }\n if (from <= y1 && from > y2) {\n addInterpolatedItem(data, x1, x2, y1, y2, from - delta);\n addInterpolatedItem(data, x1, x2, y1, y2, from + delta);\n }\n if (to <= y1 && to > y2) {\n addInterpolatedItem(data, x1, x2, y1, y2, to - delta);\n addInterpolatedItem(data, x1, x2, y1, y2, to + delta);\n }\n }\n }\n }", "public GridCoverage2D read(GeneralParameterValue[] params) throws IOException {\n GeneralEnvelope requestedEnvelope = null;\n Rectangle dim = null;\n Color inputTransparentColor = null;\n OverviewPolicy overviewPolicy = null;\n int[] suggestedTileSize = null;\n if (params != null) {\n\n //\n // Checking params\n //\n if (params != null) {\n for (int i = 0; i < params.length; i++) {\n final ParameterValue param = (ParameterValue) params[i];\n final ReferenceIdentifier name = param.getDescriptor().getName();\n if (name.equals(AbstractGridFormat.READ_GRIDGEOMETRY2D.getName())) {\n final GridGeometry2D gg = (GridGeometry2D) param.getValue();\n requestedEnvelope = new GeneralEnvelope((Envelope) gg.getEnvelope2D());\n dim = gg.getGridRange2D().getBounds();\n continue;\n }\n if (name.equals(AbstractGridFormat.OVERVIEW_POLICY.getName())) {\n overviewPolicy = (OverviewPolicy) param.getValue();\n continue;\n }\n if (name.equals(AbstractGridFormat.INPUT_TRANSPARENT_COLOR.getName())) {\n inputTransparentColor = (Color) param.getValue();\n continue;\n }\n if (name.equals(AbstractGridFormat.SUGGESTED_TILE_SIZE.getName())) {\n String suggestedTileSize_ = (String) param.getValue();\n if (suggestedTileSize_ != null && suggestedTileSize_.length() > 0) {\n suggestedTileSize_ = suggestedTileSize_.trim();\n int commaPosition = suggestedTileSize_.indexOf(\",\");\n if (commaPosition < 0) {\n int tileDim = Integer.parseInt(suggestedTileSize_);\n suggestedTileSize = new int[] {tileDim, tileDim};\n } else {\n int tileW =\n Integer.parseInt(\n suggestedTileSize_.substring(0, commaPosition));\n int tileH =\n Integer.parseInt(\n suggestedTileSize_.substring(commaPosition + 1));\n suggestedTileSize = new int[] {tileW, tileH};\n }\n }\n continue;\n }\n }\n }\n }\n\n //\n // set params\n //\n Integer imageChoice = Integer.valueOf(0);\n final ImageReadParam readP = new ImageReadParam();\n try {\n imageChoice = setReadParams(overviewPolicy, readP, requestedEnvelope, dim);\n } catch (TransformException e) {\n throw new DataSourceException(e);\n }\n\n //\n // IMAGE READ OPERATION\n //\n Hints newHints = null;\n if (suggestedTileSize != null) {\n newHints = hints.clone();\n final ImageLayout layout = new ImageLayout();\n layout.setTileGridXOffset(0);\n layout.setTileGridYOffset(0);\n layout.setTileHeight(suggestedTileSize[1]);\n layout.setTileWidth(suggestedTileSize[0]);\n newHints.add(new RenderingHints(JAI.KEY_IMAGE_LAYOUT, layout));\n }\n final ParameterBlock pbjRead = new ParameterBlock();\n // Image Index used for the Overview management\n if (maskOvrProvider != null) {\n if (maskOvrProvider.isExternalOverview(imageChoice)) {\n pbjRead.add(\n maskOvrProvider\n .getExternalOverviewInputStreamSpi()\n .createInputStreamInstance(\n maskOvrProvider.getOvrURL(),\n ImageIO.getUseCache(),\n ImageIO.getCacheDirectory()));\n } else {\n pbjRead.add(\n maskOvrProvider\n .getInputStreamSpi()\n .createInputStreamInstance(\n maskOvrProvider.getFileURL(),\n ImageIO.getUseCache(),\n ImageIO.getCacheDirectory()));\n }\n pbjRead.add(maskOvrProvider.getOverviewIndex(imageChoice));\n } else {\n if (extOvrImgChoice >= 0 && imageChoice >= extOvrImgChoice) {\n pbjRead.add(\n ovrInStreamSPI.createInputStreamInstance(\n ovrSource, ImageIO.getUseCache(), ImageIO.getCacheDirectory()));\n pbjRead.add(imageChoice - extOvrImgChoice);\n } else {\n if (inStream instanceof ImageInputStream && !closeMe) {\n pbjRead.add(inStream);\n } else {\n pbjRead.add(\n inStreamSPI != null\n ? inStreamSPI.createInputStreamInstance(\n source,\n ImageIO.getUseCache(),\n ImageIO.getCacheDirectory())\n : ImageIO.createImageInputStream(source));\n }\n // Setting correct ImageChoice (taking into account overviews and masks)\n int overviewImageIndex = dtLayout.getInternalOverviewImageIndex(imageChoice);\n int index = overviewImageIndex >= 0 ? overviewImageIndex : 0;\n pbjRead.add(index);\n }\n }\n pbjRead.add(Boolean.FALSE);\n pbjRead.add(Boolean.FALSE);\n pbjRead.add(Boolean.FALSE);\n pbjRead.add(null);\n pbjRead.add(null);\n pbjRead.add(readP);\n pbjRead.add(READER_SPI.createReaderInstance());\n RenderedOp coverageRaster =\n JAI.create(\n \"ImageRead\", pbjRead, newHints != null ? (RenderingHints) newHints : null);\n\n //\n // MASKING INPUT COLOR as indicated\n //\n if (inputTransparentColor != null) {\n coverageRaster =\n new ImageWorker(coverageRaster)\n .setRenderingHints(newHints)\n .makeColorTransparent(inputTransparentColor)\n .getRenderedOperation();\n }\n\n //\n // External/Internal Masking\n //\n // ROI definition\n ROI roi = null;\n // Using MaskOvrProvider\n if (hasMaskOvrProvider) {\n // Parameter definiton\n GridEnvelope ogr = getOriginalGridRange();\n Rectangle sourceRegion;\n if (readP.getSourceRegion() != null) {\n sourceRegion = readP.getSourceRegion();\n } else {\n sourceRegion = new Rectangle(ogr.getSpan(0), ogr.getSpan(1));\n }\n\n MaskInfo info = maskOvrProvider.getMaskInfo(imageChoice, sourceRegion, readP);\n if (info != null) {\n // Reading Mask\n RenderedOp roiRaster =\n readROIRaster(\n info.streamSpi,\n URLs.fileToUrl(info.file),\n info.index,\n newHints,\n info.readParameters);\n roi = MaskOverviewProvider.scaleROI(roiRaster, coverageRaster.getBounds());\n }\n }\n\n //\n // BUILDING COVERAGE\n //\n AffineTransform rasterToModel = getRescaledRasterToModel(coverageRaster);\n try {\n return createCoverage(coverageRaster, ProjectiveTransform.create(rasterToModel), roi);\n } catch (Exception e) {\n // dispose and close file\n ImageUtilities.disposePlanarImageChain(coverageRaster);\n\n // rethrow\n if (e instanceof DataSourceException) {\n throw (DataSourceException) e;\n }\n throw new DataSourceException(e);\n }\n }", "public float[][] grid(Sampling s1, Sampling s2) {\n return super.interpolate(s1,s2);\n }", "private void readXY(Variable v2, int ensIdx, int timeIdx, int levIdx, Range yRange, Range xRange, IndexIterator ii)\n throws IOException {\n\n dataFile = getDataFile(ensIdx, timeIdx);\n List<GradsVariable> vars = gradsDDF.getVariables();\n // if it's an ensemble template, then all data is in this file\n int numEns = ((gradsDDF.getTemplateType() == GradsDataDescriptorFile.ENS_TEMPLATE)\n || (gradsDDF.getTemplateType() == GradsDataDescriptorFile.ENS_TIME_TEMPLATE)) ? 0 : ensIdx;\n // if it's a time template figure out how many previous times we should use\n int numTimes = gradsDDF.getTimeDimension().getSize();\n if ((gradsDDF.getTemplateType() == GradsDataDescriptorFile.TIME_TEMPLATE)\n || (gradsDDF.getTemplateType() == GradsDataDescriptorFile.ENS_TIME_TEMPLATE)) {\n int[] tpf = gradsDDF.getTimeStepsPerFile(dataFile.getLocation());\n numTimes = tpf[0];\n timeIdx = (timeIdx - tpf[1]) % numTimes;\n }\n int gridNum = numEns * numTimes * gradsDDF.getGridsPerTimeStep();\n // loop up to the last time in the last ensemble\n for (int t = 0; t < timeIdx; t++) {\n for (GradsVariable var : vars) {\n int numVLevels = var.getNumLevels();\n if (numVLevels == 0) {\n numVLevels = 1;\n }\n for (int l = 0; l < numVLevels; l++) {\n gridNum++;\n }\n }\n }\n // loop up to the last level in the last time in the last ensemble\n for (GradsVariable var : vars) {\n int numVLevels = var.getNumLevels();\n if (numVLevels == 0) {\n numVLevels = 1;\n }\n if (var.getName().equals(v2.getFullName())) {\n gridNum += levIdx;\n\n break;\n }\n for (int l = 0; l < numVLevels; l++) {\n gridNum++;\n }\n }\n\n // TODO: Flip grid if Y is reversed\n float[] data = readGrid(gridNum);\n\n // LOOK can improve with System.copy ??\n for (int y : yRange)\n for (int x : xRange)\n ii.setFloatNext(data[y * sizeX + x]);\n }", "@Override\n public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm)\n throws OperatorException {\n try {\n \n int x0 = targetRectangle.x;\n int y0 = targetRectangle.y;\n int w = targetRectangle.width;\n int h = targetRectangle.height;\n // System.out.println(\"x0 = \" + x0 + \", y0 = \" + y0 + \", w = \" + w + \", h = \" + h);\n \n ComplexFloatMatrix cplxMatrixMaster = null;\n ComplexFloatMatrix cplxMatrixSlave = null;\n RenderedImage srcImage;\n float[] dataArray;\n \n // pm.beginTask(\"Computation of interferogram\", targetProduct.getNumBands());\n \n // these are not very optimal loops: redo the looping to a single for Band loop with using HashMaps\n for (Band sourceBand : sourceProduct.getBands()) {\n \n String sourceBandUnit = sourceBand.getUnit();\n \n if (sourceBand == masterBand1) {\n } else if (sourceBand == masterBand2) {\n \n Tile masterRasterI = getSourceTile(masterBand1, targetRectangle);\n srcImage = masterRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataRealMatrix = new FloatMatrix(masterRasterI.getHeight(), masterRasterI.getWidth(), dataArray);\n \n Tile masterRasterQ = getSourceTile(masterBand2, targetRectangle);\n srcImage = masterRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getWidth(), masterRasterQ.getHeight(), dataArray);\n FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getHeight(), masterRasterQ.getWidth(), dataArray);\n \n cplxMatrixMaster = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n } else if (sourceBandUnit != null && sourceBandUnit.contains(Unit.REAL)) {\n \n Tile slaveRasterI = getSourceTile(sourceBand, targetRectangle);\n srcImage = slaveRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getWidth(), slaveRasterI.getHeight(), dataArray);\n FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getHeight(), slaveRasterI.getWidth(), dataArray);\n \n Tile slaveRasterQ = getSourceTile(slaveRasterMap.get(sourceBand), targetRectangle, pm);\n srcImage = slaveRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataImagMatrix = new FloatMatrix(slaveRasterQ.getHeight(), slaveRasterQ.getWidth(), dataArray);\n \n cplxMatrixSlave = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n }\n }\n \n // TODO: integrate subtraction of Reference Phase\n ComplexFloatMatrix cplxIfg = cplxMatrixMaster.muli(cplxMatrixSlave.conji());\n \n // if flat earth phase flag is on\n // ------------------------------------------------\n \n // normalize pixel :: range_axis\n DoubleMatrix rangeAxisNormalized;\n rangeAxisNormalized = DoubleMatrix.linspace(x0, x0 + w - 1, cplxIfg.columns);\n rangeAxisNormalized.subi(0.5 * (1 + sourceImageWidth));\n rangeAxisNormalized.divi(0.25 * (sourceImageWidth-1));\n \n DoubleMatrix azimuthAxisNormalized;\n azimuthAxisNormalized = DoubleMatrix.linspace(y0, y0 + h - 1, cplxIfg.rows);\n azimuthAxisNormalized.subi(0.5 * (1 + sourceImageHeight));\n azimuthAxisNormalized.divi(0.25 * (sourceImageHeight - 1));\n \n DoubleMatrix realReferencePhase = polyValOnGrid(azimuthAxisNormalized, rangeAxisNormalized,\n flatEarthPolyCoefs, degreeFromCoefficients(flatEarthPolyCoefs.length));\n \n FloatMatrix realReferencePhaseFlt = MatrixFunctions.doubleToFloat(realReferencePhase);\n ComplexFloatMatrix cplxReferencePhase = new ComplexFloatMatrix(MatrixFunctions.cos(realReferencePhaseFlt),\n MatrixFunctions.sin(realReferencePhaseFlt));\n \n // cplxIfg = cplxIfg.muli(cplxReferencePhase.transpose().conji());\n cplxIfg.muli(cplxReferencePhase.transpose().conji());\n \n for (Band targetBand : targetProduct.getBands()) {\n \n String targetBandUnit = targetBand.getUnit();\n \n final Tile targetTile = targetTileMap.get(targetBand);\n \n // all bands except for virtual ones\n if (targetBandUnit.contains(Unit.REAL)) {\n \n dataArray = cplxIfg.real().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n } else if (targetBandUnit.contains(Unit.IMAGINARY)) {\n \n dataArray = cplxIfg.imag().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n }\n \n }\n \n } catch (Throwable e) {\n \n OperatorUtils.catchOperatorException(getId(), e);\n \n }\n }", "private static void loadGridPoints() throws IOException {\n\n\t\tString filename = \"Grid Point file Path\";\n\t\tCSVReader reader = new CSVReader(new FileReader(filename));\n\t\treader.readNext();\n\t\tString[] nextLine;\n\n\t\tint id;\n\t\tdouble x, y;\n\t\ttree = new STRtree();\n\t\tpoints = new HashMap<Integer, double[]>();\n\t\tEnvelope itemEnv;\n\t\twhile ((nextLine = reader.readNext()) != null) {\n\n\t\t\tid = Integer.valueOf(nextLine[0]);\n\t\t\tx = Double.valueOf(nextLine[1]);\n\t\t\ty = Double.valueOf(nextLine[2]);\n\t\t\tdouble[] point = { x, y };\n\t\t\tpoints.put(id, point);\n\t\t\titemEnv = new Envelope(x, x, y, y);\n\t\t\ttree.insert(itemEnv, id);\n\t\t}\n\t\treader.close();\n\t}", "private int[][][] readData(int startElement, int startLine, int endElement, int endLine) throws AreaFileException {\r\n// int[][][]myData = new int[numBands][dir[AD_NUMLINES]][dir[AD_NUMELEMS]];\r\n int numLines = endLine - startLine;\r\n int numEles = endElement - startElement;\r\n// System.out.println(\"linePrefixLength: \" + linePrefixLength);\r\n int[][][] myData = new int[numBands][numLines][numEles];\r\n \r\n if (! fileok) {\r\n throw new AreaFileException(\"Error reading AreaFile data\");\r\n }\r\n\r\n short shdata;\r\n int intdata;\r\n boolean isBrit = \r\n areaDirectory.getCalibrationType().equalsIgnoreCase(\"BRIT\"); \r\n long newPos = 0;\r\n\r\n for (int i = 0; i<numLines; i++) {\r\n newPos = datLoc + linePrefixLength + lineLength * (i + startLine) + startElement * dir[AD_DATAWIDTH];\r\n position = newPos;\r\n// System.out.println(position);\r\n try {\r\n af.seek(newPos);\r\n } catch (IOException e1) {\r\n e1.printStackTrace();\r\n }\r\n \r\n for (int k=0; k<numEles; k++) {\r\n for (int j = 0; j<numBands; j++) {\r\n try {\r\n if (dir[AD_DATAWIDTH] == 1) {\r\n myData[j][i][k] = (int)af.readByte();\r\n if (myData[j][i][k] < 0 && isBrit) {\r\n myData[j][i][k] += 256;\r\n } \r\n// position = position + 1;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 2) {\r\n shdata = af.readShort();\r\n if (flipwords) {\r\n myData[j][i][k] = (int) ( ((shdata >> 8) & 0xff) | \r\n ((shdata << 8) & 0xff00) );\r\n } else {\r\n myData[j][i][k] = (int) (shdata);\r\n }\r\n// position = position + 2;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 4) {\r\n intdata = af.readInt();\r\n if (flipwords) {\r\n myData[j][i][k] = ( (intdata >>> 24) & 0xff) | \r\n ( (intdata >>> 8) & 0xff00) | \r\n ( (intdata & 0xff) << 24 ) | \r\n ( (intdata & 0xff00) << 8);\r\n } else {\r\n myData[j][i][k] = intdata;\r\n }\r\n// position = position + 4;\r\n } \r\n } \r\n catch (IOException e) {\r\n myData[j][i][k] = 0;\r\n }\r\n }\r\n }\r\n }\r\n return myData;\r\n }", "public interface ISurfaceInterpolator {\n /**\n * Gets an interpolated value in a agiven position, from a set of control values.\n * \n * @param controlPoints all the controlpoints to consider to evaluate the interpolated point.\n * @param interpolated the coordinate in which to interpolate.\n * @return the interpolated z value.\n */\n public double getValue( Coordinate[] controlPoints, Coordinate interpolated );\n \n \n public double getBuffer();\n}", "public void sample()\n\t{\n\t\tint nd = interval.numDimensions();\n\n\t\t// the order in which mpicbg expects\n\t\tp = new double[ nd ][ (int) N ];\n\t\tq = new double[ nd ][ (int) N ];\n\n\t\tdouble[] src = new double[ nd ];\n\t\tdouble[] tgt = new double[ nd ];\n\n\t\tint i = 0;\n\t\tIntervalIterator it = new IntervalIterator( interval );\n\t\twhile ( it.hasNext() )\n\t\t{\n\t\t\tit.fwd();\n\t\t\tit.localize( src );\n\t\t\txfm.apply( src, tgt );\n\n\t\t\tfor ( int d = 0; d < nd; d++ )\n\t\t\t{\n\t\t\t\tp[ d ][ i ] = src[ d ];\n\t\t\t\tq[ d ][ i ] = tgt[ d ];\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "private void read(double[][][] data) {\n // Verifies consistency of row lengths\n for (int i = 1; i < data.length; ++i) {\n if (data[i].length != data[i - 1].length) {\n throw new IllegalArgumentException(\"rows of data must be of same length\");\n }\n }\n\n width = data[0].length;\n height = data.length;\n // Extends width/height to the lowest multiple of 8 <= width/height\n int extWidth = width + Math.floorMod(8 - width, 8);\n int extHeight = height + Math.floorMod(8 - height, 8);\n\n alphaChannel = new int[extHeight][extWidth];\n double[][] yPlane = new double[extHeight][extWidth];\n double[][] cBPlane = new double[extHeight][extWidth];\n double[][] cRPlane = new double[extHeight][extWidth];\n\n // Fills in channels with values for data or values for a black pixel in yCbCr\n for (int x = 0; x < extHeight; ++x) {\n for (int y = 0; y < extWidth; ++y) {\n if (x < height && y < width) {\n alphaChannel[x][y] = (int) data[x][y][0];\n yPlane[x][y] = data[x][y][1];\n cBPlane[x][y] = data[x][y][2];\n cRPlane[x][y] = data[x][y][3];\n }\n else {\n // Default values if x and y are not in bounds of data\n alphaChannel[x][y] = 0xFF;\n yPlane[x][y] = 0x10;\n cBPlane[x][y] = 0x80;\n cRPlane[x][y] = 0x80;\n }\n }\n }\n\n // Downsamples chrominance channels and compresses both chrominance and luminance\n yChannel = compress(yPlane);\n cBChannel = compress(downsample(cBPlane));\n cRChannel = compress(downsample(cRPlane));\n }", "private static float[] interpolateRgb( float[] in, int nsamp ) {\n int nin = in.length / 3;\n float[] out = new float[ nsamp * 3 ];\n for ( int is = 0; is < nsamp; is++ ) {\n for ( int ic = 0; ic < 3; ic++ ) {\n int ilo = is * ( nin - 1 ) / ( nsamp - 1 );\n int ihi = Math.min( ilo + 1, nin - 1 );\n float frac = is * ( nin - 1 ) / (float) ( nsamp - 1 ) - ilo;\n out[ is * 3 + ic ] =\n in[ ilo * 3 + ic ] +\n frac * ( in[ ihi * 3 + ic ] - in[ ilo * 3 + ic ] );\n }\n }\n return out;\n }", "public void readBoardCalibration() {\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileNameBoardDimensions);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n line = bufferedReader.readLine();\n String readFieldSize[]=line.split(\",\");\n xBoardMin=Double.parseDouble(readFieldSize[0]);\n xBoardMax=Double.parseDouble(readFieldSize[1]);\n yBoardMin=Double.parseDouble(readFieldSize[2]);\n yBoardMax=Double.parseDouble(readFieldSize[3]);\n \t\t\tfieldWidthX=(xBoardMax-xBoardMin)/3;\n \t\t\tfieldHeightY=(yBoardMax-yBoardMin)/3;\n bufferedReader.close();\n setFields();\n }\n catch(FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" +fileNameBoardDimensions + \"'\"); \n }\n catch(IOException ex) {\n System.out.println(\"Error reading file '\"+ fileNameBoardDimensions + \"'\"); \n }\n\t}", "public float[][] convertGridValues(final Grid3d grid, final PostStack3d velocityVolume,\n final Method conversionMethod, final ConversionDirection conversionMode, final AreaOfInterest areaOfInterest,\n final IProgressMonitor monitor, final ILogger logger) {\n\n // Determine the geometry.\n GridGeometry3d gridGeometry = grid.getGeometry();\n float[][] outputData = new float[gridGeometry.getNumRows()][gridGeometry.getNumColumns()];\n\n // Get size of grid.\n int numRows = gridGeometry.getNumRows();\n int numCols = gridGeometry.getNumColumns();\n\n Unit velocityUnit = velocityVolume.getDataUnit();\n float zMin = velocityVolume.getZStart();\n float zMax = velocityVolume.getZEnd();\n\n // Determine the domain of the input grid.\n Domain inputGridDomain = grid.getZDomain();\n\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n if (inputGridDomain.equals(Domain.DISTANCE)) {\n throw new RuntimeException(\"Grid should contain times in order to go from time to depth\");\n }\n } else if (conversionMode.equals(ConversionDirection.DEPTH_TO_TIME)) {\n if (inputGridDomain.equals(Domain.TIME)) {\n throw new RuntimeException(\"Grid should contain depths in order to go from depth to time\");\n }\n }\n\n // Determine data unit of the grid.\n Unit inputGridDataUnit = grid.getDataUnit();\n\n // We just want one inline and one xline.\n float[] inlines = new float[1];\n float[] xlines = new float[1];\n float inlineMin = Math.min(velocityVolume.getInlineStart(), velocityVolume.getInlineEnd());\n float inlineMax = Math.max(velocityVolume.getInlineStart(), velocityVolume.getInlineEnd());\n float xlineMin = Math.min(velocityVolume.getXlineStart(), velocityVolume.getXlineEnd());\n float xlineMax = Math.max(velocityVolume.getXlineStart(), velocityVolume.getXlineEnd());\n boolean processingDone = false;\n boolean validXYdata = false;\n\n StorageOrder storageOrder = velocityVolume.getPreferredOrder();\n\n float nullValue = grid.getNullValue();\n float[][] inputGridValues = grid.getValues();\n\n // Convert values for each point in the grid.\n if (storageOrder.equals(StorageOrder.INLINE_XLINE_Z)) {\n monitor.beginTask(\"Grid Stretch 3D\", numCols);\n for (int col = 0; col < numCols; col++) {\n for (int row = 0; row < numRows; row++) {\n\n float inputGridValue = inputGridValues[row][col];\n\n outputData[row][col] = nullValue;\n if (!grid.isNull(inputGridValue)) {\n\n // Determine x,y coordinates at the current point\n double[] xy = gridGeometry.transformRowColToXY(row, col);\n double x = xy[0];\n double y = xy[1];\n\n // Determine inline and xline that correspond to x,y.\n // (Get the closest inline and xline).\n SeismicSurvey3d geometry = velocityVolume.getSurvey();\n float[] lines = geometry.transformXYToInlineXline(x, y, true);\n\n inlines[0] = lines[0];\n xlines[0] = lines[1];\n\n // Determine trace based on the inline and crossline.\n // (Make sure trace is valid).\n Trace trace = null;\n Boolean processTrace = false;\n if (inlines[0] >= inlineMin && inlines[0] <= inlineMax && xlines[0] >= xlineMin && xlines[0] <= xlineMax) {\n validXYdata = true;\n // Determine if Inline and crossline is in the area of interest\n if (areaOfInterest == null) {\n processTrace = true;\n } else if (areaOfInterest.contains(x, y)) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n // Determine the trace in the volume.\n if (processTrace) {\n TraceData traceData = velocityVolume.getTraces(inlines, xlines, zMin, zMax);\n trace = traceData.getTrace(0);\n // Make sure that the trace is a live trace.\n if (trace.isLive()) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n }\n }\n\n // Process trace if it is valid.\n if (processTrace) {\n VelocityArrayTimeDepthConverter converter = new VelocityArrayTimeDepthConverter(trace.getData(),\n trace.getZDelta(), velocityVolume.getZDomain(), velocityUnit, conversionMethod);\n float outputGridValue = Float.NaN;\n\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getTimeUnit());\n outputGridValue = converter.getDepth(outputGridValue);\n } else if (conversionMode.equals(ConversionDirection.DEPTH_TO_TIME)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getVerticalDistanceUnit());\n outputGridValue = converter.getTime(outputGridValue);\n }\n if (!Float.isNaN(outputGridValue)) {\n outputData[row][col] = outputGridValue;\n processingDone = true;\n }\n }\n }\n }\n monitor.subTask(\"Completed column \" + (col + 1) + \" of \" + numCols);\n monitor.worked(1);\n if (monitor.isCanceled()) {\n break;\n }\n }\n } else if (storageOrder.equals(StorageOrder.XLINE_INLINE_Z)) {\n monitor.beginTask(\"Grid Stretch 3D\", numRows);\n for (int row = 0; row < numRows; row++) {\n\n for (int col = 0; col < numCols; col++) {\n\n float inputGridValue = inputGridValues[row][col];\n\n outputData[row][col] = nullValue;\n if (!grid.isNull(inputGridValue)) {\n\n // Determine x,y coordinates at the current point.\n double[] xy = gridGeometry.transformRowColToXY(row, col);\n double x = xy[0];\n double y = xy[1];\n\n // Determine inline and xline that correspond to x,y.\n // (Get the closest inline and xline).\n SeismicSurvey3d geometry = velocityVolume.getSurvey();\n float[] lines = geometry.transformXYToInlineXline(x, y, true);\n\n inlines[0] = lines[0];\n xlines[0] = lines[1];\n\n // Determine trace based on the inline and crossline.\n // (Make sure trace is valid).\n Trace trace = null;\n Boolean processTrace = false;\n if (inlines[0] >= inlineMin && inlines[0] <= inlineMax && xlines[0] >= xlineMin && xlines[0] <= xlineMax) {\n validXYdata = true;\n // Determine if inline and crossline is in the area of interest.\n if (areaOfInterest == null) {\n processTrace = true;\n } else if (areaOfInterest.contains(x, y)) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n // Determine the trace in the volume.\n if (processTrace) {\n TraceData traceData = velocityVolume.getTraces(inlines, xlines, zMin, zMax);\n trace = traceData.getTrace(0);\n // Make sure that the trace is a live trace.\n if (trace.isLive()) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n }\n }\n\n // Process trace if it is valid.\n if (processTrace) {\n VelocityArrayTimeDepthConverter converter = new VelocityArrayTimeDepthConverter(trace.getData(),\n trace.getZDelta(), velocityVolume.getZDomain(), velocityUnit, conversionMethod);\n float outputGridValue = Float.NaN;\n\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getTimeUnit());\n outputGridValue = converter.getDepth(outputGridValue);\n } else if (conversionMode.equals(ConversionDirection.DEPTH_TO_TIME)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getVerticalDistanceUnit());\n outputGridValue = converter.getTime(outputGridValue);\n }\n if (!Float.isNaN(outputGridValue)) {\n outputData[row][col] = outputGridValue;\n processingDone = true;\n }\n }\n }\n }\n monitor.subTask(\"Completed row \" + (row + 1) + \" of \" + numRows);\n monitor.worked(1);\n if (monitor.isCanceled()) {\n break;\n }\n }\n }\n\n // Make sure some processing has been done.\n if (!processingDone) {\n String msg = \"Unable to convert grid depths from depth to time\";\n if (validXYdata) {\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n msg = \"Unable to convert grid times from time to depth\";\n }\n } else {\n msg = \"X,Y locations in the grid do not match the volume\";\n }\n logger.error(msg);\n throw new RuntimeException(msg);\n }\n\n return outputData;\n }", "public static void testReadGridFile() throws IOException {\n\n System.out.println(\"\\n--------- Reading Grid File ---------\");\n\n GridFile gridFile = GridFile.open(TEST_FILE);\n\n GridParameters params = gridFile.getParameters();\n\n System.out.println(\"Number of Rows: \" + params.getNumberOfRows());\n System.out.println(\"Number of Columns: \" + params.getNumberOfColumns());\n System.out.println(\"Lower Left X Corner: \" + params.getXllCorner());\n System.out.println(\"Lower Left Y Corner: \" + params.getYllCorner());\n System.out.println(\"No Data Value: \" + params.getNoDataValue());\n System.out.println(\"Word Size: \" + params.getWordSizeInBytes() + \" bytes\");\n System.out.println(\"Description: \" + params.getDescription());\n\n //Create an array to hold row data\n int[] rowValues = new int[params.getNumberOfColumns()];\n\n //Read values in row 1 and print the first 10\n gridFile.getRow(1, rowValues);\n\n for (int i = 0; i < 10; i++) {\n System.out.println(\"row[\" + i + \"] = \" + rowValues[i]);\n }\n\n //Read values in row 2 and print the first 10\n gridFile.getRow(2, rowValues);\n\n for (int i = 0; i < 10; i++) {\n System.out.println(\"row[\" + i + \"] = \" + rowValues[i]);\n }\n\n gridFile.close();\n }", "private void drawInterpolatedSamples(Graphics G, int pixelFrom,\r\n\t\t\tint pixelTo, long startSample, float[] samples, int sampleCount) {\r\n\t\tif (samples == null) return;\r\n\t\tpixelFrom--;\r\n\t\tpixelTo++;\r\n\t\tint pixelX = pixelFrom;\r\n\t\tint oldY = toPixelY(interpolate(\r\n\t\t\t\ttoSamplesXF(pixelX) - 0.5 - startSample, samples, sampleCount));\r\n\t\twhile (pixelX++ < pixelTo) {\r\n\t\t\tint newY = toPixelY(interpolate(toSamplesXF(pixelX) - 0.5\r\n\t\t\t\t\t- startSample, samples, sampleCount));\r\n\t\t\tG.drawLine(pixelX - 1, oldY, pixelX, newY);\r\n\t\t\toldY = newY;\r\n\t\t}\r\n\t}", "public abstract float scaleIntensityData(float rawIntensity, float rawBkgrd,\n int mid, int gid, int sampleIdx);", "public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }", "public abstract float scaleIntensityData(float rawData, int mid, int gid,\n int sampleNbr);", "public static void processGraphInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(1, cutPoints.get(0))));\n for (int j = 0; j < cutPoints.size(); j++) {\n\n if (j==cutPoints.size()-1){\n if(isNumeric(data.substring(cutPoints.get(j)+1,endOfLineIndex )))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(cutPoints.get(j)+1,endOfLineIndex )));\n } else{\n if(isNumeric(data.substring(cutPoints.get(j) + 1, cutPoints.get(j+1))))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(cutPoints.get(j) + 1, cutPoints.get(j+1))));\n }\n\n }\n graphIn.obtainMessage(handlerState4, Integer.toString(tempSampleTime)).sendToTarget(); //Comment this part to run junit tests\n if (tempSampleTime != 0) {\n tempReceived = true;\n graphIn.obtainMessage(handlerState2, Boolean.toString(tempReceived)).sendToTarget(); //Comment this part to run junit tests\n graphIn.obtainMessage(handlerState1, tempPPGWaveBuffer).sendToTarget(); //Comment this part to run junit tests\n } else {\n tempReceived = false;\n graphIn.obtainMessage(handlerState2, Boolean.toString(tempReceived)).sendToTarget(); //Comment this part to run junit tests\n }\n }", "void vng_interpolate()\n{\n}", "private double interpolate(double sampleX, float[] samples, int sampleCount) {\r\n\t\tint quality = 3;\r\n\t\tif (sampleX == Math.floor(sampleX)) {\r\n\t\t\treturn (sampleX < 0 || sampleX >= samples.length) ? 0\r\n\t\t\t\t\t: samples[(int) sampleX];\r\n\t\t}\r\n\t\tint from = (int) (sampleX) - quality;\r\n\t\tif (from < 0) from = 0;\r\n\t\tint to = (int) (sampleX) + quality;\r\n\t\tif (to >= sampleCount) to = sampleCount - 1;\r\n\t\tdouble Y = 0.0;\r\n\t\tdouble X = sampleX - from;\r\n\t\tif (X == 0.0) {\r\n\t\t\treturn 0.0;\r\n\t\t}\r\n\t\tint i = from;\r\n\t\twhile (i <= to) {\r\n\t\t\tdouble fac = Math.PI * X;\r\n\t\t\tY += samples[i] * (Math.sin(fac) / fac);\r\n\t\t\ti++;\r\n\t\t\tX -= 1;\r\n\t\t}\r\n\t\treturn Y;\r\n\t}", "private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}", "public void readValues() {\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tfor (int j = 0; j < 7; j++) {\n\t\t\t\tarray.setElement(i, j, Integer.parseInt(lblCenter[i][j].getText()));\n\t\t\t}\n\t\t\tleftCol.setElement(i, Integer.parseInt(tfWest[i].getText()));\n\t\t\tbottomRow.setElement(i, Integer.parseInt(tfSouth[i].getText()));\n\t\t}\n\t}", "public void readFile() {\r\n try {\r\n final String file = \"ConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n double average = 0;\r\n BufferedReader br = new BufferedReader(new FileReader(file));\r\n String line = br.readLine();\r\n line = br.readLine();\r\n String[] splited = line.split(\",\");\r\n this.maxLA = Double.parseDouble(splited[0]);\r\n this.minLA = Double.parseDouble(splited[0]);\r\n this.maxLO = Double.parseDouble(splited[1]);\r\n this.minLO = Double.parseDouble(splited[1]);\r\n this.maxH = Math.abs(Double.parseDouble(splited[2]));\r\n this.minH = Math.abs(Double.parseDouble(splited[2]));\r\n int index = 0;\r\n double x;\r\n double y;\r\n double z;\r\n while (line != null) {\r\n String[] splitedString = line.split(\",\");\r\n x = Double.parseDouble(splitedString[0]);\r\n y = Double.parseDouble(splitedString[1]);\r\n z = Math.abs(Double.parseDouble(splitedString[2]));\r\n average += y;\r\n if (x > maxLA) {\r\n maxLA = x;\r\n } else if (x < minLA) {\r\n minLA = x;\r\n }\r\n if (y > maxLO) {\r\n maxLO = y;\r\n } else if (y < minLO) {\r\n minLO = y;\r\n }\r\n if (z > maxH) {\r\n maxH = z;\r\n } else if (z < minH) {\r\n minH = z;\r\n }\r\n Bee3D newBee = new Bee3D(x, y, z);\r\n this.beesArray[index++] = newBee;\r\n line = br.readLine();\r\n }\r\n average = average / this.numberOfBees;\r\n System.out.println(\"Maximum latitude: \" + maxLA + \" Minimum latitude: \" + minLA);\r\n System.out.println(\"Maximum longitude: \" + maxLO + \" Minimum longitude: \" + minLO);\r\n System.out.println(\"Maximum height: \" + maxH + \" Minimum height: \" + minH);\r\n this.distanceLongi = getDistanceBetween(average);\r\n System.out.println(\"Distance between the most distant latitudes \" + (int) (Math.abs(Math.abs(maxLA) - Math.abs(minLA)) * distanceLat) + \" m\");\r\n System.out.println(\"Distance between the most distant longitudes: \" + (int) (Math.abs(Math.abs(maxLO) - Math.abs(minLO)) * distanceLongi) + \" m\");\r\n System.out.println(\"Distance between the most distant heights: \" + (int) (Math.abs(Math.abs(maxH) - Math.abs(minH))) + \" m\");\r\n System.out.println(\"Average distance between longitudes: \" + distanceLongi + \" m\");\r\n this.offset *= 2;\r\n this.offset += 10;\r\n this.BeesCollision = new LinkedList[(int) ((Math.abs(Math.abs(maxLO) - Math.abs(minLO)) * distanceLongi / precission) + offset)][(int) ((Math.abs(Math.abs(maxLA) - Math.abs(minLA)) * distanceLat / precission) + offset)][(int) (Math.abs((Math.abs(maxH) - Math.abs(minH)) / precission) + offset)];\r\n this.offset -= 10;\r\n this.offset /= 2;\r\n } catch (IOException ioe) {\r\n File file = new File(\"ConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\");\r\n System.out.println(\"Something went wrong reading the file\");\r\n System.out.println(\"File exist: \" + file.exists());\r\n }\r\n }", "@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }", "Vec3 interpolate(float ticks);", "public void fillAvgTemplateValues() {\n\t\t//photoCounter keeps a record of the current location in the array wherein an average HSV value will be assigned\n\t\tint photoCounter = 0;\n\t\t//The length (number of images from source folder) that will be inserted into each row and each column \n\t\tint length = (int)Math.sqrt(imagePieces);\n\t\t\n\t\t//Creates the grid of average HSV values depending on where the top left coordinate of a subsection is \n\t\tfor(int r = 0; r < length; r++) {\n\t\t\tfor(int c = 0; c < length; c++) {\n\t\t\t\tint[] temp = new int[3];\n\t\t\t\t\n\t\t\t\t//If statement chain is present because if the row or column is 0, it assigns parameters manually to avoid dividing by 0\n\t\t\t\tif(r == 0 && c == 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV(0, 0, width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse if(r == 0 && c != 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV(0, (int)((height * c) / length), width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse if(r != 0 && c == 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV((int)((width * r) / length), 0, width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV((int)((width * r) / length), (int)((height * c) / length), width / length, height / length);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//To get H value\n\t\t\t\tavgTemplateValues[photoCounter][0] = temp[0];\n\t\t\t\t//To get S value\n\t\t\t\tavgTemplateValues[photoCounter][1] = temp[1];\n\t\t\t\t//To get V value\n\t\t\t\tavgTemplateValues[photoCounter][2] = temp[2];\n\t\t\t\tphotoCounter++;\n\t\t\t}\n\t\t}\n\t}", "Point3D[] reinterpolate_alone_y (int n, Point3D[] a) {\n if (n < 2) n = 2;\n int len = a.length;\n if (n == len) return a; // nothing to do\n int idx_last = len -1;\n int seg_count = idx_last;\n double y0 = a[0].y;\n double seg = span/seg_count;\n Point3D bottom = new Point3D(a[0].x - (a[1].x - a[0].x),\n a[0].y - (a[1].y - a[0].y),\n a[0].z - (a[1].z - a[0].z));\n Point3D top = new Point3D(a[idx_last].x + (a[idx_last].x - a[idx_last-1].x),\n a[idx_last].y + (a[idx_last].y - a[idx_last-1].y),\n a[idx_last].z + (a[idx_last].z - a[idx_last-1].z));\n Point3D[] new_a = new Point3D[n];\n double new_seg = span/(n-1);\n for (int i = 0; i < new_a.length; i++) {\n double offs = new_seg * i;\n double y = y0 + offs;\n int prev_idx = (int)Math.floor(offs/seg);\n if (prev_idx == idx_last) { // last point\n new_a[i] = a[idx_last]; \n continue; // really a break....\n }\n Point3D p1 = a[prev_idx];\n Point3D p2 = a[prev_idx+1];\n Point3D p0 = prev_idx > 0 ? a[prev_idx-1] : bottom;\n Point3D p3 = prev_idx < idx_last-1 ? a[prev_idx+2] : top;\n double mu = (y-p1.y)/seg; /// mu spans the range of 0...1\n // double new_x = solver.LinearInterpolate(p1.x, p2.x, mu);\n double new_x = solver.CubicInterpolate(p0.x, p1.x, p2.x, p3.x, mu);\n // double new_z = solver.LinearInterpolate(p1.z, p2.z, mu);\n double new_z = solver.CubicInterpolate(p0.z, p1.z, p2.z, p3.z, mu);\n new_a[i] = new Point3D(new_x, y, new_z);\n }\n return new_a;\n }", "@Test\n\tpublic void testInterpolationSearch() {\n\t\tint[] numbers = {0, 1, 2, 3, 4, 5, 6};\n\t\tint r1 = _02_InterpolationSearch.interpolationSearch(numbers, 2);\n\t\tassertEquals(2, r1);\n\t\t\n\t\tint[] numbers2 = {2, 4, 6, 8, 10};\n\t\tint r2 = _02_InterpolationSearch.interpolationSearch(numbers2, 2);\n\t\tassertEquals(0, r2);\n\t\t\n\t\tint[] numbers3 = {100, 200, 300};\n\t\tint r3 = _02_InterpolationSearch.interpolationSearch(numbers3, 160);\n\t\tassertEquals(-1, r3);\n\n\t}", "void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t}", "@Override\r\n protected void interpolate(final double frac) {\n }", "private void populateGridData() {\n\t\t// Delete subfile\n\t\tnmfkpinds.setPgmInd74(true);\n\t\tnmfkpinds.setPgmInd71(false);\n\t\tnmfkpinds.setPgmInd72(false);\n\t\tnmfkpinds.setPgmInd31(false);\n\t\tnmfkpinds.setPgmInd74(false);\n\t\t// Write subfile\n\t\tif (stateVariable.getSflrrn() == 0) {\n\t\t\tcontractDetail.fetch(stateVariable.getXwordn());\n\t\t}\n\t\tcontractDetail.next(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd31(lastIO.isEndOfFile());\n\t\tuwScnIdx1 = 0;\n\t\twhile (! nmfkpinds.pgmInd31()) {\n\t\t\tstateVariable.setSflrrn(Integer.valueOf(stateVariable.getSflrrn() + 1));\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\tstateVariable.setSwabcd(subString(stateVariable.getXwabcd(), 1, 15));\n\t\t\tstateVariable.setSwt8tx(subString(stateVariable.getXwt8tx(), 1, 9));\n\t\t\tproductMaster.retrieve(stateVariable.getXwabcd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00001 Product not found on Product_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwhltx(all(\"-\", 10));\n\t\t\t}\n\t\t\tif (uwScnIdx1 < Integer.valueOf(gridVariable.length - 1)) {\n\t\t\t\tuwScnIdx1 = Integer.valueOf(uwScnIdx1 + 1);\n\t\t\t}\n\t\t\tgridVariable[uwScnIdx1].setDssel(\"X\");\n\t\t\tgridVariable[uwScnIdx1].setSwabcd(stateVariable.getSwabcd());\n\t\t\tgridVariable[uwScnIdx1].setXwabcd(stateVariable.getXwabcd());\n\t\t\tgridVariable[uwScnIdx1].setXwaacs(stateVariable.getXwaacs());\n\t\t\tgridVariable[uwScnIdx1].setSwt8tx(stateVariable.getSwt8tx());\n\t\t\tgridVariable[uwScnIdx1].setXwt8tx(stateVariable.getXwt8tx());\n\t\t\tgridVariable[uwScnIdx1].setXwricd(stateVariable.getXwricd());\n\t\t\tgridVariable[uwScnIdx1].setXwa5qt(stateVariable.getXwa5qt());\n\t\t\tgridVariable[uwScnIdx1].setXwa2cd(stateVariable.getXwa2cd());\n\t\t\tgridVariable[uwScnIdx1].setXwpric(stateVariable.getXwpric());\n\t\t\tgridVariable[uwScnIdx1].setXwhltx(stateVariable.getXwhltx());\n\t\t\t// Reading just one grid page\n\t\t\tif (uwScnIdx1 == Integer.valueOf(gridVariable.length - 1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcontractDetail.next(stateVariable.getXwordn());\n\t\t\tnmfkpinds.setPgmInd31(lastIO.isEndOfFile());\n\t\t}\n\t\t// -\n\t\tif (stateVariable.getSflrrn() > 0) {\n\t\t\tif (equal(\"0\", stateVariable.getSflchg())) {\n\t\t\t\tstateVariable.setShwrec(1);\n\t\t\t}\n\t\t\tif ((stateVariable.getShwrec() > stateVariable.getSflrrn()) || (stateVariable.getShwrec() < 1)) {\n\t\t\t\tstateVariable.setShwrec(1);\n\t\t\t}\n\t\t\t// Richard T: 27 Sep 2010\n\t\t\tif (stateVariable.getSflrrn() > 0) {\n\t\t\t\tnmfkpinds.setPgmInd71(true);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnmfkpinds.setPgmInd71(false);\n\t\t\t}\n\t\t}\n\t\tnmfkpinds.setPgmInd72(true);\n\t}", "public InterpolatorGrid(double min, double max) {\n minValue = min;\n maxValue = max;\n }", "public void interpolate(ArrayList<String> dataset)\n\t{\n\t\tDEGREE = dataset.size();\n\t\tPolynomial p = new Polynomial(BigInteger.ONE, 0, modulus);\n\t\t\n\t\tfor(int i=0; i<DEGREE; i++)\n\t\t{\n \tString item = dataset.get(i);\n \tBigInteger root = hash(item);\n \tPolynomial r = new Polynomial(root,0,modulus);\n \tPolynomial x = new Polynomial(BigInteger.ONE, 1, modulus);\n \tp = p.times(x.minus(r));\n }\n\t\t\n\t\tcoefficients = p.coefficients();\n\t}", "public interface Interpolator {\n /**\n * Adds a new Point with the given x and y value.\n * @param x x-value to add\n * @param y y-value to add\n * @return the Point which was added\n */\n public Point2D addPoint(double x, double y);\n /**\n * Adds a new point at the given index.\n * @param i index for where to add the new Point\n * @param x x-value to add\n * @param y y-value to add\n * @return the Point which was added\n */\n public Point2D insertPoint(int i, double x, double y);\n /**\n * Adds a List of Points.\n * @param points List of Points to add\n */\n public void addPoints(List<Point2D> points);\n /**\n * Adds a List of Point at the given index.\n * @param i index for where to add the Points\n * @param points List of Points to add\n */\n public void addPoints(int i, List<Point2D> points);\n /**\n * Sets the x and y values of the Point at the given index.\n * @param i index of the point to set\n * @param x x-value to set\n * @param y y-value to set\n * @return the Point after being set\n */\n public Point2D setPoint(int i, double x, double y);\n /**\n * Removes the given Point from the Interpolator.\n * @param p the Point to remove\n */\n public void removePoint(Point2D p);\n /**\n * Remove the Point at the given index.\n * @param i index of the Point to remove\n * @return the Point removed\n */\n public Point2D removePoint(int i);\n /**\n * Returns a list of the Interpolator's points.\n * @return list of the Interpolator's points\n */\n public List<Point2D> getControlPoints();\n /**\n * Returns a List of Points interpolated from the Interpolator's control \n * points.\n * @return List of Points interpolated from the Interpolator's control \n * points\n */\n public abstract List<Point2D> getInterpolatedPoints();\n /**\n * Returns true if the List of interpolated Points has changed since last\n * being requested and needs to be recalculated.\n * @return true if the List of interpolated Points has changed since last\n * being requested and needs to be recalculated\n */\n public boolean interpolationChanged();\n\n /**\n * Clears all the Points from the Interpolator.\n */\n public void clear();\n \n /**\n * Return the Interpolator's VersionProperty. Used to specify an \n * Interpolator type when serializing and de-serializing an Interpolator.\n * @return Interpolator's VersionProperty\n */\n public VersionProperty getInterpolatorVersion();\n \n public boolean touchesControlPoints();\n}", "private void setPixels() {\n\t\t\tfinal byte[] dest = new byte[(int) (getMetadata().get(0).getAxisLength(\n\t\t\t\tAxes.X) * getMetadata().get(0).getAxisLength(Axes.Y))];\n\t\t\tlong lastImage = -1;\n\n\t\t\t// fill in starting image contents based on last image's dispose\n\t\t\t// code\n\t\t\tif (getMetadata().getLastDispose() > 0) {\n\t\t\t\tif (getMetadata().getLastDispose() == 3) { // use image before last\n\t\t\t\t\tfinal long n = getMetadata().get(0).getPlaneCount() - 2;\n\t\t\t\t\tif (n > 0) lastImage = n - 1;\n\t\t\t\t}\n\n\t\t\t\tif (lastImage != -1) {\n\t\t\t\t\tfinal byte[] prev = getMetadata().getImages().get((int) lastImage);\n\t\t\t\t\tSystem.arraycopy(prev, 0, dest, 0, (int) (getMetadata().get(0)\n\t\t\t\t\t\t.getAxisLength(Axes.X) * getMetadata().get(0).getAxisLength(\n\t\t\t\t\t\t\tAxes.Y)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// copy each source line to the appropriate place in the destination\n\n\t\t\tint pass = 1;\n\t\t\tint inc = 8;\n\t\t\tint iline = 0;\n\t\t\tfor (int i = 0; i < getMetadata().getIh(); i++) {\n\t\t\t\tint line = i;\n\t\t\t\tif (getMetadata().isInterlace()) {\n\t\t\t\t\tif (iline >= getMetadata().getIh()) {\n\t\t\t\t\t\tpass++;\n\t\t\t\t\t\tswitch (pass) {\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tiline = 4;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tiline = 2;\n\t\t\t\t\t\t\t\tinc = 4;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\tiline = 1;\n\t\t\t\t\t\t\t\tinc = 2;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tline = iline;\n\t\t\t\t\tiline += inc;\n\t\t\t\t}\n\t\t\t\tline += getMetadata().getIy();\n\t\t\t\tif (line < getMetadata().get(0).getAxisLength(Axes.Y)) {\n\t\t\t\t\tfinal int k = line * (int) getMetadata().get(0).getAxisLength(Axes.X);\n\t\t\t\t\tint dx = k + getMetadata().getIx(); // start of line in dest\n\t\t\t\t\tint dlim = dx + getMetadata().getIw(); // end of dest line\n\t\t\t\t\tif ((k + getMetadata().get(0).getAxisLength(Axes.X)) < dlim) dlim =\n\t\t\t\t\t\tk + (int) getMetadata().get(0).getAxisLength(Axes.X);\n\t\t\t\t\tint sx = i * getMetadata().getIw(); // start of line in\n\t\t\t\t\t// source\n\t\t\t\t\twhile (dx < dlim) {\n\t\t\t\t\t\t// map color and insert in destination\n\t\t\t\t\t\tfinal int index = getMetadata().getPixels()[sx++] & 0xff;\n\t\t\t\t\t\tdest[dx++] = (byte) index;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tgetMetadata().getColorTables().add(getMetadata().getAct());\n\t\t\tgetMetadata().getImages().add(dest);\n\t\t}", "@Test\n public void testSetModel() throws IOException, GeoTessException {\n GeoTessModel asar = new GeoTessModel(\n new File(\"src/test/resources/permanent_files/asar.libcorr\"));\n\n GeoTessModel wra = new GeoTessModel(\n new File(\"src/test/resources/permanent_files/wra.libcorr\"));\n\n double radius = R - 10;\n\n // get a linear interpolator for asar and store an interpolated value\n GeoTessPosition lin = asar.getGeoTessPosition(InterpolatorType.LINEAR);\n lin.set(0, x, radius);\n double asarValLin = lin.getValue(0);\n\n // get a natural neighbor interpolator for asar and store an interpolated value\n GeoTessPosition nn = asar.getGeoTessPosition(InterpolatorType.NATURAL_NEIGHBOR);\n nn.set(0, x, radius);\n double asarValNN = nn.getValue(0);\n\n // check the values\n assertEquals(0.3374091195934728, asarValLin, 1e-6);\n assertEquals(0.33572387503267453, asarValNN, 1e-6);\n\n // change the model from asar to wra.\n lin.setModel(wra);\n nn.setModel(wra);\n\n // check the values\n assertEquals(0.1322819160629162, lin.getValue(0), 1e-6);\n assertEquals(0.13264099906171609, nn.getValue(0), 1e-6);\n\n // switch back to asar\n lin.setModel(asar);\n nn.setModel(asar);\n\n // ensure that the new interpolated values are the same\n // as what was obtained before.\n assertEquals(asarValLin, lin.getValue(0), 1e-6);\n assertEquals(asarValNN, nn.getValue(0), 1e-6);\n }", "@Override\n public void setInterpolation(int interpolation) {\n getSWTGraphics().setInterpolation(interpolation);\n }", "public final native InterpolationMode interpolate() /*-{\r\n\t\treturn @org.gwtd3.api.svg.Line.InterpolationMode::fromValue(Ljava/lang/String;)(this.interpolate());\r\n }-*/;", "void reinterpolate (int n) {\n if (current_part == strut) {\n mesh_LE = reinterpolate_alone_z(n, mesh_LE);\n mesh_TE = reinterpolate_alone_z(n, mesh_TE);\n } else {\n mesh_LE = reinterpolate_alone_y(n, mesh_LE);\n mesh_TE = reinterpolate_alone_y(n, mesh_TE);\n }\n }", "public double getValue(double x, double y){\n\n\tint i,j;\n\tdouble fracX,fracY;\n\tdouble Wxm, Wx0, Wxp, Wym, Wy0, Wyp;\n\tdouble Vm, V0, Vp;\n\n\n\tif(x < x_min || y < y_min || x > x_max || y > y_max){\n\t return z_min;\n\t}\n\n i = (int) ((x-x_min)/x_step + 0.5);\n j = (int) ((y-y_min)/y_step + 0.5);\n\n if( i < 1) i = 1;\n if( i > (nX-2)) i = nX-2;\n if( j < 1) j = 1;\n if( j > (nY-2)) j = nY-2;\t \n\n fracX = (x - x_min - i*x_step)/x_step;\n fracY = (y - y_min - j*y_step)/y_step;\n\n\tWxm = 0.5*(0.5 - fracX)*(0.5 - fracX);\n\tWxp = 0.5*(0.5 + fracX)*(0.5 + fracX);\n\tWx0 = 0.75 - fracX*fracX;\n\n\tWym = 0.5*(0.5 - fracY)*(0.5 - fracY);\n\tWyp = 0.5*(0.5 + fracY)*(0.5 + fracY);\n\tWy0 = 0.75 - fracY*fracY;\n\n\tVm = Wxm*gridData[i-1][j-1]+Wx0*gridData[i][j-1]+Wxp*gridData[i+1][j-1];\n\tV0 = Wxm*gridData[i-1][j] +Wx0*gridData[i][j] +Wxp*gridData[i+1][j];\n\tVp = Wxm*gridData[i-1][j+1]+Wx0*gridData[i][j+1]+Wxp*gridData[i+1][j+1];\n\n return Wym*Vm + Wy0*V0 + Wyp*Vp;\n }", "@DataProvider(name=\"nearestTSS\")\n public Object[][] getNearestTSSData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 1, 50), \"A\" },\n { new SimpleInterval(\"chr2\", 105, 110), \"B\" }, // Before first gene on contig\n { new SimpleInterval(\"chr2\", 155, 160), \"B\" }, // Closer left\n { new SimpleInterval(\"chr2\", 160, 195), \"C\" }, // Closer right\n { new SimpleInterval(\"chr2\", 3000, 4000), \"D\" }, // After last gene on contig\n { new SimpleInterval(\"chr3\", 33, 33), \"E\" },\n { new SimpleInterval(\"chr4\", 900, 4000), null }, // On different contig from TSS data\n };\n }", "@Test\n public void test67() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n DatasetRenderingOrder datasetRenderingOrder0 = DatasetRenderingOrder.FORWARD;\n combinedRangeCategoryPlot0.setDatasetRenderingOrder(datasetRenderingOrder0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n CategoryAxis categoryAxis0 = combinedRangeCategoryPlot0.getDomainAxis();\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n Number[][] numberArray0 = new Number[3][5];\n Number[] numberArray1 = new Number[5];\n double double0 = SpiderWebPlot.DEFAULT_AXIS_LABEL_GAP;\n numberArray1[0] = (Number) 0.1;\n int int0 = SystemColor.INFO;\n numberArray1[1] = (Number) 24;\n int int1 = TransferHandler.MOVE;\n numberArray1[2] = (Number) 2;\n int int2 = MockThread.MIN_PRIORITY;\n numberArray1[3] = (Number) 1;\n int int3 = ColorSpace.TYPE_ACLR;\n numberArray1[4] = (Number) 20;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[2];\n byte byte0 = Character.CONTROL;\n numberArray2[0] = (Number) (byte)15;\n int int4 = ThermometerPlot.BULB_DIAMETER;\n numberArray2[1] = (Number) 80;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[8];\n Object[][][] objectArray0 = new Object[2][8][7];\n objectArray0[0] = (Object[][]) numberArray0;\n objectArray0[1] = (Object[][]) numberArray0;\n DefaultWindDataset defaultWindDataset0 = null;\n try {\n defaultWindDataset0 = new DefaultWindDataset(objectArray0);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n assertThrownBy(\"org.jfree.data.xy.DefaultWindDataset\", e);\n }\n }", "private void calculateMaps() {\n\tsrcrows = new int[destHeight + 1];\n\tfor (int y = 0; y <= destHeight; y++) {\n\t srcrows[y] = (2 * y * srcHeight + srcHeight) / (2 * destHeight);\n\t}\n\tsrccols = new int[destWidth + 1];\n\tfor (int x = 0; x <= destWidth; x++) {\n\t srccols[x] = (2 * x * srcWidth + srcWidth) / (2 * destWidth);\n\t}\n\n float xscale = ( ( float ) srcWidth - 1 ) / ( ( float ) destWidth );\n float yscale = ( ( float ) srcHeight - 1 ) / ( ( float ) destHeight ) ;\n\n srcxlarr = new int[destWidth+1];\n srcxuarr = new int[destWidth+1];\n srcxarr = new int[destWidth+1];\n\n for (int x = 0 ; x <= destWidth;x++) {\n float tmp = x * xscale ;\n srcxlarr[x] = (int) Math.floor( tmp ) ;\n srcxuarr[x] = (int) Math.ceil( tmp ) ;\n srcxarr[x] = (int) ( ( tmp - srcxlarr[x] ) * 255f );\n }\n\n srcylarr = new int[destHeight+1];\n srcyuarr = new int[destHeight+1];\n srcyarr = new int[destHeight+1];\n\n for (int y = 0 ; y <= destHeight;y++) {\n float tmp = y * yscale ;\n srcylarr[y] = (int) Math.floor( tmp ) ;\n srcyuarr[y] = (int) Math.ceil( tmp ) ;\n srcyarr[y] = (int) ( ( tmp - srcylarr[y] ) * 255f );\n }\n\n /*\n System.out.println( \"srcrows\" );\n for (int i=0;i<srcrows.length;i++) {\n System.out.print( srcrows[i] + \" \" );\n }\n\n System.out.println( \"\\nsrccols\" );\n for (int i=0;i<srccols.length;i++) {\n System.out.print( srccols[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxlarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcxlarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcxuarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcylarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcylarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcyuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcyuarr[i] + \" \" );\n }\n */\n }", "public void addValue(double x, double y, double value){\n\tint i,j;\n\tdouble fracX,fracY;\n\tdouble Wxm,Wx0,Wxp,Wym,Wy0,Wyp,tmp;\n\n i = (int) ((x-x_min)/x_step + 0.5);\n j = (int) ((y-y_min)/y_step + 0.5);\n\n if( i < 1) i = 1;\n if( i > (nX-2)) i = nX-2;\n if( j < 1) j = 1;\n if( j > (nY-2)) j = nY-2;\n\n fracX = (x - x_min - i*x_step)/x_step;\n fracY = (y - y_min - j*y_step)/y_step;\n\n\tWxm = 0.5 * (0.5 - fracX) * (0.5 - fracX);\n\tWx0 = 0.75 - fracX * fracX;\n\tWxp = 0.5 * (0.5 + fracX) * (0.5 + fracX);\n\tWym = 0.5 * (0.5 - fracY) * (0.5 - fracY);\n\tWy0 = 0.75 - fracY * fracY;\n\tWyp = 0.5 * (0.5 + fracY) * (0.5 + fracY);\n\n\ttmp = Wym * value;\n\tgridData[i-1][j-1] += Wxm * tmp;\n\tgridData[i ][j-1] += Wx0 * tmp;\n\tgridData[i+1][j-1] += Wxp * tmp;\n\ttmp = Wy0 * value;\n\tgridData[i-1][j] += Wxm * tmp;\n\tgridData[i ][j] += Wx0 * tmp;\n\tgridData[i+1][j] += Wxp * tmp;\n\ttmp = Wyp * value;\n\tgridData[i-1][j+1] += Wxm * tmp;\n\tgridData[i ][j+1] += Wx0 * tmp;\n\tgridData[i+1][j+1] += Wxp * tmp;\n\n\tfor(int ii = -1; ii < 2; ii++){\n\t for(int jj = -1; jj < 2; jj++){\n\t\tif(z_min > gridData[i+ii][j+jj]) z_min = gridData[i+ii][j+jj];\n\t\tif(z_max < gridData[i+ii][j+jj]) z_max = gridData[i+ii][j+jj]; \n\t }\n\t}\n\n }", "private void loadData() {\r\n titleProperty.set(TITLE);\r\n imageView.setImage(null);\r\n scrollPane.setContent(null);\r\n final Task<Void> finisher = new Task<Void>() {\r\n @Override\r\n protected Void call() throws Exception {\r\n Platform.runLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n buffer = replay.politicalBuffer;\r\n output = new WritableImage(replay.bufferWidth, replay.bufferHeight);\r\n output.getPixelWriter().setPixels(0, 0, replay.bufferWidth, replay.bufferHeight, PixelFormat.getIntArgbPreInstance(), buffer, 0, replay.bufferWidth);\r\n progressBar.progressProperty().unbind();\r\n progressBar.setProgress(0);\r\n statusLabel.textProperty().unbind();\r\n statusLabel.setText(l10n(\"replay.map.loaded\"));\r\n scrollPane.setContent(null);\r\n imageView.setImage(output);\r\n scrollPane.setContent(imageView);\r\n int fitWidth = Integer.parseInt(settings.getProperty(\"map.fit.width\", \"0\"));\r\n int fitHeight = Integer.parseInt(settings.getProperty(\"map.fit.height\", \"0\"));\r\n imageView.setFitHeight(fitHeight);\r\n imageView.setFitWidth(fitWidth);\r\n lock.release();\r\n }\r\n });\r\n return null;\r\n }\r\n };\r\n progressBar.progressProperty().bind(finisher.progressProperty());\r\n statusLabel.textProperty().bind(finisher.titleProperty());\r\n replay.loadData(finisher);\r\n }", "public static List<STRectangle> readSpatialTemporalTestCases(){\n\t\tList<String> lines = \n\t\t\t\tHDFS.readFileHDFS(\"/spark-data/test-cases/spatial-temporal-test-cases\");\n\t\t// process lines\n\t\tlong t1, t2, min_t, max_t;\n\t\tdouble x1, x2, y1, y2;\n\t\tdouble min_x, min_y, max_x, max_y;\n\t\tList<STRectangle> stList = new LinkedList<STRectangle>(); \n\t\tfor(String line : lines){\n\t\t\tif(line.length() > 3){\n\t\t\t\t// read parameters\n\t\t\t\tString[] tokens = line.split(\" \");\n\t\t\t\tx1 = Double.parseDouble(tokens[0]);\n\t\t\t\tx2 = Double.parseDouble(tokens[1]);\n\t\t\t\ty1 = Double.parseDouble(tokens[2]);\n\t\t\t\ty2 = Double.parseDouble(tokens[3]);\n\t\t\t\tt1 = Long.parseLong(tokens[4]);\n\t\t\t\tt2 = Long.parseLong(tokens[5]); \n\t\t\t\t// get min/max (fix)\n\t\t\t\tmin_x = Math.min(x1, x2);\tmax_x = Math.max(x1, x2);\n\t\t\t\tmin_y = Math.min(y1, y2);\tmax_y = Math.max(y1, y2);\n\t\t\t\tmin_t = Math.min(t1, t2);\tmax_t = Math.max(t1, t2);\n\t\t\t\tstList.add(new STRectangle(min_x, min_y, max_x, max_y, min_t, max_t));\n\t\t\t}\n\t\t}\n\t\treturn stList;\n\t}", "protected void apply(float interpolatedTime) {\n\t}", "private void estimateFlatEarthPolynomial() {\n int minLine = 0;\n int maxLine = sourceImageHeight;\n int minPixel = 0;\n int maxPixel = sourceImageWidth;\n \n Rectangle rectangle = new Rectangle();\n rectangle.setSize(maxPixel, maxLine);\n \n // int srpPolynomialDegree = 5; // for flat earth phase\n int numberOfCoefficients = numberOfCoefficients(srpPolynomialDegree);\n \n double[][] position = distributePoints(srpNumberPoints, rectangle);\n \n // setup observation and design matrix\n DoubleMatrix y = new DoubleMatrix(srpNumberPoints);\n DoubleMatrix A = new DoubleMatrix(srpNumberPoints, numberOfCoefficients);\n \n double masterMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / masterMetadata.radar_wavelength;\n double slaveMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / slaveMetadata.radar_wavelength;\n \n // Loop throu a vector or distributedPoints()\n for (int i = 0; i < srpNumberPoints; ++i) {\n \n double line = position[i][0];\n double pixel = position[i][1];\n \n // compute azimuth/range time for this pixel\n final double masterTimeRange = pix2tr(pixel, masterMetadata);\n \n // compute xyz of this point : sourceMaster\n Point3d xyzMaster = lp2xyz(line, pixel, masterMetadata, masterOrbit);\n \n final Point2d slaveTimeVector = xyz2t(xyzMaster, slaveMetadata, slaveOrbit);\n final double slaveTimeRange = slaveTimeVector.x;\n \n // observation vector\n y.put(i, (masterMinPi4divLam * masterTimeRange) - (slaveMinPi4divLam * slaveTimeRange));\n \n // set up a system of equations\n // ______Order unknowns: A00 A10 A01 A20 A11 A02 A30 A21 A12 A03 for degree=3______\n double posL = normalize(line, minLine, maxLine);\n double posP = normalize(pixel, minPixel, maxPixel);\n \n int index = 0;\n \n for (int j = 0; j <= srpPolynomialDegree; j++) {\n for (int k = 0; k <= j; k++) {\n // System.out.println(\"A[\" + i + \",\" + index + \"]: \"\n // + Math.pow(posL, (float) (j - k)) * Math.pow(posP, (float) k));\n A.put(i, index, (Math.pow(posL, (double) (j - k)) * Math.pow(posP, (double) k)));\n index++;\n }\n }\n }\n \n // Fit polynomial through computed vector of phases\n DoubleMatrix Atranspose = A.transpose();\n DoubleMatrix N = Atranspose.mmul(A);\n DoubleMatrix rhs = Atranspose.mmul(y);\n \n // TODO: validate Cholesky decomposition of JBLAS: see how it is in polyfit and reuse!\n \n // this should be the coefficient of the reference phase\n flatEarthPolyCoefs = Solve.solve(N, rhs);\n \n /*\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_Start_flat_earth\");\n System.out.println(\"*******************************************************************\");\n System.out.println(\"Degree_flat:\" + polyDegree);\n System.out.println(\"Estimated_coefficients_flatearth:\");\n int coeffLine = 0;\n int coeffPixel = 0;\n for (int i = 0; i < numberOfCoefficients; i++) {\n if (flatEarthPolyCoefs.get(i, 0) < 0.) {\n System.out.print(flatEarthPolyCoefs.get(i, 0));\n } else {\n System.out.print(\" \" + flatEarthPolyCoefs.get(i, 0));\n }\n \n System.out.print(\" \\t\" + coeffLine + \" \" + coeffPixel + \"\\n\");\n coeffLine--;\n coeffPixel++;\n if (coeffLine == -1) {\n coeffLine = coeffPixel;\n coeffPixel = 0;\n }\n }\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_End_flat_earth\");\n System.out.println(\"*******************************************************************\");\n */\n \n // TODO: test inverse : when cholesky is finished\n // // ______Test inverse______\n // for (i=0; i<Qx_hat.lines(); i++)\n // for (j=0; j<i; j++)\n // Qx_hat(j,i) = Qx_hat(i,j);// repair Qx_hat\n // const real8 maxdev = max(abs(N*Qx_hat-eye(real8(Qx_hat.lines()))));\n // INFO << \"flatearth: max(abs(N*inv(N)-I)) = \" << maxdev;\n // INFO.print();\n // if (maxdev > .01)\n // {\n // ERROR << \"Deviation too large. Decrease degree or number of points?\";\n // PRINT_ERROR(ERROR.get_str())\n // throw(some_error);\n // }\n // else if (maxdev > .001)\n // {\n // WARNING << \"Deviation quite large. Decrease degree or number of points?\";\n // WARNING.print();\n // }\n // else\n // {\n // INFO.print(\"Deviation is OK.\");\n // }\n // // ______Some other stuff, scale is ok______\n // matrix<real8> y_hat = A * rhs;\n // matrix<real8> e_hat = y - y_hat;\n }", "public void read_from_buffer(DataInputStream in) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = in.readFloat();\r\n }\r\n this.distanz = in.readFloat();\r\n// byte[] b = new byte[27];\r\n// in.read(b, 0, 27);\r\n// this.setPlaceId(new String(b));\r\n this.setPlaceId(in.readInt());\r\n this.location[0] = in.readDouble();\r\n this.location[1] = in.readDouble();\r\n }", "void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void set_as_bspline() {\n surface_type = 2;\n }", "private void addInterpolatedItem(TimeSeries data, long x1, long x2, double y1, double y2, double newY) {\n double newX = x1 + (((newY - y1) * (x2 - x1)) / (y2 - y1));\n FixedMillisecond newTimestamp = new FixedMillisecond((long) newX);\n if (data.getValue(newTimestamp) == null) {\n data.add(newTimestamp, newY);\n }\n }", "@Test\n\tpublic void missingBoundaryValuesAreFilledWithBadQualityValues() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 10, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tt1.addValue(new SampledValue(new FloatValue(234F), 60, Quality.BAD));\n\t\tt0.setInterpolationMode(InterpolationMode.STEPS);\n\t\tt1.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 14, avg.size());\n\t\tAssert.assertEquals(InterpolationMode.STEPS, avg.getInterpolationMode());\n\t\t// now we calculate it again, this time demanding boundary markers\n\t\tfinal ReadOnlyTimeSeries avg2 = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130, true, null, true);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 15, avg2.size());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(0).getQuality());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(9).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(10).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(11).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(130).getQuality());\n\t}", "protected List<XYCoords> interpolate(XYSeries series, int index, Params params) {\n List<XYCoords> result = new ArrayList<>();\n double[] x = new double[4];\n double[] y = new double[4];\n double[] time = new double[4];\n for (int i = 0; i < 4; i++) {\n x[i] = series.getX(index + i).doubleValue();\n y[i] = series.getY(index + i).doubleValue();\n time[i] = i;\n }\n\n double tstart = 1;\n double tend = 2;\n if (params.getType() != Type.Uniform) {\n double total = 0;\n for (int i = 1; i < 4; i++) {\n double dx = x[i] - x[i - 1];\n double dy = y[i] - y[i - 1];\n if (params.getType() == Type.Centripetal) {\n total += Math.pow(dx * dx + dy * dy, .25);\n } else {\n total += Math.pow(dx * dx + dy * dy, .5);\n }\n time[i] = total;\n }\n tstart = time[1];\n tend = time[2];\n }\n\n int segments = params.getPointPerSegment() - 1;\n result.add(new XYCoords(series.getX(index + 1), series.getY(index + 1)));\n for (int i = 1; i < segments; i++) {\n double xi = interpolate(x, time, tstart + (i * (tend - tstart)) / segments);\n double yi = interpolate(y, time, tstart + (i * (tend - tstart)) / segments);\n result.add(new XYCoords(xi, yi));\n }\n result.add(new XYCoords(series.getX(index + 2), series.getY(index + 2)));\n return result;\n }", "public void Resample(double value, String units) {\n\n // dictionary with number of seconds per sampling unit\n Map<String, Double> units_dict = new HashMap<>();\n units_dict.put(\"week\", 7.0 * 24 * 60 * 60 * 60);\n units_dict.put(\"day\", 1.0 * 24 * 60 * 60 * 60);\n units_dict.put(\"hour\", 1.0 * 60 * 60);\n units_dict.put(\"minute\", 60.0);\n units_dict.put(\"second\", 1.0);\n\n int m = index.values.length;\n Double[] xnow = index.convert_to_seconds(); // get the index times in seconds to be able to resample\n\n // compute the new times array\n Double span = units_dict.get(units) * value; // get the selected time interval to resample\n int n = (int) Math.floor((xnow[m - 1] - xnow[0]) / span); //number of intervals\n Double[] xnew = new Double[n]; // new array of times\n Date[] new_dates = new Date[n];\n xnew[0] = Math.floor(xnow[0] / span) * span;\n for (int j = 1; j < n; j++) {\n xnew[j] = xnew[j - 1] + span;\n new_dates[j] = new Date((long) (xnew[j] * 1000));\n }\n // create the coefficients matrix A\n double T = 1.0 / n; // period\n Double[][] A = new Double[m][n];\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n A[i][j] = sinc((xnow[i] - xnew[j]) / T);\n\n Double[] ynew = new Double[n];\n }", "private void readInter() throws FileNotFoundException {\n\t\t\r\n\t\tFile file = new File(\"input.txt\");\r\n\r\n\t\tScanner input = new Scanner(file);\r\n\r\n\t\twhile (input.hasNext()) {\r\n\r\n\t\t\tint x = input.nextInt();\r\n\t\t\tint y = input.nextInt();\r\n\t\t\t\r\n\t\t\tintervals.add(new Point(x, y));\r\n\t\t}\r\n\t\t\r\n\t\t//Close 'input.txt'\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "@DataProvider(name = \"toyIntervalVariants\")\n public Object[][] getToyIntervalVariantTestData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 350, 550), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 320, 360), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 550, 750), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 450, 650), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 850), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 450), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 350), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 350, 650), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 250), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 850), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 150, 750), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 220, 280), GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC },\n { new SimpleInterval(\"chr1\", 750, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 150), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 250), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 550), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 950, 1500), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.UTR, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 2000), GATKSVVCFConstants.COPY_GAIN, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.INV_SPAN },\n { new SimpleInterval(\"chr1\", 750, 790), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 350, 1200), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF},\n { new SimpleInterval(\"chr1\", 450, 1300), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF}\n };\n }", "public static Kv getGF1Data(String latlons, String gf1Path) throws ParseException {\n List<Double> lons = new ArrayList<>();\n List<Double> lats = new ArrayList<>();\n String[] split = latlons.split(\",\");\n for (int i = 0; i < split.length; i++) {\n String s = split[i];\n lons.add(Double.parseDouble(s.split(\" \")[0]));\n lats.add(Double.parseDouble(s.split(\" \")[1]));\n }\n Double min_lon = Collections.min(lons);\n Double max_lon = Collections.max(lons);\n Double min_lat = Collections.min(lats);\n Double max_lat = Collections.max(lats);\n\n gdal.AllRegister();\n\n Dataset dataset = gdal.Open(gf1Path, gdalconstConstants.GA_ReadOnly);\n Vector<Object> objects = new Vector<>();\n WarpOptions warpOptions = new WarpOptions(objects);\n Dataset[] src_array = {dataset};\n\n File tiff = new File(gf1Path);\n String new_tiff = tiff.getParent() + \"/warp.tif\";\n Dataset hDataset = gdal.Warp(new_tiff, src_array, warpOptions);\n if (StringUtils.isBlank(hDataset.GetProjectionRef())) {\n return Kv.by(\"errorMsg\", \"获取不到数据坐标系\").set(\"code\", 400);\n }\n\n if (hDataset == null) {\n System.err.println(gdal.GetLastErrorMsg());\n return Kv.by(\"errorMsg\", \"GDALOpen failed - \" + gdal.GetLastErrorNo()).set(\"code\", 400);\n }\n double[] dGeoTrans = hDataset.GetGeoTransform();\n\n Driver hDriver = hDataset.GetDriver();\n System.out.println(\"Driver: \" + hDriver.getShortName() + \"/\" + hDriver.getLongName());\n int iXSize = hDataset.getRasterXSize();\n int iYSize = hDataset.getRasterYSize();\n System.out.println(\"Size is \" + iXSize + \", \" + iYSize);\n //波段数\n int rasterCount = hDataset.getRasterCount();\n if (rasterCount != 4) {\n return Kv.by(\"errorMsg\", \"必须为四波段高分1的tiff数据\").set(\"code\", 400);\n }\n\n// Layer enlovpe = getEnlovpe(latlons);\n// Layer testlayer = dataset.CreateLayer(\"test\");\n// Layer layer = dataset.GetLayer(0);\n// layer.Clip(enlovpe,testlayer);\n//\n Band band3 = hDataset.GetRasterBand(3);//红\n Band band4 = hDataset.GetRasterBand(4);//近红\n //包围盒空间坐标转tif行列号\n int[] maxRowCol = Projection2ImageRowCol(dGeoTrans, max_lon, max_lat);\n int[] minRowCol = Projection2ImageRowCol(dGeoTrans, min_lon, min_lat);\n int max_x = (int) maxRowCol[0];\n int max_y = (int) maxRowCol[1];\n int min_x = (int) minRowCol[0];\n int min_y = (int) minRowCol[1];\n if (max_y < 0) {\n max_y = 0;\n }\n if (min_x < 0) {\n min_x = 0;\n }\n if (min_y > iYSize) {\n min_y = iYSize;\n }\n if (max_x > iXSize) {\n max_x = iXSize;\n }\n //获取二维数组\n System.out.println(\"x:\" + min_x + \"到\" + max_x);\n System.out.println(\"y:\" + max_y + \"到\" + min_y);\n System.out.println(\"x:\" + (max_x - min_x));\n System.out.println(\"y:\" + (min_y - max_y));\n float[][] data = new float[min_y - max_y][max_x - min_x];\n Double[] nodatas = new Double[]{null};\n band3.GetNoDataValue(nodatas);\n Double noData = nodatas[0];\n if (max_x == min_x && max_y == min_y) {\n //田块在一个像素里\n int buf4[] = new int[1];\n int buf5[] = new int[1];\n data = new float[1][1];\n band3.ReadRaster(min_x, min_y, 1, 1, buf4);\n band4.ReadRaster(min_x, min_y, 1, 1, buf5);\n double add = Arith.add(buf4[0], buf5[0]);\n if (add == 0) {\n data[0][0] = 0;\n } else {\n Double div = Arith.div(Arith.sub(buf4[0], buf5[0]), add);\n if (div == -1 || div == 1) {\n data[0][0] = 0;\n } else {\n data[0][0] = div.floatValue();\n }\n }\n } else {\n int buf4[] = new int[iYSize];\n int buf5[] = new int[iYSize];\n for (int i = min_x; i < max_x; i++) {\n band3.ReadRaster(0, i, iYSize, 1, buf4);\n band4.ReadRaster(0, i, iYSize, 1, buf5);\n for (int j = max_y; j < min_y; j++) {\n //行列号转地理坐标\n double[] doubles = ImageRowCol2Projection(dGeoTrans, i, j);\n double lon = doubles[0];\n double lat = doubles[1];\n boolean iscontains = GeometryRelated.withinGeo(lon, lat, \"POLYGON((\" + latlons + \"))\");\n if (iscontains) {\n //面内,赋值像素值\n int b4 = buf4[(iYSize-j)-1];\n int b5 = buf5[(iYSize-j)-1];\n// System.out.println(b4+\"-\"+b5);\n if (noData == null || Math.abs(b4 - noData) > 1e-6) {\n //ndvi = B5-B4/B5+B4 B4是红,B5是近红 正常结果范围在-1到1之间\n double add = Arith.add(b5, b4);\n if (add == 0) {\n data[j - max_y][i - min_x] = 2;\n } else {\n Double div = Arith.div(Arith.sub(b5, b4), add);\n// if (div == 0) {\n// System.out.println(lon + \" \" + lat);\n// }\n if (div > 1) {\n data[j - max_y][i - min_x] = 1;\n } else if (div < -1) {\n data[j - max_y][i - min_x] = -1;\n } else {\n data[j - max_y][i - min_x] = div.floatValue();\n }\n }\n } else {\n data[j - max_y][i - min_x] = 2;\n }\n// System.out.print(data[j - max_y][i - min_x] + \", \");\n } else {\n data[j - max_y][i - min_x] = 2;\n }\n }\n// System.out.println(\"\\n\");\n }\n }\n dataset.delete();\n hDataset.delete();\n File file = new File(new_tiff);\n file.delete();\n return Kv.by(\"data\", data).set(\"intersec\", true).set(\"code\", 200);\n// return testlayer;\n }", "private void resampleAbdomenVOI( int sliceIdx, VOIContour curve ) {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM(sliceIdx);\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), sliceIdx ) );\r\n }\r\n }", "public BufferedImage ROI(BufferedImage timg) {\n\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray = convertToArray(timg);\n int[][][] ImageArray1 = convertToArray(timg);\n int[][][] ImageArray3 = convertToArray(timg);\n // for region ogf interest 100 - 200 y-axis and 100 - 200 x -axis\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray1[x][y][1] = 0; //r\n ImageArray1[x][y][2] = 0; //g\n ImageArray1[x][y][3] = 0; //b\n }\n }\n\n for (int y = 150; y < 400; y++) {\n for (int x = 150; x < 400; x++) {\n ImageArray1[x][y][1] = 1; //r\n ImageArray1[x][y][2] = 1; //g\n ImageArray1[x][y][3] = 1; //b\n }\n }\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray1[x][y][1] = (int) (ImageArray1[x][y][1] * ImageArray[x][y][1]); //r\n ImageArray1[x][y][2] = (int) (ImageArray1[x][y][2] * ImageArray[x][y][2]); //g\n ImageArray1[x][y][3] = (int) (ImageArray1[x][y][3] * ImageArray[x][y][3]); //b\n }\n }\n ImageArray3 = rescaleShift(ImageArray1);\n\n return convertToBimage(ImageArray3);\n\n }", "protected void computeInterpolatedValue1D(double indexVal)\r\n {\r\n int maxi = tableSize - 1;\r\n \r\n // 0th order extrapolation if more than max value\r\n if (indexVal >= tableData.getDoubleValue(maxi*tupleSize))\r\n {\r\n // extrapolated outputs\r\n for (int j=1; j<tupleSize; j++)\r\n {\r\n double value = tableData.getDoubleValue(maxi*tupleSize + j);\r\n outputVars[j-1].getData().setDoubleValue(value);\r\n }\r\n }\r\n // 0th order extrapolation if less than min value\r\n else if (indexVal <= tableData.getDoubleValue(0))\r\n {\r\n // extrapolated outputs\r\n for (int j=1; j<tupleSize; j++)\r\n {\r\n double value = tableData.getDoubleValue(j);\r\n outputVars[j-1].getData().setDoubleValue(value);\r\n }\r\n }\r\n else\r\n {\r\n int nextIndex;\r\n \r\n // shortcut when incrementing\r\n if (indexVal >= lastIndexVal)\r\n nextIndex = lastTupleIndex;\r\n else\r\n nextIndex = 0;\r\n \r\n // find first entry higher than index\r\n double tableVal = tableData.getDoubleValue(nextIndex);\r\n while (indexVal > tableVal)\r\n {\r\n nextIndex += tupleSize;\r\n tableVal = tableData.getDoubleValue(nextIndex); \r\n }\r\n \r\n int prevIndex = nextIndex - tupleSize;\r\n \r\n // if index exactly equal to value in table\r\n if (indexVal == tableVal)\r\n {\r\n for (int j=1; j<tupleSize; j++)\r\n {\r\n double value = tableData.getDoubleValue(nextIndex + j); \r\n outputVars[j-1].getData().setDoubleValue(value);\r\n }\r\n }\r\n // otherwise, need interpolation\r\n else\r\n {\r\n // linear interpolation factor\r\n double prevVal = tableData.getDoubleValue(prevIndex);\r\n double nextVal = tableData.getDoubleValue(nextIndex);\r\n double a = (indexVal - prevVal) / (nextVal - prevVal);\r\n \r\n // interpolated outputs\r\n for (int j=1; j<tupleSize; j++)\r\n {\r\n prevVal = tableData.getDoubleValue(prevIndex + j);\r\n nextVal = tableData.getDoubleValue(nextIndex + j);\r\n \r\n double value = prevVal + a*(nextVal - prevVal);\r\n outputVars[j-1].getData().setDoubleValue(value);\r\n }\r\n }\r\n \r\n // save last values\r\n lastTupleIndex = nextIndex;\r\n lastIndexVal = indexVal;\r\n }\r\n }", "public List<Double> processFile() throws AggregateFileInitializationException {\n \t\t \n \t\tint maxTime = 0;\n \t\tHashMap<String, List<Double>> data = new HashMap<String,List<Double>>();\n \t\ttry {\n \t String record; \n \t String header;\n \t int recCount = 0;\n \t List<String> headerElements = new ArrayList<String>();\n \t FileInputStream fis = new FileInputStream(scenarioData); \n \t BufferedReader d = new BufferedReader(new InputStreamReader(fis));\n \t \n \t //\n \t // Read the file header\n \t //\n \t if ( (header=d.readLine()) != null ) { \n \t \t\n \t\t StringTokenizer st = new StringTokenizer(header );\n \t\t \n \t\t while (st.hasMoreTokens()) {\n \t\t \t String val = st.nextToken(\",\");\n \t\t \t headerElements.add(val.trim());\n \t\t }\n \t } // read the header\n \t /////////////////////\n \t \n \t // set up the empty lists\n \t int numColumns = headerElements.size();\n \t for (int i = 0; i < numColumns; i ++) {\n \t \tString key = headerElements.get(i);\n \t \t if(validate(key)) {\n \t \t\tdata.put(key, new ArrayList<Double>());\n \t\t }\n \t \t\n \t }\n \t \n \t // Here we check the type of the data file\n \t // by checking the header elements\n \t \n \t \n \t \n \t //////////////////////\n // Read the data\n //\n while ( (record=d.readLine()) != null ) { \n recCount++; \n \n StringTokenizer st = new StringTokenizer(record );\n int tcount = 0;\n \t\t\t\twhile (st.hasMoreTokens()) {\n \t\t\t\t\tString val = st.nextToken(\",\");\n \t\t\t\t\tString key = headerElements.get(tcount);\n \t\t\t\t\tif(validate(key)) {\n \t\t\t\t\t\tidSet.add(key);\n \t\t\t\t\t\tList<Double> dataList = data.get(key);\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tDouble dVal = new Double(val.trim());\n \t\t\t\t\t\t\tdataList.add(dVal);\n \t\t\t\t\t\t\tif (dataList.size() >= maxTime) maxTime = dataList.size();\n \t\t\t\t\t\t\tdata.put(key,dataList);\n \t\t\t\t\t\t} catch(NumberFormatException nfe) {\n \t\t\t\t\t\t\tdata.remove(key);\n \t\t\t\t\t\t\tidSet.remove(key);\n \t\t\t\t\t\t\tActivator.logInformation(\"Not a valid number (\"+val+\") ... Removing key \"+key, null);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\t\t\t\n \t\t\t\t\ttcount ++;\n \t\t\t\t}\n \t\t\t} // while file has data\n } catch (IOException e) { \n // catch io errors from FileInputStream or readLine()\n \t Activator.logError(\" IOException error!\", e);\n \t throw new AggregateFileInitializationException(e);\n }\n \n List<Double> aggregate = new ArrayList<Double>();\n for (int i = 0; i < maxTime; i ++) {\n \t aggregate.add(i, new Double(0.0));\n }\n // loop over all location ids\n Iterator<String> iter = idSet.iterator();\n while((iter!=null)&&(iter.hasNext())) {\n \t String key = iter.next();\n \t List<Double> dataList = data.get(key);\n \t for (int i = 0; i < maxTime; i ++) {\n \t\t double val = aggregate.get(i).doubleValue();\n \t\t val += dataList.get(i).doubleValue();\n \t aggregate.set(i,new Double(val));\n }\n }\n \n return aggregate;\n \t }", "@Override\n\t protected Bitmap doInBackground(Integer... params) {\n\t data = params[0];\n\t return BitmapUtils.decodeSampledBitmapFromResource(getResources(), data, 100, 100);\n\t }", "public XYDataset getLineDataset() {\n\n // Initialize some variables\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series[][] = new XYSeries[rois.length][images.length];\n String seriesname[][] = new String[rois.length][images.length];\n int currentSlice = ui.getOpenMassImages()[0].getCurrentSlice();\n ArrayList<String> seriesNames = new ArrayList<String>();\n String tempName = \"\";\n map = new HashMap<String, Pair<MimsPlus, Roi>>();\n double stat;\n\n // Image loop\n for (int j = 0; j < images.length; j++) {\n MimsPlus image;\n if (images[j].getMimsType() == MimsPlus.HSI_IMAGE || images[j].getMimsType() == MimsPlus.RATIO_IMAGE) {\n image = images[j].internalRatio;\n } else {\n image = images[j];\n }\n // Roi loop\n for (int i = 0; i < rois.length; i++) {\n\n // Set the Roi to the image.\n Integer[] xy = ui.getRoiManager().getRoiLocation(rois[i].getName(), image.getCurrentSlice());\n rois[i].setLocation(xy[0], xy[1]);\n image.setRoi(rois[i]);\n\n // Stat loop\n for (int k = 0; k < stats.length; k++) {\n\n // Generate a name for the dataset.\n String prefix = \"\";\n if (image.getType() == MimsPlus.MASS_IMAGE || image.getType() == MimsPlus.RATIO_IMAGE) {\n prefix = \"_m\";\n }\n if (seriesname[i][j] == null) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName();\n int dup = 1;\n while (seriesNames.contains(tempName)) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName() + \" (\" + dup + \")\";\n dup++;\n }\n seriesNames.add(tempName);\n seriesname[i][j] = tempName;\n }\n series[i][j] = new XYSeries(seriesname[i][j]);\n ij.gui.ProfilePlot profileP = new ij.gui.ProfilePlot(image);\n double[] newdata = profileP.getProfile();\n for (int p = 0; p < newdata.length; p++) {\n series[i][j].add(p, newdata[p]);\n }\n Pair tuple = new Pair(images[j], rois[i]);\n map.put(seriesname[i][j], tuple);\n\n } // End of Stat\n } // End of Roi\n } // End of Image\n\n // Populate the final data structure.\n for (int i = 0; i < rois.length; i++) {\n for (int j = 0; j < images.length; j++) {\n dataset.addSeries(series[i][j]);\n }\n }\n\n ui.getOpenMassImages()[0].setSlice(currentSlice);\n\n return dataset;\n }", "private void readInterleaved(final ImageReadParam param, final BufferedImage destination, final ImageInputStream input) throws IOException {\n final int width = header.width();\n final int height = header.height();\n\n final Rectangle aoi = getSourceRegion(param, width, height);\n final Point offset = param == null ? new Point(0, 0) : param.getDestinationOffset();\n\n // Set everything to default values\n int sourceXSubsampling = 1;\n int sourceYSubsampling = 1;\n int[] sourceBands = null;\n int[] destinationBands = null;\n\n // Get values from the ImageReadParam, if any\n if (param != null) {\n sourceXSubsampling = param.getSourceXSubsampling();\n sourceYSubsampling = param.getSourceYSubsampling();\n\n sourceBands = param.getSourceBands();\n destinationBands = param.getDestinationBands();\n }\n\n // Ensure band settings from param are compatible with images\n checkReadParamBandSettings(param, header.bitplanes() / 8, destination.getSampleModel().getNumBands());\n\n // NOTE: Each row of the image is stored in an integral number of 16 bit words.\n // The number of words per row is words=((w+15)/16)\n int planeWidth = 2 * ((width + 15) / 16);\n final byte[] planeData = new byte[8 * planeWidth];\n\n WritableRaster destRaster = destination.getRaster();\n if (destinationBands != null || offset.x != 0 || offset.y != 0) {\n destRaster = destRaster.createWritableChild(0, 0, destRaster.getWidth(), destRaster.getHeight(), offset.x, offset.y, destinationBands);\n }\n\n WritableRaster rowRaster = destination.getRaster().createCompatibleWritableRaster(8 * planeWidth, 1);\n Raster sourceRow = rowRaster.createChild(aoi.x, 0, aoi.width, 1, 0, 0, sourceBands);\n\n final byte[] data = ((DataBufferByte) rowRaster.getDataBuffer()).getData();\n final int channels = (header.bitplanes() + 7) / 8;\n final int planesPerChannel = 8;\n Object dataElements = null;\n\n for (int srcY = 0; srcY < height; srcY++) {\n for (int c = 0; c < channels; c++) {\n for (int p = 0; p < planesPerChannel; p++) {\n readPlaneData(planeData, p * planeWidth, planeWidth, input);\n }\n\n // Skip rows outside AOI\n if (srcY >= (aoi.y + aoi.height)) {\n return;\n }\n else if (srcY < aoi.y || (srcY - aoi.y) % sourceYSubsampling != 0) {\n continue;\n }\n\n if (header.formType == IFF.TYPE_ILBM) {\n // NOTE: Using (channels - c - 1) instead of just c,\n // effectively reverses the channel order from RGBA to ABGR\n int off = (channels - c - 1);\n\n int pixelPos = 0;\n for (int planePos = 0; planePos < planeWidth; planePos++) {\n IFFUtil.bitRotateCW(planeData, planePos, planeWidth, data, off + pixelPos * channels, channels);\n pixelPos += 8;\n }\n }\n else if (header.formType == IFF.TYPE_PBM) {\n System.arraycopy(planeData, 0, data, srcY * 8 * planeWidth, planeWidth);\n }\n else {\n throw new AssertionError(String.format(\"Unsupported FORM type: %s\", toChunkStr(header.formType)));\n }\n }\n\n if (srcY >= aoi.y && (srcY - aoi.y) % sourceYSubsampling == 0) {\n int dstY = (srcY - aoi.y) / sourceYSubsampling;\n // TODO: Avoid createChild if no region?\n if (sourceXSubsampling == 1) {\n destRaster.setRect(0, dstY, sourceRow);\n }\n else {\n for (int srcX = 0; srcX < sourceRow.getWidth(); srcX += sourceXSubsampling) {\n dataElements = sourceRow.getDataElements(srcX, 0, dataElements);\n int dstX = srcX / sourceXSubsampling;\n destRaster.setDataElements(dstX, dstY, dataElements);\n }\n }\n }\n\n processImageProgress(srcY * 100f / width);\n if (abortRequested()) {\n processReadAborted();\n break;\n }\n }\n }", "protected float interpolate(float s, float e, float t) {\n\tfloat range = e - s;\n\treturn s + t * range;\n }", "public void loadGridFromFile( String filename )\n\t{\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader( new FileReader( filename ));\n\t\t\tString[] data = new String[width];\n\t\t\tString delimiter = \",\", line = null;\n\t\t\tint i = 0, j = 0;\n\t\t\t\n\t\t\ttry \n\t\t\t{ \n\t\t\t\tline = br.readLine(); \n\t\t\t\t\n\t\t\t\t// Based on file format, determine grid width / height\n\t\t\t\twidth = line.length() / 2 + 1;\n\t\t\t\theight = line.length() / 2 + 1;\n\t\t\t\tgrid = new int[width][height];\n\t\t\t\t\n\t\t\t\t// While file isn't empty\n\t\t\t\twhile ( line != null )\n\t\t\t\t{\n\t\t\t\t\t// Split lines using delimiter of ','\n\t\t\t\t\tdata = line.split( delimiter );\n\t\t\t\t\t\n\t\t\t\t\t// Put contents of each formatted line into grid array\n\t\t\t\t\tfor (i = 0; i < width; i++) \n\t\t\t\t\t{\n\t\t\t\t\t\tgrid[i][j] = Integer.parseInt( data[i] );\n\t\t\t\t\t\tif ( grid[i][j] == 0 ) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tx0 = i;\n\t\t\t\t\t\t\ty0 = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tj++;\n\t\t\t\t\tline = br.readLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e) \n\t\t\t{ \n\t\t\t\tSystem.out.println( \"Unable to read from file \" + filename + \". Closing...\" ); \n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tcatch ( FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println( \"File with name \" + filename + \" not found. Closing...\" );\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public final native Line interpolate(final InterpolationMode i) /*-{\r\n\t\treturn this.interpolate([email protected]::getValue()());\r\n }-*/;", "public void readSampless(){\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\treadBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\t// hand those arrays to our effect\n\t\t// and convert back to bytes\n\t\tprocess();\n\t\t\n\t\t// write to the line.\n\t\twriteBytes();\n\t\t// send samples to the listener\n\t\t// these will be what we just put into the line\n\t\t// which means they should be pretty well sync'd\n\t\t// with the audible result\n\t\tbroadcast();\n\t}", "@Test\n\tpublic void integrationWorksWithStepRulers() {\n\t\tfinal FloatTimeSeries t = new FloatTreeTimeSeries();\n\t\tt.addValues(TimeSeriesUtils.createStepFunction(10, 0, 10, 0, 10)); // step function from 0 to 100\n\t\tt.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal FloatTimeSeries tr = new FloatTreeTimeSeries();\n\t\ttr.addValues(TimeSeriesUtils.createStepFunction(5, 0, 20, 0, 0)); // step function with doubled step size\n\t\ttr.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal Map<Integer,SampledValue> upperBoundaries = new HashMap<>();\n\t\tupperBoundaries.put(0, new SampledValue(new FloatValue(100), 100, Quality.GOOD));\n\t\tupperBoundaries.put(1, new SampledValue(new FloatValue(0), 100, Quality.GOOD));\n\t\tfinal MultiTimeSeriesIterator multiIt = MultiTimeSeriesIteratorBuilder.newBuilder(Arrays.asList(t.iterator(),tr.iterator()))\n\t\t\t\t.stepSizeAsInSchedules(new int[]{1})\n\t\t\t\t.setGlobalInterpolationMode(InterpolationMode.STEPS)\n\t\t\t\t.setUpperBoundaryValues(upperBoundaries)\n\t\t\t\t.doIntegrate(true)\n\t\t\t\t.build();\n\t\tSampledValueDataPoint sv = null;\n\t\twhile (multiIt.hasNext())\n\t\t\tsv = multiIt.next();\n\t\tAssert.assertNotNull(sv);\n\t\tAssert.assertNotNull(sv.getElements());\n\t\tfinal SampledValue value0 = sv.getElements().get(0);\n\t\tAssert.assertNotNull(value0);\n\t\tAssert.assertEquals(\"Integration failed\", 4500, value0.getValue().getFloatValue(), 5);\n\t\tfinal SampledValue value1 = sv.getElements().get(1);\n\t\tAssert.assertNotNull(value1);\n\t\tAssert.assertEquals(\"Integration failed\", 0, value1.getValue().getFloatValue(), 1);\n\n\t}", "@Override\n\tpublic float getInterpolation(float x) {\n\t\treturn value;\n\t}", "@Override\n public List<XYCoords> interpolate(XYSeries series, Params params) {\n if (params.getPointPerSegment() < 2) {\n throw new IllegalArgumentException(\n \"pointsPerSegment must be greater than 2, since 2 points is just the linear segment.\");\n }\n\n // Cannot interpolate curves given only two points. Two points\n // is best represented as a simple line segment.\n if (series.size() < 3) {\n throw new IllegalArgumentException(\"Cannot interpolate a series with fewer than 3 vertices.\");\n }\n\n // Get the change in x and y between the first and second coordinates.\n double dx = series.getX(1).doubleValue() - series.getX(0).doubleValue();\n double dy = series.getY(1).doubleValue() - series.getY(0).doubleValue();\n\n // Then using the change, extrapolate backwards to find a control point.\n double x1 = series.getX(0).doubleValue() - dx;\n double y1 = series.getY(0).doubleValue() - dy;\n\n // Actually create the start point from the extrapolated values.\n XYCoords start = new XYCoords(x1, y1);\n\n // Repeat for the end control point.\n int n = series.size() -1;\n dx = series.getX(n).doubleValue() - series.getX(n-1).doubleValue();\n dy = series.getY(n).doubleValue() - series.getY(n - 1).doubleValue();\n double xn = series.getX(n).doubleValue() + dx;\n double yn = series.getY(n).doubleValue() + dy;\n XYCoords end = new XYCoords(xn, yn);\n\n // TODO: figure out whether this extra control-point synthesis is\n // TODO: really necessary and either remove the above or fix the below.\n // insert the start control point at the start of the vertices list.\n // TODO vertices.add(0, start);\n\n // append the end control ponit to the end of the vertices list.\n // TODO vertices.add(end);\n //}\n\n ExtrapolatedXYSeries extrapolatedXYSeries = new ExtrapolatedXYSeries(series, start, end);\n\n // Dimension a result list of coordinates.\n List<XYCoords> result = new ArrayList<>();\n\n // When looping, remember that each cycle requires 4 points, starting\n // with i and ending with i+3. So we don't loop through all the points.\n for (int i = 0; i < extrapolatedXYSeries.size() - 3; i++) {\n\n // Actually calculate the Catmull-Rom curve for one segment.\n List<XYCoords> points = interpolate(extrapolatedXYSeries, i, params);\n\n // Since the middle points are added twice, once for each bordering\n // segment, we only add the 0 index result point for the first\n // segment. Otherwise we will have duplicate points.\n if (result.size() > 0) {\n points.remove(0);\n }\n\n // Add the coordinates for the segment to the result list.\n result.addAll(points);\n }\n return result;\n\n }", "@Override\n protected Object doSetInterpolationHint(GGraphics2D g3,\n boolean needsInterpolationRenderingHint) {\n\t return null;\n }", "private void readBuffer(int slice, float buffer[]) throws IOException {\r\n int i = 0;\r\n int b1,b2;\r\n int j;\r\n int nBytes;\r\n long progress, progressLength, mod;\r\n\r\n switch (dataType) {\r\n case ModelStorageBase.UBYTE:\r\n nBytes = xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n for ( j = 0; j < nBytes; j++, i++) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), false);\r\n buffer[i] = byteBuffer[j] & 0xff;\r\n }\r\n break;\r\n case ModelStorageBase.SHORT:\r\n nBytes = 2*xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n for (j = 0; j < nBytes; j+=2, i++ ) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), false);\r\n b1 = getUnsignedByte(byteBuffer, j);\r\n b2 = getUnsignedByte(byteBuffer, j+1);\r\n buffer[i] = (short)((b2 << 8) + b1); // little endian\r\n }\r\n break;\r\n case ModelStorageBase.ARGB:\r\n // from 2 color merged psuedocolor\r\n nBytes = 2*xDim*yDim;\r\n if (byteBuffer == null) byteBuffer = new byte[nBytes];\r\n raFile.read(byteBuffer, 0, nBytes);\r\n progress = slice*buffer.length;\r\n progressLength = buffer.length*zDim;\r\n mod = progressLength/10;\r\n progressBar.setVisible(isProgressBarVisible());\r\n //For the moment I compress RGB images to unsigned bytes.\r\n for (j = 0; j < nBytes; j+=2, i+=4 ) {\r\n if ((i+progress)%mod==0) progressBar.updateValue( Math.round((float)(i+progress)/\r\n progressLength * 100), true);\r\n buffer[i] = 255;\r\n buffer[i+1] = getUnsignedByte(byteBuffer, j);\r\n buffer[i+2] = getUnsignedByte(byteBuffer, j+1);\r\n buffer[i+3] = 0;\r\n }\r\n break;\r\n } // switch(dataType)\r\n }", "@Test\n public void test41() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(407.99, (-371.62), (-371.62), 0.0);\n line2D_Double0.x1 = 0.0;\n line2D_Double0.setLine((-371.62), 3820.38477815176, 0.0, 3820.38477815176);\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(0.0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n combinedRangeCategoryPlot0.setRangeCrosshairValue((-371.62));\n CategoryPointerAnnotation categoryPointerAnnotation0 = new CategoryPointerAnnotation(\"K(Jj1`SZJ!y81S;n?%Y\", (Comparable) (-371.62), 1834.808976, (-371.62));\n combinedRangeCategoryPlot0.addAnnotation(categoryPointerAnnotation0);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n float[][] floatArray0 = new float[9][0];\n float[] floatArray1 = new float[0];\n floatArray0[0] = floatArray1;\n float[] floatArray2 = new float[6];\n floatArray2[0] = Float.NEGATIVE_INFINITY;\n floatArray2[1] = 8.0F;\n floatArray2[2] = (-970.0398F);\n floatArray2[3] = (-2174.3F);\n floatArray2[4] = 0.0F;\n floatArray2[5] = 2953.279F;\n floatArray0[1] = floatArray2;\n float[] floatArray3 = new float[9];\n floatArray3[0] = 2953.279F;\n floatArray3[1] = (-970.0398F);\n floatArray3[2] = (-2174.3F);\n floatArray3[3] = (-970.0398F);\n floatArray3[4] = (-970.0398F);\n floatArray3[5] = 0.0F;\n floatArray3[6] = (-2174.3F);\n floatArray3[7] = 0.0F;\n floatArray3[8] = Float.NEGATIVE_INFINITY;\n floatArray0[2] = floatArray3;\n float[] floatArray4 = new float[0];\n floatArray0[3] = floatArray4;\n float[] floatArray5 = new float[7];\n floatArray5[0] = 8.0F;\n floatArray5[1] = 2953.279F;\n floatArray5[2] = (-966.2956F);\n floatArray5[3] = 8.0F;\n floatArray5[4] = 8.0F;\n floatArray5[5] = (-2174.3F);\n floatArray5[6] = (-2174.3F);\n floatArray0[4] = floatArray5;\n float[] floatArray6 = new float[6];\n floatArray6[0] = 0.0F;\n floatArray6[1] = Float.NEGATIVE_INFINITY;\n floatArray6[2] = (-966.2956F);\n floatArray6[3] = (-1797.876F);\n floatArray6[4] = (-966.2956F);\n floatArray6[5] = (-2174.3F);\n floatArray0[5] = floatArray6;\n float[] floatArray7 = new float[8];\n floatArray7[0] = 0.0F;\n floatArray7[1] = (-966.2956F);\n floatArray7[2] = 0.0F;\n floatArray7[3] = Float.NEGATIVE_INFINITY;\n floatArray7[4] = (-970.0398F);\n floatArray7[5] = (-970.0398F);\n floatArray7[6] = 0.0F;\n floatArray7[7] = (-970.0398F);\n floatArray0[6] = floatArray7;\n float[] floatArray8 = new float[3];\n floatArray8[0] = Float.NEGATIVE_INFINITY;\n floatArray8[1] = Float.NEGATIVE_INFINITY;\n floatArray8[2] = (-1797.876F);\n floatArray0[7] = floatArray8;\n float[] floatArray9 = new float[8];\n floatArray9[0] = 8.0F;\n floatArray9[1] = (-2209.7039F);\n floatArray9[2] = 0.0F;\n floatArray9[3] = (-2174.3F);\n floatArray9[4] = (-2174.3F);\n floatArray9[5] = Float.NEGATIVE_INFINITY;\n floatArray9[6] = 0.0F;\n floatArray9[7] = 2953.279F;\n floatArray0[8] = floatArray9;\n FastScatterPlot fastScatterPlot0 = new FastScatterPlot(floatArray0, (ValueAxis) numberAxis0, (ValueAxis) numberAxis0);\n BasicStroke basicStroke0 = (BasicStroke)fastScatterPlot0.getDomainGridlineStroke();\n combinedRangeCategoryPlot0.setRangeCrosshairStroke(basicStroke0);\n }", "@Test\n public void interpolate() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.4f, 4.6f, 4.4f, 5.4f}; // 0.7 a + 0.3 b\n float[] expect0 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; // a value\n float[] expect1 = new float[] {1.0f, 6.0f, 3.0f, 4.0f}; // b value\n float alpha = 0.3f;\n // 1)\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect0, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect1, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, alpha);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n \n \n float[] dest2 = new float[4]; \n float[] a2 = new float[] { 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n //2)\n Vec4f.interpolate(dest2, a2, b2, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect0, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect1, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, alpha);\n assertTrue(Vec4f.epsilonEquals(dest2, expect, 1E-5f));\n }", "protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }", "public Grid decode (File file) throws IOException\n {\n String currentLine;\n int width = 0, height = 0;\n Grid _grid = null;\n\n try (BufferedReader br = new BufferedReader(new FileReader(file)))\n {\n // skip all the lines that we are not using\n while ((currentLine = br.readLine()) != null) {\n if (currentLine.startsWith(\"#\")) { continue; }\n if (currentLine.startsWith(\"x = \"))\n {\n for (String s : currentLine.split(\",\"))\n {\n if (s.contains(\"x = \"))\n {\n width = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else if (s.contains(\"y = \"))\n {\n height = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else\n {\n break;\n }\n }\n break;\n }\n }\n _grid = new Grid(height, width, false);\n\n int currentY = 0;\n int currentX = 0;\n int startX = 0;\n int i = 0;\n\n String kNumber = \"\"; // The number of times block should be repeated.\n String board = \"\";\n\n // convert the board to a long string\n while ((currentLine = br.readLine()) != null)\n {\n board += currentLine;\n }\n\n for (char c : board.toCharArray())\n {\n if (c == DEAD)\n {\n currentX += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == LIVE)\n {\n int count = (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n for (int j = 0; j < count; j++)\n {\n if (currentY < height && currentX < width)\n {\n _grid.setCell(true, currentX, currentY);\n }\n currentX++;\n }\n kNumber = \"\";\n }\n else if (c == EOL)\n {\n currentX = startX;\n currentY += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == EOF)\n {\n break;\n }\n else\n {\n kNumber += Integer.parseInt(board.substring(i, i + 1));\n }\n i++;\n }\n\n }\n return _grid;\n }", "@Test\n public void TestPlaceSourceSuccess() throws Exception {\n for (int i = 0; i < HEIGHT; i++) {\n assertTrue(heatGrid.placeSource(\"f\", i, i));\n }\n }", "@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getValue(x, y) != BASE) {\r\n\t\t\t\t\tif (noise.perlinNoise(x, y) > xmasTemplate.getThreshold()) {\r\n\t\t\t\t\t\tsetValue(x, y, WALL);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetValue(x, y, FLOOR);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Fill east, west and south\r\n\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\tdrawArea(x, 0, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tdrawArea(0, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t\tdrawArea(getWidth() - 1, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\r\n\t\t// Draw random blotch lines between each base first\r\n\t\tArrayList<Point> basesCopy = new ArrayList<Point>(getBases());\r\n\t\tfor (int i = 0; i < basesCopy.size(); i ++) {\r\n\t\t\tPoint p1 = basesCopy.get(i);\r\n\t\t\tint j = Util.random(0, basesCopy.size() - 1);\r\n\t\t\tPoint p2 = basesCopy.get(j);\r\n\t\t\tbasesCopy.set(i, p2);\r\n\t\t\tbasesCopy.set(j, p1);\r\n\t\t}\r\n\r\n\t\tPoint s = basesCopy.get(0), t;\r\n\t\tdrawArea(s.getX(), s.getY(), (xmasTemplate.getMinMainTunnelWidth() + xmasTemplate.getMaxMainTunnelWidth()) / 2.0f, FLOOR);\r\n\t\tfor (int i = 0; i < basesCopy.size() - 1; i ++) {\r\n\t\t\ts = basesCopy.get(i);\r\n\t\t\tt = basesCopy.get(i + 1);\r\n\t\t\tdrawLine(s.getX(), s.getY(), t.getX(), t.getY(), xmasTemplate.getMinMainTunnelWidth(), xmasTemplate.getMaxMainTunnelWidth(), FLOOR);\r\n\t\t}\r\n\r\n\t}", "protected void initFile(String id) throws FormatException, IOException {\n if (debug) debug(\"InCellReader.initFile(\" + id + \")\");\n super.initFile(id);\n in = new RandomAccessStream(id);\n \n tiffs = new Vector();\n emWaves = new Vector();\n exWaves = new Vector();\n timings = new Vector();\n \n wellCoordinates = new Vector();\n \n byte[] b = new byte[(int) in.length()];\n in.read(b);\n \n MetadataStore store =\n new FilterMetadata(getMetadataStore(), isMetadataFiltered());\n InCellHandler handler = new InCellHandler(store);\n \n status(\"starting xml parse\");\n long t1 = System.currentTimeMillis(); \n try {\n SAXParser parser = SAX_FACTORY.newSAXParser();\n parser.parse(new ByteArrayInputStream(b), handler);\n }\n catch (ParserConfigurationException exc) {\n throw new FormatException(exc);\n }\n catch (SAXException exc) {\n throw new FormatException(exc);\n }\n long t2 = System.currentTimeMillis();\n status(\"finished xml parse (\" + (t2 - t1) + \")\");\n \n seriesCount = totalImages / (getSizeZ() * getSizeC() * getSizeT());\n \n int z = getSizeZ();\n int c = getSizeC();\n int t = getSizeT();\n \n core = new CoreMetadata(seriesCount);\n \n Arrays.fill(core.sizeZ, z);\n Arrays.fill(core.sizeC, c);\n Arrays.fill(core.sizeT, t);\n Arrays.fill(core.imageCount, z * c * t);\n Arrays.fill(core.currentOrder, \"XYZCT\");\n \n for (int i=0; i<wellCoordinates.size(); i++) {\n int row = (int) ((Point) wellCoordinates.get(i)).x - startRow;\n int col = (int) ((Point) wellCoordinates.get(i)).y - startCol;\n store.setWellSampleIndex(new Integer(i), 0, row*wellCols + col, 0);\n }\n\n tiffReader = new MinimalTiffReader();\n \n int nextTiming = 0;\n for (int i=0; i<seriesCount; i++) {\n tiffReader.setId((String) tiffs.get(i * (tiffs.size() / seriesCount)));\n core.sizeX[i] = tiffReader.getSizeX();\n core.sizeY[i] = tiffReader.getSizeY();\n core.interleaved[i] = tiffReader.isInterleaved();\n core.indexed[i] = tiffReader.isIndexed();\n core.rgb[i] = tiffReader.isRGB();\n core.pixelType[i] = tiffReader.getPixelType();\n core.littleEndian[i] = tiffReader.isLittleEndian();\n store.setImageName(\"\", i);\n store.setImageCreationDate(creationDate, i);\n for (int q=0; q<core.imageCount[i]; q++) {\n store.setPlaneTimingDeltaT((Float) timings.get(nextTiming++), i, 0, q);\n int[] coords = FormatTools.getZCTCoords(\"XYZCT\", z, c, t, z * c * t, q);\n store.setPlaneTheZ(new Integer(coords[0]), i, 0, q);\n store.setPlaneTheC(new Integer(coords[1]), i, 0, q);\n store.setPlaneTheT(new Integer(coords[2]), i, 0, q);\n store.setPlaneTimingExposureTime(new Float(0), i, 0, q);\n }\n }\n \n MetadataTools.populatePixels(store, this);\n \n for (int i=0; i<seriesCount; i++) {\n for (int q=0; q<emWaves.size(); q++) {\n store.setLogicalChannelEmWave((Integer) emWaves.get(q), i, q);\n store.setLogicalChannelExWave((Integer) exWaves.get(q), i, q);\n }\n }\n }", "private static BufferedImage getMap(int art, GameModel gameModel, Color mapC, Color skyC){\n\n BufferedImage image = new BufferedImage(2800,1800,BufferedImage.TYPE_4BYTE_ABGR);\n\n int genauigkeit = 400;\n\n int[] mapX = new int[genauigkeit + 2];\n int[] mapY = new int[genauigkeit + 2];\n\n mapX[genauigkeit + 1] = 0;\n mapX[genauigkeit] = GameLoop.imgW;\n\n mapY[genauigkeit + 1] = GameLoop.imgH;\n mapY[genauigkeit] = GameLoop.imgH;\n\n double[] rnd = new double[8];\n\n for(int i = 0;i < 4;i++){\n rnd[i] = Math.random() * 0.1;\n rnd[i+4] = Math.random();\n }\n\n for(int i = 0;i < genauigkeit;i++){\n mapX[i] = (int) (GameLoop.imgW/(double)genauigkeit * (i));\n\n switch(art){\n case 1:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/8);\n break;\n case 2:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.01) * gameModel.getHeight()/8);\n break;\n case 3:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/12 + i);\n break;\n case 4:\n mapY[i] = (int) (gameModel.getHeight()*0.8 - 1/(2000 + Math.pow(i - (genauigkeit - 2)/2.0,2)) * 1500000);\n break;\n case 5:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.pow(Math.sin(i * 0.03),3) * gameModel.getHeight()/4);\n break;\n case 6:\n mapY[i] = (int) (gameModel.getHeight()/2.0);\n mapY[i] += Math.sin(i * (rnd[0])) * rnd[4] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[1])) * rnd[5] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[2])) * rnd[6] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[3])) * rnd[7] * gameModel.getHeight()*0.1;\n\n\n\n\n\n }\n\n }\n\n Polygon map = new Polygon(mapX,mapY,genauigkeit+2);\n\n Graphics2D g2d = image.createGraphics();\n\n g2d.setColor(skyC);\n\n g2d.fillRect(0,0,2800,1800);\n\n g2d.setColor(mapC);\n\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\n g2d.fillPolygon(map);\n\n return image;\n }", "private void fillArrays(){\n\t\tdouble tIncrement = (endT-startT) / (double)plotPoints;\n\t\t\n\t\t//burn in\n\t\tfor(int i=0; i<burnIn; i++){\n\t\t\tfor(int j=0;j<updatesPerSweep;j++){\n\t\t\t\tising.update();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int k=0; k<plotPoints+1 && !simulationThread.isInterrupted(); k++){\n\t\t\tising.reset();\n\t\t\tising.setTemperature(startT + k*tIncrement);\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<sweeps; i++){\n\t\t\t\tfor(int j=0;j<updatesPerSweep;j++){\n\t\t\t\t\tising.update();\n\t\t\t\t}\n\t\t\t\tising.updateSums();\n\t\t\t}\n\t\t\t\n\t\t\t//add values to arrays\n\t\t\ttemp[k] = ising.getTemperature();\n\t\t\t\n\t\t\t\n\t\t\tif(this.plotM){\n\t\t\t\tabsM[k] = ising.averageAbsM();\n\t\t\t\tsusceptibility[k][0] = ising.susceptibility();\n\t\t\t\tsusceptibility[k][1] = ising.errorSusceptibility();\n\t\t\t}\n\t\t\tif(this.plotE){\n\t\t\t\tE[k] = ising.averageE();\n\t\t\t\theatCapacity[k][0] = ising.heatCapacity();\n\t\t\t\theatCapacity[k][1] = ising.errorHearCapacity();\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t}", "private void compute_line_points(float[][] ku, byte[] ismax, float[] ev,float[] nx, float[] ny,float[] px, float[] py, long width, long height, double low,double high, long mode)\r\n\t{\r\n\t long r, c, l;\r\n\t double[] k = new double[5];\r\n\t double[] eigval = new double[2];\r\n\t double[][] eigvec = new double[2][2];\r\n\t double a, b;\r\n\t MutableDouble t = new MutableDouble();\r\n\t MutableLong num = new MutableLong();\r\n\t double n1, n2;\r\n\t double p1, p2;\r\n\t double val;\r\n\r\n\t for (r=0; r<height; r++) {\r\n\t for (c=0; c<width; c++) {\r\n\t l = LinesUtil.LINCOOR(r,c,width);\r\n\t k[0] = ku[0][(int) l];\r\n\t k[1] = ku[1][(int) l];\r\n\t k[2] = ku[2][(int) l];\r\n\t k[3] = ku[3][(int) l];\r\n\t k[4] = ku[4][(int) l];\r\n\t ev[(int) l] = (float) 0.0;\r\n\t nx[(int) l] = (float) 0.0;\r\n\t ny[(int) l] = (float) 0.0;\r\n\t compute_eigenvals(k[2],k[3],k[4],eigval,eigvec);\r\n\t if (mode == LinesUtil.MODE_LIGHT)\r\n\t val = -eigval[0];\r\n\t else\r\n\t val = eigval[0];\r\n\t if (val > 0.0) {\r\n\t ev[(int) l] = (float) val;\r\n\t n1 = eigvec[0][0];\r\n\t n2 = eigvec[0][1];\r\n\t a = k[2]*n1*n1+2.0*k[3]*n1*n2+k[4]*n2*n2;\r\n\t b = k[0]*n1+k[1]*n2;\r\n\t solve_linear(a,b,t,num);\r\n\t if (num.intValue() != 0) {\r\n\t p1 = t.doubleValue()*n1;\r\n\t p2 = t.doubleValue()*n2;\r\n\t if (Math.abs(p1) <= PIXEL_BOUNDARY && Math.abs(p2) <= PIXEL_BOUNDARY) {\r\n\t if (val >= low) {\r\n\t if (val >= high)\r\n\t ismax[(int) l] = 2;\r\n\t else\r\n\t ismax[(int) l] = 1;\r\n\t }\r\n\t nx[(int) l] = (float) n1;\r\n\t ny[(int) l] = (float) n2;\r\n\t px[(int) l] = (float) (r+p1);\r\n\t py[(int) l] = (float) (c+p2);\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\t}", "@DataProvider(name = \"SplitAssemblyRegion\")\n public Object[][] makeSplitAssemblyRegion() {\n final List<Object[]> tests = new ArrayList<>();\n\n final SimpleInterval whole_span = new SimpleInterval(\"1\", 1, 500);\n final SimpleInterval gl_before = new SimpleInterval(\"1\", 1, 9);\n final SimpleInterval gl_after = new SimpleInterval(\"1\", 250, 500);\n final SimpleInterval gl_diff_contig = new SimpleInterval(\"2\", 40, 50);\n\n final int regionStart = 10;\n final int regionStop = 100;\n final SimpleInterval region = new SimpleInterval(\"1\", regionStart, regionStop);\n\n for ( final SimpleInterval noEffect : Arrays.asList(whole_span) )\n tests.add(new Object[]{\n region,\n Arrays.asList(noEffect),\n Arrays.asList(region)});\n\n for ( final SimpleInterval noOverlap : Arrays.asList(gl_before, gl_after, gl_diff_contig) )\n tests.add(new Object[]{\n region,\n Arrays.asList(noOverlap),\n Arrays.asList()});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 5, 50)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 50, 200)),\n Arrays.asList(new SimpleInterval(\"1\", 50, regionStop))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 40, 50)),\n Arrays.asList(new SimpleInterval(\"1\", 40, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 20, 30), new SimpleInterval(\"1\", 40, 50)),\n Arrays.asList(new SimpleInterval(\"1\", 20, 30), new SimpleInterval(\"1\", 40, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 1, 30), new SimpleInterval(\"1\", 40, 50)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 30), new SimpleInterval(\"1\", 40, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 1, 30), new SimpleInterval(\"1\", 70, 200)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 30), new SimpleInterval(\"1\", 70, regionStop))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 1, 30), new SimpleInterval(\"1\", 40, 50), new SimpleInterval(\"1\", 70, 200)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 30), new SimpleInterval(\"1\", 40, 50), new SimpleInterval(\"1\", 70, regionStop))});\n\n return tests.toArray(new Object[][]{});\n }", "public void findBoundary(boolean useDestinations)\r\n\t{\n\tdouble maxSpacing = res/5.0;\r\n\tif(maxSpacing<1) maxSpacing = 1;\r\n\t\r\n\t//First make sure point sampling is dense enough:\t\r\n\tVector<Int2d> surfaceT = new Vector<Int2d>();\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tsurfaceT.add(p);\r\n\t\tInt2d p2 = surface.get((it+1)%sl);\r\n\t\tdouble pdist = p2.distance(p);\r\n\t\tif(pdist > maxSpacing)\r\n\t\t\t{\r\n\t\t\t// populate this line segment with points\r\n\t\t\tint extraPoints = (int)(pdist/maxSpacing); // - 2 cause we already have 2 points\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<extraPoints; i++)\r\n\t\t\t\t{\r\n\t\t\t\tInt2d pN = new Int2d(p);\r\n\t\t\t\tInt2d diff = new Int2d();\r\n\t\t\t\tdiff.sub(p2,p);\r\n\t\t\t\tpN.scaleAdd((double)(i+1.)/(extraPoints+1.),diff,pN);\r\n\t\t\t\tsurfaceT.add(pN);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t//System.out.println(\"got here2.1\");\r\n\tsurface = surfaceT;\r\n\tcanvas1.surface = surface;\r\n\tsl = surfaceT.size();\r\n\t\t\r\n\t//System.out.println(sl);\r\n\t\r\n\t\t\t\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tint i = (int)(p.x/res);\r\n\t\tint j = (int)(p.y/res);\r\n\t\tboolean extraWide = false;\r\n\t\tboolean extraHigh = false;\t\t\r\n\t\t\r\n\t\tif((p.y % res) == 0)\r\n\t\t\t{\r\n\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\textraHigh = true;\r\n\t\t\t}\r\n\t\tif((p.x % res) == 0)\r\n\t\t\t{\r\n\t\t\textraWide = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\tint len = 4;\r\n\t\tif(extraWide && extraHigh) len = 9;\r\n\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\r\n\t\tInt2d[] pi = new Int2d[len];\r\n\t\tint[] ic = new int[len];\r\n\t\tint[] jc = new int[len];\r\n\t\t\r\n\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\r\n\t\tfor(int c=0; c<len; c++)\r\n\t\t\t{\r\n\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t{\r\n\t\t\t\tif(!useDestinations)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//else phi[ic[c]][jc[c]] = -phiStart;\r\n\t\t\t\t// Way suggested in paper, but this looks bad with interpolation\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"got here2.2\");\r\n\t\t\r\n\tif(useDestinations) //Use destinations\r\n\t\t{\t\t\r\n\t\t// Sets destination point distances accordingly\r\n\t\t\r\n\t\tint dl = destinations.size();\r\n\t\tfor(int it=0; it<dl; it++)\r\n\t\t\t{\r\n\t\t\tInt2d p = destinations.get(it);\r\n\t\t\tint i = (int)(p.x/res);\r\n\t\t\tint j = (int)(p.y/res);\r\n\t\t\tboolean extraWide = false;\r\n\t\t\tboolean extraHigh = false;\t\t\r\n\t\t\t\r\n\t\t\tif((p.y % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\t\textraHigh = true;\r\n\t\t\t\t}\r\n\t\t\tif((p.x % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\textraWide = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tint len = 4;\r\n\t\t\tif(extraWide && extraHigh) len = 9;\r\n\t\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\t\r\n\t\t\tInt2d[] pi = new Int2d[len];\r\n\t\t\tint[] ic = new int[len];\r\n\t\t\tint[] jc = new int[len];\r\n\t\t\t\r\n\t\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\t\r\n\t\t\tfor(int c=0; c<len; c++)\r\n\t\t\t\t{\r\n\t\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\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\t\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\tint bl = boundary.size();\r\n\t/*\r\n\tfor(int k=0; k<bl; k++)\r\n\t\t{\r\n\t\tSystem.out.println(boundary.get(k).x + \", \" + boundary.get(k).y + \": element \" + k);\r\n\t\t}\r\n\t\t*/\r\n\t\t\t\r\n\tfor(int i=0; i<bl; i++)\r\n\t\t{\r\n\t\tInt2d pi = boundary.get(i);\r\n\t\tpi.phi = phi[pi.x][pi.y];\r\n\t\t}\r\n\t}", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }" ]
[ "0.55774593", "0.5533442", "0.5532902", "0.5375295", "0.5334604", "0.5305703", "0.52391857", "0.5102393", "0.5008873", "0.49966162", "0.49635172", "0.49396372", "0.4934424", "0.4932506", "0.48809907", "0.48733193", "0.48686835", "0.4850145", "0.48350284", "0.48214394", "0.47959292", "0.4783657", "0.4777995", "0.47755435", "0.47618008", "0.47508287", "0.47444832", "0.473435", "0.47141778", "0.46941945", "0.4693602", "0.46931627", "0.4682551", "0.46774355", "0.4675057", "0.46644467", "0.46616998", "0.46536943", "0.46459535", "0.46247223", "0.46195358", "0.46183747", "0.46065992", "0.460507", "0.45972705", "0.45922604", "0.4589056", "0.45853147", "0.45827726", "0.4581174", "0.45780364", "0.457738", "0.45664176", "0.45659775", "0.45586446", "0.4556949", "0.45567062", "0.45416537", "0.45389274", "0.4527024", "0.4501731", "0.44884673", "0.44878346", "0.44875816", "0.44866952", "0.4476256", "0.4472456", "0.4471516", "0.4470901", "0.4469922", "0.4467867", "0.4459756", "0.44558647", "0.4454773", "0.44488585", "0.44455707", "0.4444475", "0.4434148", "0.4432231", "0.44260213", "0.44249105", "0.44231486", "0.44151455", "0.44133216", "0.44093332", "0.4408219", "0.4399337", "0.439731", "0.43901408", "0.438579", "0.4384957", "0.4376527", "0.4376387", "0.4374854", "0.43742895", "0.4369815", "0.43594104", "0.43538898", "0.43538442", "0.4350642" ]
0.51707715
7
Compares the differences between the interpolated SpatialGrid with resolution 200 and the original SpatialGrid with resolution 100. Sums the absolute difference and returns it.
private static double[] differenceComputation(SpatialGrid sg100, SpatialGrid sg200_interpolated){ double differenceToOriginalSG = 0; int numberOfIntpValues = 0; //sum difference at all coordinates where interpolated values are known for (double y = sg200_interpolated.getYmin(); y <= sg200_interpolated.getYmax(); y += sg200_interpolated.getResolution()){ for (double x = sg200_interpolated.getXmin(); x <= sg200_interpolated.getXmax(); x += sg200_interpolated.getResolution()){ double value100= sg100.getValue(x, y); double value200= sg200_interpolated.getValue(x, y); //calculate difference only in the zurich area if(!Double.isNaN(value100) && !Double.isNaN(value200)){ differenceToOriginalSG += Math.abs(value100 - value200); numberOfIntpValues++; } } } double[] differences= {differenceToOriginalSG, numberOfIntpValues}; return differences; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testHorizontalDisplacementTo() {\n System.out.println(\"Testing HorizontalDisplacementTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 555.998,\n 555.998,\n -555.998,\n -555.998,\n\t\t\t72.266,\n\t\t\t72.266,\n\t\t\t-72.266,\n\t\t\t-72.266\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.horizontalDisplacementTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "@Test\n public void testVerticalDisplacementTo() {\n System.out.println(\"Testing verticleDisplacementTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 555.998,\n -555.998,\n -555.998,\n 555.998,\n\t\t\t72.266,\n\t\t\t-72.266,\n\t\t\t-72.266,\n\t\t\t72.266\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.verticalDisplacementTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "@Test\n public void testDistanceTo() {\n System.out.println(\"Testing distanceTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 786.3,\n 786.3,\n 786.3,\n 786.3,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.distanceTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "static double getValueWithDispersal(DoubleGrid2D landscape, Double2D originalCell, Double2D thisCell, double originalAmount) {\n\n double oldValue = landscape.get((int) thisCell.x, (int) thisCell.y);\n double eucDistance = originalCell.distance(thisCell); //euclidean distance\n double newValue = pow(originalAmount, eucDistance); // original amount to the power of the euclidean distance\n if (newValue >= 0.00000001) { // maximum precision to avoid recursion\n newValue += oldValue;\n } else {\n newValue = oldValue;\n }\n if (newValue >= 0.5) {\n return 0.5;\n } else {\n return newValue;\n }\n }", "public final float isoSurfaceDistance(double cur, float[] val, boolean[] flag) {\n \t\n \tif (cur==0) return 0;\n \t\n s = 0;\n dist = 0;\n \n for (int n=0; n<6; n+=2) {\n\t\t\tif (flag[n] && flag[n+1]) {\n\t\t\t\ttmp = Numerics.max(val[n], val[n+1]); // Take the largest distance (aka closest to current point) if both are across the boundariy\n\t\t\t\ts = cur/(cur+tmp);\n\t\t\t\tdist += 1.0/(s*s);\n\t\t\t} else if (flag[n]) {\n\t\t\t\ts = cur/(cur+val[n]); // Else, take the boundariy point\n\t\t\t\tdist += 1.0/(s*s);\n\t\t\t} else if (flag[n+1]) {\n\t\t\t\ts = cur/(cur+val[n+1]);\n\t\t\t\tdist += 1.0/(s*s);\n\t\t\t}\n\t\t}\n\t\t// triangular (tetrahedral?) relationship of height in right triangles gives correct distance\n tmp = Math.sqrt(1.0/dist);\n\n // The larger root\n return (float)tmp;\n }", "static int surfaceArea(int[][] grid) {\n int sum = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[i].length; j++) {\n if (grid[i][j] != 0) {\n sum += ((grid[i][j] * 4) + 2);\n }\n if (i - 1 >= 0) sum -= Math.min(grid[i - 1][j], grid[i][j]) * 2;\n if (j - 1 >= 0) sum -= Math.min(grid[i][j - 1], grid[i][j]) * 2;\n }\n }\n return sum;\n }", "private int del_energyCal(int x1, int y1, int x2, int y2) {\n Color a = pic.get(x1, y1);\n Color b = pic.get(x2, y2);\n\n int Red = a.getRed() - b.getRed();\n int Green = a.getGreen() - b.getGreen();\n int Blue = a.getBlue() - b.getBlue();\n\n int RedGreenBlue = (Red * Red) + (Green * Green) + (Blue * Blue);\n return RedGreenBlue;\n\n }", "@Test\n public void testInterpolationAtEdges() {\n // Following constant is pixel size (in degrees).\n // This constant must be identical to the one defined in 'createRandomCoverage()'\n final double PIXEL_SIZE = 0.25;\n createRandomCoverage();\n coverage = coverage.view(ViewType.GEOPHYSICS);\n coverage = Interpolator2D.create(coverage, Interpolation.getInstance(Interpolation.INTERP_BILINEAR));\n assertTrue(coverage instanceof Interpolator2D);\n assertTrue(coverage.view(ViewType.GEOPHYSICS) instanceof Interpolator2D);\n assertTrue(coverage.view(ViewType.PACKED) instanceof Interpolator2D);\n final int band = 0; // Band to test.\n double[] buffer = null;\n final Raster data = coverage.getRenderedImage().getData();\n final Envelope envelope = coverage.getEnvelope();\n final GridExtent range = coverage.getGridGeometry().getExtent();\n final double left = envelope.getMinimum(0);\n final double upper = envelope.getMaximum(1);\n final Point2D.Double point = new Point2D.Double(); // Will maps to pixel upper-left corner\n for (long j=range.getSize(1); --j>=1;) {\n for (long i=range.getSize(0); --i>=1;) {\n point.x = left + PIXEL_SIZE*i;\n point.y = upper - PIXEL_SIZE*j;\n buffer = coverage.evaluate(point, buffer);\n double t = buffer[band];\n\n // Computes the expected value:\n double r00 = data.getSampleDouble((int) i-0, (int) j-0, band);\n double r01 = data.getSampleDouble((int) i-0, (int) j-1, band);\n double r10 = data.getSampleDouble((int) i-1, (int) j-0, band);\n double r11 = data.getSampleDouble((int) i-1, (int) j-1, band);\n double r = (r00 + r01 + r10 + r11) / 4;\n assertEquals(r, t, SAMPLE_TOLERANCE);\n }\n }\n }", "@Test\n\tpublic void testGetGridOffsetValues() {\n\t\tAssert.assertEquals(13.68, Geoid.getGridOffset(90.0, 0.0), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\n\t\t// random grid params from EGM.complete.txt.gz\n\t\t// 89.74 5.75 13.89\n\t\t// 86.5 217.25 11.76\n\t\t// 71.25 8.0 43.56\n\t\t// 54.0 182.25 2.35\n\t\t// 35.5 186.0 -12.91\n\t\t// 14.75 213.5 -8.07\n\t\t// -22.25 221.5 -10.18\n\t\t// -37.5 13.0 25.61\n\t\t// -51.75 157.25 -17.88\n\t\t// -70.5 346.0 5.18\n\t\t// -74.5 22.0 17.5\n\t\t// -84.5 306.25 -25.71\n\t\t// -86.75 328.75 -21.81\n\n\t\tAssert.assertEquals(13.89, Geoid.getGridOffset(89.74, 5.75), EPSILON); \n\t\tAssert.assertEquals(11.76, Geoid.getGridOffset(86.5, 217.25), EPSILON);\n\t\tAssert.assertEquals(43.56, Geoid.getGridOffset(71.25, 8.0), EPSILON);\n\t\tAssert.assertEquals(2.35, Geoid.getGridOffset(54.0, 182.25), EPSILON);\n\t\tAssert.assertEquals(-12.91, Geoid.getGridOffset(35.5, 186.0), EPSILON);\n\t\tAssert.assertEquals(-8.07, Geoid.getGridOffset(14.75, 213.5), EPSILON);\n\t\tAssert.assertEquals(-10.18, Geoid.getGridOffset(-22.25, 221.5), EPSILON);\n\t\tAssert.assertEquals(25.61, Geoid.getGridOffset(-37.5, 13.0), EPSILON);\n\t\tAssert.assertEquals(-17.88, Geoid.getGridOffset(-51.75, 157.25), EPSILON);\n\t\tAssert.assertEquals(5.18, Geoid.getGridOffset(-70.5, 346.0), EPSILON);\n\t\tAssert.assertEquals(17.5, Geoid.getGridOffset(-74.5, 22.0), EPSILON);\n\t\tAssert.assertEquals(-25.71, Geoid.getGridOffset(-84.5, 306.25), EPSILON);\n\t\tAssert.assertEquals(-21.81, Geoid.getGridOffset(-86.75, 328.75), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\t}", "public void difXY() {\n for(int ix=1;ix<cols-1;ix++) {\n for(int iy=1;iy<rows-1;iy++) {\n int ig=iy*cols+ix;\n // compute x difference\n dxr[ig] = par[ig+1]-par[ig-1]; // red\n //dxg[ig] = pag[ig+1]-pag[ig-1]; // green\n //dxb[ig] = pab[ig+1]-pab[ig-1]; // blue\n // compute y difference\n dyr[ig] = par[ig+cols]-par[ig-cols]; // red\n //dyg[ig] = pag[ig+cols]-pag[ig-cols]; // green\n //dyb[ig] = pab[ig+cols]-pab[ig-cols]; // blue\n }\n }\n }", "public double getAbsoluteDistance( ArrayList< Double > a, ArrayList< Double > b )\n {\n double dist = -1.0;\n\n if( a.size() == b.size() )\n {\n dist = 0;\n for( int k=0; k<a.size(); k++ )\n {\n dist += Math.abs( a.get( k ) - b.get( k ) );\n }\n }\n\n return dist;\n }", "public static int surfaceArea(int[][] grid) {\n int m = grid.length;\n int n = grid[0].length;\n int result = 0;\n int[][] direction = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};\n \n for (int i = 0; i < m; i++) {\n \tfor (int j = 0; j < n; j++) {\n \t\tif (grid[i][j] > 0) {\n \t\t\tresult += 2;\n \t\t\tfor (int[] dir: direction) {\n \t\t\tint nextI = i + dir[0];\n \t\t\tint nextJ = j + dir[1];\n \t\t\tif (nextI < 0 || nextI >= m || nextJ < 0 || nextJ >= n) {\n \t\t\t\tresult += grid[i][j];\n \t\t\t} else if (grid[nextI][nextJ] < grid[i][j]) {\n \t\t\t\tresult += grid[i][j] - grid[nextI][nextJ];\n \t\t\t} \t\t\t\t\n \t\t\t}\n \t\t}\n \t}\n }\n \n return result;\n \n }", "@Override\r\n protected double getToleranceForAssertions(final double longitude, final double latitude) {\r\n final double delta = abs(longitude - centralMeridian)/2 +\r\n abs(latitude - latitudeOfOrigin);\r\n if (delta > 40) {\r\n return 0.5;\r\n }\r\n if (delta > 15) {\r\n return 0.1;\r\n }\r\n return super.getToleranceForAssertions(longitude, latitude);\r\n }", "public void getMissDistance() {\n missDistance = targetDistance - projDistance;\n }", "@Test\n public void testFind_East_cross_boundary() {\n\n double lat1 = 0.0;\n double lon1 = 170.0;\n double lat2 = 0.0;\n double lon2 = -170.0;\n double expResult = Math.toRadians(90);\n double result = Azimuth.find(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n }", "private float[] gyrDiff(float[] oldGyr, float[] newGyr)\n {\n float[] diffGyr = new float[]{0.0f, 0.0f, 0.0f};\n\n for (int i = 0; i < 3; i++)\n {\n diffGyr[i] = (newGyr[i]-oldGyr[i]);\n }\n return newGyr;\n }", "public void differences(){\n\n\t\t/* Set the value of the initial differences to zero (it is calculated through\n\t\t * incrementing the variable) */\n\t\tfixeddifferences=0;\n\n\t\t/* For every cell in the cell space */\n\t\tfor (int i=0;i<GlobalAttributes.xCells;i++){\n\t\t\tfor(int j=0;j<GlobalAttributes.yCells;j++){\n\n\t\t\t\t/* If the value in the initial configuration differs from the value\n\t\t\t\t * in the target configuration */\n\t\t\t\tif(source[i][j].topSubcellValue != target[i][j].topSubcellValue ||\n\t\t\t\t\t\tsource[i][j].bottomSubcellValue != target[i][j].bottomSubcellValue ||\n\t\t\t\t\t\tsource[i][j].leftSubcellValue != target[i][j].leftSubcellValue ||\n\t\t\t\t\t\tsource[i][j].rightSubcellValue != target[i][j].rightSubcellValue){\n\n\t\t\t\t\t/* Set the value in the fixed initial difference matrix\n\t\t\t\t\t * to true and increment the fixed initial differences counter */\n\t\t\t\t\tfixeddifferent[i][j]=true;\n\t\t\t\t\tfixeddifferences++;\n\t\t\t\t}\n\n\t\t\t\t/* Else if the value does not differ, set the value in the\n\t\t\t\t * fixed initial differences matrix to false and do not increment\n\t\t\t\t * the fixed initial differences counter */\n\t\t\t\telse{\n\t\t\t\t\tfixeddifferent[i][j]=false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void calculeStatRemove() {\n resourceA = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n int loose = resourceB - resourceA;\n int diff = (resourceA - resourceB) + value;\n this.getContext().getStats().incNbRessourceLoosePlayers(idPlayer,type,loose);\n this.getContext().getStats().incNbRessourceNotLoosePlayers(idPlayer,type,diff);\n }", "private int getDragDistance(int larger, int smaller, int snapSize)\n\t{\n\t\tint halfway = snapSize / 2;\n\t\tint drag = larger - smaller;\n\t\tdrag += (drag < 0) ? -halfway : halfway;\n\t\tdrag = (drag / snapSize) * snapSize;\n\n\t\treturn drag;\n\t}", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "static double interpolateDouble(double x, double a, double b, double a1, double b1) {\n // assertTrue(a != b);\n // To get results that are accurate near both A and B, we interpolate starting from the closer\n // of the two points.\n if (Math.abs(a - x) <= Math.abs(b - x)) {\n return a1 + (b1 - a1) * (x - a) / (b - a);\n } else {\n return b1 + (a1 - b1) * (x - b) / (a - b);\n }\n }", "public static double getDistanceToReleaseSubstances(Grid<Cell> grid) {\n\t\tif (isGridBiDimensional(grid)) {\n\t\t\treturn Math.max(2, Math.min(grid.getDimensions().getWidth(), grid.getDimensions().getHeight()) / 5);\n\t\t} else {\n\t\t\treturn Math.max(2, Math.min(Math.min(grid.getDimensions().getWidth(), grid.getDimensions().getHeight()), grid.getDimensions().getDepth()) / 5);\n\t\t}\n\t}", "public void compute() {\n\n this.jddPtsInflexion.clear();\n ILineString lsInitialee = this.geom;\n\n ILineString lsInitiale = Operateurs.resampling(lsInitialee, 1);\n ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 5, 1);\n\n double sumOfDistances = 0;\n double length = 70;// 200 m max\n double sumOfAngels = 0;\n // ArrayList<Double> angels=new ArrayList<Double>();\n ArrayList<Double> differences = new ArrayList<Double>();\n\n ArrayList<Double> distances = new ArrayList<Double>();\n\n IDirectPosition p1 = lsInitiale.coord().get(0);\n IDirectPosition p2 = lsInitiale.coord().get(1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double angel = Math.atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n angel = (angel + Math.PI) * 180 / Math.PI;\n\n // angels.add(angel);\n\n for (int i = 1; i < lsInitiale.coord().size() - 1; i++) {\n\n p1 = lsInitiale.coord().get(i);\n p2 = lsInitiale.coord().get(i + 1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double newAngel = Math\n .atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n // give the value that varie from 0 to 360-epsilon\n newAngel = (newAngel + Math.PI) * 180 / Math.PI;\n\n // angels.add(newAngel);\n\n while (sumOfDistances > length && differences.size() > 0) {\n sumOfDistances -= distances.get(0);\n\n sumOfAngels -= differences.get(0);\n\n distances.remove(0);\n // System.out.println(\"olddiff=\" + differences.get(0));\n differences.remove(0);\n\n }\n\n double diff = newAngel - angel;\n\n if (diff > 180)\n diff = -360 + diff;// for the case of angel=10 and newAngel=350;\n else if (diff < -180)\n diff = 360 + diff;\n\n differences.add(diff);\n sumOfAngels += diff;\n angel = newAngel;\n // System.out.println(\"sumOfAngels=\" + sumOfAngels);\n // System.out.println(\"angel=\" + newAngel);\n // System.out.println(\"diff=\" + diff);\n\n /*\n * for(int k=0;k<angels.size();k++){ double diff2=newAngel-angels.get(k));\n * if(diff2>180)diff2=360-diff2;// for the case of angel=10 and\n * newAngel=350; else if(diff2<-180)diff2=-360-diff2;\n * if(Math.abs(newAngel->200) {\n * \n * }\n * \n * \n * }\n */\n\n if (Math.abs(sumOfAngels) > 100) {\n\n double maxOfDiff = 0;\n int indexOfMaxOfDiff = -1;\n for (int k = 0; k < differences.size(); k++) {\n if (differences.get(k) > maxOfDiff) {\n maxOfDiff = differences.get(k);\n indexOfMaxOfDiff = k;\n\n }\n\n }\n double maxDistance = -1;\n int maxDistancePointIndex = -1;\n // if(i+differences.size()-indexOfMaxOfDiff-1>=jddPtsInflexion.size())\n for (int jj = 0; jj < differences.size(); jj++) {\n // jddPtsInflexion.add(lsInitiale.coord().get(i+differences.size()-indexOfMaxOfDiff-2));\n if (i + jj - indexOfMaxOfDiff >= 0\n && i + jj - indexOfMaxOfDiff < lsInitiale.coord().size()) {\n int currIndex = i + jj - indexOfMaxOfDiff;\n double distance = lsInitiale.coord().get(currIndex).distance2D(\n lsLisse.coord().get(currIndex));\n if (distance > maxDistance) {\n maxDistance = distance;\n maxDistancePointIndex = currIndex;\n }\n\n }\n\n }\n\n if (maxDistancePointIndex >= 0)\n this.jddPtsInflexion.add(lsInitiale.coord()\n .get(maxDistancePointIndex));\n\n differences.clear();\n sumOfDistances = distances.get(distances.size() - 1);\n distances.clear();\n sumOfAngels = 0;\n i++;\n\n }\n\n }\n\n }", "@Test\n public void testFind_West_cross_boundary() {\n\n double lat1 = 0.0;\n double lon1 = -170.0;\n double lat2 = 0.0;\n double lon2 = 170.0;\n double expResult = Math.toRadians(270);\n double result = Azimuth.find(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n }", "@Test\n public void testGetGradient() throws GeoTessException {\n // set the active region and get a set of layers for which gradients are to\n // be calculated\n int[] layers = {2, 3, 4, 5, 6, 7, 8};\n model.setActiveRegion();\n\n // set grid node location index\n int attributeIndex = 0;\n\n // define the linear and natural-neighbor gradients for both nominal and\n // reciprocal attributes and initialize the true result\n\n double[] gradLin = new double[3];\n double[] gradNN = new double[3];\n double[] gradLinTrue = {4.6692626774685944E-5, 4.502074915240648E-6, 4.543854613827687E-6};\n double[] gradNNTrue = {4.666681310690614E-5, 4.4985383090366614E-6, 4.544030614580206E-6};\n double[] gradLinRecip = new double[3];\n double[] gradNNRecip = new double[3];\n double[] gradLinRecipTrue = {-0.003672532846243307, -3.547138101101814E-4,\n -3.5962254850115913E-4};\n double[] gradNNRecipTrue = {-0.0036705409599509485, -3.5443843094769983E-4,\n -3.5962403554295927E-4};\n\n // get the linear and natural-neighbor interpolators\n GeoTessPosition gtpLin, gtpNN;\n gtpLin = GeoTessPosition.getGeoTessPosition(model, InterpolatorType.LINEAR,\n InterpolatorType.LINEAR);\n gtpNN = GeoTessPosition.getGeoTessPosition(model, InterpolatorType.NATURAL_NEIGHBOR,\n InterpolatorType.LINEAR);\n\n // compute and store non-reciprocal gradients and set the linear position\n // ... interpolate the linear result and compare against the true values\n model.computeGradients(attributeIndex, false, layers);\n gtpLin.set(5.5, 5.5, 369.0);\n gtpLin.getGradient(0, false, gradLin);\n assertEquals(gradLin[0], gradLinTrue[0], 1e-12);\n assertEquals(gradLin[1], gradLinTrue[1], 1e-12);\n assertEquals(gradLin[2], gradLinTrue[2], 1e-12);\n\n // set the natural-neighbor position ... interpolate the natural-neighbor\n // result and compare against the true values\n gtpNN.set(5.5, 5.5, 369.0);\n gtpNN.getGradient(0, false, gradNN);\n assertEquals(gradNN[0], gradNNTrue[0], 1e-12);\n assertEquals(gradNN[1], gradNNTrue[1], 1e-12);\n assertEquals(gradNN[2], gradNNTrue[2], 1e-12);\n\n // compute and store reciprocal gradients ... interpolate the linear\n // result and compare against the true values\n model.computeGradients(attributeIndex, true, layers);\n gtpLin.getGradient(0, true, gradLinRecip);\n assertEquals(gradLinRecip[0], gradLinRecipTrue[0], 1e-12);\n assertEquals(gradLinRecip[1], gradLinRecipTrue[1], 1e-12);\n assertEquals(gradLinRecip[2], gradLinRecipTrue[2], 1e-12);\n\n // interpolate the natural-neighbor result and compare against the true\n // values\n gtpNN.getGradient(0, true, gradNNRecip);\n assertEquals(gradNNRecip[0], gradNNRecipTrue[0], 1e-12);\n assertEquals(gradNNRecip[1], gradNNRecipTrue[1], 1e-12);\n assertEquals(gradNNRecip[2], gradNNRecipTrue[2], 1e-12);\n }", "public Map<BooleanVariable, Double> calculateDiff(SimulationResults perturbed,\n\t\t\t\t\t\t\t\t\t\t\t \t\t SimulationResults base,\n\t\t\t\t\t\t\t\t\t\t\t \t\t int maxTimeStep) {\n\t // BooleanNetworks can be compared (e.g. minor modification in a BooleanNetwork).\n\t // Make sure two Results are generated from the same network\n\t if (perturbed.getNetwork() != base.getNetwork() && varPropertyKey == null)\n\t throw new IllegalArgumentException(\"The passed two parameters don't have the same BooleanNetwork! \"\n\t + \"To compare two different BooleanNetworks, set varPropertyKey.\");\n\t\tperturbed.expandTracks(maxTimeStep);\n\t\tbase.expandTracks(maxTimeStep);\n\t\t// Calculate AUC\n\t\tMap<BooleanVariable, Double> pertVarToAuc = perturbed.calculateAUC();\n\t\tMap<BooleanVariable, Double> baseVarToAuc = base.calculateAUC();\n\t\tMap<String, Double> pertPropToAuc = null;\n\t\tif (varPropertyKey != null) {\n\t\t pertPropToAuc = convertVarToAucMap(pertVarToAuc, varPropertyKey);\n\t\t}\n\t\tfinal Map<String, Double> finalPertPropToAuc = pertPropToAuc;\n\t\tMap<BooleanVariable, Double> varToDiff = new HashMap<>();\n\t\t// Get the percent change\n\t\tbaseVarToAuc.forEach((var, baseAuc) -> {\n\t\t Double pertAuc = null;\n\t\t if (varPropertyKey != null) {\n\t\t String property = var.getProperty(varPropertyKey);\n\t\t pertAuc = finalPertPropToAuc.get(property);\n\t\t }\n\t\t else\n\t\t pertAuc = pertVarToAuc.get(var);\n\t\t\tif (pertAuc == null)\n\t\t\t return; \n\t\t\t// Assign the minimum value to avoid NaN\n\t\t\tif (baseAuc < MIN_VALUE)\n\t\t\t baseAuc = MIN_VALUE;\n\t\t\tif (pertAuc < MIN_VALUE)\n\t\t\t pertAuc = MIN_VALUE;\n//\t\t\tdouble change = Math.abs(pertAuc - baseAuc) / baseAuc;\n\t\t\tdouble change = (pertAuc - baseAuc) / (pertAuc + baseAuc); // Use this formula to control small values\n\t\t\tvarToDiff.put(var, change);\n\t\t});\n\t\t\n\t\treturn varToDiff;\n\t}", "public static FPoint2[] findSnapErrors(Grid grid, SnapArrangement ar) {\n\n DArray a = new DArray();\n do {\n extractSnapPoints(ar);\n\n // construct a list of segment sections between snap points\n DArray fragList = new DArray();\n FRect fragBounds = null;\n\n Graph g = ar.getGraph();\n for (int jj = 0; jj < ar.nNodes(); jj++) {\n int id1 = jj + ar.idBase();\n for (int kk = 0; kk < g.nCount(id1); kk++) {\n int id2 = g.neighbor(id1, kk);\n if (id2 < id1)\n continue;\n\n // Segment seg = segs[i];\n // for (int j = 0; j < seg.nSnapPoints() - 1; j++) {\n Endpoints ep = new Endpoints(grid, ar.hotPixel(id1), ar.hotPixel(id2));\n if (fragBounds == null)\n fragBounds = new FRect(ep.v0, ep.v1);\n fragBounds.add(ep.v0);\n fragBounds.add(ep.v1);\n fragList.add(ep);\n }\n }\n\n if (fragList.isEmpty())\n break;\n\n // to speed up this process, divide bounds into a grid of bucket/pixels.\n // Each bucket contains the fragments whose minimum bounding rectangles\n // intersect the bucket's pixel. \n // Thus we need only compare fragments against others from the same bucket.\n\n int nBuckets = Math.max(1, ar.nNodes() / 60);\n DArray[] buckets = new DArray[nBuckets * nBuckets];\n {\n double bWidth = fragBounds.width / nBuckets, bHeight = fragBounds.height\n / nBuckets;\n for (int i = 0; i < buckets.length; i++)\n buckets[i] = new DArray();\n for (int i = 0; i < fragList.size(); i++) {\n Endpoints e = (Endpoints) fragList.get(i);\n // add endpoint to every bucket it may intersect\n int y0 = (int) ((Math.min(e.v0.y, e.v1.y) - fragBounds.y) / bHeight);\n int y1 = MyMath.clamp(\n (int) ((Math.max(e.v0.y, e.v1.y) - fragBounds.y) / bHeight), 0,\n nBuckets - 1);\n int x0 = (int) ((Math.min(e.v0.x, e.v1.x) - fragBounds.x) / bWidth);\n int x1 = MyMath.clamp(\n (int) ((Math.max(e.v0.x, e.v1.x) - fragBounds.x) / bWidth), 0,\n nBuckets - 1);\n\n for (int y = y0; y <= y1; y++) {\n for (int x = x0; x <= x1; x++) {\n buckets[y * nBuckets + x].add(e);\n }\n }\n }\n }\n\n final double NEARZERO = .00001;\n\n for (int k = 0; k < buckets.length; k++) {\n DArray b = buckets[k];\n for (int i = 0; i < b.size(); i++) {\n Endpoints ei = (Endpoints) b.get(i);\n\n for (int j = i + 1; j < b.size(); j++) {\n Endpoints ej = (Endpoints) b.get(j);\n\n FPoint2 pt = MyMath.lineSegmentIntersection(ei.v0, ei.v1, ej.v0,\n ej.v1, null);\n if (pt == null)\n continue;\n String err = null;\n\n // make sure the intersection occurs at an endpoint of each\n double di = Math.min(pt.distance(ei.v0), pt.distance(ei.v1));\n double dj = Math.min(pt.distance(ej.v0), pt.distance(ej.v1));\n\n // in triangle grid, fragment endpoint can lie on other fragment.\n // To eliminate this possibility, intersection point must be\n // distinct from all four endpoints.\n\n if (Math.min(di, dj) > NEARZERO) {\n err = \"\";\n }\n if (err != null) {\n a.add(pt);\n // a.add(err);\n }\n }\n }\n }\n } while (false);\n return (FPoint2[]) a.toArray(FPoint2.class);\n }", "private long getAbsMax() {\n return Math.max(Math.abs(Visualizer.getLowerBound().get()),\n Visualizer.getUpperBound().get());\n }", "public int calculateEnergyDiff(int x,int y) {\n int energy = 0;\n int energyFlipped = 0;\n \n for (int i = x-1; i <= x+1; i+=2) {\n for (int j = y-1; j <= y+1; j+=2) {\n //if (!IsingLattice.isNeighbour(i,j,x,y)) continue;\n int i1 = (i+m)%m;\n int j1 = (j+m)%m;\n energy += -lattice[x][y]*lattice[i1][j1];\n energyFlipped += lattice[x][y]*lattice[i1][j1];\n }\n }\n return (energyFlipped - energy);\n }", "private double heuristic(Node a, Node b){\n\n // absolute value of the differences in floors\n return Math.abs(a.getFloor() - b.getFloor());\n }", "public boolean almostEqual(Coordinates a, Coordinates b);", "public int compare(Tensor newCost, Tensor oldCost) {\n if (oldCost.length() != newCost.length() || oldCost.length() != slack.length())\n throw TensorRuntimeException.of(oldCost, newCost, slack);\n int cmp = 0;\n for (int index = 0; index < oldCost.length() && cmp == 0; ++index) {\n Scalar min = oldCost.Get(index);\n if (Scalars.isZero(min))\n cmp = Scalars.compare(newCost.Get(index), min);\n else {\n Scalar diffRatio = newCost.Get(index).subtract(min).divide(min);\n cmp = Scalars.lessEquals(diffRatio.abs(), slack.Get(index)) //\n ? 0\n : Sign.of(diffRatio).number().intValue();\n }\n }\n return cmp;\n }", "private int[] calculateCoverage(Route rt, Point edge){\n\n \tint[] latLonMinMax = new int[4];\n \t\n // figure out the bounding box of the route\n latLonMinMax[0] = rt.getStart().getLatitude();\n latLonMinMax[1] = latLonMinMax[0];\n latLonMinMax[2] = rt.getStart().getLongitude();\n latLonMinMax[3] = latLonMinMax[2];\n \n for(GeoSegment gs : rt.getGeoSegments()){\n \tint temp = gs.getP2().getLatitude();\n \tlatLonMinMax[0] = latLonMinMax[0] > temp ? temp : latLonMinMax[0];\n \tlatLonMinMax[1] = latLonMinMax[1] < temp ? temp : latLonMinMax[1];\n \t\n \ttemp = gs.getP2().getLongitude();\n \tlatLonMinMax[2] = latLonMinMax[2] > temp ? temp : latLonMinMax[2];\n \tlatLonMinMax[3] = latLonMinMax[3] < temp ? temp : latLonMinMax[3];\n }\n \n \n // now use aspect ratio of the window to get bounds of the display\n int diffLat = latLonMinMax[1] - latLonMinMax[0];\n int diffLon = latLonMinMax[3] - latLonMinMax[2];\n \n // the longest aspect will be a larger ratio\n double horzAsp = diffLon / edge.getX();\n double vertAsp = diffLat / edge.getY();\n \n double expandLat = 0.0;\n double expandLon = 0.0;\n if(horzAsp > vertAsp){\n \tdouble factor = horzAsp/vertAsp;\n \t// calculate the expansion of the short dimension\n \texpandLat = ((diffLat * factor - diffLat) / 2.0);\n \texpandLat += ((diffLat * factor) / 20.0); // 20.0 for 5%\n \t// long dimension\n \texpandLon = diffLon / 20.0;\n }else{\n\t double factor = vertAsp/horzAsp;\n\t \t// calculate the expansion of the short dimension\n\t \texpandLon = ((diffLon * factor - diffLon) / 2);\n \texpandLon += ((diffLon * factor) / 20.0);\n \t// long dimension\n \texpandLat = diffLat / 20.0;\n }\n \n latLonMinMax[0] -= ( ((int)expandLat) != 0 ? ((int)expandLat) : 2);\n latLonMinMax[1] += ( ((int)expandLat) != 0 ? ((int)expandLat) : 2);\n latLonMinMax[2] -= ( ((int)expandLon) != 0 ? ((int)expandLon) : 2);\n latLonMinMax[3] += ( ((int)expandLon) != 0 ? ((int)expandLon) : 2);\n \n \treturn latLonMinMax;\n }", "public static BufferedImage getDifferenceImage(BufferedImage img1, BufferedImage img2) {\n int width1 = img1.getWidth(); // Change - getWidth() and getHeight() for BufferedImage\n int width2 = img2.getWidth(); // take no arguments\n int height1 = img1.getHeight();\n int height2 = img2.getHeight();\n if ((width1 != width2) || (height1 != height2)) {\n System.err.println(\"Error: Images dimensions mismatch\");\n System.exit(1);\n }\n\n // NEW - Create output Buffered image of type RGB\n BufferedImage outImg = new BufferedImage(width1, height1, BufferedImage.TYPE_INT_RGB);\n\n // Modified - Changed to int as pixels are ints\n int diff;\n int result; // Stores output pixel\n for (int i = 0; i < height1; i++) {\n for (int j = 0; j < width1; j++) {\n int rgb1 = img1.getRGB(j, i);\n int rgb2 = img2.getRGB(j, i);\n int r1 = (rgb1 >> 16) & 0xff;\n int g1 = (rgb1 >> 8) & 0xff;\n int b1 = (rgb1) & 0xff;\n int r2 = (rgb2 >> 16) & 0xff;\n int g2 = (rgb2 >> 8) & 0xff;\n int b2 = (rgb2) & 0xff;\n diff = Math.abs(r1 - r2); // Change\n diff += Math.abs(g1 - g2);\n diff += Math.abs(b1 - b2);\n diff /= 3; // Change - Ensure result is between 0 - 255\n // Make the difference image gray scale\n // The RGB components are all the same\n result = (diff << 16) | (diff << 8) | diff;\n outImg.setRGB(j, i, result); // Set result\n }\n }\n\n // Now return\n return outImg;\n}", "private static GriddedGeoDataSet calcRateXYZ(AbstractERF erf, double minMag) {\n\t\tGriddedRegion gridReg = new CaliforniaRegions.RELM_TESTING_GRIDDED(0.1d);\n\t\tGriddedGeoDataSet xyz = new GriddedGeoDataSet(gridReg, false);\n\t\t\n\t\tdouble duration = erf.getTimeSpan().getDuration();\n\t\t\n\t\tfor (ProbEqkSource source : erf) {\n\t\t\tfor (ProbEqkRupture rup : source) {\n\t\t\t\tif (rup.getMag() < minMag)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tRuptureSurface surf = rup.getRuptureSurface();\n\t\t\t\tHashSet<Integer> gridNodes = new HashSet<>();\n\t\t\t\t\n\t\t\t\tList<Location> locs = new ArrayList<>();\n\t\t\t\tif (surf instanceof Point2Vert_FaultPoisSource) {\n\t\t\t\t\tlocs.add(((Point2Vert_FaultPoisSource)source).getLocation());\n\t\t\t\t} else if (surf instanceof Point2Vert_SS_FaultPoisSource) {\n\t\t\t\t\tlocs.add(((Point2Vert_SS_FaultPoisSource)source).getLocation());\n\t\t\t\t} else {\n//\t\t\t\t\tlocs.addAll(surf.getPerimeter());\n\t\t\t\t\tlocs.addAll(surf.getEvenlyDiscritizedListOfLocsOnSurface());\n\t\t\t\t}\n\n\t\t\t\tfor (Location loc : locs) {\n\t\t\t\t\tint node = gridReg.indexForLocation(loc);\n\t\t\t\t\tif (node >= 0)\n\t\t\t\t\t\tgridNodes.add(node);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble rate = rup.getMeanAnnualRate(duration);\n\t\t\t\tfor (int node : gridNodes)\n\t\t\t\t\txyz.set(node, xyz.get(node)+rate);\n\t\t\t}\n\t\t}\n\t\t\n\t\txyz.log10();\n\t\t\n\t\treturn xyz;\n\t}", "@Test\n\tpublic void testAbsVal() {\n\t\tdouble tmpRndVal = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = Math.abs(doubleRandomNegativeNumbers());\n\t\t\tassertTrue( (tmpRndVal == ac.absoluteValue(tmpRndVal))\n\t\t\t\t\t|| (0.0 == ac.absoluteValue(tmpRndVal)) \n\t\t\t\t\t|| (-0.123456789 == ac.absoluteValue(tmpRndVal)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = Math.abs(doubleRandomPositiveNumbers());\n\t\t\tassertTrue((tmpRndVal == ac.absoluteValue(tmpRndVal)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.abs(zero);\n\t\t\tassertTrue( (inpResult == ac.absoluteValue(zero)) );\n\t\t}\n\t\t\n\t}", "public double absolute() {\r\n return Math.hypot(real_part, imaginary_part);\r\n }", "protected double asRelativeValue(final int generalization, final int max) {\n if (model != null && model.getResult() != null && model.getResult().getLattice() != null &&\n model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) {\n return ((double) generalization / (double) max) * 100d;\n } else {\n return 0;\n }\n }", "public int diffScore() {\n\t\treturn getWin() - getLose();\n\t}", "private double getSolutionDifference(int[] solution1, int[] solution2){\n double solutionDifference = 0;\n double solutionValue1 = calculateSolutionValue(solution1);\n double solutionValue2 = calculateSolutionValue(solution2);\n\n if(solutionValue1 >= solutionValue2){\n solutionDifference = solutionValue1 - solutionValue2;\n }\n else{\n solutionDifference = solutionValue2 - solutionValue1;\n }\n\n return solutionDifference;\n }", "private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}", "default double euclideanDistanceAbs(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = Math.abs(a[i] - b[i]);\n sum += d * d;\n }\n return Math.sqrt(sum);\n }", "public double abs() {\n\t\treturn Math.sqrt(real * real + imag * imag);\n\t}", "public int resta(){\r\n return x-y;\r\n }", "@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "private double deltaAbs(DMatrixRMaj M1, DMatrixRMaj M2){\n int nElements = M1.numCols*M1.numCols;\n\n Equation eq = new Equation();\n eq.alias(M1, \"M1\", M2, \"M2\", nElements, \"n\");\n\n eq.process(\"d = sum(abs(M2 - M1)) / n\");\n\n return eq.lookupDouble(\"d\");\n }", "private int distanceUnscaled(int px, int py) {\n return (px - sx) * (ey - sy) - (py - sy) * (ex - sx);\r\n }", "public abstract double getSurfacearea();", "private static void correctWorldWrapping(ContourContainer contours,\n IMapDescriptor descriptor, MathTransform rastPosToLatLon)\n throws TransformException {\n long tZ0 = System.currentTimeMillis();\n\n WorldWrapChecker wwc = new WorldWrapChecker(\n descriptor.getGridGeometry());\n if (!wwc.needsChecking()) {\n return;\n }\n\n List<float[]> splitLines = new ArrayList<float[]>();\n List<Float> dupValues = new ArrayList<Float>();\n\n Iterator<float[]> lineIter = contours.xyContourPoints.iterator();\n Iterator<Float> valueIter = contours.contourVals.iterator();\n\n while (lineIter.hasNext()) {\n float[] data = lineIter.next();\n Float val = valueIter.next();\n double[] ll = new double[data.length];\n rastPosToLatLon.transform(data, 0, ll, 0, data.length / 2);\n boolean remove = false;\n int startIndex = 0;\n double lastLon = ll[0];\n for (int i = 2; i < ll.length; i += 2) {\n double lon = ll[i];\n if (wwc.check(lastLon, lon)) {\n remove = true;\n if (startIndex + 1 < i) {\n splitLines.add(Arrays.copyOfRange(data, startIndex, i));\n dupValues.add(val);\n }\n startIndex = i;\n }\n lastLon = lon;\n }\n if (remove) {\n lineIter.remove();\n valueIter.remove();\n if (startIndex + 1 < data.length) {\n splitLines.add(Arrays.copyOfRange(data, startIndex,\n data.length));\n dupValues.add(val);\n }\n }\n\n }\n contours.xyContourPoints.addAll(splitLines);\n contours.contourVals.addAll(dupValues);\n\n long tZ1 = System.currentTimeMillis();\n\n }", "public static void minMaxS(IplImage src, double min, double max, IplImage dst) {\n\n switch (src.depth) {\n case cxcore.IPL_DEPTH_8U: {\n ByteBuffer sb = src.getByteBuffer();\n ByteBuffer db = dst.getByteBuffer();\n for (int i = 0; i < sb.capacity(); i++) {\n db.put(i, (byte)Math.max(Math.min(sb.get(i) & 0xFF,max),min));\n }\n break; }\n case cxcore.IPL_DEPTH_16U: {\n ShortBuffer sb = src.getByteBuffer().asShortBuffer();\n ShortBuffer db = dst.getByteBuffer().asShortBuffer();\n for (int i = 0; i < sb.capacity(); i++) {\n db.put(i, (short)Math.max(Math.min(sb.get(i) & 0xFFFF,max),min));\n }\n break; }\n case cxcore.IPL_DEPTH_32F: {\n FloatBuffer sb = src.getByteBuffer().asFloatBuffer();\n FloatBuffer db = dst.getByteBuffer().asFloatBuffer();\n for (int i = 0; i < sb.capacity(); i++) {\n db.put(i, (float)Math.max(Math.min(sb.get(i),max),min));\n }\n break; }\n case cxcore.IPL_DEPTH_8S: {\n ByteBuffer sb = src.getByteBuffer();\n ByteBuffer db = dst.getByteBuffer();\n for (int i = 0; i < sb.capacity(); i++) {\n db.put(i, (byte)Math.max(Math.min(sb.get(i),max),min));\n }\n break; }\n case cxcore.IPL_DEPTH_16S: {\n ShortBuffer sb = src.getByteBuffer().asShortBuffer();\n ShortBuffer db = dst.getByteBuffer().asShortBuffer();\n for (int i = 0; i < sb.capacity(); i++) {\n db.put(i, (short)Math.max(Math.min(sb.get(i),max),min));\n }\n break; }\n case cxcore.IPL_DEPTH_32S: {\n IntBuffer sb = src.getByteBuffer().asIntBuffer();\n IntBuffer db = dst.getByteBuffer().asIntBuffer();\n for (int i = 0; i < sb.capacity(); i++) {\n db.put(i, (int)Math.max(Math.min(sb.get(i),max),min));\n }\n break; }\n case cxcore.IPL_DEPTH_64F: {\n DoubleBuffer sb = src.getByteBuffer().asDoubleBuffer();\n DoubleBuffer db = dst.getByteBuffer().asDoubleBuffer();\n for (int i = 0; i < sb.capacity(); i++) {\n db.put(i, Math.max(Math.min(sb.get(i),max),min));\n }\n break; }\n default: assert(false);\n }\n\n }", "public static double absScale( double val, double min, double max, double a, double b){\n double result;\n result = ((b - a) * (val - min) / (max - min)) + a;\n return result;\n }", "private void calcularDistanciaRecorrer(){\r\n\t\tfloat diferenciax = siguientePunto.x - posicion.x;\r\n\t\tfloat diferenciay = siguientePunto.y - posicion.y;\r\n\t\tdistanciaRecorrer = (float) Math.sqrt(diferenciax*diferenciax+diferenciay*diferenciay);\r\n\t}", "public void testToWGS84AndBack(ProjectionInfo projection) {\n\n try {\n Coord original = new CoordXY(100, 100);\n Coord world = Reproject.reprojectCoordinate(original, projection, WGS84);\n Coord result = Reproject.reprojectCoordinate(world, WGS84, projection);\n assertEquals(projection.getName() + \" failed.\", original.getX(),\n result.getX(), TOLERANCE);\n assertEquals(projection.getName() + \" failed.\", original.getY(),\n result.getY(), TOLERANCE);\n } catch (ProjectionException ex) {\n Logger.getLogger(UtmOtherTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public GridPosition subtract(GridPosition other) {\n return new GridPosition(posX - other.getX(), posY - other.getY());\n }", "boolean losCompare(double x1, double y1, double x2, double y2, CObject pHo)\r\n {\r\n double delta;\r\n int x, y;\r\n\r\n int xLeft = pHo.hoX - pHo.hoImgXSpot;\r\n int xRight = xLeft + pHo.hoImgWidth;\r\n int yTop = pHo.hoY - pHo.hoImgYSpot;\r\n int yBottom = yTop + pHo.hoImgHeight;\r\n\r\n if (x2 - x1 > y2 - y1)\r\n {\r\n delta = (double) (y2 - y1) / (double) (x2 - x1);\r\n if (x2 > x1)\r\n {\r\n if (xRight < x1 || xLeft >= x2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (xRight < x2 || xLeft >= x1)\r\n {\r\n return false;\r\n }\r\n }\r\n y = (int) (delta * (xLeft - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n y = (int) (delta * (xRight - x1) + y1);\r\n if (y >= yTop && y < yBottom)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n else\r\n {\r\n delta = (double) (x2 - x1) / (double) (y2 - y1);\r\n if (y2 > y1)\r\n {\r\n if (yBottom < y1 || yTop >= y2)\r\n {\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n if (yBottom < y2 || yTop >= y1)\r\n {\r\n return false;\r\n }\r\n }\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n x = (int) (delta * (yTop - y1) + x1);\r\n if (x >= xLeft && x < xRight)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n }", "public abstract float surfaceArea();", "@Test\n public void testFind_West() {\n\n double lat1 = 0.0;\n double lon1 = 0.0;\n double lat2 = 0.0;\n double lon2 = -10.0;\n double expResult = Math.toRadians(270);\n double result = Azimuth.find(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n }", "public double getValue(double x, double y){\n\n\tint i,j;\n\tdouble fracX,fracY;\n\tdouble Wxm, Wx0, Wxp, Wym, Wy0, Wyp;\n\tdouble Vm, V0, Vp;\n\n\n\tif(x < x_min || y < y_min || x > x_max || y > y_max){\n\t return z_min;\n\t}\n\n i = (int) ((x-x_min)/x_step + 0.5);\n j = (int) ((y-y_min)/y_step + 0.5);\n\n if( i < 1) i = 1;\n if( i > (nX-2)) i = nX-2;\n if( j < 1) j = 1;\n if( j > (nY-2)) j = nY-2;\t \n\n fracX = (x - x_min - i*x_step)/x_step;\n fracY = (y - y_min - j*y_step)/y_step;\n\n\tWxm = 0.5*(0.5 - fracX)*(0.5 - fracX);\n\tWxp = 0.5*(0.5 + fracX)*(0.5 + fracX);\n\tWx0 = 0.75 - fracX*fracX;\n\n\tWym = 0.5*(0.5 - fracY)*(0.5 - fracY);\n\tWyp = 0.5*(0.5 + fracY)*(0.5 + fracY);\n\tWy0 = 0.75 - fracY*fracY;\n\n\tVm = Wxm*gridData[i-1][j-1]+Wx0*gridData[i][j-1]+Wxp*gridData[i+1][j-1];\n\tV0 = Wxm*gridData[i-1][j] +Wx0*gridData[i][j] +Wxp*gridData[i+1][j];\n\tVp = Wxm*gridData[i-1][j+1]+Wx0*gridData[i][j+1]+Wxp*gridData[i+1][j+1];\n\n return Wym*Vm + Wy0*V0 + Wyp*Vp;\n }", "default DiscreteDoubleMap2D absoluteValue() {\r\n\t\treturn pushForward(Math::abs);\r\n\t}", "protected void normalizeCoordinates(double xr, double yr, double wr, double hr) {\n\t\tthis.x = (wr == 0.0) ? 0.0 : (this.pscX - xr) / wr;\n\t\tthis.y = (hr == 0.0) ? 0.0 : (this.pscY - yr) / hr;\n\t}", "public double[] calculateDrift(ArrayList<T> tracks){\n\t\tdouble[] result = new double[3];\n\t\t\n\t\tdouble sumX =0;\n\t\tdouble sumY = 0;\n\t\tdouble sumZ = 0;\n\t\tint N=0;\n\t\tfor(int i = 0; i < tracks.size(); i++){\n\t\t\tT t = tracks.get(i);\n\t\t\tTrajectoryValidIndexTimelagIterator it = new TrajectoryValidIndexTimelagIterator(t,1);\n\t\n\t\t\t//for(int j = 1; j < t.size(); j++){\n\t\t\twhile(it.hasNext()) {\n\t\t\t\tint j = it.next();\n\t\t\t\tsumX += t.get(j+1).x - t.get(j).x;\n\t\t\t\tsumY += t.get(j+1).y - t.get(j).y;\n\t\t\t\tsumZ += t.get(j+1).z - t.get(j).z;\n\t\t\t\tN++;\n\t\t\t}\n\t\t}\n\t\tresult[0] = sumX/N;\n\t\tresult[1] = sumY/N;\n\t\tresult[2] = sumZ/N;\n\t\treturn result;\n\t}", "@Test\n public void testApproximation() {\n int N = 100;\n Mesh mesh = new Mesh(equation.t0, equation.tN, N);\n Noise noise = new Noise(mesh, 10);\n\n // We will use SDG method to approximate with a polynomial degree of p = 4.\n int p = 4;\n SDG sdg = new SDG();\n ApproxGlobal approxGlobal = sdg.Solve(equation, noise, mesh, p);\n\n // For every element, we check that the approximation at the endpoint is within 10e-10\n // of the analytical solution.\n for(int i = 0; i < approxGlobal.localApproximations.length; i++){\n ApproxLocal local = approxGlobal.localApproximations[i];\n\n double totalNoise = noise.sumUntil(i);\n double t = mesh.elements[i].upperEndpoint;\n\n double expected = this.equation.exactSolution(t, totalNoise);\n double actual = local.terminal();\n\n assertEquals(expected, actual, 10e-10);\n }\n }", "public int getAbsHeightViewport() {\n return Math.abs((int)(0.5 + heightViewport));\n }", "private static int computeUnitsTrappedDynamicProgramming(int[] elevationMap) {\n int[] leftWalls = computeLeftWalls(elevationMap);\n int[] rightWalls = computeRightWalls(elevationMap);\n int units = 0;\n for (int x = 1; x < elevationMap.length; x++) {\n int current = elevationMap[x];\n int tallestLeft = leftWalls[x];\n int tallestRight = rightWalls[x];\n if (tallestLeft > current && tallestRight > current) {\n units += Math.min(tallestLeft, tallestRight) - current;\n }\n }\n return units;\n }", "public static double computeTolerance(vtkCanvas canvas, double tolerance)\n\t{\n\t\tdouble[] range = canvas.GetRenderer().GetActiveCamera().GetClippingRange();\n\t\tdouble n = range[0];\n\t\tdouble f = range[1];\n\t\tdouble distance = canvas.GetRenderer().GetActiveCamera().GetDistance();\n\t\t\n\t\tdouble distanceTolerance = tolerance * (f - n);\n\n\t\t// Compute the z of the focal point (point of interest)\n\t\tdouble d1 = eyeZToNormalizedEyeZ(distance, n, f);\n\n\t\t// Compute the z of the distance tolerance\n\t\t// If we are before the far we take distance + distanceTolerance else we take -\n\t\tdouble d2 = (distance + distanceTolerance < f) ? distance + distanceTolerance : distance - distanceTolerance;\n\t\td2 = eyeZToNormalizedEyeZ(d2, n, f);\n\n\t\t// Compute the delta tolerance for the z-buffer value\n\t\treturn Math.abs(d1 - d2);\n\t}", "public static double absoluteDistance(Prototype one, Prototype two)\r\n {\r\n double[] oneInputs = one.getInputs();\r\n double[] twoInputs = two.getInputs();\r\n //int _size = one.numberOfInputs();\r\n double acc = 0.0;\r\n for (int i = 0; i < numberOfInputs; ++i)\r\n {\r\n acc += Math.abs(oneInputs[i] - twoInputs[i]);\r\n }\r\n\r\n return acc;\r\n }", "public double getDistance()\n {\n return Math.abs(getDifference());\n }", "public double getAbsPosition() {\n double distCM = ToFSerial.get() - startDist;\n //System.out.println(\"Dist in CM \" + distCM);\n\n double distIn = distCM * Constants.k_CMtoIn;\n //System.out.println(\"Dist in In \" + distIn);\n\n return (int) (1000 * distIn); \n\n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "private double convUnits(double val, double origMaxVal, double curMaxVal) {\n return (val*(curMaxVal/origMaxVal));\n }", "public Point deltaProject() {\n Point returnPoint = new Point();\n Point tempPoint = new Point(project());\n returnPoint.x = tempPoint.x - endPoint.x;\n returnPoint.y = tempPoint.y - endPoint.y;\n return returnPoint;\n }", "Double maxOfDisplacements(ArrayList<Double> dispA){\r\n\t\tObject minvalobj = Collections.min(dispA);\r\n\t\tObject maxvalobj = Collections.max(dispA);\r\n\t\tIJ.log(\"Max displacement\" + maxvalobj);\r\n\t\tIJ.log(\"Min displacement\" + minvalobj);\r\n\t\tdouble minval = (Double) minvalobj;\r\n\t\tdouble maxval = (Double) maxvalobj;\t\t\r\n\t\tdouble maxdisp = maxval;\r\n\t\tif (Math.abs(maxval) < Math.abs(minval)) \r\n\t\t\tmaxdisp = minval;\r\n\t\telse\r\n\t\t\tmaxdisp = maxval;\t\t\r\n\t\treturn maxdisp;\r\n\t}", "@Test\n public void testFind_East() {\n\n double lat1 = 0.0;\n double lon1 = 0.0;\n double lat2 = 0.0;\n double lon2 = 10.0;\n double expResult = Math.toRadians(90);\n double result = Azimuth.find(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n }", "private ArrayList<Float> FindRasterCellOnLine(int x1, int y1, int x2, int y2) {\n // delta of exact value and rounded value of the dependant variable\n ArrayList<Float> zvalue = new ArrayList<Float>();\n int d = 0;\n\n int dy = Math.abs(y2 - y1);\n int dx = Math.abs(x2 - x1);\n\n int dy2 = (dy << 1); // slope scaling factors to avoid floating\n int dx2 = (dx << 1); // point\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n if (dy <= dx) {\n for (;;) {\n //get a new pair of x1, y1\n float zvaluenow = nctest.GetAttribute(x1, y1);\n if (zvaluenow==-100000000)\n break;\n zvalue.add(zvaluenow);\n \n \n if (x1 >= x2) {\n break;\n }\n x1 += ix;\n d += dy2;\n if (d > dx) {\n y1 += iy;\n d -= dx2;\n }\n }\n } else {\n for (;;) {\n //get a new pair of x1, y1\n float zvaluenow = nctest.GetAttribute(x1, y1);\n if (zvaluenow==-100000000)\n break;\n zvalue.add(zvaluenow);\n if (y1 >= y2) {\n break;\n }\n y1 += iy;\n d += dx2;\n if (d > dy) {\n x1 += ix;\n d -= dy2;\n }\n }\n }\n\n return zvalue;\n }", "private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public double calculareRSquared() {\r\n RealVector predictedY = new ArrayRealVector(this.expectedRegressandValues);\r\n return 1 - calculateResidualSumOfSquares(predictedY) / calculateTotalSumOfSquares();\r\n\r\n }", "public double calculatePolyVectorError( List<ConvexPolygon> ls){\n Group image = new Group();\n for (ConvexPolygon p : ls){\n image.getChildren().add(p);\n }\n\n WritableImage wimg = new WritableImage(maxX, maxY);\n image.snapshot(null, wimg);\n PixelReader pr = wimg.getPixelReader();\n\n double res=0;\n for (int i=0;i<maxX;i++){\n for (int j=0;j<maxY;j++){\n Color c = pr.getColor(i, j);\n res += Math.pow(c.getBlue()-target[i][j].getBlue(),2)\n +Math.pow(c.getRed()-target[i][j].getRed(),2)\n +Math.pow(c.getGreen()-target[i][j].getGreen(),2);\n }\n }\n return Math.sqrt(res);\n }", "protected double asRelativeValue(final InformationLoss<?> infoLoss) {\n if (model != null && model.getResult() != null && model.getResult().getLattice() != null &&\n model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) {\n return infoLoss.relativeTo(model.getResult().getLattice().getMinimumInformationLoss(),\n model.getResult().getLattice().getMaximumInformationLoss()) * 100d;\n } else {\n return 0;\n }\n }", "public double getDelta(CompRunData old_run, CompRunData new_run, String label) {\r\n if (old_run.getValue(label) == null)\r\n common.failure(\"can not find label: \" + label);\r\n double old_val = ((Double) old_run.getValue(label)).doubleValue();\r\n double new_val = ((Double) new_run.getValue(label)).doubleValue();\r\n double delta = old_val - new_val;\r\n\r\n /* For response time of course less is good, not bad: */\r\n if (label.equalsIgnoreCase(\"Resp\"))\r\n return delta * 100. / old_val;\r\n else\r\n return delta * 100. / old_val * -1;\r\n\r\n }", "public int differencePoints(){\n return player1Score - player2Score;\n }", "@Test\n public void testAbsEqual() { \n assertTrue(!Double.isNaN(sLog.fromReal(Double.POSITIVE_INFINITY)));\n assertTrue(Double.isNaN(sLog.fromReal(Double.NEGATIVE_INFINITY)));\n {\n double v1 = sLog.fromReal(3);\n double v2 = sLog.fromReal(-3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(0l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertFalse(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n {\n double v1 = sLog.fromReal(-3);\n double v2 = sLog.fromReal(3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(1l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertTrue(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n }", "public static void useAbsDiff(Mat average_image, Mat current_image, Mat binary_image, int binary_threshold)\n {\n for (int i = 0; i < average_image.width(); i++) { // Go through each pixel in the image\n for (int j = 0; j < average_image.height(); j++) {\n double[] first = average_image.get(j, i); // Retrieve pixel values\n double[] second = current_image.get(j, i);\n int sum = Math.abs((int) (first[0] - second[0])); // Calculate absolute difference\n binary_image.put(j, i, sum); // Put difference value in the result image\n }\n }\n //Turn the images to black and white, where white is movement and black is none movment\n Imgproc.threshold(binary_image, binary_image, binary_threshold, 255, Imgproc.THRESH_BINARY);\n }", "public BigDecimal getMatchInvDifference()\n\t{\n\t\tif (isDescription())\n\t\t\treturn Env.ZERO;\n\t\tBigDecimal retValue = getMovementQty();\n\t\tMMatchInv[] inv = getMatchInv();\n\t\tfor (MMatchInv matchInv : inv) {\n\t\t\tretValue = retValue.subtract (matchInv.getQty());\n\t\t}\n\t\tlog.finer(\"#\" + retValue);\n\t\treturn retValue;\n\t}", "public double altezza(){\r\n\t\treturn Math.abs(this.vad.getY()-this.vbs.getY());\r\n\t}", "private static int computeUnitsTrapped(int[] elevationMap) {\n int units = 0;\n for (int x = 0; x < elevationMap.length; x++) {\n int current = elevationMap[x];\n int tallestLeft = -1;\n int left = x - 1;\n while (left >= 0) {\n tallestLeft = Math.max(elevationMap[left], tallestLeft);\n left--;\n }\n\n int tallestRight = -1;\n int right = x + 1;\n while (right < elevationMap.length) {\n tallestRight = Math.max(elevationMap[right], tallestRight);\n right++;\n }\n\n if (tallestLeft > current && tallestRight > current) {\n units += Math.min(tallestLeft, tallestRight) - current;\n }\n }\n\n return units;\n }", "public void calculateRenderCoords() {\n\t\tif(!enabled())\n\t\t\treturn;\n\t\t\n\t\tdouble xSpeed = -(startX - tarX);\n\t\tdouble ySpeed = -(startY - tarY);\n\t\t\n\t\tdouble fpsPerTick = 0;\n\t\tif(USE_EXPECTED)\n\t\t\tfpsPerTick = (double) Screen.expectedFps / Updater.expectedUps;\n\t\telse\n\t\t\tfpsPerTick = (double) Screen.fps / Updater.ups;\n\t\t\n\t\tdouble moveX = xSpeed / fpsPerTick;\n\t\tdouble moveY = ySpeed / fpsPerTick;\n\t\t\n\t\tif(isValidDouble(moveX))\n\t\t\trenderX += moveX;\n\t\tif(isValidDouble(moveY))\n\t\t\trenderY += moveY;\n\t\t\n\t\tif((int) renderX == (int) track.getX() || (int) renderX == (int) tarX)\n\t\t\tstartX = renderX;\n\t\tif((int) renderY == (int) track.getY() || (int) renderY == (int) tarY)\n\t\t\tstartY = renderY;\n\t}", "private double getHeuristic(MapLocation current, MapLocation goal) {\n\t\treturn Math.max(Math.abs(current.x - goal.x), Math.abs(current.y - goal.y));\n\t}", "private boolean _no_transformation_needed(int[] src_size, double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double xres = (dst_bbox[2]-dst_bbox[0])/dst_size[0];\n double yres = (dst_bbox[3]-dst_bbox[1])/dst_size[1];\n\n\n return (equals(src_size, dst_size) &&\n equals(this.src_srs, this.dst_srs) &&\n SRS.bbox_equals(src_bbox, dst_bbox, xres/10, yres/10));\n /*\n xres = (dst_bbox[2]-dst_bbox[0])/dst_size[0]\n yres = (dst_bbox[3]-dst_bbox[1])/dst_size[1]\n return (src_size == dst_size and\n self.src_srs == self.dst_srs and\n bbox_equals(src_bbox, dst_bbox, xres/10, yres/10))\n */\n }", "boolean updateValue() {\n boolean ret;\n\n if (Math.abs(curUtilityValue - nextUtilityValue) < Math.abs(curUtilityValue) * MAX_ERR_PERCENT / 100)\n ret = true;\n else {\n ret = false;\n // System.out.println(\" no match cell: x: \"+x+\" y: \"+y);\n }\n curUtilityValue = nextUtilityValue;\n return ret;\n\n }", "private void equalize(BufferedImage img) {\n \t\tfloat minSat = Float.MAX_VALUE, maxSat = Float.MIN_VALUE;\n \t\tfloat minVal = Float.MAX_VALUE, maxVal = Float.MIN_VALUE;\n \t\t\n \t\tint[] prgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tint[] valCount = new int[16];\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\tminSat = Math.min(hsv[1], minSat);\n \t\t\t\tmaxSat = Math.max(hsv[1], maxSat);\n \t\t\t\tminVal = Math.min(hsv[2], minVal);\n \t\t\t\tmaxVal = Math.max(hsv[2], maxVal);\n \t\t\t\tvalCount[(int) (hsv[2] / 16)]++;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint maxPt = -1;\n \t\tfor (int i = 1; i < 15; i++) {\n \t\t\tif (maxPt == -1 || valCount[i] >= valCount[maxPt]) {\n \t\t\t\tmaxPt = i;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint valueMidpoint = maxPt * 16;\n \t\t\n \t\tSystem.out.println(\"Equalize: sat = \"+minSat+\" to \" +maxSat+\"; val = \" + minVal + \" to \" + maxVal+\"; value midpoint = \" + valueMidpoint);\n \t\tfloat satScale = 1.0f - minSat;\n \t\tfloat valScale = 255 - minVal;\n \t\tfloat satDiff = maxSat - minSat;\n \t\tfloat valDiff = maxVal - minVal;\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\t\n \t\t\t\tif (satDiff < 0.5)\n \t\t\t\t\thsv[1] = ((hsv[1] - minSat) / satDiff) * satScale + minSat;\n \t\t\t\tif (valDiff < 128)\n \t\t\t\t\thsv[2] = ((hsv[2] - minVal) / valDiff) * valScale + minVal;\n \n \t\t\t\thsvToRgb(hsv[0], hsv[1], hsv[2], prgb);\n \t\t\t\t\n \t\t\t\timg.setRGB(x, y, rgb8ToPixel(prgb) | (pixel & 0xff000000));\n \t\t\t}\n \t\t}\n \t}", "public int[] getSumAbsoluteDifferences2(int[] nums) {\n int n = nums.length;\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n res[0] += nums[i] - nums[0];\n }\n for (int i = 1; i < n; i++) {\n res[i] = res[i - 1] + (nums[i] - nums[i - 1]) * (i * 2 - n);\n }\n return res;\n }", "private double getSqEucDist(float[] arr1, float[] arr2, double minDist) {\n\t double dist = 0;\n\t for(int i: dimRngIndxDesc) {\n\t\t dist+= Math.pow(arr1[i]-arr2[i], 2);\n\t\t if(minDist!=-2 && dist>minDist)\n\t\t\t return -1;\n\t }\n\t return dist;\n }", "private static double nonExactTest(double[] dataSub) {\r\n\t\t\r\n\t\t// copied from from R - https://svn.r-project.org/R/trunk/src/library/stats/R/wilcox.test.R\r\n\t\tdataSub = DataUtil.removeZeros(dataSub);\r\n\t\t\r\n\t\tfinal int n = dataSub.length;\r\n\t\tdouble[] dataSubAbs = new double[n];\r\n\t\tfor( int i=0; i<n; ++i )\r\n\t\t\tdataSubAbs[i] = Math.abs(dataSub[i]);\r\n\t\t\r\n\t\t// rank the absolute version of the dataA - dataB array on its own\r\n\t\tRankCalculator rankCalc = new RankCalculator(dataSubAbs);\r\n\t\tdouble [] ranks = rankCalc.getRanks();\r\n\t\tdouble totalR = 0;\r\n\t\t\r\n\t\t// add to dataList all values to establish which are > 0\t\t\r\n\t\t// List<Double> dataList = new ArrayList<Double>();\r\n\t\tMultiset<Double> dataList = HashMultiset.create();\t\t\r\n\t\tfor( int i=0; i<n; ++i )\r\n\t\t\tdataList.add(dataSub[i]);\r\n\t\t\r\n\t\tfor( int i=0; i<n; ++i ) { \r\n\t\t\t//add the ranks to totalR of all positive values\r\n\t\t\tfinal double val = dataSubAbs[i];\r\n\t\t\tif( val != 0 )\r\n\t\t\t\ttotalR += ranks[i];\r\n\t\t\tif( dataList.contains( -val ) ){\r\n\t\t\t\t// Don't add the rank (i.e. subtract the rank that we've just added) \r\n\t\t\t\t// if it is associated with a negative value\r\n\t\t\t\ttotalR -= ranks[i];\r\n\t\t\t\t// dataList.remove(new Double(-val));\r\n\t\t\t\tdataList.remove( -val );\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Add up ties\r\n\t\tList<Integer> ties = rankCalc.getTies();\r\n\t\t// ListIterator<Integer> tiesIter = ties.listIterator();\r\n\t\tdouble tiesTotal = 0;\r\n\t\t// while( tiesIter.hasNext() ){\r\n\t\tfor( Integer val : ties ){\t\t\r\n\t\t\t// double val = tiesIter.next();\r\n\t\t\ttiesTotal += (Math.pow(val, 3) - val);\r\n\t\t}\r\n\t\t\r\n final double sigma = Math.sqrt(n * (n + 1) * (2 * n + 1) / 24 - tiesTotal / 48);\r\n double z = totalR - n * (n + 1)/4.0;\r\n // continuity correction - assuming two sided\r\n if(z > 0)\r\n \tz -= 0.5;\r\n else\r\n \tz += 0.5;\r\n z /= sigma;\r\n \r\n // get the p-value. Code taken from: \r\n // org.apache.commons.math3.stat.inference.WilcoxonSignedRankTest\r\n NormalDistribution standardNormal = new NormalDistribution(0, 1); \r\n return 2*Math.min(standardNormal.cumulativeProbability(z),\r\n \tstandardNormal.cumulativeProbability(-z));\r\n\t}", "double getSquareDistance();", "private float signedArea()\n {\n float twiceArea = 0.0f;\n\n for (int i = 0; i < size(); i++)\n {\n PointF curr = get(i);\n PointF next = get(i + 1);\n twiceArea += curr.x * next.y - next.x * curr.y;\n }\n\n return twiceArea / 2;\n }", "ArrayList<Integer> adjustCoords(int x1, int y1, int x2, int y2) {\n ArrayList<Integer> adjusted_coords = new ArrayList<>();\n while ((x2-x1)*(y2-y1) < desired_rect_area) {\n x1 -= paint.getStrokeWidth()/2 + 2;\n y1 -= paint.getStrokeWidth()/2 + 2;\n x2 += paint.getStrokeWidth()/2 + 2;\n y2 += paint.getStrokeWidth()/2 + 2;\n }\n adjusted_coords.add(x1);\n adjusted_coords.add(y1);\n adjusted_coords.add(x2);\n adjusted_coords.add(y2);\n return adjusted_coords;\n }", "@Test\n public void chunkPosShouldBeMinus2ByMinus2WhenPlayerPosIsMinus111byMinus111() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n final int playerPos = -111;\n final int expectedChunkPos = -2;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(playerPos, playerPos)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(expectedChunkPos, expectedChunkPos))\n );\n }", "@Test\n public void interpolate() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.4f, 4.6f, 4.4f, 5.4f}; // 0.7 a + 0.3 b\n float[] expect0 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; // a value\n float[] expect1 = new float[] {1.0f, 6.0f, 3.0f, 4.0f}; // b value\n float alpha = 0.3f;\n // 1)\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect0, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect1, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, alpha);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n \n \n float[] dest2 = new float[4]; \n float[] a2 = new float[] { 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n //2)\n Vec4f.interpolate(dest2, a2, b2, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect0, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect1, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, alpha);\n assertTrue(Vec4f.epsilonEquals(dest2, expect, 1E-5f));\n }" ]
[ "0.47578216", "0.4735524", "0.46687567", "0.4628498", "0.46248472", "0.45898095", "0.45870945", "0.45640168", "0.45581526", "0.45577383", "0.45552075", "0.4554753", "0.4534706", "0.4528444", "0.45061177", "0.450396", "0.45017993", "0.4483049", "0.44767162", "0.44462794", "0.44462794", "0.4436249", "0.44235972", "0.44185504", "0.44184223", "0.44039533", "0.4397077", "0.43950355", "0.43852523", "0.43832645", "0.43801764", "0.4365689", "0.436299", "0.43552187", "0.43536362", "0.4350895", "0.43406552", "0.43336913", "0.4318566", "0.43154025", "0.4297777", "0.4287856", "0.428584", "0.42752197", "0.42736492", "0.42694938", "0.42632982", "0.42505568", "0.42448232", "0.42382437", "0.4230815", "0.42216536", "0.42173088", "0.42161462", "0.42132315", "0.42130002", "0.42075577", "0.418789", "0.41775846", "0.417302", "0.41718605", "0.41681647", "0.41636187", "0.41608033", "0.41560924", "0.41560122", "0.41487616", "0.41451448", "0.41449887", "0.4144898", "0.41447896", "0.41406673", "0.41394576", "0.41390643", "0.4137229", "0.41345006", "0.4128343", "0.41265053", "0.4124863", "0.41180044", "0.41045246", "0.41038513", "0.4101596", "0.4100786", "0.40997952", "0.409967", "0.40990365", "0.40886423", "0.4088297", "0.4087884", "0.4087623", "0.40861455", "0.40855968", "0.4081601", "0.40806702", "0.40805888", "0.40783924", "0.40781555", "0.40733293", "0.40732485" ]
0.67178255
0
Check if a remote port is taken
public static boolean remotePortTaken(String node, int port, int timeout) { Socket s = null; try { s = new Socket(); s.setReuseAddress(true); SocketAddress sa = new InetSocketAddress(node, port); s.connect(sa, timeout * 1000); } catch (IOException e) { if (e.getMessage().equals("Connection refused")) { return false; } if (e instanceof SocketTimeoutException || e instanceof UnknownHostException) { throw e; } } finally { if (s != null) { if (s.isConnected()) { return true; } else { } try { s.close(); } catch (IOException e) { } } return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPort();", "boolean hasPort();", "boolean hasRemoteHost();", "public boolean hasPort() {\n return !ports.isEmpty();\n }", "@SuppressWarnings(\"unused\")\n\tpublic static boolean isPortUsing(String host, int port) throws UnknownHostException {\n\t\tboolean flag = false;\n\t\tInetAddress theAddress = InetAddress.getByName(host);\n\t\ttry {\n\t\t\tSocket socket = new Socket(theAddress,port);\n\t\t\tflag = true;\n\t\t} catch (IOException e) {\n\n\t\t}\n\t\treturn flag;\n\t}", "public static boolean isLoclePortUsing(int port){\n\t\tboolean flag = true;\n\t\ttry {\n\t\t\tflag = isPortUsing(\"127.0.0.1\", port);\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn flag;\n\t}", "private boolean isPortInUse(String portId) {\n return false;\n }", "private static boolean isLocalUdpPortFree(int port) {\r\n \tboolean res = false;\r\n \ttry {\r\n \t\tDatagramConnection conn = NetworkRessourceManager.createDatagramConnection();\r\n \t\tconn.open(port);\r\n conn.close();\r\n \t\tres = true;\r\n \t} catch(IOException e) {\r\n \t\tres = false;\r\n \t}\r\n \treturn res;\r\n }", "boolean isIsRemote();", "public static boolean isPortAvailable(int port) {\n try {\n bindPort(\"127.0.0.1\", port);\n bindPort(InetAddress.getLocalHost().getHostAddress(), port);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public boolean hasPort() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"hasPort()\");\n Via via=(Via)sipHeader;\n return via.hasPort();\n }", "public native int getRemotePort() throws IOException,IllegalArgumentException;", "public static boolean isPortAvailable(int port) {\r\n\t if (port < MIN_PORT_NUMBER || port > MAX_PORT_NUMBER) {\r\n\t throw new IllegalArgumentException(\"Port out of range: \" + port);\r\n\t }\r\n\r\n\t ServerSocket ss = null;\r\n\t DatagramSocket ds = null;\r\n\t try {\r\n\t ss = new ServerSocket(port);\r\n\t ss.setReuseAddress(true);\r\n\t ds = new DatagramSocket(port);\r\n\t ds.setReuseAddress(true);\r\n\t return true;\r\n\t } catch (IOException e) {}\r\n\t finally {\r\n\t if (ds != null){\r\n\t \tds.close();\r\n\t }\r\n\r\n\t if (ss != null) {\r\n\t try {\r\n\t ss.close();\r\n\t } catch (IOException e) {}\r\n\t }\r\n\t }\r\n\t return false;\r\n\t}", "int localPort();", "private boolean isReachable(String addr, int openPort) {\n try \n {\n ClienteUDP cliente = new ClienteUDP(addr);\n cliente.enviar(\"hola,df,df\");\n String rpta = cliente.recibir();\n if(rpta.equals(\"hola\"))\n return true;\n }catch(Exception e)\n {\n return false;\n }\n return false;\n }", "public boolean getHasPort() {\n return this.hasPort;\n }", "public boolean hasPort() {\n return fieldSetFlags()[6];\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkInfoPort() {\n\t\tboolean flag = oTest.checkInfoPort();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean tunnelAvailable();", "@Nullable\n @Generated\n @Selector(\"remotePort\")\n public native NSNumber remotePort();", "public static boolean isTCPPortFreeToUse(int port) {\n if (port < MIN_PORT_NUMBER || port > MAX_PORT_NUMBER) {\n throw new IllegalArgumentException(\"Invalid start port: \" + port);\n }\n\n try (ServerSocket ss = new ServerSocket(port)) {\n ss.setReuseAddress(true);\n return true;\n } catch (IOException e) {\n // Do nothing\n }\n return false;\n }", "private void probeTcpPort(String ip, int port) throws IOException\n {\n Socket socket = new Socket();\n SocketAddress address = new InetSocketAddress(ip, port);\n\n socket.connect(address, TIMEOUT);\n\n log.debug(\"Ip: \" + ip + \" appears to be open... on port: \" + port);\n\n socket.close();\n\n // let exceptions bubble\n }", "boolean hasHost();", "boolean hasHost();", "public boolean isInputPortOpen(int portNumber) { throw new RuntimeException(\"Stub!\"); }", "public static boolean isRegistered(int port) {\n\tRemote remote = null;\n\ttry {\n\t Registry r = LocateRegistry.getRegistry(port);\n\t remote = r.lookup(REGISTRY_NAME);\n\t} catch (AccessException e) {\n\t return false;\n\t} catch (RemoteException e) {\n\t return false;\n\t} catch (NotBoundException e) {\n\t return false;\n\t}\n\treturn remote != null;\n }", "boolean hasSock();", "public boolean hasPort() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRemoteHost() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRemoteHost() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isOpen(int port)\n {\n try(DatagramSocket connection = new DatagramSocket(port, getInetAddress()))\n {\n addOpenPort(port);\n return true;\n }\n catch(IOException ioe)\n {\n return false;\n }\n }", "public boolean hasPort() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasResponsePort();", "public boolean hasPort() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "Integer listeningPort();", "@Override\n\tpublic boolean isIsPort() {\n\t\treturn _scienceApp.isIsPort();\n\t}", "public boolean validPort(int port) {\n if (port >= 0 && port <= 65535) {\n return true;\n } else return false;\n }", "public boolean hasPort() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isReal(InetSocketAddress remote);", "public boolean hasPort(Pt port) {\n return ports.contains(port);\n }", "@Override\n\tpublic int getRemotePort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getRemotePort() {\n\t\treturn 0;\n\t}", "public int getPort();", "public int getPort();", "public int getPort();", "public boolean hasPort(String id) {\n for(Pt port : ports){\n if(port.getId().equals(id))\n return true;\n }\n return false;\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getAvailableServerPort(boolean paramBoolean1, boolean paramBoolean2) {\n/* 453 */ if (_portsPool == null) {\n/* 454 */ return -1;\n/* */ }\n/* 456 */ this._portIsAutoSelected = false; byte b;\n/* 457 */ for (b = 0; b < _portsPool.length; b++) {\n/* 458 */ int i; if ((i = _portsPool[b]) != 0 && (!paramBoolean1 || !isExcludedPort(i))) {\n/* */ \n/* */ try {\n/* */ \n/* */ \n/* 463 */ (new ServerSocket(i)).close();\n/* 464 */ return i;\n/* 465 */ } catch (IOException iOException) {}\n/* */ }\n/* */ } \n/* 468 */ if (paramBoolean2) {\n/* 469 */ b = 0; try {\n/* */ int i;\n/* */ do {\n/* 472 */ ServerSocket serverSocket = new ServerSocket(0);\n/* 473 */ i = serverSocket.getLocalPort();\n/* 474 */ serverSocket.close();\n/* 475 */ } while (paramBoolean1 && isExcludedPort(i));\n/* 476 */ this._portIsAutoSelected = true;\n/* 477 */ return i;\n/* */ }\n/* 479 */ catch (IOException iOException) {}\n/* */ } \n/* 481 */ return -1;\n/* */ }", "boolean hasQueryPort();", "@Override\n\t\tpublic int getRemotePort() {\n\t\t\treturn 0;\n\t\t}", "@Override\n public boolean isPortInUrl() {\n return false;\n }", "@Override\n public boolean isPortInUrl() {\n return false;\n }", "private static int checkPort(String raw) \n\t{\n\t\tint portNumber = -1;\n\t\ttry \n\t\t{\n\t\t\tportNumber = Integer.parseInt(raw);\n\t\t\t\n\t\t\tif(portNumber <= 0)\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Port must be positive.\");\n\t\t\t}\n\t\t}catch(Exception e) \n\t\t{\n\t\t\terrorQuit(\"Invalid port.\");\n\t\t}\n\t\treturn portNumber;\n\t}", "String getPort();", "public boolean getOpenPorts() {\n // Declare variables\n Socket sock;\n InetSocketAddress isa;\n\n // Check if port range is valid\n if(mEndPort-mStartPort < 0 ) {\n return false;\n }\n else if(iStack.size() == 0){\n return false;\n }\n\n // Declare a 2D int array of size of the range of ports\n mPortsStatus = new int[iStack.size()][2];\n\n // Print scanning a continue to print dots as long as the scanning continues\n // so the user knows the program hasn't locked.\n System.out.print(\"\\r\\nScanning\");\n\n for (int i = 0; i < mPortsStatus.length; i++) {\n if(i % 5 == 0) {\n System.out.print(\".\");\n }\n\n // If we can connect to the socket, it's open. Mark that element in the array as\n // true. If there's an exception, it's closed, so mark it false.\n try {\n isa = new InetSocketAddress(mIP, iStack.peek());\n sock = new Socket();\n sock.connect(isa, mTimeout);\n sock.close();\n mPortsStatus[i][0] = iStack.pop();\n mPortsStatus[i][1] = 1;\n } catch (Exception ex) {\n mPortsStatus[i][0] = iStack.pop();\n mPortsStatus[i][1] = 0;\n }\n }\n\n // Everything went okay, so return true.\n return true;\n }", "Integer destinationPort();", "abstract protected int PortToRunOn();", "private int determineFreePort() throws IOException\n {\n final Socket sock = new Socket();\n sock.bind(null);\n final int port = sock.getLocalPort();\n sock.close();\n return port;\n }", "@VisibleForTesting\n protected int findFreePort() {\n ServerSocket server;\n try {\n server = new ServerSocket(0);\n }\n catch (IOException e) {\n throw Throwables.propagate(e);\n }\n\n Integer portNumber = server.getLocalPort();\n try {\n server.close();\n }\n catch (IOException e) {\n throw new RuntimeException(\"Unable to release port \" + portNumber, e);\n }\n return portNumber;\n }", "public int getPortIfSpecified() {\n String portAsString = getPropertyAsString(PORT);\n if(portAsString == null || portAsString.isEmpty()) {\n return UNSPECIFIED_PORT;\n }\n \n try {\n return Integer.parseInt(portAsString.trim());\n } catch (NumberFormatException e) {\n return UNSPECIFIED_PORT;\n }\n }", "int serverPort ();", "public void validatePort(String port) {\r\n\t\tthis.isPortValid = model.isValidPort(port);\r\n\r\n\t\tif (this.isPortValid) {\r\n\t\t\tview.port.setStyle(\"-fx-text-inner-color: green;\");\r\n\t\t\tcheckButtonUnlock();\r\n\t\t} else {\r\n\t\t\tview.port.setStyle(\"-fx-text-inner-color: red;\");\r\n\t\t\tlockButton();\r\n\t\t}\r\n\t}", "java.lang.String getPort();", "java.lang.String getPort();", "public static boolean isPortFreeToUse(int port) {\n return isUDPPortFreeToUse(port) && isTCPPortFreeToUse(port);\n }", "boolean testConnection(RemoteService service);", "public void testGetPort() {\n }", "void port(int port);", "void port(int port);", "public final void setRemoteSocketPort(int port){\r\n remoteSocketPort = port;\r\n }", "int getInPort();", "int getInPort();", "public int getPort() {\n if (state >= CONNECTED)\n return remotePort;\n else\n return 0;\n }", "public boolean setPort(int port){\r\n\t\tif(port < 1024) return false;\r\n\t\ttry {\r\n\t\t\tthis.workerobj.put(WorkerController.PORT, port);\r\n\t\t\treturn true;\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean isUDPPortFreeToUse(int port) {\n if (port < MIN_PORT_NUMBER || port > MAX_PORT_NUMBER) {\n throw new IllegalArgumentException(\"Invalid start port: \" + port);\n }\n\n try (DatagramSocket ds = new DatagramSocket(port)) {\n ds.setReuseAddress(true);\n return true;\n } catch (IOException e) {\n // Do nothing\n }\n return false;\n }", "public static int findRandomOpenPort() {\n while (true) {\n try (final ServerSocket socket = new ServerSocket(1 + (int)(Math.random() * 65535))) {\n return socket.getLocalPort();\n }\n catch (final IOException ignored) {\n }\n }\n }", "int getServicePort();", "public int getPortIfSpecified() {\n String port_s = getPropertyAsString(PORT, UNSPECIFIED_PORT_AS_STRING);\n try {\n return Integer.parseInt(port_s.trim());\n } catch (NumberFormatException e) {\n return UNSPECIFIED_PORT;\n }\n }", "private boolean checkInList(String ip, int port) {\r\n\t\tif(this.ip.equals(ip) & this.port == port)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tif(nodes.size()>0) {\r\n\t\t\tSystem.out.println(\"checking if node already exists...\");\r\n\t\t\t\r\n\t\t\tfor (Node node : this.nodes) {\r\n\t\t\t\treturn node.ip.equals(ip) && node.port == port;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isConnected(String remoteName) {\n\t\treturn objectServerInputPort.isConnected(remoteName);\r\n\t}", "@Test\n public void testGetPort() {\n System.out.println(\"GetPort\");\n SServer instance = new SServer();\n int expResult = 0;\n int result = instance.GetPort();\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 }", "Computer findComputerByActiveTrueAndIpAndPort(String ip, int port);", "@Test\n public void testConnectToInvalidService()\n throws IOException\n {\n final boolean availability = ConnectionChecker.checkServiceAvailability(\"localhost\", 65534, 3000);\n\n assertFalse(availability);\n }", "public boolean isValidPort(String port) {\n\t\tfor(char x : port.toCharArray()) {\n\t\t\tif(!Character.isDigit(x)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean isOnline(String addressport) {\n synchronized (GUITracker.onlinePeer) {\n for (int i = 0; i < GUITracker.onlinePeer.size(); i++) {\n if (GUITracker.onlinePeer.get(i).equals(addressport)) {\n return true;\n }\n }\n }\n return false;\n }", "int getIntegPort();" ]
[ "0.77982527", "0.77982527", "0.7274775", "0.6893003", "0.6752766", "0.66624504", "0.6646055", "0.6598071", "0.6578943", "0.65388596", "0.65269506", "0.6504981", "0.64290017", "0.64005095", "0.6394645", "0.6267631", "0.6262639", "0.6253769", "0.62408465", "0.61947805", "0.6190746", "0.6155342", "0.61505514", "0.61505514", "0.61407954", "0.6133098", "0.61220944", "0.61071676", "0.61069053", "0.60988766", "0.60938203", "0.60783315", "0.60730284", "0.606448", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6063047", "0.6060032", "0.6049766", "0.6031955", "0.6015153", "0.59993076", "0.59958124", "0.59901816", "0.59901816", "0.59872085", "0.59872085", "0.59872085", "0.59712845", "0.5959871", "0.5959871", "0.593257", "0.5929529", "0.5923252", "0.59065753", "0.59065753", "0.58892417", "0.5881823", "0.5880551", "0.5876292", "0.586458", "0.58479613", "0.58449674", "0.5838995", "0.5827794", "0.5820174", "0.5814359", "0.5814359", "0.5778975", "0.5764325", "0.57549584", "0.57461", "0.57461", "0.5744004", "0.57417554", "0.57417554", "0.57250077", "0.57195413", "0.5718848", "0.5718838", "0.57167244", "0.5714793", "0.5713526", "0.5708476", "0.5704854", "0.5700429", "0.56995535", "0.5691885", "0.56694394", "0.56571376" ]
0.69591475
3
TODO Autogenerated method stub
public static void main(String[] args) { Scanner entrada = new Scanner(System.in); int quantidade_de_mulheres_loiras_olhos_azuis_idade_entre_18_25_anos_solteiras_salario_maior_10000 = 0; double maiorSalario = 0; String nomeMaiorSalario = ""; double menorSalario = 0; String nomeMenorSalario = ""; for (int i = 0; i < 50; i++) { System.out.print("Insira o nome: "); String nome = entrada.nextLine(); System.out.print("Insira a idade: "); int idade = entrada.nextInt(); entrada.nextLine(); System.out.print("Insira o sexo: "); char sexo = entrada.nextLine().charAt(0); // M = masculino // F = feminino System.out.print("Insira o estado Civil: "); char estadoCivil = entrada.nextLine().charAt(0); // C = casado // S = solteiro // O = outros System.out.println("Insira a cor dos olhos: "); char corDosOlhos = entrada.nextLine().charAt(0); // A = azul // C = castanho // P = preto // O = outros System.out.print("Insira a cor dos cabelos: "); char corDosCabelos = entrada.nextLine().charAt(0); // L = Loiro // P = Preto // C = Castanho // R = Ruivo System.out.print("Insira o salário: R$"); double salario = entrada.nextDouble(); entrada.nextLine(); System.out.println("Insira a escolaridade: "); int escolaridade = entrada.nextInt(); entrada.nextLine(); if (sexo == 'F' && corDosCabelos == 'L' && corDosOlhos == 'A' && idade >= 18 && idade < 25 && estadoCivil == 'S' && salario > 10000 && escolaridade == 4) { quantidade_de_mulheres_loiras_olhos_azuis_idade_entre_18_25_anos_solteiras_salario_maior_10000++; } if (salario > maiorSalario) { maiorSalario = salario; nomeMaiorSalario = nome; } if (salario < menorSalario || menorSalario == 0) { menorSalario = salario; nomeMenorSalario = nome; } } System.out.println( "Quantidade de mulheres loiras, de olhos azuis, com idade entre 18 e 25 anos, solteiras, salário maior que R$10.000 e curso superior completo: " + quantidade_de_mulheres_loiras_olhos_azuis_idade_entre_18_25_anos_solteiras_salario_maior_10000); System.out.println("Nome da pessoa com maior salário: " + nomeMaiorSalario); System.out.println("Diferença entre maior e menos salário: " + (maiorSalario - menorSalario)); entrada.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by Vlad on 06.03.2017.
public interface Citizen { public abstract void sayHello(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void init() {}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public void gored() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "Petunia() {\r\n\t\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void initialize() {}" ]
[ "0.57230276", "0.56955546", "0.5579076", "0.5519526", "0.5460072", "0.5452398", "0.54478276", "0.54478276", "0.5431735", "0.53956383", "0.5395328", "0.5353849", "0.5351188", "0.5337698", "0.5329835", "0.5325236", "0.5316389", "0.5314518", "0.5305703", "0.52959585", "0.52938867", "0.5292653", "0.52781814", "0.52781814", "0.52781814", "0.52781814", "0.52781814", "0.5276355", "0.52762306", "0.52573377", "0.5256877", "0.5256877", "0.5256877", "0.5256877", "0.5256877", "0.5256877", "0.5256263", "0.5255634", "0.52553344", "0.5230085", "0.5220394", "0.5219017", "0.5218238", "0.5218238", "0.5202428", "0.51997715", "0.51873624", "0.5184734", "0.5181783", "0.5181783", "0.5181783", "0.5181371", "0.5181371", "0.5179597", "0.5174435", "0.51697135", "0.51697135", "0.516944", "0.51681674", "0.51681674", "0.51681674", "0.5165289", "0.5158963", "0.5158963", "0.5158963", "0.5157296", "0.5154114", "0.5138792", "0.51381326", "0.5134828", "0.5121663", "0.5121301", "0.5110801", "0.51075184", "0.5105886", "0.51035917", "0.5098711", "0.5094145", "0.50858766", "0.50785094", "0.507749", "0.5067677", "0.5060617", "0.5057384", "0.5051357", "0.5051357", "0.5051357", "0.5051357", "0.5051357", "0.5051357", "0.5051357", "0.50455767", "0.5044795", "0.50413114", "0.5039131", "0.50364983", "0.50261724", "0.50261724", "0.50250965", "0.50196624", "0.5015723" ]
0.0
-1
Returns the additional element count if buffer resize is required.
public int getResizeElementCount() { return vboSet.getResizeElementCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int calculateResizeThreshold() {\n\t\treturn (buffer.length >> 2) * 3;\n\t}", "int getLostedSize();", "public int size() {\n\t\t//Because we're the only consumer, we know nothing will be removed while\n\t\t//we're computing the size, so we know there are at least (rear - front)\n\t\t//elements already added.\n\t\treturn (int)(rear.get() - front.get());\n\t}", "public int getSize() {\n\t\treturn numElements;\n\t}", "public int get_size();", "public int get_size();", "public int getNumUnpinnedBuffers() {\n\t\treturn replace.size();\n\t}", "public int getCurrentSize() {\n return count;\n }", "@Override\n public int getElementSize() {\n if (elementSize <= 0)\n calcElementSize();\n return elementSize;\n }", "int getCurrentSize();", "@Override\n public int size() {\n return (totalSize - offset);\n }", "public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}", "Long getNumberOfElement();", "Exp getElemSizeExp();", "public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}", "int sizeOfBridgeElementArray();", "public final int size()\r\n/* 41: */ {\r\n/* 42:215 */ long after = lvConsumerIndex();\r\n/* 43: */ for (;;)\r\n/* 44: */ {\r\n/* 45:219 */ long before = after;\r\n/* 46:220 */ long currentProducerIndex = lvProducerIndex();\r\n/* 47:221 */ after = lvConsumerIndex();\r\n/* 48:222 */ if (before == after)\r\n/* 49: */ {\r\n/* 50:224 */ long size = currentProducerIndex - after >> 1;\r\n/* 51:225 */ break;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ long size;\r\n/* 55:230 */ if (size > 2147483647L) {\r\n/* 56:232 */ return 2147483647;\r\n/* 57: */ }\r\n/* 58:236 */ return (int)size;\r\n/* 59: */ }", "int getTotalSize();", "protected int getArraySize(){\r\n\t \treturn numElems;\r\n\t \t//return arraySize;\r\n\t }", "@Override\r\n\tpublic int getSize() {\r\n\t\treturn getBitSize() / stridePolicy.getStride();\r\n\t}", "public int getTotalSize();", "public int size()\r\n\t{\r\n\t\treturn currentSize;\r\n\t}", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public synchronized int size() {\n return count;\n }", "public int size() {\n\t\treturn real-front+1; //x\r\n\t}", "@Override\n public int size(){\n return sizeHelper(this.first);\n }", "public int getElementSize() {\n\t\treturn this.elementsize;\n\t}", "public abstract Integer getNumberOfElements();", "long getOccupiedSize();", "public final int getRealSize() {\n return size - 1;\n }", "public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }", "public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }", "public int size() {\r\n assert numElements >= 0 : numElements;\r\n assert numElements <= capacity : numElements;\r\n assert numElements >= elementsByFitness.size() : numElements;\r\n return numElements;\r\n }", "public int size() {\n return numOfElements;\n }", "public int size(){\r\n return currentSize;\r\n }", "public int size() { return buffer.length; }", "@Override\n public int getSize() {\n return this.numItems;\n }", "public int getNumberOfElements();", "public int size() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] != null) {\r\n temp++;\r\n }\r\n }\r\n return temp;\r\n }", "@Override\n public int size() {\n return currentSize;\n }", "public int size()\n {\n return currentSize;\n }", "public int getBufferSize() {\n return count;\n }", "@Override\n public int size() {\n return curSize;\n }", "public int size() {\n return used;\n }", "@Override\n\tpublic int size() {\n\t\treturn this.numberOfElements;\n\t}", "public int arraySize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "@Override\n public synchronized int size() {\n return this.pointer;\n }", "public static int elementSize_entries_receiveEst() {\n return (8 / 8);\n }", "public int size() \r\n {\r\n if(measurementQueue==null) return 0;\r\n \r\n return measurementQueue.size();\r\n }", "int getNumBufferedBytes() {\n ChannelBuffer buf;\n int IOQueued;\n for (IOQueued = 0, buf = inQueueHead;\n buf != null; buf = buf.next) {\n IOQueued += buf.nextAdded - buf.nextRemoved;\n }\n return IOQueued;\n }", "public long size() {\n return CoreJni.sizeInCoreRenderNodeDescArrayView(this.agpCptr, this);\n }", "public int getNumElements()\n {\n return numElements;\n }", "public synchronized int size() {\r\n return size;\r\n }", "private int getSize() {\r\n\t\treturn this.size;\r\n\t}", "public int size(){\n return sizeCounter;\n }", "public int getNumElementsRemoved() {\n return elementsRemoved;\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int size() {\n\t\treturn currentSize;\n\n\t}", "public int getNumElements() {\n\t\treturn numElements;\n\t}", "public static int size_counter() {\n return (32 / 8);\n }", "public int getTrueSize() {\n int len = ArrayFuncs.computeSize(dataArray);\n return len;\n }", "@Override\n public long getSize() {\n return allocatedSize;\n }", "public Long getElementCount();", "@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}", "@Override\r\n \tpublic int size() {\r\n \t\t// TODO\r\n \t\treturn size;\r\n \t}", "public int getNumOfElements() {\n return numOfElements;\n }", "long sizeInc() {\n\t\treturn Storage.adrToOffset(adr) + size;\n\t}", "public int size() {\n return doSize();\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "@Override\n public synchronized int getSize() {\n return mArray.size();\n }", "public int getNumElements() {\n return numElements;\n }", "public int getNumElements() {\n return numElements;\n }", "public int size() {\n\t\treturn this.elements.size();\n\t}", "public long getNumElementsToRemove() {\n return elementsToRemove;\n }", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }", "private long size() {\n\t\treturn 0;\n\t}" ]
[ "0.68517613", "0.6818745", "0.652526", "0.6460864", "0.6337177", "0.6337177", "0.6325083", "0.63064235", "0.630187", "0.6301287", "0.6286395", "0.62863773", "0.6253844", "0.6228447", "0.6209349", "0.6183025", "0.6165039", "0.61641186", "0.6159183", "0.6153982", "0.6133198", "0.61135656", "0.61119264", "0.61019427", "0.60996217", "0.609041", "0.6083613", "0.60787344", "0.60757667", "0.607509", "0.6074219", "0.6069701", "0.6059897", "0.60565966", "0.60524106", "0.6041298", "0.60405856", "0.6034826", "0.6034717", "0.60322505", "0.60316896", "0.60295695", "0.6026797", "0.6020278", "0.60166967", "0.6003545", "0.60014606", "0.60014606", "0.60014606", "0.60014606", "0.60014606", "0.60014606", "0.60014606", "0.60014606", "0.60014606", "0.60014606", "0.59960926", "0.5995594", "0.5992761", "0.59909517", "0.5988559", "0.598671", "0.59833616", "0.597489", "0.5974058", "0.59710234", "0.59690785", "0.5960965", "0.5959125", "0.5953051", "0.59526527", "0.5952288", "0.5949528", "0.5948726", "0.59475935", "0.59425026", "0.5941185", "0.59355676", "0.59245914", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.5923219", "0.59227633", "0.59214574", "0.59214574", "0.5921161", "0.5915901", "0.59087867", "0.59066737", "0.59028494" ]
0.74015784
0
Sets the additional element count if buffer resize is required, defaults to initialElementCount of factory method.
public void setResizeElementCount(int v) { vboSet.setResizeElementCount(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getResizeElementCount() { return vboSet.getResizeElementCount(); }", "@Override\n\tpublic void setElementSize(int elementSize) {\n\t\t\n\t}", "protected int getElementSize () {\n return 1;\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void initialize(int size);", "@Override\n public int getElementSize() {\n if (elementSize <= 0)\n calcElementSize();\n return elementSize;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "public void setCount() {\n\t\tLinkedListIterator iter = new LinkedListIterator(this.head);\n\t\tint currentSize = 1;\n\t\twhile (iter.hasNext()) {\n\t\t\titer.next();\n\t\t\tcurrentSize++;\n\t\t}\n\t\tthis.size = currentSize;\n\t}", "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "protected void ensureBufferSpace(int expectedAdditions) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (elementsCount + expectedAdditions > bufferLen) {\n final int newSize = resizer.grow(bufferLen, elementsCount, expectedAdditions);\n assert newSize >= elementsCount + expectedAdditions : \"Resizer failed to\" + \" return sensible new size: \"\n + newSize + \" <= \" + (elementsCount + expectedAdditions);\n\n this.buffer = Arrays.copyOf(buffer, newSize);\n }\n }", "public int getSize() {\n\t\treturn numElements;\n\t}", "public void initialize() {\n grow(0);\n }", "private void setNumberOfPivotalElements(final int numPivotElem)\r\n {\r\n this.numberOfPivotalElements = numPivotElem;\r\n }", "public void setSize(int newSize);", "public void setSize(int newSize);", "private void ensureCapacity() {\n\t\tif (numberOfElements == capacity) {\n\t\t\tT[] newArray = (T[])new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\n\t\t\telements = newArray;\n\t\t}\n\t}", "public int getNumberOfElements();", "public void setElementSize(int elementsize) {\n\t\tthis.elementsize = elementsize;\n\t}", "@Override\n public void resize(int arg0, int arg1) {\n \n }", "void setBufferSize(int bufferSize);", "public void initialize(int size) {\n setMaxSize(size);\n }", "public void setBufferSize(int i) {\n\n\t}", "public void arrayCount(int arrayCount)\n\t{\n\t\t_arrayCount = arrayCount;\n\t}", "public int getCurrentSize() {\n return count;\n }", "int increaseCapacity(int expectedCapacity)\r\n/* 425: */ {\r\n/* 426:456 */ int newCapacity = this.elements.length;\r\n/* 427:457 */ int maxCapacity = this.maxCapacity;\r\n/* 428: */ do\r\n/* 429: */ {\r\n/* 430:459 */ newCapacity <<= 1;\r\n/* 431:460 */ } while ((newCapacity < expectedCapacity) && (newCapacity < maxCapacity));\r\n/* 432:462 */ newCapacity = Math.min(newCapacity, maxCapacity);\r\n/* 433:463 */ if (newCapacity != this.elements.length) {\r\n/* 434:464 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, newCapacity));\r\n/* 435: */ }\r\n/* 436:467 */ return newCapacity;\r\n/* 437: */ }", "@Override\n\tpublic int setUp(final int initialCapacity) {\n\t\tint capacity = super.setUp(initialCapacity);\n\t\t_indicesByInsertOrder = new int[capacity];\n\t\tArrays.fill(_indicesByInsertOrder, EMPTY);\n\t\t_lastInsertOrderIndex = -1;\n\t\treturn capacity;\n\t}", "@Override\n public void setBufferSize(int arg0) {\n\n }", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "public int getNumElements()\n {\n return numElements;\n }", "@Override\r\n\tpublic void resize(int arg0, int arg1) {\n\t}", "public int getSubElementArraySize(int index) { throw new RuntimeException(\"Stub!\"); }", "public int getBufferSize() {\n return count;\n }", "public int getNumElements() {\n return numElements;\n }", "public int getNumElements() {\n return numElements;\n }", "public int getNumOfElements() {\n return numOfElements;\n }", "public abstract Integer getNumberOfElements();", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public int size() {\n return numOfElements;\n }", "private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "public IntArrayList(int expectedElements, ArraySizingStrategy resizer) {\n assert resizer != null;\n this.resizer = resizer;\n ensureCapacity(expectedElements);\n }", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t}", "protected int getArraySize(){\r\n\t \treturn numElems;\r\n\t \t//return arraySize;\r\n\t }", "public int getNumElements() {\n\t\treturn numElements;\n\t}", "void resize(int newSize);", "public void sizeIncrease1() {\n\t\t _size++;\n\t}", "@Override\n public int getSize() {\n return numItems;\n }", "private void resize() {\n }", "private void resize(int newCap) {\n\t\tE[] newArray = (E[]) new Object[newCap];\n\t\tfor(int x = 0; x < newCap && x < capacity; x++) {\n\t\t\tnewArray[x] = elements[x];\n\t\t}\n\t\telements = newArray;\n\t\tcapacity = newCap;\n\t}", "private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }", "public Builder setNumOfChunks(int value) {\n \n numOfChunks_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "public int getInitialCapacity();", "@Override\r\n\tpublic void initialize() {\n\t\tRandom randomGenerator = new Random();\r\n\t\tthis.size = Helper.getRandomInRange(1, 9, randomGenerator);\r\n\t\tif (this.size % 2 == 0)\r\n\t\t\tthis.size--;\r\n\t}", "private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}", "private void initSize(Context context) {\n }", "public int getNrOfElements() {\n return this.nrOfElements;\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "@Override\n public void sizeChanged(IntBuffer collection) {\n semaphore.release();\n }", "public void setNewCardinalityNum(int param){\n \n // setting primitive attribute tracker to true\n localNewCardinalityNumTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewCardinalityNum=param;\n \n\n }", "public void setDocumentCount(Integer arg0) {\n \n }", "@Override\n\tpublic int size() {\n\t\treturn N;\n\t}", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "@Override\n public int getSize() {\n return this.numItems;\n }", "@Override\n\t\tpublic void resize(int arg0, int arg1) {\n\t\t \n\t\t}", "public void grow(int cap) {}", "@Override\n public int fillCount(){\n return fillCount;\n }", "Long getNumberOfElement();", "@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }", "public void setCount(int count)\n {\n this.count = count;\n }", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "protected void aInit()\n {\n \ta_available=WindowSize;\n \tLimitSeqNo=WindowSize*2;\n \ta_base=1;\n \ta_nextseq=1;\n }", "public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }", "private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }", "int getLostedSize();", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t\t\n\t}", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t\t\n\t}", "public static void setCount(int aCount) {\n count = aCount;\n }", "private void ensureCapacity() {\n int newSize = elements.length * 2;\n Object[] newElements = new Object[newSize];\n for (int i = 0; i < elements.length; i++) {\n newElements[i] = elements[i];\n }\n elements = newElements;\n }", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "void reserveNodes(int nodeCount) {\n\t\tm_list_nodes.setCapacity(nodeCount);\n\t}", "protected void setSampleCountImpl(int newSampleCount) {\n\t\tif (sampleCount != newSampleCount) {\n\t\t\tsampleCount = newSampleCount;\n\t\t}\n\t}", "@Override\n public int getNumSubElements()\n {\n return 0;\n }", "@Override\n\tpublic int size() {\n\t\treturn this.numberOfElements;\n\t}", "public void resize( final AtomicInteger _newMaxMessageSize ) {\n\n // if we're asking for a smaller (or same) sized buffer, just leave...\n int newMaxMessageSize = _newMaxMessageSize.get();\n if( newMaxMessageSize <= maxMessageSize ) return;\n\n // allocate new buffer of the right size...\n maxMessageSize = newMaxMessageSize;\n ByteBuffer newBuffer = allocateBuffer();\n\n // copy any bytes we already have into the new one...\n newBuffer.put( buffer );\n newBuffer.flip();\n buffer = newBuffer;\n }", "void resize() {\n capacity = array.size();\n }", "public int numElementsAdded(int lowerBound]) {\n\t\tint rackSize = 1; // sets initial rack size to be just one ball\n\t\tint numElementsAdded = 2; // initial number of elements to be added\n\t\twhile((numElementsAdded + rackSize) < lowerBound) {\n\t\t\tnumElementsAdded++;\n\t\t\trackSize += numElementsAdded;\n\t\t}\n\t\treturn numElementsAdded;\n\t}", "public void set_size(int s);", "public void addArrayDimension() {\r\n\t\ttheArrayDimension++;\r\n\t}", "private void resize(int capacity) {\n// assert capacity >= N;\n// StdOut.println(\"resize capacity:\"+ capacity);\n// StdOut.println(\"resize count:\"+ count);\n \n Item[] temp = (Item[]) new Object[capacity];\n int index = 0;\n for (int i = 0; i < N; i++) {\n if (randomizedQueue[i] != null){\n// StdOut.println(\"resize index :\"+ index);\n// StdOut.println(\"resize i :\"+ i);\n// StdOut.println(\"resize N :\"+ N);\n// StdOut.println(\"resize randomizedQueue[i] :\"+ randomizedQueue[i]);\n// StdOut.println(\"--------------------------------------------------\");\n temp[index] = randomizedQueue[i];\n index++;\n }\n }\n randomizedQueue = temp;\n }" ]
[ "0.6289739", "0.6078612", "0.58823997", "0.5697382", "0.56843144", "0.5674393", "0.56304985", "0.5611984", "0.55850035", "0.5541753", "0.55328995", "0.55100185", "0.5496147", "0.54654807", "0.5462755", "0.5462755", "0.54498947", "0.5433158", "0.5428211", "0.54278314", "0.54197335", "0.5417051", "0.5407429", "0.5401994", "0.5383093", "0.537785", "0.5376178", "0.5350539", "0.53466076", "0.534225", "0.53390485", "0.5336364", "0.5327855", "0.5315251", "0.5315251", "0.53129596", "0.5310797", "0.53035486", "0.53035486", "0.5296876", "0.52938884", "0.5292533", "0.5287291", "0.5284215", "0.52804476", "0.52784944", "0.5269495", "0.52608895", "0.5258845", "0.52556986", "0.5252276", "0.5239942", "0.5238522", "0.52371144", "0.52346176", "0.5234281", "0.52336377", "0.5233542", "0.5221995", "0.5219353", "0.52162814", "0.5197657", "0.519041", "0.5185812", "0.51842934", "0.51776963", "0.5177582", "0.5169871", "0.5166459", "0.51660556", "0.51494926", "0.51430786", "0.51391584", "0.5139023", "0.51383823", "0.5135251", "0.5129702", "0.5129274", "0.5128354", "0.51270574", "0.51270574", "0.512237", "0.51197946", "0.51193285", "0.5119108", "0.51115817", "0.51115817", "0.51115817", "0.51115817", "0.51115817", "0.51114964", "0.51047164", "0.5095504", "0.5094567", "0.50937915", "0.5091442", "0.5090706", "0.5088809", "0.50822794", "0.5080851" ]
0.6990217
0
grow buffer by initialElementCount if there is no space for one more element in the designated buffer
protected final boolean growBuffer(int type) { if( null !=buffer && !sealed ) { if( !fitElementInBuffer(type) ) { // save olde values .. final Buffer _vertexArray=vertexArray, _colorArray=colorArray, _normalArray=normalArray, _textCoordArray=textCoordArray; if ( reallocateBuffer(resizeElementCount) ) { if(null!=_vertexArray) { _vertexArray.flip(); Buffers.put(vertexArray, _vertexArray); } if(null!=_colorArray) { _colorArray.flip(); Buffers.put(colorArray, _colorArray); } if(null!=_normalArray) { _normalArray.flip(); Buffers.put(normalArray, _normalArray); } if(null!=_textCoordArray) { _textCoordArray.flip(); Buffers.put(textCoordArray, _textCoordArray); } return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void ensureBufferSpace(int expectedAdditions) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (elementsCount + expectedAdditions > bufferLen) {\n final int newSize = resizer.grow(bufferLen, elementsCount, expectedAdditions);\n assert newSize >= elementsCount + expectedAdditions : \"Resizer failed to\" + \" return sensible new size: \"\n + newSize + \" <= \" + (elementsCount + expectedAdditions);\n\n this.buffer = Arrays.copyOf(buffer, newSize);\n }\n }", "private void ensureCapacity() {\n\t\tif (numberOfElements == capacity) {\n\t\t\tT[] newArray = (T[])new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\n\t\t\telements = newArray;\n\t\t}\n\t}", "private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}", "private void grow(int minCapacity) {\n // overflow-conscious code\n int oldCapacity = buf.length;\n int newCapacity = oldCapacity << 1;\n if (newCapacity - minCapacity < 0) {\n newCapacity = minCapacity;\n }\n if (newCapacity - MAX_ARRAY_SIZE > 0) {\n newCapacity = hugeCapacity(minCapacity);\n }\n buf = Arrays.copyOf(buf, newCapacity);\n }", "private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }", "private ByteBuffer grow(int length) {\n if (!mBuffers.isEmpty()) {\n ByteBuffer b = mBuffers.peekLast();\n if (b.limit() + length < b.capacity()) {\n b.mark();\n b.position(b.limit());\n b.limit(b.limit() + length);\n remaining += length;\n return b.order(order);\n }\n }\n\n ByteBuffer ret = obtain(length);\n ret.mark();\n ret.limit(length);\n add(ret);\n\n return ret.order(order);\n }", "private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}", "protected void grow()\r\n\t{\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Starting grow\");\r\n\t\t}\r\n\t\t\r\n\t\tint[] temp = new int[count*2];\r\n\t\t\r\n\t\tfor(int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\ttemp[index] = numArray[index];\r\n\t\t\t\r\n\t\t\tif(debug)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Debug - temp[index] = \" + temp[index]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tnumArray = temp;\r\n\t\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Ending grow\");\r\n\t\t}\r\n\t}", "private void ensureCapacity(int count) {\n\t\tint capacity = getCapacity();\n\t\t\n\t\tint newLength = length + count;\n\t\tif (capacity >= newLength)\n\t\t\treturn;\n\n\t\t// Double capacity\n\t\tcapacity <<= 1;\n\t\t\n\t\tif (newLength > capacity)\n\t\t\tcapacity = newLength;\n\n\t\tchar[] newBuffer = new char[capacity];\n\t\tSystem.arraycopy(buffer, 0, newBuffer, 0, length);\n\t\tbuffer = newBuffer;\n\t}", "private E newBufferPoll(E[] nextBuffer, long index)\r\n/* 200: */ {\r\n/* 201:451 */ long offset = newBufferAndOffset(nextBuffer, index);\r\n/* 202:452 */ E n = UnsafeRefArrayAccess.lvElement(nextBuffer, offset);\r\n/* 203:453 */ if (n == null) {\r\n/* 204:455 */ throw new IllegalStateException(\"new buffer must have at least one element\");\r\n/* 205: */ }\r\n/* 206:457 */ UnsafeRefArrayAccess.soElement(nextBuffer, offset, null);\r\n/* 207:458 */ soConsumerIndex(index + 2L);\r\n/* 208:459 */ return n;\r\n/* 209: */ }", "private void grow() {\n capacity *= 2;\n Object[] temp = new Object[capacity];\n for (int i = 0; i < values.length; i++) temp[i] = values[i];\n values = temp;\n }", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "int increaseCapacity(int expectedCapacity)\r\n/* 425: */ {\r\n/* 426:456 */ int newCapacity = this.elements.length;\r\n/* 427:457 */ int maxCapacity = this.maxCapacity;\r\n/* 428: */ do\r\n/* 429: */ {\r\n/* 430:459 */ newCapacity <<= 1;\r\n/* 431:460 */ } while ((newCapacity < expectedCapacity) && (newCapacity < maxCapacity));\r\n/* 432:462 */ newCapacity = Math.min(newCapacity, maxCapacity);\r\n/* 433:463 */ if (newCapacity != this.elements.length) {\r\n/* 434:464 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, newCapacity));\r\n/* 435: */ }\r\n/* 436:467 */ return newCapacity;\r\n/* 437: */ }", "private void grow() {\n final int new_size = Math.min(size * 2, Const.MAX_TIMESPAN);\n if (new_size == size) {\n throw new AssertionError(\"Can't grow \" + this + \" larger than \" + size);\n }\n values = Arrays.copyOf(values, new_size);\n qualifiers = Arrays.copyOf(qualifiers, new_size);\n }", "private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "private void ensureCapacity() {\n int newSize = elements.length * 2;\n Object[] newElements = new Object[newSize];\n for (int i = 0; i < elements.length; i++) {\n newElements[i] = elements[i];\n }\n elements = newElements;\n }", "protected abstract int getNextBufferSize(E[] paramArrayOfE);", "private void grow()\r\n\t{\r\n\t\tint [] temp = new int[count * 2]; // new array to hold the data\r\n\r\n\t\t// copy old data in new array\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\ttemp[i] = array[i];\r\n\r\n\t\tarray = temp; // update the new array\r\n\t}", "private void reallocateIfOverfilled() {\r\n\t\tif ((size * 1.0 / table.length) > MAX_FULLNESS_PERCENTAGE) {\r\n\t\t\treallocateArray();\r\n\t\t}\r\n\t}", "public void ensureCapacity(int expectedElements) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (expectedElements > bufferLen) {\n ensureBufferSpace(expectedElements - size());\n }\n }", "public ChunkBuffer allocateBuffer(int increment) {\n final int nextBufferIndex = currentBufferIndex + 1;\n\n Preconditions.assertTrue(nextBufferIndex < capacity, () ->\n \"next index: \" + nextBufferIndex + \" >= capacity: \" + capacity);\n\n currentBufferIndex = nextBufferIndex;\n\n if (currentBufferIndex < bufferList.size()) {\n return getBuffer(currentBufferIndex);\n } else {\n final ChunkBuffer newBuffer = ChunkBuffer.allocate(bufferSize, increment);\n bufferList.add(newBuffer);\n return newBuffer;\n }\n }", "private boolean updateBufferList() {\n while(!data.isEmpty() && availableFirst() == 0) {\n popBuffer();\n }\n return !data.isEmpty();\n }", "private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}", "private void ensureCapacity() {\n if ( top + 1 < storage.length ) {\n return;\n }\n storage = Arrays.copyOf( storage, storage.length * 2 );\n }", "@Override\n public void ensureCapacity(int index) {\n\n }", "private void grow()\n\t{\n\t\tint temp[] = new int[count * 2];\n\t\tfor(int index = 0; index < count; index = index + 1)\n\t\t\ttemp[index] = array1[index];\n\t\tarray1 = temp;\n\t}", "private int addBuffer( FloatBuffer directBuffer, FloatBuffer newBuffer ) {\n int oldPosition = directBuffer.position();\n if ( ( directBuffer.capacity() - oldPosition ) >= newBuffer.capacity() ) {\n directBuffer.put( newBuffer );\n } else {\n oldPosition = -1;\n }\n return oldPosition;\n }", "public ArrayRingBuffer(int capacity) {\n Buffer_num = capacity;\n rb =(T[]) new Object[Buffer_num];\n fillCount = 0;\n first = 0;\n last = 0;\n }", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "private void ensureCapacityInternal(int minCapacity) {\n if (element == DEFAULTCAPACITY_EMPTY_ELEMENTDATA) {\n minCapacity = Math.max(DEFAULT_CAPACITY, minCapacity);\n }\n modCount++;\n if (minCapacity - element.length > 0) {\n // overflow-conscious code\n int oldCapacity = element.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n if (newCapacity - minCapacity < 0)\n newCapacity = minCapacity;\n if (newCapacity - MAX_ARRAY_SIZE > 0)\n newCapacity = hugeCapacity(minCapacity);\n // minCapacity is usually close to size, so this is a win:\n element = Arrays.copyOf(element, newCapacity);\n }\n }", "public RingBuffer(int capacity){\n structure = new LinkedList<E>();\n this.capacity = capacity;\n }", "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "private void grow(int n) {\n\t\tint newSize = length + n;\n\t\tif (newSize > limit) {\n\t\t\t// find smallest power of 2 greater than newSize\n\t\t\tlimit = (int) Math.pow(2, Math.ceil(Math.log(newSize) / LN2));\n\t\t\tfloat[] newBuffer = new float[limit];\n\t\t\tSystem.arraycopy(data, 0, newBuffer, 0, length);\n\t\t\tdata = newBuffer;\n\t\t}\n\t}", "@Override\n public boolean isFull(){\n return (count == size);\n \n }", "private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }", "private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }", "private void fillReceiveBuffer(final int requestedSize) {\n ByteBuffer readBuffer = receiveBuffer;\n if (requestedSize > receiveBuffer.capacity()) {\n readBuffer = socketService.getByteBuffer(requestedSize);\n readBuffer.put(receiveBuffer).flip();\n socketService.releaseByteBuffer(receiveBuffer);\n }\n receiveBuffer = null;\n socketHandle.read(readBuffer).addDeferrable(this, true);\n }", "private void updateBlockBuffer() {\n for (Block b : blockBuffer) {\n if (++b.ttl > BLOCK_CACHE_THRESH) {\n blockBuffer.remove(b);\n }\n }\n\n prevBlockBufferSize = blockBuffer.size();\n }", "private void grow() { \r\n\t\tint capacity = accounts.length;\r\n\t\tAccount [] tempArray = new Account[capacity += INITIAL_SIZE]; //tempArray with new capacity\r\n\t\tfor ( int i = 0; i < accounts.length; i++ ) { // Transfer all accounts into new Accounts\r\n\t\t\ttempArray[i] = accounts[i];\r\n\t\t}\t\t\r\n\t\taccounts = tempArray;\t\r\n\t\treturn;\r\n\t}", "private void ensureCapacity(int capacity) {\n\t\t\tif(capacity > elementData.length) {\n\t\t\t\tint newCap = elementData.length * 2 + 1;\n\t\t\t\tif(capacity > newCap) {\n\t\t\t\t\tnewCap = capacity;\n\t\t\t\t}\n\t\t\t\telementData = Arrays.copyOf(elementData, newCap);\n\t\t\t}\n\t\t}", "@SuppressWarnings(\"unchecked\")\n private void init(int capacity) {\n buffer = (T[]) new Object[capacity];\n head = 0;\n entries = 0;\n }", "@SuppressWarnings(\"unchecked\")\n\t private boolean grow() {\n\n\t /* \n\t * Add code here \n\t * Expand capacity (double it) and copy old array contents to the\n\t * new one. \n\t */\n\t\t \n\t\t capacity = (capacity*2);\n\t\t E[] new_elements = elements;\n\t\t elements = (E[])new Object[capacity];\n\t\t for(int i=0; i<new_elements.length;i++){\n\t\t\t elements[i] = new_elements[i];\n\t\t }\n\t System.out.println(\"Capacity reached. Increasing storage...\");\n\t System.out.println(\"New capacity is \" + capacity + \" elements\");\n\n\t return true;\n\t }", "public void honourFreeBufferCount() {\n // Check if there are enough free launchers\n int freeCount = getFreeLaunchers().size();\n\n while (freeCount < freeBufferCount) {\n if (getTotalLaunchers().size() > maxCount) {\n log.warn(\"Specified Maximum Concurrency has been exceeded, but scaling up will be permitted. If this \" +\n \"message appears often increase maximum concurrency.\");\n }\n\n log.info(\"Scaling UP: REASON -> [Free Count] \" + freeCount + \" < [Free Gap] \" + freeBufferCount);\n scaleUp(\"honourFreeBufferCount\");\n freeCount = getFreeLaunchers().size();\n }\n }", "public void grow(int cap) {}", "protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }", "private E newBufferPeek(E[] nextBuffer, long index)\r\n/* 212: */ {\r\n/* 213:464 */ long offset = newBufferAndOffset(nextBuffer, index);\r\n/* 214:465 */ E n = UnsafeRefArrayAccess.lvElement(nextBuffer, offset);\r\n/* 215:466 */ if (null == n) {\r\n/* 216:468 */ throw new IllegalStateException(\"new buffer must have at least one element\");\r\n/* 217: */ }\r\n/* 218:470 */ return n;\r\n/* 219: */ }", "private void growQueue() {\n Runnable[] oldQ = queue;\n int oldSize = oldQ.length;\n int newSize = oldSize << 1;\n if (newSize > MAXIMUM_QUEUE_CAPACITY)\n throw new RejectedExecutionException(\"Queue capacity exceeded\");\n Runnable[] newQ = queue = new Runnable[newSize];\n\n int b = base;\n int bf = b + oldSize;\n int oldMask = oldSize - 1;\n int newMask = newSize - 1;\n do {\n int oldIndex = b & oldMask;\n Runnable t = oldQ[oldIndex];\n if (t != null && !casSlotNull(oldQ, oldIndex, t))\n t = null;\n setSlot(newQ, b & newMask, t);\n } while (++b != bf);\n pool.signalWork();\n }", "private long newBufferAndOffset(E[] nextBuffer, long index)\r\n/* 222: */ {\r\n/* 223:475 */ this.consumerBuffer = nextBuffer;\r\n/* 224:476 */ this.consumerMask = (LinkedArrayQueueUtil.length(nextBuffer) - 2 << 1);\r\n/* 225:477 */ return LinkedArrayQueueUtil.modifiedCalcElementOffset(index, this.consumerMask);\r\n/* 226: */ }", "private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }", "@SuppressWarnings(\"unchecked\")\n\tprotected void grow(){\n\t\t// makes new arraylist\n\t\tT[] temp = (T[]) new Object[data.length *2];\n\t\tfor(int i = 0; i < data.length; i++ ){\n\t\t\ttemp[i] = data[i];\n\t\t}\n\t\tdata = temp;\n\t}", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "private void grow() {\n int oldCapacity = heap.length;\n // Double size if small; else grow by 50%\n int newCapacity = oldCapacity + ((oldCapacity < 64) ?\n (oldCapacity + 2) :\n (oldCapacity >> 1));\n Object[] newQueue = new Object[newCapacity];\n for (int i = 0; i < heap.length; i++) {\n newQueue[i] = heap[i];\n }\n heap = newQueue;\n }", "private final void ensureCapacity(final int minCapacity) {\r\n\t\tfinal int oldCapacity = this.elementData.length;\r\n\t\tif (minCapacity > oldCapacity) {\r\n\t\t\tfinal Object[] oldData = this.elementData;\r\n\t\t\tint newCapacity = oldCapacity * 3 / 2 + 1;\r\n\t\t\tif (newCapacity < minCapacity) {\r\n\t\t\t\tnewCapacity = minCapacity;\r\n\t\t\t}\r\n\t\t\tthis.elementData = new TokenStatement[newCapacity];\r\n\t\t\tSystem.arraycopy( oldData, 0, this.elementData, 0, this.size );\r\n\t\t}\r\n\t}", "public void grow(int n) {\r\n\t\t// implementation not shown\r\n\t}", "public void initialize() {\n grow(0);\n }", "private void ensureCapacity(int minCapacity) {\r\n int oldCapacity = elementData.length;\r\n if (minCapacity > oldCapacity) {\r\n float[] oldData = elementData;\r\n int newCapacity = (oldCapacity * 3)/2 + 1;\r\n if (newCapacity < minCapacity)\r\n newCapacity = minCapacity;\r\n elementData = new float[newCapacity];\r\n System.arraycopy(oldData, 0, elementData, 0, size);\r\n }\r\n }", "@Override\n public int fillCount(){\n return fillCount;\n }", "protected void grow() {\n }", "public boolean is_full()\n\t {\n\t if (num_elements == capacity)\n\t return true;\n\t return false;\n\t }", "private void ensureCapacity(int index) {\n\t\t\tint overflow = index - list.size();\n\t\t\twhile (overflow-- >= 0) {\n\t\t\t\tlist.add(null);\n\t\t\t}\n\t\t}", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "private void ensureCapacity() {\n int newLength = (this.values.length * 3) / 2 + 1;\n Object[] newValues = new Object[newLength];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }", "@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}", "@Test\n public void addPastInitialCapacity() {\n for (int iteration = 0; iteration < 20; iteration++) {\n testList.add(42);\n }\n assertEquals(20, testList.count());\n }", "private void pushNow(Recycler.DefaultHandle<?> item)\r\n/* 529: */ {\r\n/* 530:567 */ if ((Recycler.DefaultHandle.access$1500(item) | Recycler.DefaultHandle.access$1100(item)) != 0) {\r\n/* 531:568 */ throw new IllegalStateException(\"recycled already\");\r\n/* 532: */ }\r\n/* 533:570 */ Recycler.DefaultHandle.access$1502(item, Recycler.DefaultHandle.access$1102(item, Recycler.OWN_THREAD_ID));\r\n/* 534: */ \r\n/* 535:572 */ int size = this.size;\r\n/* 536:573 */ if ((size >= this.maxCapacity) || (dropHandle(item))) {\r\n/* 537:575 */ return;\r\n/* 538: */ }\r\n/* 539:577 */ if (size == this.elements.length) {\r\n/* 540:578 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, Math.min(size << 1, this.maxCapacity)));\r\n/* 541: */ }\r\n/* 542:581 */ this.elements[size] = item;\r\n/* 543:582 */ this.size = (size + 1);\r\n/* 544: */ }", "@Override\n\tpublic int setUp(final int initialCapacity) {\n\t\tint capacity = super.setUp(initialCapacity);\n\t\t_indicesByInsertOrder = new int[capacity];\n\t\tArrays.fill(_indicesByInsertOrder, EMPTY);\n\t\t_lastInsertOrderIndex = -1;\n\t\treturn capacity;\n\t}", "private void grow() {\n OmaLista<OmaPari<K, V>>[] newList = new OmaLista[this.values.length * 2];\n\n for (int i = 0; i < this.values.length; i++) {\n copy(newList, i);\n }\n\n this.values = newList;\n }", "public int getInitialCapacity();", "public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}", "public EntityBuffer(int bufferCapacity) {\n\t\tbuffer = new DataPostbox<EntityContainer>(bufferCapacity);\n\t}", "@Override\n public int getBufferSize() {\n return 0;\n }", "private void ensureCapacity(int newCapacity) {\n\t\t\t data = Arrays.copyOf(data, newCapacity * 2);\n\t\t\t this.capacity = newCapacity * 2;\n\t\t }", "private void growQueue() {\n int newSize = (int)(QUEUE.length * 1.5f);\n \n Logger.log(\"INFO\", \"Queue is full, growing to new size: \" + Integer.toString(newSize));\n \n Object[] newQueue = new Object[newSize];\n lockQueue();\n copyQueue(newQueue);\n unlockQueue();\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}", "public boolean isFull()\n { \n return count == elements.length; \n }", "private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }", "private void resizeArrays() {\r\n//\t\tThread.dumpStack();\r\n\t\t\r\n\t\t// coordinates, colors, 2 texunits\r\n\t\tint size = numElements * (3 + 3 + 2 + 2) * 4;\r\n\t\tSystem.out.println(\"resizeArrays \"+size+\" \"+numElements);\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\tARBVertexBufferObject.glBufferDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, size, ARBVertexBufferObject.GL_STATIC_DRAW_ARB);\r\n\t\t\r\n\t\tuploadBuffer.clear();\r\n\t\tfor (int i=0; i<uploadBuffer.capacity(); i++) {\r\n\t\t\tuploadBuffer.put(i, 1);\r\n\t\t}\r\n\t\t\r\n\t\t// clear the data\r\n\t\tint pos = 0;\r\n\t\twhile (pos < size) {\r\n\t\t\tif (size - pos < uploadBuffer.capacity() * 4) {\r\n\t\t\t\tuploadBuffer.limit((size - pos) / 4);\r\n\t\t\t}\r\n\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, pos, uploadBuffer);\r\n\t\t\tUtil.checkGLError();\r\n\t\t\tpos += uploadBuffer.capacity() * 4;\r\n\t\t}\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\t}", "@Override\n\tpublic int remainingCapacity() {\n\t\treturn 0;\n\t}", "private void grow() {\n Book[] temp = new Book[books.length + GROWTH_SIZE];\n for (int i = 0; i < books.length; i ++){\n temp[i] = books[i];\n }\n books = temp;\n }", "public int allocate() {\n int setIndex = this.freeSet.nextSetBit(this.lastIndex);\n if (setIndex<0) { // means none found in trailing part\n setIndex = this.freeSet.nextSetBit(0);\n }\n if (setIndex<0) return -1;\n this.lastIndex = setIndex;\n this.freeSet.clear(setIndex);\n return setIndex + this.loRange;\n }", "private void resize(int newCapacity)\n {\n Node[] buffer = new Node[newCapacity];\n\n for (Node bucket : buckets)\n {\n if (bucket != null)\n {\n Node current = bucket;\n while (current != null)\n {\n int h = current.hashCode();\n h = h % buffer.length;\n if (h < 0) { h = -h; }\n\n buffer[h] = current;\n current = current.next;\n }\n }\n }\n buckets = buffer;\n }", "private void pushRemainingToBody(ByteBuffer buffer, DynamicByteBuffer body, int size) {\n\t\t// If buffer is empty or there is no clength then skip this\n\t\tif (size == 0 || !buffer.hasRemaining()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (body.position() + buffer.remaining() > size) {\n\t\t\tbody.put(buffer.array(), buffer.position(), size - body.position());\n\t\t} else {\n\t\t\tbody.put(buffer.array(), buffer.position(), buffer.remaining());\n\t\t}\n\t}", "private void reallocate(){\n capacity = 2 * capacity;\n theData = Arrays.copyOf(theData, capacity);\n }", "public void allocate(int size_bytes) {\r\n size = size_bytes;\r\n int elems = (size + BYTES_IN_ELEMENT - 1) / BYTES_IN_ELEMENT;\r\n data = new int[elems];\r\n \r\n // Reset head position\r\n offset = 0;\r\n cbyte = 0;\r\n bytenum = 0;\r\n elem = 0;\r\n }", "public void nextSlice() {\n\t\tfinal int nextIndex = \n\t\t\t\t((mBuffer[mLimit]&0xff)<<24) + ((mBuffer[1+mLimit]&0xff)<<16) + \n\t\t\t\t((mBuffer[2+mLimit]&0xff)<<8) + (mBuffer[3+mLimit]&0xff);\n\n\t\tmLevel = BytePool.nextLevelArray[mLevel];\n\t\tfinal int newSize = BytePool.levelSizeArray[mLevel];\n\n\t\tmBufferUpto = nextIndex / BytePool.BYTE_BLOCK_SIZE;\n\t\tmBufferOffset = mBufferUpto * BytePool.BYTE_BLOCK_SIZE;\n\n\t\tmBuffer = mPool.getBufferAt(mBufferUpto);\n\t\tmUpto = nextIndex & BytePool.BYTE_BLOCK_MASK;\n\n\t\tif (nextIndex + newSize >= mEndIndex) {\n\t\t\t// We are advancing to the final slice\n\t\t\tassert mEndIndex - nextIndex > 0;\n\t\t\tmLimit = mEndIndex - mBufferOffset;\n\t\t} else {\n\t\t\t// This is not the final slice (subtract 4 for the\n\t\t\t// forwarding address at the end of this new slice)\n\t\t\tmLimit = mUpto+newSize-4;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\") // this will stop Java complaining about the cast\n private void ensureCapacity() {\n if (count == data.length) { //if count is equal to the length of data a new array is made doubling the initial size, it then makes the data collection == to the temp collection\n E[] temp = (E[]) new String[data.length * 2]; //effectivly increasing the size of the array\n for (int i = 0; i < data.length; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }\n }", "public ByteBuf capacity(int newCapacity)\r\n/* 87: */ {\r\n/* 88:122 */ checkNewCapacity(newCapacity);\r\n/* 89: */ \r\n/* 90:124 */ int oldCapacity = this.array.length;\r\n/* 91:125 */ byte[] oldArray = this.array;\r\n/* 92:126 */ if (newCapacity > oldCapacity)\r\n/* 93: */ {\r\n/* 94:127 */ byte[] newArray = allocateArray(newCapacity);\r\n/* 95:128 */ System.arraycopy(oldArray, 0, newArray, 0, oldArray.length);\r\n/* 96:129 */ setArray(newArray);\r\n/* 97:130 */ freeArray(oldArray);\r\n/* 98: */ }\r\n/* 99:131 */ else if (newCapacity < oldCapacity)\r\n/* 100: */ {\r\n/* 101:132 */ byte[] newArray = allocateArray(newCapacity);\r\n/* 102:133 */ int readerIndex = readerIndex();\r\n/* 103:134 */ if (readerIndex < newCapacity)\r\n/* 104: */ {\r\n/* 105:135 */ int writerIndex = writerIndex();\r\n/* 106:136 */ if (writerIndex > newCapacity) {\r\n/* 107:137 */ writerIndex(writerIndex = newCapacity);\r\n/* 108: */ }\r\n/* 109:139 */ System.arraycopy(oldArray, readerIndex, newArray, readerIndex, writerIndex - readerIndex);\r\n/* 110: */ }\r\n/* 111: */ else\r\n/* 112: */ {\r\n/* 113:141 */ setIndex(newCapacity, newCapacity);\r\n/* 114: */ }\r\n/* 115:143 */ setArray(newArray);\r\n/* 116:144 */ freeArray(oldArray);\r\n/* 117: */ }\r\n/* 118:146 */ return this;\r\n/* 119: */ }", "public void release() {\n this.buffer = EMPTY_ARRAY;\n this.elementsCount = 0;\n }", "public int getBufferSize() {\n\t\treturn 0;\n\t}", "private static char[] growBuffer(char[] dest, int index, int size) {\n char[] copy = new char[size];\n if (index > 0) {\n System.arraycopy(dest, 0, copy, 0, index);\n }\n return copy;\n }", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "public void ensureCapacity(int minCapacity);", "public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }", "private void grow() { \n\n\t\tAccount[] temp = accounts;\n\t\taccounts = new Account[accounts.length+5];\n\t\t\n\t\tfor (int i = 0; i < temp.length; i++) {\n\t\t\taccounts[i] = temp[i];\n\t\t}\n\t\t\n\t}", "public Buffer(int capacity) {\r\n\t\t\r\n\t\tthis.data = new int[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t\tthis.size = 0;\r\n\t\tthis.cursor = 0;\r\n\t\t\r\n\t\tinitialize();\r\n\t}", "public int fill(MessagePassingQueue.Supplier<E> s)\r\n/* 281: */ {\r\n/* 282:545 */ long result = 0L;\r\n/* 283:546 */ int capacity = capacity();\r\n/* 284: */ do\r\n/* 285: */ {\r\n/* 286:549 */ int filled = fill(s, PortableJvmInfo.RECOMENDED_OFFER_BATCH);\r\n/* 287:550 */ if (filled == 0) {\r\n/* 288:552 */ return (int)result;\r\n/* 289: */ }\r\n/* 290:554 */ result += filled;\r\n/* 291:556 */ } while (result <= capacity);\r\n/* 292:557 */ return (int)result;\r\n/* 293: */ }", "@Test\n public void testContinguosStorageReSize() {\n for (int i = 9; i >= 0; i--) {\n String input = String.format(\"b0%d\", i);\n list.addToFront(input);\n }\n\n list.addToFront(\"Filler1\");\n list.addToBack(\"Filler2\");\n list.addToBack(\"Filler3\");\n list.addToFront(\"Filler0\");\n list.addAtIndex(0, \"Filler#\");\n list.addAtIndex(2, \"Filler!\");\n list.addAtIndex(6, \"Filler$\");\n list.removeFromFront();\n list.removeFromBack();\n list.removeAtIndex(4);\n list.removeAtIndex(0);\n list.removeAtIndex(2);\n\n int actualCapacity = ((Object[]) (list.getBackingArray())).length;\n for (int i = 0; i < list.size(); i++) {\n Assert.assertNotNull(((Object[]) (list.getBackingArray()))[i]);\n }\n for (int i = list.size(); i < actualCapacity; i++) {\n Assert.assertNull(((Object[]) (list.getBackingArray()))[i]);\n }\n }" ]
[ "0.6676849", "0.6410723", "0.6407066", "0.6314018", "0.623593", "0.6192705", "0.6185884", "0.6163867", "0.6162952", "0.61609083", "0.6124781", "0.60904914", "0.60850805", "0.6080618", "0.6070275", "0.603208", "0.5999945", "0.59935766", "0.5980522", "0.59769684", "0.5975538", "0.5925028", "0.59235466", "0.588461", "0.5863912", "0.58354664", "0.5827023", "0.58203", "0.58198833", "0.58090013", "0.57687145", "0.5736201", "0.5725523", "0.5720112", "0.5720051", "0.57043946", "0.5702999", "0.57003003", "0.56972116", "0.5689972", "0.56877255", "0.56827223", "0.56816494", "0.5677228", "0.5649766", "0.5649559", "0.5634547", "0.5620958", "0.5594846", "0.5592336", "0.55803823", "0.5577631", "0.55744207", "0.55708176", "0.5563523", "0.55468005", "0.55445355", "0.55419487", "0.5532102", "0.55315864", "0.55170435", "0.55000526", "0.54948103", "0.54874116", "0.5485768", "0.5482274", "0.54747623", "0.5466678", "0.5460261", "0.545891", "0.54512006", "0.5442615", "0.54339224", "0.54320705", "0.54306334", "0.54277366", "0.5422279", "0.54199356", "0.5419229", "0.5408813", "0.53978324", "0.539493", "0.5393771", "0.5391885", "0.53898907", "0.5379106", "0.53595746", "0.53577036", "0.5355725", "0.5353465", "0.53372675", "0.53301495", "0.53225726", "0.5321447", "0.53164756", "0.53061545", "0.5305708", "0.5304902", "0.53044593", "0.5290465" ]
0.60212433
16
Fourth element default value for color (alpha), vertex (w) is '1', as specified w/ VertexAttributes (ES2/GL3). vec4 v = vec4(0, 0, 0, 1); vec4 c = vec4(0, 0, 0, 1);
private void countAndPadding(int type, int fill) { if ( sealed ) return; final Buffer dest; final boolean dSigned; final int e; switch (type) { case VERTEX: dest = vertexArray; dSigned = vDataTypeSigned; e = 4 == vComps ? 1 : 0; vElems++; break; case COLOR: dest = colorArray; dSigned = cDataTypeSigned; e = 4 == cComps ? 1 : 0; cElems++; break; case NORMAL: dest = normalArray; dSigned = nDataTypeSigned; e = 0; nElems++; break; case TEXTCOORD: dest = textCoordArray; dSigned = tDataTypeSigned; e = 0; tElems++; break; default: throw new InternalError("Invalid type "+type); } if ( null==dest ) return; while( fill > e ) { fill--; Buffers.putNf(dest, dSigned, 0f); } if( e > 0 ) { Buffers.putNf(dest, dSigned, 1f); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColor(Vertex v);", "public static Vector4 alpha()\n {\n return new Vector4(0,0,0,1);\n }", "public E3DVector4F getVertexColorA(){\r\n\t\treturn vertices[0].getVertexColor();\r\n\t}", "Color generateColor(Vertex v) {\n if (v.x == width - 1 && v.y == height - 1) {\n return Color.magenta;\n }\n else if (v.path) {\n return Color.blue;\n }\n else if (v.x == 0 && v.y == 0) {\n return Color.green;\n }\n else if (v.visited) {\n return Color.cyan;\n }\n else {\n return Color.gray;\n }\n }", "public E3DVector4F getVertexColorC(){\r\n\t\treturn vertices[2].getVertexColor();\r\n\t}", "public abstract Color3f colorOf(SoftwareMaterial kMaterial,\r\n SoftwareVertexProperty kVertexProperty,\r\n Point3f kEye);", "@Override\n public void color(double red, double green, double blue, double alpha) {\n GL11.glColor4d(red, green, blue, alpha);\n }", "void glEnableVertexAttribArray(int index);", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "public void setVertexColorA(E3DVector4F vertexColor){\r\n\t\tthis.vertices[0].setVertexColor(vertexColor);\r\n\t}", "public void setVertexC(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[2] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}", "public int colorVertices();", "BasicShader( String name ) {\n this( name, null );\n }", "BasicShader( String name, Color baseColor ) {\n name_ = name;\n baseColor_ = baseColor;\n }", "@Override\n public void init() {\n glEnable( GL_BLEND );\n glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );\n glEnable( GL_LINE_SMOOTH );\n glEnable( GL_POINT_SMOOTH );\n }", "public void setVertexColor(E3DVector4F[] vertexColor) {\r\n\t vertices[0].setVertexColor(vertexColor[0]);\r\n vertices[1].setVertexColor(vertexColor[1]);\r\n vertices[2].setVertexColor(vertexColor[2]);\r\n\t}", "public void setVertexColorC(E3DVector4F vertexColor){\r\n\t\tthis.vertices[2].setVertexColor(vertexColor);\r\n\t}", "public Bitmap3DColor(\n float v1Red, float v1Green, float v1Blue, float v1Alpha,\n float v2Red, float v2Green, float v2Blue, float v2Alpha,\n float v3Red, float v3Green, float v3Blue, float v3Alpha,\n float v4Red, float v4Green, float v4Blue, float v4Alpha\n ) {\n if(\n v1Red < 0 || v1Red > 1 || v2Red < 0 || v2Red > 1 || v3Red < 0 || v3Red > 1 || v4Red < 0 || v4Red > 1 ||\n v1Green < 0 || v1Green > 1 || v2Green < 0 || v2Green > 1 || v3Green < 0 || v3Green > 1 || v4Green < 0 || v4Green > 1 ||\n v1Blue < 0 || v1Blue > 1 || v2Blue < 0 || v2Blue > 1 || v3Blue < 0 || v3Blue > 1 || v4Blue < 0 || v4Blue > 1 ||\n v1Alpha < 0 || v1Alpha > 1 || v2Alpha < 0 || v2Alpha> 1 || v3Alpha < 0 || v3Alpha > 1 || v4Alpha < 0 || v4Alpha > 1\n ) {\n throw new IllegalArgumentException(\"Values should be between 0 and 1\");\n }\n\n float[] colors = {\n v1Red, v1Green, v1Blue, v1Alpha,\n v2Red, v2Green, v2Blue, v2Alpha,\n v3Red, v3Green, v3Blue, v3Alpha,\n v4Red, v4Green, v4Blue, v4Alpha\n };\n\n ByteBuffer clb = ByteBuffer.allocateDirect(colors.length * 4);\n clb.order(ByteOrder.nativeOrder());\n this.colorBuffer = clb.asFloatBuffer();\n this.colorBuffer.put(colors);\n this.colorBuffer.position(0);\n }", "public E3DVector4F[] getVertexColor() {\r\n\t\treturn new E3DVector4F[]{vertices[0].getVertexColor(),\r\n\t\t vertices[1].getVertexColor(),\r\n vertices[2].getVertexColor()};\r\n\t}", "void glAttachShader(int program, int shader);", "public E3DVector4F getVertexColorB(){\r\n\t\treturn vertices[1].getVertexColor();\r\n\t}", "Vertex(){}", "public void setVertexA(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[0] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}", "public void setAlpha(float alpha);", "private E3DTexturedVertex getVertexA(){\r\n\t\treturn vertices[0];\r\n\t}", "public void setVertexColor(E3DVector4F vertexColorA, E3DVector4F vertexColorB, E3DVector4F vertexColorC) \r\n\t{\r\n vertices[0].setVertexColor(vertexColorA);\r\n vertices[1].setVertexColor(vertexColorB);\r\n vertices[2].setVertexColor(vertexColorC);\r\n\t}", "public void setvColor(float red, float green, float blue)\n {\n GLES20.glUniform4f(uColor, red, green, blue, 1.0f);\n }", "public int getAlpha()\n {\n return getColor().alpha();\n }", "static public ShaderProgram createDefaultShader() {\n String vertexShader = \"attribute vec4 \" + ShaderProgram.POSITION_ATTRIBUTE + \";\\n\" //\n + \"attribute vec2 \" + ShaderProgram.TEXCOORD_ATTRIBUTE + \"0;\\n\" //\n + \"uniform mat4 u_projTrans;\\n\" //\n + \"varying vec2 v_texCoords;\\n\" //\n + \"\\n\" //\n + \"void main()\\n\" //\n + \"{\\n\" //\n + \" v_texCoords = \" + ShaderProgram.TEXCOORD_ATTRIBUTE + \"0;\\n\" //\n + \" gl_Position = u_projTrans * \" + ShaderProgram.POSITION_ATTRIBUTE + \";\\n\" //\n + \"}\\n\";\n String fragmentShader = \"#ifdef GL_ES\\n\" //\n + \"#define LOWP lowp\\n\" //\n + \"precision mediump float;\\n\" //\n + \"#else\\n\" //\n + \"#define LOWP \\n\" //\n + \"#endif\\n\" //\n + \"varying vec2 v_texCoords;\\n\" //\n + \"uniform sampler2D u_texture;\\n\" //\n + \"void main()\\n\"//\n + \"{\\n\" //\n + \" gl_FragColor = texture2D(u_texture, v_texCoords);\\n\" //\n + \"}\";\n\n ShaderProgram shader = new ShaderProgram(vertexShader, fragmentShader);\n if (shader.isCompiled() == false)\n throw new IllegalArgumentException(\"couldn't compile shader: \" + shader.getLog());\n return shader;\n }", "public Vertex(int value) {\n this(value, null);\n }", "public static VertexBuffer createColorBuffer() {\n return new VertexBuffer(\"a_Color\", new ColorData(BufferTestUtil.createColors()), BufferUsage.STATIC);\n }", "public Color4 getEffectColorAdd();", "public Bitmap3DColor(float red, float green, float blue, float alpha) {\n this(red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha);\n }", "protected Color createColor(int red, int green, int blue, int alpha) {\n if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) {\n // rgba either 0 or 1\n Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)alpha);\n// System.out.println(c);\n return c;\n }\n return super.createColor(red, green, blue, alpha);\n }", "public void setColor(float r, float g, float b, float a);", "@Override\n public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n \n String vertexShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_vertex_shader);\n String fragmentShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_fragment_shader);\n \n int vertexShaderId = ShaderHelper.compileVertexShader(vertexShaderSource);\n int fragmentShaderId = ShaderHelper.compileFragmentShader(fragmentShaderSource);\n \n program = ShaderHelper.linkProgram(vertexShaderId, fragmentShaderId);\n \n if(LoggerConfig.ON){\n \tShaderHelper.validateProgram(program);\n }\n glUseProgram(program);\n uColorLocation = glGetUniformLocation(program, U_COLOR);\n aPositionLocation = glGetAttribLocation(program, A_POSITION);\n \n vertexData.position(0);\n glVertexAttribPointer(aPositionLocation, POSITION_COMPONENT_COUNT, GL_FLOAT, false, 0, vertexData);\n glEnableVertexAttribArray(aPositionLocation); \n }", "public float getAlpha();", "public float getAlpha();", "Color3b colorAt(int xIndex, int yIndex);", "void ldraw_addVertexWithUV(double x, double y, double z, double u, double v) {\n lDraw.a(x, y, z, u, v);\n }", "public void setColor( float[] c )\n\t{\n\t\tcolorWeight[0] = c[0];\n\t\tcolorWeight[1] = c[1];\n\t\tcolorWeight[2] = c[2];\n\t\t\n\t\t//color = null;\n\t\tcolor = new Color( colorWeight[0], colorWeight[1], colorWeight[2] );\n\t}", "public void alpha(int alpha);", "public void normaliseVertexColors()\r\n\t{\r\n\t for(int i=0; i<3; i++)\r\n vertices[i].normaliseVertexColor();\r\n\t}", "private native void setModelColor(float r,float g,float b);", "public void setAlpha(double alpha);", "@Override\n\t@GLContextRequired\n\tpublic void initGL() {\n\t\tif(Objects.isNull(va)){\n\t\t\tva = new VertexArray(4);\n\t\t\tupdateGL(false);\t\t\n\t\t}\n\t}", "public Vector4f getColor() {\n\t\treturn color;\n\t}", "public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }", "void glClearColor(float red, float green, float blue, float alpha);", "Vertex(int n) {\n name = n;\n duration = 0;\n LC = 0;\n EC = 0;\n slack = 0;\n color = null;\n top = 0;\n discoverytime = 0;\n order = 0;\n Adj = new LinkedList<>();\n }", "public Vertex(String name){\r\n this.name = name;\r\n }", "public Vertex(int val)\r\n\t{\r\n\t\tthis.value=val;\r\n\t}", "public E3DTexturedVertex getVertex(int index){\r\n if(index >= 0 && index < 3)\r\n return vertices[index];\r\n else\r\n return null;\r\n }", "int glGetAttribLocation(int program, String name);", "public void init(SoState state)\n\n{\n // Set to GL defaults:\n// ivState.ambientColor.copyFrom( getDefaultAmbient());\n// ivState.emissiveColor.copyFrom( getDefaultEmissive());\n// ivState.specularColor.copyFrom( getDefaultSpecular());\n// ivState.shininess = getDefaultShininess();\n// ivState.colorMaterial = false;\n// ivState.blending = false;\n// ivState.lightModel = LightModel.PHONG.getValue();\n \n // Initialize default color storage if not already done\n if (defaultDiffuseColor == null) {\n defaultDiffuseColor = SbColorArray.allocate(1);\n defaultDiffuseColor.get(0).setValue(getDefaultDiffuse());\n defaultTransparency = new float[1];\n defaultTransparency[0] = getDefaultTransparency();\n defaultColorIndices = new int[1];\n defaultColorIndices[0] = getDefaultColorIndex();\n defaultPackedColor = new int[1];\n defaultPackedColor[0] = getDefaultPacked();\n }\n \n //following value will be matched with the default color, must\n //differ from 1 (invalid) and any legitimate nodeid. \n// ivState.diffuseNodeId = 0;\n// ivState.transpNodeId = 0;\n// //zero corresponds to transparency off (default).\n// ivState.stippleNum = 0;\n// ivState.diffuseColors = defaultDiffuseColor;\n// ivState.transparencies = defaultTransparency;\n// ivState.colorIndices = defaultColorIndices;\n// ivState.packedColors = defaultPackedColor;\n//\n// ivState.numDiffuseColors = 1;\n// ivState.numTransparencies = 1;\n// ivState.packed = false;\n// ivState.packedTransparent = false;\n// ivState.transpType = SoGLRenderAction.TransparencyType.SCREEN_DOOR.ordinal(); \n// ivState.cacheLevelSetBits = 0;\n// ivState.cacheLevelSendBits = 0;\n// ivState.overrideBlending = false;\n// \n// ivState.useVertexAttributes = false;\n//\n// ivState.drawArraysCallback = null;\n// ivState.drawElementsCallback = null; \n// ivState.drawArraysCallbackUserData = null;\n// ivState.drawElementsCallbackUserData = null; \n\n coinstate.ambient.copyFrom(getDefaultAmbient());\n coinstate.specular.copyFrom(getDefaultSpecular());\n coinstate.emissive.copyFrom(getDefaultEmissive());\n coinstate.shininess = getDefaultShininess();\n coinstate.blending = /*false*/0;\n coinstate.blend_sfactor = 0;\n coinstate.blend_dfactor = 0;\n coinstate.alpha_blend_sfactor = 0;\n coinstate.alpha_blend_dfactor = 0;\n coinstate.lightmodel = LightModel.PHONG.getValue();\n coinstate.packeddiffuse = false;\n coinstate.numdiffuse = 1;\n coinstate.numtransp = 1;\n coinstate.diffusearray = SbColorArray.copyOf(lazy_defaultdiffuse);\n coinstate.packedarray = IntArrayPtr.copyOf(lazy_defaultpacked);\n coinstate.transparray = FloatArray.copyOf(lazy_defaulttransp);\n coinstate.colorindexarray = IntArrayPtr.copyOf(lazy_defaultindex);\n coinstate.istransparent = false;\n coinstate.transptype = (int)(SoGLRenderAction.TransparencyType.BLEND.getValue());\n coinstate.diffusenodeid = 0;\n coinstate.transpnodeid = 0;\n coinstate.stipplenum = 0;\n coinstate.vertexordering = VertexOrdering.CCW.getValue();\n coinstate.twoside = false ? 1 : 0;\n coinstate.culling = false ? 1 : 0;\n coinstate.flatshading = false ? 1 : 0;\n coinstate.alphatestfunc = 0;\n coinstate.alphatestvalue = 0.5f;\n}", "public Edge(Object vertex1, Object vertex2, int w){\n v1 = vertex1;\n v2 = vertex2;\n weight = w;\n }", "public void setVertexColorB(E3DVector4F vertexColor){\r\n\t\tthis.vertices[1].setVertexColor(vertexColor);\r\n\t}", "public void setVertexB(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[1] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}", "public void setColor(final float red, final float green, final float blue, final float alpha) {\n hasColor = true;\n color = new GLColor(red, green, blue, alpha);\n }", "void setOnePathNAlpha(float[] a, float[] b, float[] c, float[] d, int index) {\n // calculate and set the alpha of p\n alphas[index] = areaOf(a, b, c, d);\n Path path = faces[index];\n path.reset();\n front[index] = isFacingOut(a, b,c,d);\n if (!front[index]) {\n alphas[index] = Math.min(255, alphas[index] + 10);\n } else {\n alphas[index] = Math.max(0, alphas[index] - 10);\n }\n path.moveTo(a[0], a[1]);\n path.lineTo(b[0], b[1]);\n path.lineTo(c[0], c[1]);\n path.lineTo(d[0], d[1]);\n path.lineTo(a[0], a[1]);\n path.close();\n }", "public void addVertex();", "public ColorWeight()\n {\n weight = 0;\n }", "private void\tsetColor(GL2 gl, int r, int g, int b, int a)\n\t{\n\t\tgl.glColor4f(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f);\n\t}", "public int getColor();", "public int getColor();", "public Vivid() {\n super(\n new Color(229, 134, 6),\n new Color(93, 105, 177),\n new Color(82, 188, 163),\n new Color(153, 201, 69),\n new Color(204, 97, 176),\n new Color(36, 121, 108),\n new Color(218, 165, 27),\n new Color(47, 138, 196),\n new Color(118, 78, 159),\n new Color(237, 100, 90),\n new Color(204, 58, 142),\n new Color(165, 170, 153)\n\n );\n\n }", "public void vertex(PointType p)\r\n\t{\r\n\t // System.out.println(\"vert: \"+p.x+\", \"+p.y+\", \"+p.z);\r\n\t\tgl.glVertex3d(p.x, p.y, p.z);\r\n\t}", "public short getVertexType() {\n return REQUIRED_VERTEX;\n }", "public void colour4F(float r, float g, float b, float a) {\n buffer(() -> colour.set(r, g, b, a));\n }", "@Override\n\t\t\tpublic void setAlpha(int alpha) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void glSetup(Context cx) {\n\t\tmShader = ShaderHelper.glGenerateShader(cx, \"vertex_shader\",\n\t\t\t\t\"scene_enhance_fragment_shader\", \"aPosition\", \"uMVPMatrix\",\n\t\t\t\t\"uTexture\", \"uTextureCurve\");\n\n\t}", "float getAlpha();", "Vertex createVertex();", "public static Vector4f randomColor() {\n return new Vector4f(RANDOM.nextFloat(), RANDOM.nextFloat(), RANDOM.nextFloat(), 1);\n }", "protected int getShadeAlpha() {\n int a = currAlpha - 80;\n if (a < 0)\n a = 0;\n return a;\n }", "public wVertex(String s){\r\n name = s;\r\n adjacencies = new ArrayList<Edge>();\r\n }", "public Vertex(){\n\n }", "void glVertexAttribPointer(int indx, int size, int type, boolean normalized,\n int stride, Buffer ptr, int bufferIndex, int bufferSize);", "public Colour() {\n\t\tset(0, 0, 0);\n\t}", "@Override\n\tpublic void setAlpha(int alpha) {\n\n\t}", "public void setColor(float[] color){\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n }", "public void addFragmentShader(String fileName);", "public Vertex(int n, boolean c, int r, int b, int p) {\n number = n;\n blue = c;\n remainingTime = r;\n bluetime = b;\n purpletime = p;\n }", "public Vertex3D(double x, double y, double z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }", "public void setAlpha(int alpha)\n {\n \tthis.alpha=alpha; \n }", "public V addVertex(V v);", "void addVertex(Vertex v);", "void add(int vertex);", "public Vertex (String name)\n\t{\n\t vertexName = name ;\n\t adjacencyList = new DoublyLinkedList<>();\n\t indegree = 0;\n\t\t\n\t}", "@Override\r\n\tpublic Color getVertexColor(E key) {\r\n\t\tif(containsVertex(key)) {\r\n\t\t\treturn vertices.get(key).getColor();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Vertex(String argName) {\n name = argName;\n }", "@Override\r\n\tpublic vec4 get4(String ponits) {\n\t\treturn null;\r\n\t}", "public void addVertexShader(String fileName);", "public abstract Vector4fc set(float x, float y, float z, float w);", "public ColorVector(float red, float green, float blue) {\n this.red = red;\n this.green = green;\n this.blue = blue;\n }", "public void setDefaultColor(float[] rgba) {\n \tif (rgba.length==4){\n \t\tdefaultColor = rgba.clone();\n \t\tcolorBuf = null;\n \t}\n }", "void setAlpha(double alpha) {\n this.alpha = alpha;\n }", "void setColor(Vector color);", "public Color() {\n\n\t\tthis(0, 0, 0);\n\t}", "public void setAlpha(int newAlpha)\n {\n setColor(getColor().withAlpha(newAlpha));\n }" ]
[ "0.6705138", "0.64218813", "0.6278425", "0.60956275", "0.60646105", "0.6031709", "0.6026722", "0.5968214", "0.58836985", "0.58804435", "0.5836097", "0.58346343", "0.58292854", "0.5824714", "0.5783134", "0.5782277", "0.5760307", "0.5725326", "0.57187265", "0.56438357", "0.5615901", "0.55954176", "0.55948246", "0.5555277", "0.55134374", "0.55004555", "0.5468046", "0.5463015", "0.5428732", "0.54088396", "0.53917974", "0.53909934", "0.53649515", "0.53637993", "0.5361616", "0.53462994", "0.53235155", "0.53235155", "0.531139", "0.5311049", "0.5283148", "0.52823406", "0.5268547", "0.5260353", "0.5258419", "0.52452075", "0.52352625", "0.52281016", "0.52161515", "0.5214009", "0.5208233", "0.5207963", "0.520255", "0.51790196", "0.5175791", "0.517159", "0.5169557", "0.5164748", "0.5160783", "0.5155939", "0.51523", "0.5150924", "0.5144368", "0.5136842", "0.5136842", "0.5129514", "0.51284003", "0.51266485", "0.5124359", "0.51209694", "0.51199317", "0.5112732", "0.51118976", "0.510732", "0.5102406", "0.50933903", "0.50681484", "0.50437576", "0.50382626", "0.50368613", "0.5036172", "0.50337565", "0.5021977", "0.50152934", "0.50142795", "0.5013027", "0.50107515", "0.5009946", "0.50022113", "0.4984405", "0.49832663", "0.49827048", "0.49763283", "0.4970269", "0.49697667", "0.4969038", "0.49657676", "0.4959753", "0.49573517", "0.4952145", "0.49481544" ]
0.0
-1
int carry = 3; System.out.println(carry >>= 1); System.out.println(carry); System.out.println(carry >= 1);
public static void main(String[] args) { // System.out.println(carry); // System.out.println(carry <<= 1); // System.out.println(carry >>= 1); int[] digits = {1,2,3}; digits = new int[digits.length + 1]; digits[0] = 1; System.out.println(digits[0]); System.out.println(digits[1]); System.out.println(digits[2]); System.out.println(digits[3]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nint a=10;\nint b=13; // For right shift of b:b >> 1\n//int c = a | b; //For OR gate\n//int c= a & b;// For AND gate\nint c=b<<1;//For left shift of b is multiply of b\na >>= 2; //Assignment Operator\nSystem.out.println(c);\nSystem.out.println(a);\nSystem.out.println(a>b);//comparision operator\n\n\t}", "private static void testShift() {\n for (int a:new int[]{96754441, -206107026, 803362655, Integer.MIN_VALUE+1}) {\n System.out.println(\"<<\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a<<i) + \" \" + (a<<i));\n }\n System.out.println();\n System.out.println(\">>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>i) + \" \" + (a>>i));\n }\n System.out.println();\n System.out.println(\">>>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>>i) + \" \" + (a>>>i));\n }\n System.out.println();\n }\n }", "public static void main(String[] args) {\n System.out.println(32>>2);// 0010 0000>>2= 0000 1000=8\n\n System.out.println(32/4);//32除以2的2次幂\n\n System.out.println(8<<2);// 0000 1000<<2=0010 0000=32\n System.out.println(8*4);//8 乘以2的2次幂\n\n System.out.println(2<<2);//2*2(2)=8\n\n System.out.println(-32>>>2);//32除以2的2次幂\n\n\n }", "private static int shiftLeftOneInPlace(int[] x, int carry)\n {\n int pos = x.length;\n while (--pos >= 0)\n {\n int val = x[pos];\n x[pos] = (val << 1) | carry;\n carry = val >>> 31;\n }\n return carry;\n }", "private static long value(long x) {\n return (x<<1) >> 1; // 1\n }", "public boolean isCarry() {\n\t\treturn ((get() >> 4) & 1) == 1;\n\t}", "private int getBit(int value, int k) {\r\n\t\treturn (value >> k) & 1;\r\n\t}", "public abstract boolean testRightmostBit();", "int left(int i) { return i<<1; }", "static int isolateBit(int n){\n return n & (-n);\n }", "private boolean CarryFromBit3(int dvalue) { return (Utils.bit3(dvalue)); }", "public static void main(String []args){\n int x =10;\n System.out.println(x);\n System.out.println(x++);\n System.out.println(++x);\n System.out.println(x--);\n System.out.println(--x);\n //Example of a ternary operator\n int a= 20;\n int b=10;\n int min=(a<b)?a:b;\n System.out.println(\"This is the min value:\"+min);\n int max=(a>b)?a:b;\n System.out.println(\"This is the max value:\"+max);\n //Demonstrating Shift operator\n int c= 20 << 2;\n int d=20 >> 2;\n System.out.println(\"This is left shift:\"+c);\n System.out.println(\"This is right shift:\"+d);\n\n\n }", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "public static void main(String[] args) {\n\t\t\n\t\tbyte a = 20;\n\t\tint b = a >> 8;\n\n\t\tSystem.out.println(b == 0);\n\t\t\n\t\tlong c = 131060;\n\n\t\tSystem.out.println(c >= 1 << 17);\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tint num = 8;\n\t\tint a = num & 1;\n\t\tSystem.out.println(a);\n\t\tif(a>0)\n\t\t\tSystem.out.println(\"Odd!\");\n\t\telse\n\t\t\tSystem.out.println(\"Even!\");\n\t}", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "static int toggleBit(int n){\n return n & (n-1);\n }", "private boolean isPowerOfTwo(int x) {\n return (x & (x - 1)) == 0;\n }", "private static int mask(int bit) {\n return MSB >>> bit;\n }", "protected abstract boolean shift();", "private boolean isPowerOfTwo(int i){\n return (i & (i - 1)) == 0;\n }", "protected final byte operationROL(final byte data) {\r\n int data_ = (data & 0xff) << 1;\r\n\r\n if (this.carryFlag) {\r\n ++data_;\r\n }\r\n this.carryFlag = data_ >= 0x100;\r\n data_ &= 0xff;\r\n this.zeroFlag = data_ == 0;\r\n this.signFlag = data_ >= 0x80;\r\n\r\n return (byte)data_;\r\n }", "public static void main(String[] args) {\n\t\tint i=10;\n\t\tSystem.out.println(Integer.toBinaryString(i));\n\t\tSystem.out.printf(\"%d --> %s \\n\",i<<1,Integer.toBinaryString(i<<1));\n\t\tSystem.out.printf(\"%d --> %s \\n\",i>>1, Integer.toBinaryString(i>>1));\n\t\t\n\t\tSystem.out.println(i&(1<<0));\n\t}", "public static void main(String[] args) {\nint a = 4;\n\na += 2;\na -= 2;\na %= 2;\n\n\nSystem.out.println(a);\n\t\t\n\t\t\n\t\t\n\t}", "public boolean isSubtraction() {\n\t\treturn ((get() >> 6) & 1) == 1;\n\t}", "public static void main(String[] args) {\nint a=10;\nSystem.out.println(a);\na+=2;\nSystem.out.println(a);\na-=2;\nSystem.out.println(a);\na*=2;\nSystem.out.println(a);\na/=2;\nSystem.out.println(a);\na%=2;\nSystem.out.println(a);\n\t}", "public static int fourthBit(int num) {\n String s = Integer.toString(num, 2);\n if(s.charAt(s.length()-4)=='0'){\n return 0;\n }\n //System.out.println(c);\n return 1;\n }", "protected final byte operationROR(final byte data) {\r\n int data_ = data & 0xff;\r\n\r\n if (this.carryFlag) {\r\n data_ |= 0x100;\r\n }\r\n this.carryFlag = (data_ & 0x01) != 0;\r\n data_ >>= 1;\r\n this.zeroFlag = data_ == 0;\r\n this.signFlag = data_ >= 0x80;\r\n\r\n return (byte)data_;\r\n }", "public static BinaryExpression leftShift(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static int method_2686(int var0) {\r\n return var0 & 7;\r\n }", "private boolean CarryFromResult(int dvalue, int rvalue, int result)\n {\n return (Utils.bit7(dvalue) && Utils.bit7(rvalue)) || (Utils.bit7(rvalue) && !Utils.bit7(result)) || (!Utils.bit7(result) && Utils.bit7(dvalue));\n }", "int getBitAsInt(int index);", "public static void main(String args[]) {\n\n\tchar c1 = 'S';\n\tSystem.out.println(c1 + 2);\n\tSystem.out.println(c1 - 2);\n\tSystem.out.println(c1 * 2);\n\tSystem.out.println(c1 / 2);\n\tSystem.out.println(c1 << 2);\n\tSystem.out.println(c1 >>> 2);\n\tSystem.out.println(c1 >> 2);\n\tSystem.out.println(c1 | 2);\n\tSystem.out.println(c1 & 2);\n\tSystem.out.println(c1 ^ 2);\n\n\tbyte b1 = 127;\n\tSystem.out.println(b1 + 2);\n\tSystem.out.println(b1 - 2);\n\tSystem.out.println(b1 * 2);\n\tSystem.out.println(b1 / 2);\n\tSystem.out.println(b1 << 2);\n\tSystem.out.println(b1 >>> 2);\n\tSystem.out.println(b1 >> 2);\n\tSystem.out.println(b1 | 2);\n\tSystem.out.println(b1 & 2);\n\tSystem.out.println(b1 ^ 2);\n\n\n\tshort s1 = 127;\n\tSystem.out.println(s1 + 2);\n\tSystem.out.println(s1 - 2);\n\tSystem.out.println(s1 * 2);\n\tSystem.out.println(s1 / 2);\n\tSystem.out.println(s1 << 2);\n\tSystem.out.println(s1 >>> 2);\n\tSystem.out.println(s1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tint i1 = 127;\n\tSystem.out.println(i1 + 2);\n\tSystem.out.println(i1 - 2);\n\tSystem.out.println(i1 * 2);\n\tSystem.out.println(i1 / 2);\n\tSystem.out.println(i1 << 2);\n\tSystem.out.println(i1 >>> 2);\n\tSystem.out.println(i1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tlong l1 = 12345678910L;\n\tSystem.out.println(l1 + 2);\n\tSystem.out.println(l1 - 2);\n\tSystem.out.println(l1 * 2);\n\tSystem.out.println(l1 / 2);\n\tSystem.out.println(l1 << 2);\n\tSystem.out.println(l1 >>> 2);\n\tSystem.out.println(l1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tfloat f1 = 667.123476F;\n\tSystem.out.println(f1 + 2);\n\tSystem.out.println(f1 - 2);\n\tSystem.out.println(f1 * 2);\n\tSystem.out.println(f1 / 2);\n\n\tdouble d1 = 32383.2345769172340;\n\tSystem.out.println(f1 + d1);\n\tSystem.out.println(f1 - d1);\n\tSystem.out.println(f1 * d1);\n\tSystem.out.println(f1 / d1);\n\n\n\n\tByte b2 = 127;\n\tSystem.out.println(b2 + 2);\n\tSystem.out.println(b2 - 2);\n\tSystem.out.println(b2 * 2);\n\tSystem.out.println(b2 / 2);\n\tSystem.out.println(b2 << 2);\n\tSystem.out.println(b2 >>> 2);\n\tSystem.out.println(b2 >> 2);\n\n\tShort s2 = 13245;\n\tSystem.out.println(s2 + 2);\n\tSystem.out.println(s2 - 2);\n\tSystem.out.println(s2 * 2);\n\tSystem.out.println(s2 / 2);\n\tSystem.out.println(s2 << 2);\n\tSystem.out.println(s2 >>> 2);\n\tSystem.out.println(s2 >> 2);\n\n\tCharacter c2 = 'C';\n\tSystem.out.println(c2 + 2);\n\tSystem.out.println(c2 - 2);\n\tSystem.out.println(c2 * 2);\n\tSystem.out.println(c2 / 2);\n\tSystem.out.println(c2 << 2);\n\tSystem.out.println(c2 >>> 2);\n\tSystem.out.println(c2 >> 2);\n\n\tInteger i2 = 127;\n\tSystem.out.println(i2 + 2);\n\tSystem.out.println(i2 - 2);\n\tSystem.out.println(i2 * 2);\n\tSystem.out.println(i2 / 2);\n\tSystem.out.println(i2 << 2);\n\tSystem.out.println(i2 >>> 2);\n\tSystem.out.println(i2 >> 2);\n\n\tLong l2 = 122273757L;\n\tSystem.out.println(l2 + 2);\n\tSystem.out.println(l2 - 2);\n\tSystem.out.println(l2 * 2);\n\tSystem.out.println(l2 / 2);\n\tSystem.out.println(l2 << 2);\n\tSystem.out.println(l2 >>> 2);\n\tSystem.out.println(l2 >> 2);\n\n\tFloat f2 = 123.44765896F;\n\tSystem.out.println(f2 + 2);\n\tSystem.out.println(f2 - 2);\n\tSystem.out.println(f2 * 2);\n\tSystem.out.println(f2 / 2);\n\n\tDouble d2 = 12322387.44765896;\n\tSystem.out.println(d2 + 2);\n\tSystem.out.println(d2 - 2);\n\tSystem.out.println(d2 * 2);\n\tSystem.out.println(d2 / 2);\n }", "@Override\n\tpublic Procedure3<java.lang.Integer, UnsignedInt6Member, UnsignedInt6Member> bitShiftRight() {\n\t\treturn SHRZ;\n\t}", "boolean isOddOrEven(int n){\n return (n & 1) == 0;\n }", "public BigInteger shiftLeftOneBit() {\n return signum() == 0 ? this : BitLevel.shiftLeftOneBit(this);\n }", "private static int xorShift(int r) {\n r ^= r << 1;\n r ^= r >>> 3;\n r ^= r << 10;\n return r;\n }", "public int getSum(int a, int b) {\n\n while(b!=0){ //check till carry is not equal to zero\n int carry = a&b;\n a=a^b;\n b=carry<<1;\n }\n return a;\n }", "static int add(int a, int b){\n int carry = 0;\n int result = 0;\n int i;\n for(i=0; a>0||b>0; i++){\n int ba = a&1;\n int bb = b&1;\n result = result|((carry^ba^bb)<<i);\n carry = (ba&bb) | (bb&carry) | (carry&ba);\n a = a>>1;\n b = b>>1;\n }\n return result|(carry<<i);\n }", "public static void main(String[] args) {\n\t\tint n = (18 & 4) * (19 & 5);\r\n\t\tint a = (19 & 5);\r\n\t\tSystem.out.println(n);\r\n\t\tSystem.out.println(a);\r\n\t}", "public boolean isHalfCarry() {\n\t\treturn ((get() >> 5) & 1) == 1;\n\t}", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "private static void toggle(long num, int pos) {\n\t\tlong temp = 1l << pos;\n\t\tlong result = num ^ temp;\n\t\tSystem.out.println(result);\n\t}", "void shiftLeft(int numberToShift);", "public boolean getCarryFlag() {\n // PROGRAM 1: Student must complete this method\n // return value is a placeholder, student should replace with correct return\n //if index of carry out in the array holding the result from add/sub operation is true,\n if (adder[1]) {\n carryFlag = true; //there is a carry out.\n } else {\n carryFlag = false; //otherwise, there is not.\n }\n return carryFlag; //return the carryFlag\n }", "private static long newValue(long v) {\n return (v<<1) >>> 1; // 1\n }", "public static void main (String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int temp = num;\n int c = 0;\n \n while (num != 0)\n {\n int a = num%10;\n num = num/10;\n c = c + (a*a*a);\n \n }\n \n \n \n if(c == temp)\n System.out.println(\"Armstrong Number\");\n else\n System.out.println(\"Not a Armstrong Number\");\n \n\t}", "public static void main(String[] args) {\n\r\n int i = +10;\r\n int i2 = -10;\r\n int i3 = ++i;\r\n int i4 = i++;\r\n int i5 = --i;\r\n int i6 = i--;\r\n\r\n // *** Binary Arithmetic Operators\r\n\r\n//\t\t+\r\n//\t\t-\r\n//\t\t/\r\n//\t\t%\r\n//\t\t*\r\n\r\n int i7 = 10 + 1;\r\n int i8 = i7 - 1;\r\n int i9 = i8 / 2;\r\n int i10 = i9 % 2;\r\n int i11 = 5 % 10;\r\n int i12 = i10 * 3;\r\n\r\n System.out.println(i7);\r\n System.out.println(i8);\r\n System.out.println(i9);\r\n System.out.println(\"Hello \" + \"World\" + \"!\"); // used for concatination\r\n\r\n // ============ Assignment Operators\r\n\r\n//\t\t=\r\n//\t\t+=\r\n//\t\t-=\r\n//\t\t*=\r\n//\t\t/=\r\n//\t\t%=\r\n\r\n int i13 = 10;\r\n i13 += 2;\r\n System.out.println(i13);\r\n\r\n // ============ Relational Operators\r\n\r\n//\t\t==\r\n//\t\t!=\r\n//\t\t>\r\n//\t\t<\r\n//\t\t>=\r\n//\t\t<=\r\n\r\n System.out.println(\"===== Relational Operators =====\");\r\n\r\n int y = 10;\r\n int j = 20;\r\n\r\n System.out.println(y == j);\r\n System.out.println(y != j);\r\n System.out.println(y > j);\r\n System.out.println(y < j);\r\n System.out.println(y >= j);\r\n System.out.println(y <= j);\r\n\r\n // ============ Logical Operators\r\n\r\n//\t\t&\r\n//\t\t&&\r\n//\t\t|\r\n//\t\t||\r\n//\t\t!\r\n//\t\t^\r\n\r\n System.out.println(false && (5 / 5 == 0) );\r\n System.out.println(true || (5 / 7 == 0) );\r\n System.out.println(\"!true = \" + !true);\r\n System.out.println(true ^ false);\r\n\r\n\r\n // ============ Bitwise Operators\r\n\r\n//\t\t&\r\n//\t\t|\r\n//\t\t^\r\n//\t\t~\r\n//\t\t>>\r\n//\t\t>>>\r\n//\t\t<<\r\n\r\n System.out.println(\"4 & 5 = \" + (4 & 5)); // 4\r\n /*\r\n * \t\t\t\t1 0 0\r\n * \t\t\t\t& & &\r\n * \t\t\t\t1 0 1\r\n * \t\t\t\t-----\r\n * \t\t\t\t1 0 0 = 4\r\n */\r\n\r\n System.out.println(\"4 | 5 = \" + (4 | 5)); // 5\r\n /*\r\n * \t\t\t\t1 0 0\r\n * \t\t\t\t| | |\r\n * \t\t\t\t1 0 1\r\n * \t\t\t\t-----\r\n * \t\t\t\t1 0 1 = 5\r\n */\r\n\r\n System.out.println(\"4 ^ 5 = \" + (4 ^ 5)); // 1\r\n /*\r\n * \t\t\t\t1 0 0\r\n * \t\t\t\t^ ^ ^\r\n * \t\t\t\t1 0 1\r\n * \t\t\t\t-----\r\n * \t\t\t\t0 0 1 = 1\r\n */\r\n\r\n // ============ Ternary Operator\r\n\r\n//\t\t(condition) ? true expression : false expression\r\n\r\n System.out.println(5 > 1 ? \"2 is greater than one\" : \"2 is not less than one\");\r\n System.out.println(2 < 1 ? \"2 is greater than one\" : \"2 is not less than one\");\r\n\r\n // ============ Operator Precedence\r\n//\r\n//\t\tPrecedence highest to lowest among brackets.\r\n//\t\t()\r\n//\t\t[]\r\n//\t\t·\r\n//\r\n// Precedence highest to lowest among postfix and prefix.\r\n//\t\t++\r\n//\t\t--\r\n//\r\n// Precedence highest to lowest among urinary operators.\r\n//\t\t+\r\n//\t\t—\r\n//\t\t!\r\n//\t\t~\r\n//\t\t( type )\r\n//\r\n// Precedence highest to lowest among binary operators.\r\n//\t\t*\r\n//\t\t/\r\n//\t\t%\r\n//\t\t+\r\n//\t\t–\r\n//\r\n// Precedence highest to lowest among shift operator.\r\n//\t\t<<\r\n//\t\t>>\r\n//\t\t>>>\r\n//\r\n// Precedence highest to lowest among rational operators.\r\n//\t\t<\r\n//\t\t<=\r\n//\t\t>\r\n//\t\t>=\r\n//\t\tinstanceof\r\n//\r\n// Precedence highest to lowest among equality operator.\r\n//\t\t==\r\n//\t\t!=\r\n//\r\n// Precedence highest to lowest among bitwise operator.\r\n//\r\n//\t\t&\r\n//\r\n//\r\n//\t\t^\r\n//\r\n//\r\n//\t\t|\r\n//\r\n//\r\n//\t\t&&\r\n//\r\n//\r\n//\t\t||\r\n//\r\n//\r\n//\t\t? :\r\n//\r\n// Precedence highest to low among Assignment operators\r\n//\t\t=\r\n//\t\t+=\r\n//\t\t-=\r\n//\t\t*=\r\n//\t\t/=\r\n//\t\t%=\r\n\r\n // Using Parantheses\r\n\r\n /*\r\n Parentheses raise the precedence of the operations that are inside them. This is\r\n often necessary to obtain the result you desire. For example, consider the\r\n following expression:\r\n\r\n a >> b + 3\r\n\r\n This expression first adds 3 to b and then shifts a right by that result. That is,\r\n this expression can be rewritten using redundant parentheses like this:\r\n a >> (b + 3)\r\n\r\n However, if you want to first shift a right by b positions and then add 3 to that result,\r\n you will need to parenthesize the expression like this:\r\n\r\n (a >> b) + 3\r\n */\r\n\r\n int a = 5;\r\n int b = 5;\r\n System.out.println(\"------------------------------\");\r\n System.out.println(a >> (b + 3)); // 0\r\n\r\n // After altering parantheses\r\n\r\n System.out.println((a >> b) + 3); //3\r\n\r\n\r\n // Test equality btw String and other objects using == and equals()\r\n\r\n String s = new String(\"hello\");\r\n String h = \"hello\";\r\n System.out.println(\"*******************\");\r\n\r\n System.out.println(s==h); //false\r\n System.out.println(s.equals(h)); //true\r\n\r\n int n = 78;\r\n int v = 79;\r\n\r\n System.out.println(n==v); //false\r\n\r\n int[] ar = {1,2,3};\r\n int[] yu = {1,2,3};\r\n\r\n System.out.println(Arrays.equals(ar, yu)); //true\r\n System.out.println(ar == yu); //false\r\n\r\n }", "public static int negative(int b) {\n return (b >> 8) & 1;\n }", "public static int getBit(byte input,int position){\n return (input >> position) & 1;\n }", "public static void main(String[] args)\n\t{\n\t\tint n = 3;\n\t\tint m = 8;\n\t\t\n\t\tint tmp = m;\n\t\t\n\t\tif( (tmp >> (n-1) & 1) == 1)\n\t\t\ttmp &=~(1 << (n-1)) ;\n\t\telse\n\t\t\ttmp |=(1 << (n-1)) ;\n\t\t\n\t\tSystem.out.println(tmp);\n\t\t\n\t\tSystem.out.println(m ^= (1<<n-1));\n\t}", "public static void main(String[] args) {\n int a = 0b10011;\n int res = Integer.rotateRight( a,2 );\n System.out.println(toBinaryString( a ) + \" RCIRC-2 ->\" + toBinaryString( res ) );\n System.out.println(toBinaryString( a ) + \" RCIRC-2 ->\" + toBinaryString( RCIRC( a,2 ) ) );\n\n //LCIRC-3(01101) = 01011\n //01000 <<3\n // 011 >>>2\n //01011 OR\n a = 0b01101;\n System.out.println(toBinaryString( a ) + \" LCIRC-3 ->\" + toBinaryString( LCIRC( a,3 ) ));\n\n\n String e1 = \"LSHIFT-2(10011 XOR 00110) OR (LCIRC-2(RCIRC-2(10001)))\";\n int res1 = ((0b10011 ^ 0b00110)>>>2) | LCIRC( RCIRC(0b10001 ,2 ), 2);\n System.out.println(e1 + \" = \" + toBinaryString( res1 ) + \", manual = 10101\");\n\n String e2 = \"( (RSHIFT-3(01000) XOR NOT(00110) ) AND (01101 OR RCIRC-2(10011))\";\n int res2 = ((0b01000>>>3) ^ (~0b00110)) & (0b01101 | RCIRC(0b10011, 2 ));\n\n System.out.println(e2 + \" = \" + toBinaryString( res2 ) + \", manual = ?????\");\n\n\n System.out.println(\"X AND 11010 = 01000, find all X\");\n for (byte i = 0; i <= 0b11111; i++) {\n if ((i & 0b11010)== 0b01000) {\n System.out.println(toBinaryString( i ));\n }\n }\n }", "bool isEven(int n)\r\n{\n\tif (n ^ 1 == n + 1)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}", "public static void main(String[] args) {\n\t\t\n\t\tint a = 5;\n\t\tint b = 6;\n//\t\tboolean c = a > b;\n//\t\tSystem.out.println(!c);\n\t\tSystem.out.println(!(boolean)(a > b));\n//\t\tint c = a & b;\n//\t\tint a = 10;\n//\t\tint b = 13;\n//\t\tint c = a | b;\n\t\t\n//\t\t1101 -> 0110 -> 0011 -> 0001 -> 0000 -> 0000; in right shift operation--everytime(>>1) divided by 2.\n//\t\t1101 -> 1010 -> 0100 -> 1000 -> 0000 -> 0000; in left shift operation--everytime(<<1) multiplied by 2.\n//\t\tint b = 13;\n//\t\tint c = b >> 2;\n//\t\tint d = b << 1;\n//\t\tSystem.out.println(c);\n//\t\tSystem.out.println(d);\n\n\t}", "private int signBit() {\n return signum < 0 ? 1 : 0;\n }", "void shiftRight(int numberToShift);", "boolean multipleOf2(int num)\n {\n return (num & 0b1) != 1;\n }", "void showBits(long val) {\r\n\t\tlong mask = 1;\r\n\t\t\r\n\t\t// left- shift a 1 into the proper position\r\n\t\tmask <<= numBits-1;\r\n\t\t\r\n\t\tint spacer = 8 - (numBits % 8);\r\n\t\tfor (; mask != 0; mask >>>=1) {\r\n\t\t\tif((val & mask)!=0)System.out.print(\"1\");\r\n\t\t\telse System.out.print(\"0\");\r\n\t\t\t\r\n\t\t\tspacer++;\r\n\t\t\t\r\n\t\t\tif((spacer % 8) ==0) {\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tspacer = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "boolean bitSet(int p, int b) // check if int p bit b is 1\n {\n return ((p>>b) & 1)>0;\n }", "public static void main(String[] args) {\n int a = 15;\n int b = 17;\n\n System.out.println(\"a = \"+a+\" b = \"+b);\n\n a = a^b;\n b = a^b;\n a = a^b;\n\n System.out.println(\"a = \"+a+\" b = \"+b);\n }", "protected boolean getBit(long word, long position) {\n\t\treturn (word & (1L << position)) != 0;\n\t}", "@Test\n public void test2(){\n\n String s =\"1000000000000001\";\n //s = BinaryCalculate.BinaryArithmeticalRightShift(s,1);\n s = BinaryCalculate.BinaryLogicRightShift(s,1);\n int a = BitConversion.fromBinaryStringToInt(s);\n System.out.println(a);\n }", "private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }", "private int getLowTenBitNumber(int num) {\n return num & 1023;\n }", "public PerformOperation isOdd() {\n return n -> ((n & 1) == 1);\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "private int m10266c(int i) {\r\n return (i << 1) ^ (i >> 31);\r\n }", "protected final void operationLSRAccumulator() {\r\n this.carryFlag = (this.ac & 0x01) != 0;\r\n this.ac >>= 1;\r\n this.zeroFlag = (this.ac == 0);\r\n this.signFlag = false;\r\n }", "private int addBinary(int a, int b) {\n if (b == 0) {\r\n return a;\r\n }\r\n \r\n // XOR is like doing a sum without carrying the remainders\r\n int sum = a ^ b;\r\n \r\n // AND shifted left is like getting just the remainders\r\n int carry = (a & b) << 1;\r\n \r\n return addBinary(sum, carry);\r\n }", "static boolean isPowerOfTwo(int n) \n{\n\tif (n==0) return false;\n \treturn (n & (n-1)) == 0;\n}", "public static int getBit(byte b,int position)\n\t{\n\t return ((b >> position) & 1);\n\t}", "private static int runStateOf(int c) { return c & ~CAPACITY; }", "public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Constants.BIT_FALSE;\n }", "private int Ch(int x, int y, int z) {\n return (x & y) ^ (~x & z);\n }", "private int Sigma0(int x) {\n int a = ROTR(7, x);\n int b = ROTR(18, x);\n int c = x >>> 3;\n int ret = a ^ b ^ c;\n return ret;\n }", "int nextBits(int bits);", "public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }", "public static int flipBit(int value, int bitIndex) {\n\n// value = value ^ (1<<(bitIndex-1));\n\n return value ^ (1<<(bitIndex-1)); // put your implementation here\n }", "boolean getBit(int index);", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "public int getBit() {\r\n return _bit;\r\n }", "public static int sign(int num) {\n\t\treturn (num >> 31) & 1;\n\t}", "public int getSignificantBit(int num){\r\n int significantBit = 0;\r\n while (num != 1) {\r\n num = num/2;\r\n ++significantBit;\r\n if(num==1) {\r\n ++significantBit;\r\n }\r\n }\r\n return significantBit;\r\n }", "protected final void operationAND(final int data) {\r\n this.ac &= data;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n }", "private int Sigma1(int x) {\n int a = ROTR(17, x);\n int b = ROTR(19, x);\n int c = x >>> 10;\n int ret = a ^ b ^ c;\n return ret;\n }", "public static boolean bitTester(int x, int k) {\n\t\tx = x >> k;\n\t\treturn (x & 1) == 1; // x's kth bit\n\t}", "private static void create(int num1, int num2) {\n\t\tlong result = (~(~0<<num1)) << num2;\n\t\tSystem.out.println(result);\n\t}", "public static void main(String[] args) {\n\t\n\tSystem.out.println(10>9);\n\tboolean resultA = 10> 9; \n\t\n\tSystem.out.println(resultA);\n\tSystem.out.println(10>=9); // greater or equal\n\t\n\tboolean resultB= 10>=9; \n\tSystem.out.println(resultB);\n\t\n\tboolean resultC = 10<=9; \n\tSystem.out.println(resultC);\n\t\n\tboolean resultD= 1100 <1200;\n\tSystem.out.println(resultD);\n\t\n\tboolean resultE = 1000 < 1000; \n\tSystem.out.println(resultE);\n\t\t\t\n\tboolean resultF = 1000 <= 1000; \n\tSystem.out.println(resultF);\n\t\n\t\n\t\n\t\n\tboolean A = ! false ; \n\tSystem.out.println(A);\n\t\n\tboolean B = ! true; \n\tSystem.out.println(B);\n\t\n\tboolean C = ! false !=false; \n\tSystem.out.println(C);\n\t\n\t\n\t\n\t// practice ! (not) : \n\t\n\tboolean g = false; \n\tSystem.out.println(g);\n\t\n\tSystem.out.println(! g);\n\t\n\tSystem.out.println(!true == false);\n\t\n\t\n\t\n\tboolean h = \"Batch 12\" == \"Batch13\"; \n\tSystem.out.println(h);\n\n\tSystem.out.println( \" batch12\" != \"Batch12\");\n\tSystem.out.println(\"Kuzzat\" == \"bad guy\");\n\t\n\t\n\tint Num = 198; \n\tSystem.out.println(Num %= 2);\n\t\n\tbyte byteNum = 30; \n\t// int INum = INum + byteNum ; // we must give value to local variables . \n\t\n\t\n\tString str; \n\t// System.out.println(str);\n\t\n\t\n\t\n}", "public static void main(String[] args) {\n\t\tbyte c = 20; //0x14\r\n\t\tbyte d = -8; //0xf8\r\n\t\t\r\n\t\tSystem.out.println(\"[시프트 연산 결과]\");\r\n\t\tSystem.out.println(c<<2);//c값을 2비트 왼쪽 시프트\r\n\t\tSystem.out.println(c>>2);//c값을 2비트 오른쪽 시프트, 왼쪽에 최상위 비트 0삽입(양수)\r\n\t\tSystem.out.println(d>>2);//d값을 2비트 오른쪽 시프트, 왼쪽에 최상위 비트 1삽입(음수)\r\n\r\n\t\r\n\t\tSystem.out.printf(\"%04x\\n\", d);//shift이전의 값 00 f \t 8\r\n\t\t\t\t\t\t\t\t\t //\t\t\t \t1111 1000 ->(00삽입)0011 1110(삭제00\r\n\t\t\r\n\t\tSystem.out.printf(\"%x\\n\", (byte)(d>>>2));\r\n\t\t\r\n\t\tSystem.out.printf(\"%x\\n\", (int)d);//fffffff8\r\n\t\tSystem.out.printf(\"%x\\n\", (d>>>2));\r\n\t\tSystem.out.printf(\"%x\\n\", (d>>>2));//d를 2비트 오른쪽 시프트, 왼쪽에 무조건 0이 삽입됨\r\n\t\t// 3 f f f f f f e (int타입으로 변환됨)\r\n\t\t//0011 1111 1111 1111 1111 1111 1111 1110\r\n\t\t//1111\t1111 1111 1111 1111 1111 1111 1000((int)d)\r\n\t\t//0011\t1111 1111 1111 1111 1111 1111 1110(d>>>2)\r\n\t}", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\t\tint num = 0B00000101;\t//5의 8비트 2진수\n\t\t\n\t\tSystem.out.println(num<<2);\t//왼쪽으로 2비트 이동 00010100(20)\n\t\tSystem.out.println(num>>2);\t//오른쪽으로 2비트 이동00000001(1)\n\t\tSystem.out.println(num>>>2);\t//오른쪽으로 2비트 이동00000001(1)\n\t\t\n\t\tSystem.out.println(num);\t//num에 아무 값도 대입하지 않았으므로 5 출력\n\t\tnum<<=2;\t//2비트 이동한 값을 num에 대입\n\t\tSystem.out.println(num);\n\t}", "@Test\n\tpublic void testReverseBits1() {\n\t sut.reverseBits(65536);\n\t\t// ASSERT.that(sut.addBinary(i1, i2)).is(o);\n\t}", "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "public static void main (String[] args){\n Scanner in = new Scanner(System.in);\n int rem,t,sum=0;\n int n=in.nextInt();\n t=n;\n while(n!=0)\n {\n rem=n%10;\n sum=sum+(rem*rem*rem);\n n=n/10;\n }\n if(sum==t)\n System.out.println(\"Armstrong Number\");\n else\n System.out.println(\"Not a Armstrong Number\");\n }", "void carry(Item specifiedItem);", "public TribitByte shiftLeft(int shift){\n return shiftRight(-shift);\n }", "public static void main(String[] args) {\nshort i = 128;\r\nbyte shortToByte = (byte)i;\r\nSystem.out.println(shortToByte);\r\nbyte t = 127;\r\nt++;\r\nSystem.out.println(t);\r\nt++;\r\nSystem.out.println(t);\r\n\r\n\t}", "private static int getMaskAsInt(int nrBits) {\n return 0xFFFFFFFF >>> (32 - nrBits);\n }", "static long andOperator(long x, long y)\n {\n long res = 0; // Initialize result\n while (x > 0 && y > 0) {\n // Find positions of MSB in x and y\n int msb_p1 = msbPos(x);\n int msb_p2 = msbPos(y);\n // If positions are not same, return\n if (msb_p1 != msb_p2)\n break;\n // Add 2^msb_p1 to result\n long msb_val = (1 << msb_p1);\n res = res + msb_val;\n // subtract 2^msb_p1 from x and y.\n x = x - msb_val;\n y = y - msb_val;\n }\n return res;\n }" ]
[ "0.6622923", "0.59811634", "0.5852937", "0.5610432", "0.558473", "0.5584293", "0.55767536", "0.5547564", "0.5510307", "0.5490763", "0.5471151", "0.5460396", "0.54473364", "0.54280776", "0.54174805", "0.54073435", "0.5319624", "0.5309806", "0.52555096", "0.52530587", "0.52362126", "0.520978", "0.5205744", "0.52050316", "0.52040684", "0.51903665", "0.5175936", "0.51416963", "0.51407593", "0.5104558", "0.5099951", "0.50985384", "0.5095737", "0.50949717", "0.50876397", "0.50808066", "0.5075186", "0.5073111", "0.5059778", "0.50300896", "0.5016362", "0.5010144", "0.500638", "0.50004745", "0.4997344", "0.49970487", "0.49628443", "0.49577183", "0.4954929", "0.4947457", "0.4945046", "0.49408633", "0.49379006", "0.49369273", "0.49356997", "0.4931491", "0.49298185", "0.49277997", "0.49274212", "0.4913134", "0.490829", "0.48995718", "0.48935634", "0.4891351", "0.4889755", "0.4874806", "0.48645523", "0.48625132", "0.48578653", "0.48505363", "0.484347", "0.4843407", "0.48403957", "0.48368058", "0.48273212", "0.4820031", "0.48175713", "0.4812704", "0.4812387", "0.48110953", "0.48040068", "0.48006546", "0.479741", "0.47934592", "0.47910365", "0.4787386", "0.47831342", "0.47793153", "0.4773903", "0.47557035", "0.4754339", "0.47542554", "0.47488138", "0.4746077", "0.47444713", "0.47435197", "0.47368973", "0.4734072", "0.47311968", "0.47161376" ]
0.5662808
3
click on fund option and verify
public String fundmethod() throws InterruptedException { fund.click(); Thread.sleep(3000); String actual =fund.getText(); System.out.println(actual); //String expected ="Funds"; //Assert.assertEquals(actual,expected); return actual; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickNoFee() {\n rbNoFee.click();\n }", "public void acceptAndProceed()\r\n {\r\n\t driver.findElement(By.id(\"PCNChecked\")).click();\r\n\t driver.findElement(By.xpath(\"/html/body/div[1]/div/div/main/div/main/div/div/div[1]/div/div/form/fieldset/div[3]/div[2]/button\")).click();\r\n }", "public void ClickOnUserAgreement() {\n\t\tUserAgreement.click();\n\t}", "public void SpecialRateplan_selection(String Rateplan) throws InterruptedException\r\n\t{\r\n\t\tif(SeleniumRepo.driver.findElement(By.xpath(\"//label[text()='\"+Rateplan+\"']\")).isDisplayed())\r\n\t\t{\r\n\t\t\tSeleniumRepo.driver.findElement(By.xpath(\"//label[text()='\"+Rateplan+\"']\")).click();\r\n\t\t\t//System.out.println(\"Rateplan selected successfully\");\r\n\t\t\ttest.log(Status.INFO, \"Rateplan selected successfully\");\r\n\r\n\t\t\tThread.sleep(2000);\t\r\n\t\t\tif (Specialdone.isDisplayed()) \r\n\t\t\t{\r\n\t\t\t\tSpecialdone.click();\r\n\t\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\t\t//System.out.println(\"Clicked on done\");\r\n\t\t\t\tlogger.info(\"Clicked on done\");\r\n\t\t\t\ttest.log(Status.INFO, \"Clicked on done\");\r\n\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"not Clicked on done\");\r\n\t\t\t\tlogger.error(\"not Clicked on done\");\r\n\t\t\t\ttest.log(Status.FAIL, \"not Clicked on done\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttest.log(Status.FAIL, \"Element is not present\");\r\n\r\n\t\t}\t\r\n\t}", "@When(\"user selects on AndhraBank\")\r\n\tpublic void usert_selects_on_Andhrabank() throws InterruptedException {\n\t\tdriver.manage().timeouts().implicitlyWait(2, TimeUnit.MINUTES);\r\n\t\t//driver.findElement(By.xpath(\"//div[@id='swit']/div[1]/label/i\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//label[contains(text(),'Andhra Bank')]\")).click();\r\n\t}", "public void makeAnotherPayment() {\n btnMakeAnotherPayment().click();\n }", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "public void clickRegistrationaccounttyperadiobutton(String option){\r\n\r\n\t\tString Acctype = getValue(option);\r\n\t\tString countrygroup_accounttype =\"Spain,France,BernardFrance,BernardBelgium,PresselAustria\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Account type Radio button clicked\");\r\n\t\ttry{\r\n\t\t\tif(!(countrygroup_accounttype).contains(countries.get(countrycount))){\r\n\t\t\t\twaitforElementVisible(locator_split(\"rdbRegistrationAccounttype\"));\r\n\t\t\t\tclickSpecificElementByProperty(locator_split(\"rdbRegistrationAccounttype\"),\"value\",Acctype);\r\n\t\t\t\tSystem.out.println(\"Account type Radio button clicked for \"+Acctype);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button clicked for \"+Acctype);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button is not applicable to \" + country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Account type Radio button is not clicked \"+elementProperties.getProperty(\"rdbRegistrationAccounttype\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdbRegistrationAccounttype\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onSureClick(String value) {\n tenPayPopWindow.dismiss();\n checkPresenterImpl.addTenPayPayment(cashierResult.bill.unpaid, value);\n }", "@Override\n public void onSureClick(Double value, Double change) {\n checkPresenterImpl.addMemberPayment(value, pwd);\n }", "public void clickbtnApprove() {\n\t\twaitForElementClickable(10,btnApprove);\n\t\tclickByJavaScript(btnApprove);\n\t\tsleep(1);\n\t}", "public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}", "public void onPayClick(){\n this.user.updateCreditDec(priceToBePaid);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n alert.setContentText(\"Payment successful! You payed \" + cost.getText());\n alert.showAndWait();\n }", "public void purchaseFlights()\r\n\t{\n\t\tdriver.findElement(By.xpath(trObj.PURCHASEFLISGHTS)).click();\r\n\r\n\t}", "public void funds_clicked(View view) {\n Intent intent = new Intent(this, FundsActivity.class);\n // EditText editText = (EditText) findViewById(R.id.editText);\n // String message = \"final data\";\n // intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "public void clickCreditCardradio(){\t\t\r\n\t\tString countrygroup_cc = \"PresselAustria\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- The CreditCard radio button should be clicked\");\r\n\t\ttry{\r\n\t\t\tif(!(countrygroup_cc).contains(countries.get(countrycount))){\r\n\t\t\t\tclick(locator_split(\"rdcreditcardradiobuton\"));\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- The CreditCard radio button is clicked\");\r\n\t\t\t}else{\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- The CreditCard radio button is not clicked\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- The CreditCard radio button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcreditcardradiobuton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void clickCashondeliveryradiobutton(){\r\n\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery Radio button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tclick(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tclick(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery radio button clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery Radio button is not clicked \"+elementProperties.getProperty(\"Cashondelivery_Spain\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Cashondelivery_Spain\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickPaypal() {\n\t\t\n\t\tclick(paypalButton);\n\t}", "private void payByBalance(final View v) {\n if (!SanyiSDK.getCurrentStaffPermissionById(ConstantsUtil.PERMISSION_CASHIER)) {\n\n\n Toast.makeText(activity, getString(R.string.str_common_no_privilege), Toast.LENGTH_LONG).show();\n\n return;\n }\n final CashierPayment paymentMode = new CashierPayment();\n paymentMode.paymentType = ConstantsUtil.PAYMENT_STORE_VALUE;\n paymentMode.paymentName = getString(R.string.rechargeable_card);\n if (SanyiSDK.rest.config.isMemberUsePassword) {\n MemberPwdPopWindow memberPwdPopWindow = new MemberPwdPopWindow(v, activity, new MemberPwdPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(final String pwd) {\n // TODO Auto-generated method stub\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }\n });\n memberPwdPopWindow.show();\n return;\n }\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, null);\n }\n });\n numPadPopWindow.show();\n }", "public void clickGoToYourAccountButton() {\n\t\telement(signUpObjects.getOTPButton).click();\n\t}", "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}", "public void clickOnDepartureRadioButton()\n\t{\n\t\tif(departureRadioButton.isDisplayed())\n\t\t{\n\t\t\twaitForSeconds(10);\n\t\t\tUserdefinedFunctions.scrollusingCordinate();\n\t\t\twaitForSeconds(10);\n\t\t\tdepartureRadioButton.click();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Consider the first selected depature flight\");\n\t\t}\n\t}", "public void chooseFlights()\r\n\t{\n\t\tdriver.findElement(By.xpath(trObj.CHOOSEFLISGHTS)).click();\r\n\r\n\t}", "public void clickcreditcardradiobutton(){\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"creditcardradiobuton\"));\r\n\t\t\tclick(locator_split(\"creditcardradiobuton\"));\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the search box\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"creditcardradiobuton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"creditcardradiobuton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test //Test to see you are able to buy policy and confirmation page is displayed\n public void policyConfirmationTest() throws InterruptedException {\n \t WebElement submitPolicy=driver.findElement(By.xpath(\"/html/body/center/form/center[3]/pre/input[3]\"));\n \t submitPolicy.click();\n \t assertTrue(driver.findElement(By.xpath(\"/html/body/center[2]/h3\")).isDisplayed()); \n\t Thread.sleep(3000);\n\t driver.close();\n\n}", "public void chooseRetailAccountType() {\n click(By.id(\"LoginAsRetail\"));\n }", "protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }", "@When(\"^I click on Book button$\")\n\tpublic void i_click_on_Book_button() throws Throwable {\n\t\tfs.selectBookOption();\n\t}", "@When(\"User clicks on Find Details button\")\r\n\tpublic void user_clicks_on_find_details_button() \r\n\t{\n\t driver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\t}", "public void clickAutoInsurance() {\n\t\tselectAutoInsurance.click();\n\t}", "public void ClickOnConfirmCertificateInformationButton()\n\t\t{\n\t\t\tConfirmCertificateInformation.click();\n\t\t}", "public void changeDownPayment() {\n\t\tWebElement new_page = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\t//modify down-payment\n\t\tdouble dwnpymnt = 1200.00;\n\t\tnew_page.findElement(By.name(\"downpayment\")).clear();\n\t\tnew_page.findElement(By.name(\"downpayment\")).sendKeys(\"1200.00\");\n\t\t\n\t\tdouble interest = Double.valueOf(new_page.findElement(By.name(\"interest\")).getAttribute(\"value\"));\n\t\tint year = Integer.valueOf(new_page.findElement(By.name(\"year\")).getAttribute(\"value\"));\n\t\tdouble price_tax = Double.valueOf(new_page.findElement(By.name(\"price_with_taxes\")).getAttribute(\"value\"));\n\t\t\n\t\tdouble price_interest = priceWithInterest(price_tax, dwnpymnt, interest, year);\n\t\tint nMnths = numMonths(year);\n\t\tdouble ttl = totalPrice(price_interest, dwnpymnt);\n\t\tdouble ttl_per_mnth = totalPricePerMonth(price_interest, nMnths);\n\t\t\n\t\t// click calculate button\n\t\tnew_page.findElement(By.name(\"calculate_payment_button\")).click();\n\t\twait(2);\n\t\t\n\t\tWebElement solutions = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tDecimalFormat twoDForm = new DecimalFormat(\"#.##\");\n\n\t\tassertEquals(Double.valueOf(twoDForm.format(dwnpymnt)), Double.valueOf(solutions.findElement(By.id(\"total_downpayment\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl_per_mnth)), Double.valueOf(solutions.findElement(By.id(\"total_price_per_month\")).getAttribute(\"value\")));\n\t\tassertEquals(Integer.valueOf(nMnths), Integer.valueOf(solutions.findElement(By.id(\"n_of_months\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl)), Double.valueOf(solutions.findElement(By.id(\"total_price\")).getAttribute(\"value\")));\n\t}", "public void checkOutFlight() {\n confirmationPage.checkButton();\n }", "public void selectNCDConfirmed ()\r\n\t{\r\n\r\n\t\tList<WebElement> ncdconfirmedradiobuttons = orPolicyVehicleHub.rdoVehicleNCDConfirmed;\r\n\t\tfor (WebElement ncdconfirmedradiobutton : ncdconfirmedradiobuttons)\r\n\t\t{\r\n\t\t\tif (ncdconfirmedradiobutton.getAttribute (\"value\").equals (\"Y\"))\r\n\t\t\t{\r\n\t\t\t\tncdconfirmedradiobutton.click ();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onSureClick(Double value, Double change) {\n checkPresenterImpl.addMemberPayment(value, null);\n }", "public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}", "@When(\"^Click on Contactus Option$\")\r\n\tpublic void click_on_Contactus_Option() {\n\t\tnop.click(\"//*[@id=\\\"contact-link\\\"]/a\"); //clicking contact us option\r\n\t\t\r\n\t}", "public void testCheckout() throws InterruptedException {\n\t\taddressRadio.click();\n\t\tpFirstname.click();\n\t\tpFirstname.sendKeys(\"Paul\");\n\t\tpLastname.click();\n\t\tpLastname.sendKeys(\"Tal\");\n\t\tpAddress1.click();\n\t\tpAddress1.sendKeys(\"16 Talbi st\");\n\t\tpCity.click();\n\t\tpCity.sendKeys(\"Toronto\");\n\t\tpPostcode.click();\n\t\tpPostcode.sendKeys(\"M1V 3E8\");\n\t\tSelect cDropdown = new Select(selectC);\n\t\tcDropdown.selectByVisibleText(\"Canada\");\n\t\tSelect zDropdown = new Select(selectZ);\n\t\tzDropdown.selectByVisibleText(\"Ontario\");\n\t\tcontinueBilling.click();\n\t\tThread.sleep(3000);\n\t\tSelect aDropdown = new Select(selectA);\n\t\taDropdown.getFirstSelectedOption();\n\t\tdriver.findElement(By.cssSelector(\"#button-shipping-address\")).click();\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.cssSelector(\"#button-shipping-method\")).click();\t\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.cssSelector(\"input[type='checkbox'][name='agree']\")).click();\t\t\n\t\tdriver.findElement(By.cssSelector(\"#button-payment-method\")).click();\t\n\t\tdriver.findElement(By.cssSelector(\"input[value='Confirm Order']\")).click();\t\n\t\tThread.sleep(3000);\n\t\tif(driver.getCurrentUrl().contains(\"/success\")) {\n\t\t\tdriver.findElement(By.cssSelector(\"a[href*='/home']\")).click();\t\t\n\t\t\tAssert.assertTrue(true);\n\t\t} else {\n\t\t\tAssert.assertFalse(true);\n\t\t}\n\n\t}", "public void clickCardradiobutton(){\r\n\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery Radio button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tclick(locator_split(\"Cashondelivery_Spain\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tclick(locator_split(\"Submitorder_Spain\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery radio button clicked \");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery Radio button is not clicked \"+elementProperties.getProperty(\"Cashondelivery_Spain\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Cashondelivery_Spain\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n PayUChecksum payUChecksum = new PayUChecksum();\n payUChecksum.setKey(mPaymentParams.getKey());\n payUChecksum.setCommand(PayuConstants.VERIFY_PAYMENT);\n // var 1 is from date\n payUChecksum.setVar1(verifyPaymentTransactionIdEditText.getText().toString());\n payUChecksum.setSalt(bundle.getString(PayuConstants.SALT));\n if((postData = payUChecksum.getHash()) != null && postData.getCode() == PayuErrors.NO_ERROR ){\n MerchantWebService merchantWebService = new MerchantWebService();\n merchantWebService.setKey(mPaymentParams.getKey());\n merchantWebService.setCommand(PayuConstants.VERIFY_PAYMENT);\n merchantWebService.setHash(postData.getResult());\n merchantWebService.setVar1(verifyPaymentTransactionIdEditText.getText().toString());\n if((postData = new MerchantWebServicePostParams(merchantWebService).getMerchantWebServicePostParams()) != null && postData.getCode() == PayuErrors.NO_ERROR ){\n payuConfig.setData(postData.getResult());\n\n // lets make api call\n VerifyPaymentTask verifyPaymentTask = new VerifyPaymentTask(PayUVerifyApiActivity.this);\n verifyPaymentTask.execute(payuConfig);\n\n verifyPaymentDialog.dismiss();\n\n }else{\n Toast.makeText(PayUVerifyApiActivity.this, postData.getResult(), Toast.LENGTH_LONG).show();\n }\n }else{\n Toast.makeText(PayUVerifyApiActivity.this, postData.getResult(), Toast.LENGTH_LONG).show();\n }\n }", "public void ClickPlansOfferedPage() {\r\n\t\tplansoffered.click();\r\n\t\t\tLog(\"Clicked the \\\"Plans Offered\\\" button on the Birthdays page\");\r\n\t}", "private void butTools_Click(Object sender, System.EventArgs e) throws Exception {\n FormFeeSchedTools FormF = new FormFeeSchedTools(FeeSchedC.getListShort()[listFeeSched.SelectedIndex].FeeSchedNum);\n FormF.ShowDialog();\n if (FormF.DialogResult == DialogResult.Cancel)\n {\n return ;\n }\n \n Fees.refreshCache();\n ProcedureCodes.refreshCache();\n changed = true;\n if (Programs.isEnabled(ProgramName.eClinicalWorks))\n {\n fillFeeSchedules();\n }\n \n //To show possible added fee schedule.\n fillGrid();\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Fee Schedule Tools\");\n }", "public void clickFirstQviewbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Qview First Buy button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\t/*List<WebElement> eles=driver.findElements((locator_split(\"btnQview\")));\r\n\t\t\tSystem.out.println(eles.size());\r\n\t\t\teles.get(0).click();*/\r\n\r\n\t\t\tclick(locator_split(\"btnQview\"));\t\t\t\t\r\n\t\t\tSystem.out.println(\"Clicked on the First Buy button\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- First Buy Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview First Buy button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQview\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@When(\"user clicks on checkoutbutton\")\r\n\tpublic void usert_clicks_on_checkoutbutton() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"cart\\\"]/tfoot/tr[2]/td[5]/a\")).click();\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew verify().execute(code.getText().toString(),String.valueOf(ID));\r\n\t\t\t\t\r\n\t\t\t}", "public boolean paymentActionPage(WebDriver driver,String Street,String Billingcity,String State,String Zipcode\r\n\t\t\t,String Cardholdersname,String Cardnumber,String Cardexpirymonth,String Cardexpiryyear,String cvv) throws InterruptedException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t//PAYMENT PAGE\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='street']\")).clear();\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='street']\")).sendKeys(Street);//street\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='city']\")).clear();\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='city']\")).sendKeys(Billingcity);//Billingcity\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\tWebElement ele = driver.findElement(By.xpath(\"//select[@name='state']\"));//State\r\n\t\tSelect sel = new Select(ele);\r\n\t\tsel.selectByVisibleText(State);\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='zip']\")).clear();\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='zip']\")).sendKeys(Zipcode);//zipcode\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='cardholdername']\")).clear();\r\n\t\tdriver.findElement(By.xpath(\"//input[@name='cardholdername']\")).sendKeys(Cardholdersname);//Cardholdersname\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"cardnumber\")).clear();\r\n\t\tdriver.findElement(By.id(\"cardnumber\")).sendKeys(Cardnumber);//Cardnumber\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\tWebElement ele1 = driver.findElement(By.xpath(\"//select[@class='card-expiry-month stripe-sensitive required form-control']\"));//Cardexpirymonth\r\n\t\tSelect sel1 = new Select(ele1);\r\n\t\tsel1.selectByVisibleText(Cardexpirymonth);\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\tWebElement ele2 = driver.findElement(By.xpath(\"//select[@class='card-expiry-year stripe-sensitive required form-control']\"));//Cardexpiryyear\r\n\t\tSelect sel2 = new Select(ele2);\r\n\t\tsel2.selectByVisibleText(Cardexpiryyear);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"cvv\")).clear();\r\n\t\tdriver.findElement(By.id(\"cvv\")).sendKeys(cvv);//cvv\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"diseablebtn\")).click();//Get Your Membership button\r\n\t\treturn true;\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "@When(\"user clicks on find details\")\r\n\tpublic void user_clicks_on_find_details() {\n\t driver.findElement(By.xpath(\"/html/body/div[1]/form/input\")).click();\r\n\t}", "@Then(\"user clicks submit button\")\n\tpublic void user_clicks_submit_button(){\n\t\t driver.findElement(By.name(\"sub\")).click();\n\t\t driver.findElement(By.xpath(\"//a[@href='addcustomerpage.php']\")).click();\n\t}", "public void ClickOption(WebElement e) {\n\t\te.click();\n\n\t}", "@Test\n public void userClicksAgree_RedirectsToRequestPickup(){\n //Validates the agree button exists\n onView(ViewMatchers.withId(R.id.button_rules_agree)).perform(click());\n\n //Checks that the Request ride page appears\n Activity mRequestRide = mInstrumentation.waitForMonitorWithTimeout(mRulesMonitor, 1000);\n Assert.assertNotNull(mRequestRide);\n }", "public void clickYes ();", "private void checkPaymentMethod() {\n toolbar.setTitle(R.string.payment_method);\n PaymentMethodFragment paymentMethodFragment = new PaymentMethodFragment();\n displaySelectedFragment(paymentMethodFragment);\n }", "public void ClickChecoutInsertBillingInfobutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout InsertBillingInfo submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutInsertBillingInfo\"));\r\n\t\t\tSystem.out.println(\"Checkout InsertBillingInfo submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout InsertBillingInfo submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout InsertBillingInfo submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutInsertBillingInfo\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Then(\"^Click on signup button$\")\t\t\t\t\t\n public void Click_on_signup_button() throws Throwable \t\t\t\t\t\t\t\n { \n \tdriver.findElement(By.xpath(\"//*[@id='accountDetailsNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }", "public void clickCheckout()\n\t{\n\t\twaitForVisibility(checkout);\n\t\tcheckout.click();\n\t}", "public static void VerifySum()\r\n\t {\r\n\t WebElement BagSum = Browser.instance.findElement(BagValueSum);\r\n\t\r\n\t if(BagSum.getAttribute(\"value\").equals(output))\r\n\t {\r\n\t\tSystem.out.println(\"Bag Value Sum is Matching\"); \r\n\t } \r\n\t else\r\n\t {\r\n\t\t System.out.println(\"Bag Value Sum is not matching\");\r\n\t }\r\n\r\n\t\tWebDriverWait wait=new WebDriverWait(Browser.instance,10);\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(cancelButton));\r\n\t\tBrowser.instance.findElement(cancelButton).click();\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(confirmYesButton));\r\n\t\tBrowser.instance.findElement(confirmYesButton).click();\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(editButton));\r\n\r\n}", "public void usrOptionBtn() {\n\t\tpause(2000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"userOptBtn\")));\n\t\ttemp.click();\n\t}", "public void clickPresselGermany(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- PresselGermany link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"lnkPresselGermany\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- PresselGermany link is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- PresselGermany link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkPresselGermany\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickOnSubmit() {\r\n\r\n\t\treportStep(\"About to click on Submit button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(submitButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Submit button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\tclickAfterWait(submitButton);\r\n\t\t\treportStep(\"Failed to click on the Submit button \", \"INFO\");\r\n\r\n\t\t}\r\n\t}", "public void v_Verify_Guest3_Displayed(){\n\t}", "private void FortifyButtonMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_FortifyButtonMouseClicked\r\n\t\trisk.setState(RiskGameModel.FORTIFY);\r\n\t\trisk.notifyPhaseViewChange();\r\n\t\tstatusLabel.setText(\"Select a country move armies from\");\r\n\t\tUtility.writeLog(\"Fortify Phase entered\");\r\n\t}", "public void ClickCommissionRatesPage() {\r\n\t\tcommissionrates.click();\r\n\t\t\tLog(\"Clicked the \\\"Commission Rates\\\" button on the Birthdays page\");\r\n\t}", "@Test\n public void testCase() throws InterruptedException {\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Username']\")).sendKeys(\"company\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@resource-id='com.experitest.ExperiBank:id/passwordTextField']\")).sendKeys(\"company\");\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Login']\")).click();\n \n //Navigate to Make Payment screen\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Make Payment']\")).click();\n \n //Enter payment data\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Phone']\")).sendKeys(\"0112345678\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Name']\")).sendKeys(\"John\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Amount']\")).sendKeys(\"2\");\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Select']\")).click();\n \n //Scroll to the correct country\n driver.scrollTo(\"Spain\");\n driver.findElement(By.xpath(\"//android.widget.TextView[@text='Spain']\")).click();\n \n //Send Payment\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Send Payment']\")).click();\n \n //Confirm\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Yes']\")).click();\n }", "private void payButtonClicked() {\n if (checkBoxAgreedTAC.isChecked()) {\n boolean validCard = validateCard();\n if (validCard) {\n Double payAmount = Double.parseDouble(textViewPrepaidPrice.getText().toString());\n MainActivity.bus.post(new PrepayPaymentAttemptEvent(payAmount, Long.parseLong(litersToBuy.getText().toString())));\n if (PrepayCalculatorFragment.this.payDialog != null) {\n PrepayCalculatorFragment.this.payDialog.dismiss();\n }\n }\n } else {\n Toast.makeText(getActivity(), getResources().getString(R.string.TACMustAgreedMessage), Toast.LENGTH_SHORT).show();\n }\n\n }", "@Test(priority = 4)\n\tpublic void switchToFreePlanOnDowngradeButtonClick() throws InterruptedException {\n\t\tThread.sleep(1000L);\n\t\tswitchToPlan();\n\t\tbillingpageobject.DowngradeButton().click();\n\t\tvalidateBillingPageAssertion();\n\t\tlog.info(\"Testcase-3 passed since user clicked on Downgrade button & landed on Account Plan page\");\n\t\tbillingpageobject.ToastButton().getText();\n\t\tlog.info(\"Message after downgrading to free plan is \" + billingpageobject.ToastButton().getText());\n\t\tvalidateFreeplanPageAssertion();\n\t}", "@Test(priority = 4)\n\tpublic void testPayment() {\n\t\tlogger = extent.startTest(\"passed\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 100);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.className(\"payment-info\")));\n\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"swit\\\"]/div[1]\")).click();\n\t\tdriver.findElement(By.id(\"btn\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t// For netbanking login\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"123456\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Pass@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='LOGIN']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t//\n\t\tdriver.findElement(By.name(\"transpwd\")).sendKeys(\"Trans@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='PayNow']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Order Details\");\n\t\tlogger.log(LogStatus.PASS, \"testPayment Testcase is passed\");\n\t}", "public void manageCashDrawerBtn() {\n\t\tpause(1000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"managePrtBtn\")));\n\t\ttemp.click();\n\t\tpause(1000);\n\t}", "public void creditcard() {\n\t\tBy cd=By.xpath(\"//input[@name='creditCard']\");\r\n\t\tWebElement W_cd=wt.WaitForElement(cd, 10);\r\n\t\tW_cd.sendKeys(\"5462897859858\");\r\n\t\t\r\n\t\t}", "@Then(\"^Flight Search Screen is displayed$\")\n\tpublic void verify_flight_search_screen() throws InterruptedException, IOException {\n\t\tdriver.findElement(By.id(\"option-0-1-0\")).click();\n\n\t}", "public void ClickYes()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Yes\")).click();\n\t}", "@Test\n\tpublic void onholdToConfirmSEPA() throws Exception {\n\t\ttry {\n\t\t\t// Launch the browser and load the default URL\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or disabled\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\t// Title for HTML report\n\t\t\ttest = extend.createTest(\"Vendor script execution for 'DIRECT_DEBIT_SEPA' onhold to confirm\");\n\t\t\t// Steps\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Read the order completion status\n\t\t\tString OrderCompletionStatus = element.Sepa_Order_Completion_Status_Selectbox.getText();\n\t\t\tThread.sleep(3000);\t\t\t\n\t\t\t// On-hold enabled\n\t\t\tActions action = new Actions(driver);\n\t\t\tThread.sleep(3000);\n\t\t\tWebElement onhold = element.Sepa_Onhold_Payment_Action_Selectbox;\n\t\t\tThread.sleep(5000);\n\t\t\taction.click(onhold).sendKeys(\"Authorize\", Keys.DOWN, Keys.ENTER).build().perform();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(4000);\n\t\t\t// Read the data from excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed() == true) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed()) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t// Get the amount from order success page front end\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\t// Get the TID from order success page front end\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\t// Go to card portal and check the tid_status\n\t\t\t\t\tdriver.navigate().to(Constant.novalnetcardportalurl);\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\telement.Cardportal_TID_Textbox.sendKeys(TID);\n\t\t\t\t\telement.Cardportal_Submit.click();\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tString tid_status_value = element.Status_Code.getText();\n\t\t\t\t\tint tid_status = Integer.parseInt(tid_status_value);\n\t\t\t\t\t// Check whether the Tid is 99\n\t\t\t\t\tif (tid_status == 99) {\n\t\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\t\t// Enter required parameter\n\t\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"DIRECT_DEBIT_SEPA\");\n\t\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\t\telement.Status.clear();\n\t\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\t\telement.Tid.sendKeys(TID);\n\t\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\t\tString callback_message = element.callback_message.getText();\n\t\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\t\t\t\t\t\t\n\t\t\t\t\t\tif (callback_message\n\t\t\t\t\t\t\t\t.contains(\"Novalnet callback received. The transaction has been confirmed\")) {\n\t\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\t\tString BEOrderStatus = element.Backend_Order_Status.getText();\n\t\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\t\tString BEOrderNotesMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\t\t// Verify order completion status is updated in shop back end after the execution\n\t\t\t\t\t\t\tSystem.out.println(\"Order completion status: \" + OrderCompletionStatus);\n\t\t\t\t\t\t\tSystem.out.println(\"Back end order status: \" + BEOrderStatus);\n\t\t\t\t\t\t\tif (OrderCompletionStatus.equals(BEOrderStatus)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop back end\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop back end\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated successfully in shop back end\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated successfully in shop back end\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Verify order completion status is updated in front after the execution\n\t\t\t\t\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\telement.MyAccount_Menu.click();\n\t\t\t\t\t\t\telement.MyAccount_Orders.click();\n\t\t\t\t\t\t\tString FEOrderStatus = element.Frontend_Order_Status.getText();\n\t\t\t\t\t\t\tSystem.out.println(\"Front end order status: \" + FEOrderStatus);\n\t\t\t\t\t\t\tif (OrderCompletionStatus.equals(FEOrderStatus)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop front end\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop front end\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated in shop front end\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated in shop front end\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\"callback execution message: \" + callback_message_updated);\n\t\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotesMessage);\n\t\t\t\t\t\t\tif (callback_message_updated.equals(BEOrderNotesMessage)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DIRECT_DEBIT_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DIRECT_DEBIT_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DIRECT_DEBIT_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DIRECT_DEBIT_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"TC FAILED: Transaction is already confirmed or not in pending status\");\n\t\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Transaction is already confirmed or not in pending status\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'onholdToConfirmSEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'onholdToConfirmSEPA' method\");\n\t\t}\n\t}", "void askDevCardProduction();", "@Test\n public void onFemaleRBTNClicked(){\n onView(withId(R.id.femaleRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.maleRBTN)).check(matches(isNotChecked()));\n }", "public void clickSalvar (){driver.findElement(botaoSalvar).click();}", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "void askBuyDevCards();", "@Then(\"^click on checkout$\")\r\n\tpublic void click_on_checkout() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.checkout());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}", "public void clickDepartsAsLateAs() {\n\t\tdepartsAsLateAsButton.click();\n\t}", "public void cashondeliverysubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Submit order button should be clicked\");\r\n\t\ttry{\r\n\t\t\twaitforElementVisible(locator_split(\"btnsubmitorder\"));\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\")))\r\n\t\t\t{\r\n\t\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\t}\r\n\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Submit order button is clicked.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Submit order button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Submit order button is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void showVerifyTravelExpenseDialog() {\n\n\t\t\tverifyTravelExpenseDialogBox = new DialogBox(true);\n\t\t\tverifyTravelExpenseDialogBox.setGlassEnabled(true);\n\t\t\tverifyTravelExpenseDialogBox.setText(\"Comprobación de Viáticos.\");\n\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"400px\", \"100px\");\n\t\t\tverifyTravelExpenseDialogBox.setWidget(vp);\n\n\t\t\tUiRequisitionCheekingCostsForm uiRequisitionCheekingCostsForm = new UiRequisitionCheekingCostsForm(getUiParams(), vp, bmoRequisition);\n\t\t\tuiRequisitionCheekingCostsForm.show();\n\n\t\t\tverifyTravelExpenseDialogBox.center();\n\t\t\tverifyTravelExpenseDialogBox.show();\n\t\t}", "public void CashonDeliverySubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery should be submitted\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\"))){\r\n\r\n\t\t\t\tclick_submitorder_creditcard();\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery should be clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void ClickConfirmationPage() {\r\n\t\tconfirmation.click();\r\n\t\t\tLog(\"Clicked the \\\"Confirmation\\\" button on the Birthdays page\");\r\n\t}", "@Test(priority=3)\n\tpublic void verifySignUpBtn() {\n\t\tboolean signUpBtn = driver.findElement(By.name(\"websubmit\")).isEnabled();\n\t\tAssert.assertTrue(signUpBtn);\n\t}", "public void clickWalletLink()\n\t{\n \telementUtils.performElementClick(wbWalletLink);\n\t}", "public void ClickMyAccountSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountSubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountSubmit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@And(\"^user clicks on credit cards link$\")\r\n\t public void userclicksoncreditcardslink() {\r\n\t\t dbsdriver.findElement(By.xpath(\"//a[starts-with(@data-flk-success,'atNodeInserted') and text()='Credit Cards']\")).click();\r\n\t\t test.log(LogStatus.INFO, \"credit cards link is displayed\");\r\n\t }", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "public void onContribute(final String payId) {\n LayoutInflater li = LayoutInflater.from(GoalDisActivity.this);\n View promptsPaymentView = li.inflate(R.layout.payment_layout, null);\n build = new AlertDialog.Builder(GoalDisActivity.this);\n build.setTitle(\"Payment\");\n build.setMessage(\"Please Enter payment amount\");\n build.setView(promptsPaymentView);\n PayValue = (EditText) promptsPaymentView.findViewById(R.id.PaymentEnter1);\n //PayValue.isFocused();\n PayValue.setFocusableInTouchMode(true);\n PayValue.setFocusable(true);\n PayValue.requestFocus();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.showSoftInput(PayValue, InputMethodManager.SHOW_IMPLICIT);\n build.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n check = 0; val = 0;\n moneyValue = \"0\";\n dataBase = gHelper.getWritableDatabase();\n Cursor mCursor = dataBase.rawQuery(\"SELECT * FROM \"+ DbHelperGoal.TABLE_NAME+\" WHERE \"+DbHelperGoal.KEY_ID+\"=\"+payId, null);\n if (mCursor.moveToFirst()) {\n do {\n moneyValue = mCursor.getString(mCursor.getColumnIndex(DbHelperGoal.ALT_PAYMENT));\n dbExpAmount = mCursor.getString(mCursor.getColumnIndex(DbHelperGoal.AMOUNT));\n check = mCursor.getFloat(mCursor.getColumnIndex(DbHelperGoal.ALT_EXPENSE));\n } while (mCursor.moveToNext());\n }\n val = Float.valueOf(PayValue.getText().toString())+ Float.valueOf(moneyValue);\n if(val-check <= Float.valueOf(dbExpAmount) && val-check >= 0) {// within the Target Amount\n String strSQL = \"UPDATE \" + DbHelperGoal.TABLE_NAME + \" SET \" + DbHelperGoal.ALT_PAYMENT + \"=\" + String.valueOf(val) + \" WHERE \" + DbHelperGoal.KEY_ID + \"=\" + payId;\n dataBase.execSQL(strSQL);\n Toast.makeText(getApplication(), PayValue.getText().toString(), Toast.LENGTH_SHORT).show();\n //PayValue.setText(\"\");\n displayData();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.hideSoftInputFromWindow(PayValue.getWindowToken(), 0);\n dialog.cancel();\n }else if(val-check > Float.valueOf(dbExpAmount) && val-check >= 0){// if client collects extra amount for that goal, the Target amount extends\n build2 = new AlertDialog.Builder(GoalDisActivity.this);\n build2.setTitle(\"Confirmation\");\n build2.setMessage(\"The Payment Amount is exceeding the Target Amount. Do you want to increment the Target amount to the new value?\");\n build2.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String strSQL = \"UPDATE \" + DbHelperGoal.TABLE_NAME + \" SET \" + DbHelperGoal.AMOUNT + \"=\" + String.valueOf(val - check) + \",\" + DbHelperGoal.ALT_PAYMENT + \"=\" + String.valueOf(val) + \" WHERE \" + DbHelperGoal.KEY_ID + \"=\" + payId;\n dataBase.execSQL(strSQL);\n Toast.makeText(getApplication(), PayValue.getText().toString(), Toast.LENGTH_SHORT).show();\n //PayValue.setText(\"\");\n displayData();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.hideSoftInputFromWindow(PayValue.getWindowToken(), 0);\n dialog.cancel();\n }\n });\n build2.setNeutralButton(\"No, only Savings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String strSQL = \"UPDATE \" + DbHelperGoal.TABLE_NAME + \" SET \" + DbHelperGoal.ALT_PAYMENT + \"=\" + String.valueOf(val) + \" WHERE \" + DbHelperGoal.KEY_ID + \"=\" + payId;\n dataBase.execSQL(strSQL);\n Toast.makeText(getApplication(), PayValue.getText().toString(), Toast.LENGTH_SHORT).show();\n //PayValue.setText(\"\");\n displayData();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.hideSoftInputFromWindow(PayValue.getWindowToken(), 0);\n dialog.cancel();\n }\n });\n\n build2.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplication(), \"Payment Cancelled\", Toast.LENGTH_SHORT).show();\n //displayData();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.hideSoftInputFromWindow(PayValue.getWindowToken(), 0);\n dialog.cancel();\n }\n });\n\n alert2 = build2.create();\n alert2.show();\n alert2.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n }else{\n Toast.makeText(getApplication(),\"Sorry, the amount is beyond the Target Amount\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n build.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplication(), \"Payment Cancelled\", Toast.LENGTH_SHORT).show();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.hideSoftInputFromWindow(PayValue.getWindowToken(), 0);\n dialog.cancel();\n }\n });\n alert = build.create();\n alert.show();\n alert.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n }", "@Then(\"^user selects and validates credit cards$\")\r\n\t public void selctcardstocompareandValidate(DataTable table) {\r\n\t\t try {\r\n\t\t WebElement ele;\r\n\t\t List<Map<String, String>> ccards = table.asMaps(String.class, String.class);\r\n\t String cc1 = ccards.get(0).get(\"card1\");\r\n\t String cc2 = ccards.get(0).get(\"card2\");\r\n\t \r\n\t\t//selecting card1\r\n\t ele=dbsdriver.findElement(By.xpath(\"//div[text()='\"+cc1+\"']/../../..//div[text()='Compare']/..//div\"));\r\n\t\t((JavascriptExecutor) dbsdriver).executeScript(\"arguments[0].scrollIntoView(true);\", ele);\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(ele));\r\n\t\t((JavascriptExecutor) dbsdriver).executeScript(\"arguments[0].click();\",ele );\r\n\t\tThread.sleep(2500);\t\r\n\t\t\r\n\t\t//selecting card2\r\n\t\tele=dbsdriver.findElement(By.xpath(\"//div[text()='\"+cc2+\"']/../../..//div[text()='Compare']/..//div\"));\r\n\t\t((JavascriptExecutor) dbsdriver).executeScript(\"arguments[0].scrollIntoView(true);\", ele);\r\n\t\t((JavascriptExecutor) dbsdriver).executeScript(\"arguments[0].click();\", ele);\r\n\t\t\r\n\t\t//click on compare button\r\n\t\tdbsdriver.findElement(By.xpath(\"//button[@id='cardCompareBtn']\")).click();\r\n\t\ttest.log(LogStatus.PASS, \"user selected cards and clicked on compare button\");\r\n\t\t//validate the data displayed for each card for comparison\r\n\t\tcreditcardspage.validatecredicarddata(table);\r\n\t\t } catch (Exception e) {\r\n\t\t\t test.log(LogStatus.FAIL, e);\r\n\t\t\tcreditcardspage.aborttest(e+\"\");\r\n\t\t}\r\n\t }", "@Then(\"^I should be able to see the Payment button$\")\n\tpublic void i_should_be_able_to_see_the_Payment_button() throws Throwable {\n\t\tbc.checkPayment();\n\t}", "@Override\n public void onClick(View v)\n {\n Intent viewIntent =\n new Intent(\"android.intent.action.VIEW\",\n Uri.parse(\"https://datadiscovery.nlm.nih.gov/Drugs-and-Supplements/Pillbox/crzr-uvwg\"));\n startActivity(viewIntent);\n }", "@Test\n public void onMaleRBTNClicked(){\n onView(withId(R.id.maleRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.femaleRBTN)).check(matches(isNotChecked()));\n }", "private void onPaymentButtonClicked() {\n if (cartList == null || cartList.size() < 1) {\n Toast.makeText(getContext(), \"Your cart is empty!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (studentDetails[0] == null) {\n Toast.makeText(getContext(), \"Enter Student ID first\", Toast.LENGTH_SHORT).show();\n studentIdText.requestFocus();\n return;\n }\n\n final PaymentDialog dialog = new PaymentDialog(getActivity(), total, studentDetails[0]);\n\n if (dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);\n }\n\n dialog.setCancelable(false);\n dialog.show();\n dialog.setOnOrderCompleteListener(transactionList -> {\n showProgressDialog();\n orderCompleted(transactionList);\n\n dialog.dismiss();\n });\n Objects.requireNonNull(dialog.getWindow()).clearFlags(WindowManager.\n LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);\n }", "public void SpecialRateplan_Validation() throws InterruptedException\r\n\t{\r\n\t\tThread.sleep(3000);\r\n\r\n\t\tExplicitWait(Offercode);\r\n\t\tint No_of_offercdes=SpecialRateplans.size();\r\n\t\t//System.out.println(No_of_offercdes+\" offer codes are available\");\r\n\t\tfor(int i=1;i<=No_of_offercdes;i++)\r\n\t\t{\r\n\r\n\t\t\t//Confirms the xpath being used actually works \r\n\t\t\tWebElement Specialrateplan= SeleniumRepo.driver.findElement(By.xpath(\"(//input[@class='custom-radio-checkbox ng-isolate-scope none-outline']/..)[\"+i+\"]\"));\r\n\r\n\t\t\tif(Specialrateplan.isDisplayed())\r\n\t\t\t{\t\r\n\t\t\t\tString offercode=Specialrateplan.getText();\r\n\t\t\t\t////System.out.println(offercode);\r\n\t\t\t\t//System.out.println(\"Offer code present at \"+i+\" radio button SPECIAL RATES & OFFER CODE is \"+offercode);\r\n\t\t\t\ttest.log(Status.INFO, \"Obtained text is displayed successfully\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}", "public void teste() {\n\t\tSelect billingMasterPolicy = new Select(comboBillingMasterPolicy);\n\t\tWebElement WebL = billingMasterPolicy.getFirstSelectedOption();\n\t\tString planoRisco = WebL.getAttribute(\"text\");\n\t\tSystem.out.println(\"Teste: \"+ planoRisco);\n\t}", "public void ClickPrivacyPolicycheckbox(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Privacy Policy checkbox should be checked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"rdcheckoutprivacypolicy\"));\r\n\t\t\tSystem.out.println(\"Privacy Policy checkbox is checked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Privacy Policy checkbox is checked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Privacy Policy checkbox is not checked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcheckoutprivacypolicy\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "void clickOnDelivery(Delivery delivery);", "@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\toptb=btnoptb.getText().toString();\n\t\t\t\tCheckAns(optb,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optb);\n\n\t\t\t}" ]
[ "0.7025002", "0.6514904", "0.6414608", "0.6380669", "0.6245573", "0.6215748", "0.62005025", "0.61319387", "0.6119375", "0.6117829", "0.6115417", "0.6089393", "0.6029686", "0.60175484", "0.6002634", "0.59821296", "0.59154165", "0.590376", "0.58866864", "0.58846396", "0.58588505", "0.5846568", "0.58445704", "0.5843717", "0.5834906", "0.58296144", "0.57786185", "0.57710207", "0.57648754", "0.5763914", "0.5727549", "0.5722497", "0.5705577", "0.5671852", "0.56696033", "0.5658963", "0.56581455", "0.5652001", "0.5639853", "0.56392044", "0.5634019", "0.56291634", "0.56066734", "0.5597034", "0.55955744", "0.5593004", "0.55908126", "0.5585982", "0.5584486", "0.55759585", "0.55752075", "0.5570109", "0.55623335", "0.5561036", "0.5555733", "0.55407774", "0.5539048", "0.55363077", "0.55359566", "0.5534355", "0.55320424", "0.55303735", "0.5529914", "0.55281264", "0.5524938", "0.5524014", "0.55227655", "0.55225116", "0.5518197", "0.551237", "0.55038095", "0.55011314", "0.54940814", "0.5488515", "0.5487899", "0.54795086", "0.5479292", "0.5477993", "0.5474521", "0.5470641", "0.5470351", "0.546639", "0.5464385", "0.5463986", "0.5463001", "0.5460101", "0.5458928", "0.54584515", "0.5454444", "0.5452547", "0.54489326", "0.544254", "0.54350114", "0.54337186", "0.5429852", "0.5422971", "0.54221284", "0.54174584", "0.5416721", "0.54135126" ]
0.6010499
14
Created by adelzamalutdinov on 04.04.16.
public interface CartRepository extends JpaRepository<CartInfo, Long> { List<CartInfo> findCartsInfoByOrderInfo(OrderInfo orderInfo); CartInfo findCartInfoByOrderInfoAndGoodInfo(OrderInfo orderInfo, GoodInfo goodInfo); void deleteByOrderInfo(OrderInfo orderInfo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n\n }", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public void initialize() { \n }", "Petunia() {\r\n\t\t}", "void berechneFlaeche() {\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void init() {\n }" ]
[ "0.59559005", "0.5886349", "0.5762443", "0.5756159", "0.5737307", "0.5737307", "0.5703256", "0.56839573", "0.56817603", "0.56631374", "0.56410336", "0.5634442", "0.56214017", "0.5612367", "0.5594036", "0.55810505", "0.55662894", "0.55382586", "0.55380046", "0.5531825", "0.5530151", "0.5513385", "0.5513385", "0.5513385", "0.5513385", "0.5513385", "0.5501776", "0.54943115", "0.5491717", "0.5486597", "0.54778224", "0.54623973", "0.5455175", "0.54445875", "0.5442195", "0.54408425", "0.54238486", "0.54145586", "0.54145586", "0.54127234", "0.5409715", "0.5402223", "0.54005975", "0.54005975", "0.54005975", "0.5395461", "0.5374712", "0.5372807", "0.5372807", "0.53575796", "0.53575796", "0.53575796", "0.53575796", "0.53575796", "0.53575796", "0.5355744", "0.53552353", "0.53552353", "0.5354593", "0.5352061", "0.5352061", "0.5352061", "0.5343171", "0.534246", "0.53294474", "0.53294474", "0.53294474", "0.53283656", "0.53256094", "0.5325604", "0.5322443", "0.5313738", "0.5310602", "0.5308702", "0.53030837", "0.5303028", "0.5297369", "0.5292013", "0.5288774", "0.52839714", "0.52839714", "0.52839714", "0.52839714", "0.52839714", "0.52839714", "0.52839714", "0.52837425", "0.5269659", "0.5262444", "0.5252465", "0.52460724", "0.52302754", "0.52264196", "0.5226206", "0.5216937", "0.5201257", "0.519642", "0.5190369", "0.5187638", "0.51824003", "0.51780885" ]
0.0
-1
The loadLevel method. This method reads the levelText and processes it to generate the maps. The algorithm consists in two imbricate "for" loops browsing the height and width. Inside is a "switch" condition calling the creation of the right item depending on the text input.
private void loadLevel(int level) throws SQLException, IOException { String levelText = LorannDAO.chooseLevel(level); this.onTheLevel = new IElement[this.getWidth()][this.getHeight()]; String[] levelArray = levelText.split("\n"); for(int y = 0; y < height; y++) { for(int x = 0; x < width; x++) { switch(levelArray[y].toCharArray()[x]) { case '3': this.setCharacterPosition(new Point(x, y)); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; case '5': this.purses.add(new Purse(x, y, this)); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; case '8': this.energyBall = new CrystalEnergy(x,y,this); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; case '9': this.monsters.add(new Monster_2(this, x, y)); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; case '6': this.door = new Gate(x, y, this); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; case '4': this.monsters.add(new Monster_1(this, x, y)); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; case 'A': this.monsters.add(new Monster_3(this, x, y)); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; case 'B': this.monsters.add(new Monster_4(this, x, y)); this.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor()); break; default: this.setOnTheLevelXY(x, y, MotionlessElementFactory.getFromFileSymbol(levelArray[y].toCharArray()[x])); break; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad)throws IOException\r\n\t{\r\n\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column=0;\r\n\t\tint row=0;\r\n\t\tArrayList<String> ans= new ArrayList<String>();\r\n\t\twhile((line = read.readLine()) != null)\r\n\t\t{\r\n\t\t\tif (line.length() > row)\r\n\t\t\t{\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\tcolumn++;\r\n\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column,row);\r\n\t\tcolumn = 0;\r\n\t\tfor(String resualt: ans)\r\n\t\t{\r\n\r\n\t\t\tfor(int i=0;i<resualt.length();i++)\r\n\t\t\t{\r\n\t\t\t\tswitch(resualt.charAt(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tcase ' ':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '#':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '@':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'o':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\r\n\t\treturn level;\r\n\t}", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad) throws IOException {\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column = 0;\r\n\t\tint row = 0;\r\n\t\tArrayList<String> ans = new ArrayList<String>();\r\n\t\tString name = read.readLine();\r\n\t\twhile ((line = read.readLine()) != null) {\r\n\t\t\tif (line.length() > row) {\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\t\tcolumn++;\r\n\t\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column, row);\r\n\t\tlevel.setName(name);\r\n\t\tcolumn = 0;\r\n\t\tfor (String resualt : ans) {\r\n\t\t\tfor (int i = 0; i < resualt.length(); i++) {\r\n\t\t\t\tswitch (resualt.charAt(i)) {\r\n\t\t\t\tcase ' ': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '#': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'A': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '@': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'o': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\t\treturn level;\r\n\t}", "private void initMapData() {\n\n\t\ttry {\n\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\t\n\t\t\tfor (int row = 0; row < height; row++) {\n\t\t\t\t\n\t\t\t\t// read a line\n\t\t\t\tString line = br.readLine();\n\t\t\t\t\n\t\t\t\t// if length of this line is different from width, then throw\n\t\t\t\tif (line.length() != width)\n\t\t\t\t\tthrow new InvalidLevelFormatException();\n\t\t\t\t\n\t\t\t\t// split all single characters of this string into array\n\t\t\t\tchar[] elements = line.toCharArray();\n\t\t\t\t\n\t\t\t\t// save these single characters into mapData array\n\t\t\t\tfor (int col = 0; col < width; col++) {\n\t\t\t\t\tmapElementStringArray[row][col] = String.valueOf(elements[col]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}", "public GameLevel LoadGame() throws IOException {\n FileReader fr = null;\n BufferedReader reader = null;\n\n try {\n System.out.println(\"Reading \" + fileName + \" data/saves.txt\");\n\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n\n String line = reader.readLine();\n int levelNumber = Integer.parseInt(line);\n\n //--------------------------------------------------------------------------------------------\n\n if (levelNumber == 1){\n gameLevel = new Level1();\n } else if(levelNumber == 2){\n gameLevel = new Level2();\n JFrame debugView = new DebugViewer(gameLevel, 700, 700);\n } else {\n gameLevel = new Level3();\n }\n\n //------------------------------------------------------------------------------------------\n\n\n while ((line = reader.readLine()) != null){\n String[] tokens = line.split(\",\");\n String className = tokens[0];\n float x = Float.parseFloat(tokens[1]);\n float y = Float.parseFloat(tokens[2]);\n Vec2 pos = new Vec2(x, y);\n Body platform = null;\n\n if (className.equals(\"PlayableCharacter\")){\n PlayableCharacter playableCharacter = new PlayableCharacter(gameLevel, PlayableCharacter.getItemsCollected(),PlayableCharacter.isSpecialGravity(),game);\n playableCharacter.setPosition(pos);\n gameLevel.setPlayer(playableCharacter);\n\n }\n\n if (className.equals(\"LogPlatform\")){\n Body body = new LogPlatform(gameLevel, platform);\n body.setPosition(pos);\n }\n\n if (className.equals(\"Coin\")){\n Body body = new Coin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new Pickup(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"ReducedGravityCoin\")){\n Body body = new ReducedGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupRGC(gameLevel.getPlayer(), game)\n\n );\n }\n\n if (className.equals(\"AntiGravityCoin\")){\n Body body = new AntiGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupAGC(gameLevel.getPlayer(), game) );\n }\n\n if (className.equals(\"Rock\")){\n Body body = new Rock(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new FallCollisionListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Pellet\")){\n Body body = new Pellet(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new AddLifeCollisionListener(gameLevel.getPlayer(), game));\n }\n\n if (className.equals(\"Branch\")){\n Body body = new Branch(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new BranchListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Portal\")){\n Body portal = new Portal(gameLevel);\n portal.setPosition(pos);\n portal.addCollisionListener(new DoorListener(game));\n }\n\n if (className.equals(\"DeathPlatform\")){\n float w = Float.parseFloat(tokens[3]);\n float h = Float.parseFloat(tokens[4]);\n float deg = Float.parseFloat(tokens[5]);\n\n Body body = new DeathPlatform(gameLevel, w, h);\n body.setPosition(pos);\n body.addCollisionListener(new FallCollisionListener(gameLevel.getPlayer(), game));\n body.setFillColor(Color.black);\n body.setAngleDegrees(deg);\n\n }\n\n }\n\n return gameLevel;\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }", "@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }", "private void createLevelBoxes() {\n int totalRows = (LEVELS / LEVEL_COLUMNS_PER_SCREEN) + 1;\n \n // Calculate space between each level square\n int spaceBetweenRows = (CAMERA_HEIGHT / LEVEL_ROWS_PER_SCREEN) - LEVEL_PADDING;\n int spaceBetweenColumns = (CAMERA_WIDTH / LEVEL_COLUMNS_PER_SCREEN) - LEVEL_PADDING;\n \n //Current Level Counter\n int iLevel = 1;\n //Create the Level selectors, one row at a time.\n int boxX = LEVEL_PADDING, boxY = LEVEL_PADDING;\n for (int y = 0; y < totalRows; y++) {\n for (int x = 0; x < LEVEL_COLUMNS_PER_SCREEN; x++) {\n \n //On Touch, save the clicked level in case it's a click and not a scroll.\n final int levelToLoad = iLevel;\n \n if(iLevel >= mMaxLevelReached) {\n \t dotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_red_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n else {\n \tdotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_green_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n \n this.attachChild(dotLevel);\n \n this.attachChild(new Text(boxX, boxY - 5, resourcesManager.font, String.valueOf(iLevel), vbom));\n \n \n this.registerTouchArea(dotLevel);\n \n iLevel++;\n boxX += spaceBetweenColumns + LEVEL_PADDING;\n \n if (iLevel > LEVELS)\n break;\n }\n \n if (iLevel > LEVELS)\n break;\n \n boxY += spaceBetweenRows + LEVEL_PADDING;\n boxX = 50;\n }\n }", "private void loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }", "public static ArrayList<Sprite> readLevel(String currentLevel) throws IOException {\n\n ArrayList<Sprite> spriteList = new ArrayList<>();\n String[] line;\n String text;\n\n try (BufferedReader reader = new BufferedReader(new FileReader(currentLevel))) {\n\n\n while((text = reader.readLine()) != null) {\n\n line = text.split(\",\");\n\n switch (line[0]) {\n case \"water\":\n spriteList.add(Tile.createWaterTile(Float.parseFloat(line[1]), Float.parseFloat(line[2])));\n break;\n\n case \"grass\":\n spriteList.add(Tile.createGrassTile(Float.parseFloat(line[1]), Float.parseFloat(line[2])));\n break;\n\n case \"tree\":\n spriteList.add(Tile.createTreeTile(Float.parseFloat(line[1]), Float.parseFloat(line[2])));\n break;\n\n case \"bus\":\n spriteList.add(new Bus(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3])));\n break;\n\n case \"bulldozer\":\n spriteList.add(new Bulldozer(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3])));\n break;\n\n case \"log\":\n spriteList.add(new Log(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3])));\n break;\n\n case \"longLog\":\n spriteList.add(new LongLog(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3])));\n break;\n\n case \"racecar\":\n spriteList.add(new Racecar(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3])));\n break;\n\n case \"turtle\":\n spriteList.add(new Turtle(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3])));\n break;\n\n case \"bike\":\n spriteList.add(new Bike(Float.parseFloat(line[1]), Float.parseFloat(line[2]), Boolean.parseBoolean(line[3])));\n break;\n }\n }\n }\n return spriteList;\n }", "public void loadLevel(BufferedImage image) {\n\n\t\tif (stage == 1) {\n\t\t\tlevelLoader.loadLevel(image, ssTiles, ssPlayer, ssMonster, ssKeys);\n\t\t}\n\n\t\t/*\n\t\t * System.out.println(\"Hello from loadLevel\");\n\t\t * \n\t\t * \n\t\t * int w = image.getWidth();\n\t\t * int h = image.getHeight();\n\t\t * \n\t\t * \n\t\t * for(int xx = 0; xx < w; xx++) {\n\t\t * for (int yy = 0; yy < h; yy++) {\n\t\t * int pixel = image.getRGB(xx,yy);\n\t\t * int red = (pixel >> 16 ) & 0xff;\n\t\t * int green = (pixel >> 8) & 0xff;\n\t\t * int blue = (pixel) & 0xff;\n\t\t * //System.out.println(\"at x\" + xx + \" and y \"+ yy);\n\t\t * \n\t\t * \n\t\t * //if a pixel in the picture is red we render it as a block.\n\t\t * if(red == 255) {\n\t\t * handler.addObject(new Block(xx*32, yy*32, ID.Block,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //if a pixel in the picture is blue, we render it as a player.\n\t\t * if(blue == 255 && green == 0) {\n\t\t * System.out.println(\"player object added\");\n\t\t * handler.addObject(new Wizard(xx*32,yy*32,ID.Player,handler,this,ssPlayer));\n\t\t * }\n\t\t * \n\t\t * if(green == 255 && blue == 0) {\n\t\t * \n\t\t * \n\t\t * handler.addObject(new Enemy(xx*32, yy*32, ID.Enemy, handler,ssMonster));\n\t\t * enemies++;\n\t\t * System.out.println(\"added enemy, total enemies: \" + enemies);\n\t\t * }\n\t\t * \n\t\t * \n\t\t * if(green == 255 && blue == 255) {\n\t\t * System.out.println(\"crate found\");\n\t\t * handler.addObject(new Crate(xx*32, yy*32, ID.Crate,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //System.out.println(\"There is \" + handler.object.size() +\n\t\t * \" objects loaded! \");\n\t\t * \n\t\t * }\n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "public void setDesc(String level) {\n TextView t = (TextView) findViewById(R.id.mapDescTextView);\n switch (level) {\n case \"1_1\":\n t.setText(getResources().getString(R.string.Level1_1));\n break;\n case \"1_2\":\n t.setText(getResources().getString(R.string.Level1_2));\n break;\n case \"1_3\":\n t.setText(getResources().getString(R.string.Level1_3));\n break;\n case \"1_4\":\n t.setText(getResources().getString(R.string.Level1_4));\n break;\n case \"1_5\":\n t.setText(getResources().getString(R.string.Level1_5));\n break;\n case \"2_1\":\n t.setText(getResources().getString(R.string.Level2_1));\n break;\n case \"2_2\":\n t.setText(getResources().getString(R.string.Level2_2));\n break;\n case \"2_3\":\n t.setText(getResources().getString(R.string.Level2_3));\n break;\n case \"2_4\":\n t.setText(getResources().getString(R.string.Level2_4));\n break;\n case \"2_5\":\n t.setText(getResources().getString(R.string.Level2_5));\n break;\n case \"3_1\":\n t.setText(getResources().getString(R.string.Level3_1));\n break;\n case \"3_2\":\n t.setText(getResources().getString(R.string.Level3_2));\n break;\n case \"3_3\":\n t.setText(getResources().getString(R.string.Level3_3));\n break;\n case \"3_4\":\n t.setText(getResources().getString(R.string.Level3_4));\n break;\n case \"3_5\":\n t.setText(getResources().getString(R.string.Level3_5));\n break;\n\n\n }\n }", "public void createlevel() {\n if (level == 21)\n {\n Intent myIntent = new Intent(GameActivity.this, finalActivity.class);\n startActivity(myIntent);\n finish();\n }\n else {\n BufferedReader reader;\n String line = \"\";\n try{\n InputStream file = getAssets().open(\"inputtt.txt\");\n if (selectedlanguage.equals(\"germ\"))\n file = getAssets().open(\"inputGer.txt\");\n else if (selectedlanguage.equals(\"svk\"))\n file = getAssets().open(\"inputSvk.txt\");\n reader = new BufferedReader(new InputStreamReader(file));\n line = reader.readLine();\n int i = 1;\n while(line != null){\n line = reader.readLine();\n if (i == level) {\n break;\n }\n i++;\n }\n\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n\n String[] splitter = line.split(\"#\", 5);\n counter = Integer.parseInt(splitter[1]);\n text = splitter[2];\n\n char[] ch = new char[splitter[0].length()];\n for (int i = 0; i < splitter[0].length(); i++) {\n ch[i] = splitter[0].charAt(i);\n }\n int moves = 0;\n for (int i = 0; i < 4; i++)\n {\n for (int j = 0; j < 4; j++) {\n if(Character.getNumericValue(ch[moves]) == 1) {\n buttColor[i][j] = \"red\";\n } else {\n buttColor[i][j] = \"green\";\n }\n applyColor(buttons[i][j], buttColor[i][j]);\n moves++;\n }\n }\n }\n }", "public void loadLevel(int level)\n {\n loadTilemap(new File(\"Levels/level\" + level + \".txt\"));\n loadFrames(level);\n Rover.getRover().reset();\n }", "public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }", "public void loadTilemap(File fileToLoad) \n {\n File levelFile = fileToLoad;\n boolean roverPainted = false; //Used to check if rover is painted twice\n try\n {\n Scanner scanner = new Scanner(levelFile);\n //Strict capture, instead of hasNextLine()\n // to enforce level grid size\n //Collect data for each column in row, then go to next row\n // 0 = surface, 1 = rover, 2 = rock, 3 = mineral\n for(int y = 0; y < Level.MAX_ROWS; y++)\n {\n for(int x = 0; x < Level.MAX_COLUMNS; x++)\n {\n if(scanner.hasNext())\n {\n tilemap[x][y] = scanner.nextInt();\n \n //Check if this tile paint was a rover\n if(tilemap[x][y] == 1)\n {\n //If rover has already been painted\n if(roverPainted)\n {\n System.out.println(\"WARNING: Multiple rovers exist. \"\n + \"Please fix level file. \");\n }\n roverPainted = true; //Set roverPainted to true\n }\n }\n else\n {\n tilemap[x][y] = 0;\n }\n }\n }\n scanner.close();\n repaint();\n }\n catch (FileNotFoundException e) \n {\n System.out.println(\"Invalid Level File\");\n e.printStackTrace();\n }\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "public void loadLevel(String tileMapPath)\r\n\t{\r\n\t\tTiledMap map= new TmxMapLoader().load(tileMapPath);\r\n\t\tcreateLights(map);\r\n\t}", "private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}", "public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }", "public void loadLevel(String path, int levelIndex, String levelName) throws IOException, InvalidFileException {\n\t\tif (levelIndex < 0)\n\t\t\tgrid = GridReader.loadLevel(path, false);\n\t\telse\n\t\t\tgrid = GridReader.loadLevel(path, true);\n\t\tlevel = new LevelDisplay(grid, this, levelIndex, levelName);\n\t\twindow.setContentPane(level);\n\t\tlevel.displayGrid.requestFocusInWindow();\n\t}", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public static void parseRegularLine(String line, int lineNum, SingleLevel level) {\r\n String[] parts = line.trim().split(\":\");\r\n if (!(parts.length == 2)) {\r\n System.out.println(\"Illegal input, must have a key before : and value after :,\"\r\n + \" in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n String key = parts[0];\r\n String value = parts[1];\r\n if (key.equals(\"level_name\")) {\r\n level.setName(value);\r\n }\r\n if (key.equals(\"ball_velocities\")) {\r\n int numberOfBalls = 0;\r\n String[] velocities = value.split(\" \");\r\n for (String velocity : velocities) {\r\n String[] velocityComponents = velocity.split(\",\");\r\n if (!(velocityComponents.length == 2)) {\r\n System.out.println(\"Illegal velocity input in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n String angle = velocityComponents[0];\r\n String speed = velocityComponents[1];\r\n try {\r\n if (Double.valueOf(speed) <= 0) {\r\n throw new NumberFormatException();\r\n }\r\n level.addBallVelocity(Velocity.fromAngleAndSpeed(Double.valueOf(angle),\r\n Double.valueOf(speed)));\r\n numberOfBalls++;\r\n } catch (NumberFormatException e) {\r\n System.out.println(\"Illegal velocity input, in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n level.setNumberOfBalls(numberOfBalls);\r\n }\r\n if (key.equals(\"background\")) {\r\n if (value.startsWith(\"image(\")) {\r\n value = value.substring(\"image(\".length());\r\n value = value.replace(\")\", \"\");\r\n try {\r\n Image image = ImageIO.read(ClassLoader.getSystemClassLoader().getResourceAsStream(value));\r\n LevelBackground background = new LevelBackground(image);\r\n level.setBackground(background);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't find the background image, in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n } else if (value.startsWith(\"color(\")) {\r\n Color color = ColorParser.colorFromString(value);\r\n if (color == null) {\r\n System.out.println(\"Check color input, in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n LevelBackground background = new LevelBackground(color);\r\n level.setBackground(background);\r\n } else {\r\n System.out.println(\"No image or color for background, in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n\r\n if (key.equals(\"paddle_width\")) {\r\n try {\r\n if (Integer.valueOf(value) <= 0) {\r\n throw new NumberFormatException();\r\n }\r\n level.setPaddleWidth(Integer.valueOf(value));\r\n } catch (NumberFormatException e) {\r\n System.out.println(\"Illegal paddle width in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n\r\n if (key.equals(\"paddle_speed\")) {\r\n try {\r\n if (Integer.valueOf(value) <= 0) {\r\n throw new Exception();\r\n }\r\n level.setPaddleSpeed(Integer.valueOf(value));\r\n } catch (Exception e) {\r\n System.out.println(\"Illegal paddle speed in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n\r\n if (key.equals(\"block_definitions\")) {\r\n try {\r\n Reader blockReader = new InputStreamReader(ClassLoader.getSystemClassLoader()\r\n .getResourceAsStream(value));\r\n blocksFromSymbolsFactory = BlocksDefinitionReader.fromReader(blockReader);\r\n } catch (Exception e) {\r\n System.out.println(\"Illegal block defenitions file check line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n\r\n if (key.equals(\"blocks_start_x\")) {\r\n try {\r\n if (Integer.valueOf(value) < 0) {\r\n throw new Exception();\r\n }\r\n level.setBlocksXPos(Integer.valueOf(value));\r\n } catch (Exception e) {\r\n System.out.println(\"Illegal X value of printing blocks in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n if (key.equals(\"blocks_start_y\")) {\r\n try {\r\n if (Integer.valueOf(value) < 0) {\r\n throw new Exception();\r\n }\r\n level.setBlocksStartY(Integer.valueOf(value));\r\n } catch (Exception e) {\r\n System.out.println(\"Illegal Y value of printing blocks in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n\r\n\r\n if (key.equals(\"num_blocks\")) {\r\n try {\r\n if (Integer.valueOf(value) < 0) {\r\n throw new Exception();\r\n }\r\n level.setNumberOfBlocksToRemove(Integer.valueOf(value));\r\n } catch (Exception e) {\r\n System.out.println(\"Error in the number of blocks in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n\r\n if (key.equals(\"row_height\")) {\r\n try {\r\n if (Integer.valueOf(value) <= 0) {\r\n throw new Exception();\r\n }\r\n level.setRowHeight(Integer.valueOf(value));\r\n } catch (Exception e) {\r\n System.out.println(\"EIllegal row height in line: \" + lineNum + \" Check the text file\");\r\n System.exit(0);\r\n }\r\n }\r\n }", "private void loadLevel(Game game, int level) {\n //stop any ongoing sounds\n game.getGameLevel().getLevelSound().stop();\n //creates new arrList\n game.resetGameLevels();\n //Loads levels in the arrList\n game.buildGameLevelsArray();\n //set to desired level\n game.setLevel(level);\n //load all necessary components for the game\n // and updates the existing one.\n game.goNextLevel();\n // sets the player lifes and collected eggs\n game.getHero().setLifes(10);\n game.getHero().setEggs(0);\n }", "private boolean loadLevel(int n) {\n Scanner in = null;\n try {\n in = new Scanner(new FileInputStream(LEVELS_FILE)); // Scanner to read the file\n model = new Loader(in).load(n); // Load level from scanner\n model.setListener( listener ); // Set the listener of modifications\n view = new TilePanel(model.getHeight(),model.getWidth(),CellTile.SIDE);\n win.clear();\n view.center(WIN_HEIGHT,WIN_WIDTH);\n status.setLevel(n);\n status.setMoves(0);\n return true;\n } catch (FileNotFoundException | InputMismatchException e) {\n System.out.println(\"Error loading file \\\"\"+LEVELS_FILE+\"\\\":\\n\"+e.getMessage());\n return false;\n } catch (Loader.LevelFormatException e) {\n System.out.println(e.getMessage()+\" in file \\\"\"+LEVELS_FILE+\"\\\"\");\n System.out.println(\" \"+e.getLineNumber()+\": \"+e.getLine());\n return false;\n } finally {\n if (in!=null) in.close(); // Close the file\n }\n }", "@Override\n\tpublic String generateLevel(GameDescription game, ElapsedCpuTimer elapsedTimer) {\n\t\tString result = \"\";\n\t\tArrayList<SpriteData> sprites = game.getAllSpriteData();\n\t\tArrayList<SpriteData> avatars = game.getAvatar();\n\t\t\n\t\t//Get a random width and random height value based on the length of game sprites\n\t\t//and it should be in between maxSize and minSize\n\t\tint width = (int)Math.max(minSize, sprites.size() * (1 + 0.25 * random.nextDouble()));\n\t\tint length = (int)Math.max(minSize, sprites.size() * (1 + 0.25 * random.nextDouble()));\n\t\twidth = (int)Math.min(width, maxSize);\n\t\tlength = (int)Math.min(length, maxSize);\n\t\t\n\t\tArrayList<Character> avatar = new ArrayList<Character>();\n\t\tArrayList<Character> choices = new ArrayList<Character>();\n\t\tfor(Map.Entry<Character, ArrayList<String>> pair:game.getLevelMapping().entrySet()){\n\t\t\tboolean avatarExists = false;\n\t\t\t//check if the avatar is found in this level mapping\n\t\t\tfor (SpriteData avatarName:avatars){\n\t\t\t\tif(pair.getValue().contains(avatarName.name)){\n\t\t\t\t\tavatarExists = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(!avatarExists){\n\t\t\t\t//if not avatar add to other symbols\n\t\t\t\tif(!pair.getValue().contains(\"avatar\")){\n\t\t\t\t\tchoices.add(pair.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//add the avatar symbol if it exist\n\t\t\t\tavatar.add(pair.getKey());\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<DataPoint> dataPoints = new ArrayList<DataPoint>();\n\n\t\t//add level borders based on static variable includeBorders\n\t\tif(includeBorders){\n\t\t\tincludeBorders = buildLayout(game, dataPoints, width, length);\n\t\t}\n\t\t\n\t\t//Add only one of all objects in the choices array\n\t\tfor(Character c:choices){\n\t\t\taddUnique(dataPoints, width, length, c);\n\t\t}\n\t\t\n\t\t//if no avatar is defined in the level mapping section use 'A' to add it\n\t\tif(avatar.size() == 0){\n\t\t\tavatar.add('A');\n\t\t}\n\t\taddUnique(dataPoints, width, length, avatar.get(random.nextInt(avatar.size())));\n\t\t\n\t\t//construct the result string from the array of datapoints\n\t\tfor(int y=0; y < length; y++){\n\t\t\tfor(int x=0; x < width; x++){\n\t\t\t\t//check if the position (x, y) is defined in the list of points\n\t\t\t\tDataPoint p = isUnique(dataPoints, x, y);\n\t\t\t\t//if yes then add the result\n\t\t\t\tif(p != null){\n\t\t\t\t\tresult += p.c;\n\n\t\t\t\t}\n\t\t\t\t//add empty space\n\t\t\t\telse if(random.nextDouble() < emptyPercentage){\n\t\t\t\t\tresult += \" \";\n\t\t\t\t}\n\t\t\t\t//add random object\n\t\t\t\telse{\n\t\t\t\t\tresult += choices.get(random.nextInt(choices.size()));\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult += \"\\n\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }", "public void initialize(String level) throws IOException {\r\n\t\t//Reads image\r\n\t\tBufferedImage image;\r\n\t\tString lvl = \"src/maps/\"+level+\".png\";\r\n\t\tFile file = new File(lvl);\r\n\t\timage = ImageIO.read(file);\r\n\t\t//each index of the 2D array is made into food/wall\r\n\t\tfoodArray = new JLabel[image.getWidth()][image.getHeight()];\r\n\t\t//initialize the frame and panel\r\n\t\tframe = new JFrame();\r\n\t\tframe.addKeyListener(this);\r\n\t\tframe.setBounds(100, 100, foodArray.length *interval + 50,foodArray[0].length *interval + 80);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tpanel.setForeground(Color.BLACK);\r\n\t\tpanel.setBackground(Color.BLACK);\r\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\r\n\t\tpanel.setLayout(null);\r\n\t\t//add pacman to the panel\r\n\t\tpacman = new Pacman();\r\n\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightOpened.png\"));\r\n\t\tpacmansprite.setBounds(250, 200, 25, 25);\r\n\t\tpanel.add(pacmansprite);\r\n\t\t\r\n\t\t\r\n\t\t//read map from pixel image\r\n\t\tdrawmap(readmap(image));\r\n\t\t// add ghosts \r\n\t\tg1 = new ghost(50,50,new ImageIcon(\"src/ghost_img/Ghost1.png\"),colours);\r\n\t\tg2 = new ghost(325,50,new ImageIcon(\"src/ghost_img/Ghost2.png\"),colours);\r\n\t\tg3 = new ghost(50,325,new ImageIcon(\"src/ghost_img/Ghost3.png\"),colours);\r\n\t\tpanel.add(g1.sprite);\r\n\t\tpanel.add(g2.sprite);\r\n\t\tpanel.add(g3.sprite);\r\n\t\t\r\n\t\tframe.setVisible(true);\r\n\t}", "private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void loadPuzzle(String level) throws Exception\r\n\t{\r\n\t\tthis.level = level;\r\n\t\tString fileName = \"easyPuzzle.txt\";\r\n\t\tif(level.contentEquals(\"medium\"))\r\n\t\t\tfileName = \"mediumPuzzle.txt\";\r\n\t\telse if(level.contentEquals(\"hard\"))\r\n\t\t\tfileName = \"hardPuzzle.txt\";\r\n\t\t\r\n\t\tScanner input = new Scanner (new File(fileName));\r\n\t\t\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tint number = input.nextInt();\r\n\t\t\t\tif(number != 0)\r\n\t\t\t\t\tsolve(x, y, number);\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}", "private List<LevelInformation> getLevelListToRun(String path, SubMenuAnimation<Task<Void>> subMenu)\n throws IOException {\n List<LevelSpecificationReader> levelSpecificationReaderList = new ArrayList<>();\n LevelSetReader levelSetReader = new LevelSetReader(Paths.get(path));\n levelSetReader.fromReader(new FileReader(path));\n Map<String, List<String>> levelSetMap = levelSetReader.getMapToAdd();\n List<String> keyStringList = new ArrayList<>();\n List<String> messageStringList = new ArrayList<>();\n List<String> pathStringList = new ArrayList<>();\n\n for (Map.Entry<String, List<String>> entry : levelSetMap.entrySet()) {\n levelSpecificationReaderList.add(new LevelSpecificationReader(\n Paths.get(entry.getValue().get(1))));\n\n keyStringList.add(entry.getKey() + \"\");\n messageStringList.add(\"Press (\" + entry.getKey() + \") for \" + entry.getValue().get(0) + \" Level\");\n pathStringList.add(entry.getValue().get(1));\n\n\n }\n int i = 0;\n for (LevelSpecificationReader lsr : levelSpecificationReaderList) {\n subMenu.addSelection(keyStringList.get(i),\n messageStringList.get(i)\n , new StartTask(this,\n levelSpecificationReaderList.get(i).fromReader(new FileReader(pathStringList.get(i)))));\n i++;\n }\n\n return new ArrayList<>();\n }", "private void loadFrames(int level)\n {\n //Clear out any past frames, reset iFrame counter\n frames.clear();\n iFrame = 0;\n //Switch statement not possible due to redeclaration\n // Refactor needed if no. of levels exceeds 10\n if(level==0)\n {\n //Level zero does not allow user control, just a splashscreen\n }\n else if(level == 1)\n {\n LevelOne userCode = new LevelOne();\n userCode.main();\n }\n else if(level == 2)\n {\n LevelTwo userCode = new LevelTwo();\n userCode.main();\n }\n else if(level == 3)\n {\n LevelThree userCode = new LevelThree();\n userCode.main();\n }\n else if(level == 4)\n {\n LevelFour userCode = new LevelFour();\n userCode.main();\n }\n else if(level == 5)\n {\n LevelFive userCode = new LevelFive();\n userCode.main();\n }\n else\n {\n System.out.println(\"Invalid level\");\n }\n }", "private void loadWorld(String path) {\r\n StringBuilder builder = new StringBuilder();\r\n \r\n try {\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n builder.append(line + \"\\n\");\r\n }\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n String file = builder.toString();\r\n String[] tokens = file.split(\"\\\\s+\");\r\n width = Integer.parseInt(tokens[0]);\r\n height = Integer.parseInt(tokens[1]);\r\n spawnX = Integer.parseInt(tokens[2]);\r\n spawnY = Integer.parseInt(tokens[3]);\r\n winX = Integer.parseInt(tokens[4]);\r\n winY = Integer.parseInt(tokens[5]);\r\n \r\n tiles = new int[width][height];\r\n for (int y = 0;y < height;y++) {\r\n for (int x = 0;x < width;x++) {\r\n tiles[x][y] = Integer.parseInt(tokens[(x + y * width) + 6]);\r\n }\r\n }\r\n \r\n assert (tiles != null);\r\n }", "public LevelFromFile() {\n this.velocityList = new ArrayList<Velocity>();\n this.blockList = new ArrayList<Block>();\n this.levelName = null;\n numberOfBalls = null;\n paddleSpeed = null;\n paddleWidht = null;\n levelName = null;\n background = null;\n numberOfBlocksToRemove = null;\n blockDef = null;\n startOfBloks = null;\n startOfBloksY = null;\n rowHight = null;\n }", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "public void nextLevel() {\n // stops the game\n world.stop();\n level++;\n switch (level) {\n case 2:\n // get a new world\n world = new Level2();\n // populates new world with Level2()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n move2.setObstacle2(world.getObstacle2());\n drop.setBallDrop(world.getBallPlatform());\n view.setWorld(world);\n \n try {\n gameMusicL2 = new SoundClip(\"data/music2.wav\");\n gameMusicL2.loop();\n gameMusicL1.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500);\n break;\n case 3:\n // get a new world\n world = new Level3();\n // populates new world with Level3()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n drop.setBallDrop(world.getBallPlatform());\n world.addStepListener(new MovingBlock(world.getBlock()));\n view.setWorld(world);\n \n try {\n gameMusicL3 = new SoundClip(\"data/music3.wav\");\n gameMusicL3.loop();\n gameMusicL2.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500); \n break;\n default:\n System.out.println(\"Congratulations, you have completed the game!\");\n System.exit(0);\n }\n world.start();\n }", "public Level(int width, int height) {\n\t\ttiles = new byte[width * height];\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.generateLevel();\n\t}", "public BuildALevel(List<String> level) {\n this.level = level;\n this.map = new TreeMap<String, String>();\n // call the splitLevelDetails method\n splitLevelDetails();\n }", "public static void startGameBoard(int level){\n\t\t\n\t\tmap = new Map(level);\n\t\tboard = map.getBoard();\n\t\tmapHeight = map.getHeight();\n\t\tmapWidth = map.getWidth();\n\t\t\n\t\tstartHeroes();\n\t\tstartAI(map.getEnemies());\n\t\t\n\t\tunitPositions = new Coordinate[heroList.length + enemyList.length];\n\t\t\n\t\t//Initializing the unit positions\n\t\tfor (int i = 0; i < heroList.length; i++){\n\t\t\tunitPositions[i] = heroList[i].getCoordinate();\n\t\t}\n\t\n\t\tfor (int i = heroList.length; i < unitPositions.length; i++){\n\t\t\tunitPositions[i] = enemyList[i - heroList.length].getCoordinate();\n\t\t}\n\t\t//Initializing necessary fields in the Algorithm class\n\t\tAlgorithm.setMap(map);\n\t\tAlgorithm.setUnitPositions(unitPositions);\n\t}", "private void initArrayHeightAndWidth() {\n\n\t\theight = 0;\n\t\twidth = 0;\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\tString line = br.readLine();\n\t\t\t// get length of map\n\t\t\twidth = line.length();\n\t\t\t// get height of map\n\t\t\twhile (line != null) {\n\t\t\t\theight += 1;\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tbr.close();\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\theight_on_display = (height - 1) * 35;\n\t\twidth_on_display = (width - 1) * 35;\n\t\tmapElementStringArray = new String[height][width];\n\t\tmapElementArray = new MapElement[height][width];\n\n\t}", "public static Map readMap(MapName s)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n System.out.println(s.toString());\n Scanner mapReader = new Scanner(run.getClass().getResourceAsStream(\"/\"+s.toString()+\".jwmap\"));\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }", "private void level3() {\n // level 0.3\n levelBlock.moveTo(0, 400);\n levelBlock.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock.setScaleY(200 / levelBlock.getUnscaledHeight());\n// levelBlock.setAlpha((float).001);\n level.addChild(levelBlock);\n\n levelBlock2.moveTo(300, 400);\n levelBlock2.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock2.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock2);\n\n levelBlock3.moveTo(600, 400);\n levelBlock3.setScaleX(400 / levelBlock.getUnscaledWidth());\n levelBlock3.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock3);\n\n crystal1.setPosition(new Point(levelBlock.getHitbox().x + levelBlock.getHitbox().width, 500));\n crystal1.setAlpha((float) .1);\n crystal1.setScaleX(.55);\n crystal1.setScaleY(.6);\n level.addChild(crystal1);\n\n crystal2.setPosition(new Point(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width, 500));\n crystal2.setAlpha((float) .1);\n crystal2.setScaleX(.55);\n crystal2.setScaleY(.6);\n level.addChild(crystal2);\n\n ash.setPosition(new Point(\n crystal1.getPosition().x,\n crystal1.getPosition().y - 70)\n );\n ash.setAlpha((float) .21);\n ash.setScaleX(.55);\n level.addChild(ash);\n\n ash2.setPosition(new Point(\n crystal2.getPosition().x,\n crystal2.getPosition().y - 70)\n );\n ash2.setAlpha((float) .21);\n ash2.setScaleX(.55);\n level.addChild(ash2);\n\n beaconA.moveTo(levelBlock.getHitbox().x + levelBlock.getHitbox().width - 60,\n levelBlock.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconA);\n\n beaconB.moveTo(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width - 125,\n levelBlock2.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconB);\n\n entrance.moveTo(10, 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n entrance.setAlpha((float) 0.4);\n level.addChild(entrance);\n\n exit.setAlpha((float) 0.4);\n exit.moveTo(800 - exit.getUnscaledWidth() * exit.getGlobalScaleX() - 20,\n 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n level.addChild(exit);\n\n echoes.addChild(echoA);\n echoes.addChild(echoB);\n }", "public LevelInformation seperateLeveData() {\n try {\n // put the value of \"level_name\" in levelName\n String levelName = map.get(\"level_name\");\n // create a list of velocities\n List<Velocity> velocities = getVelocitiesForLevel();\n // find the speed of the paddle\n int paddleSpeed = Integer.parseInt(map.get(\"paddle_speed\"));\n // find the width of the paddle\n int paddleWidth = Integer.parseInt(map.get(\"paddle_width\"));\n // find the number of blocks\n int numOfBlocks = Integer.parseInt(map.get(\"num_blocks\"));\n // creating a list of blocks\n List<Block> blockList = createBlocks();\n String backround = map.get(\"background\");\n // create a level based on the Level Data\n LevelData oneLevel = new LevelData(levelName, velocities, paddleSpeed, paddleWidth, numOfBlocks, blockList);\n if (backround.contains(\"image\")) {\n backround = backround.replaceAll(\"[()]\", \"\");\n backround = backround.substring(5);\n // create an InputStream object\n InputStream imageIS = ClassLoader.getSystemClassLoader().getResourceAsStream(backround);\n Image image = null;\n // try to load the image\n try {\n image = ImageIO.read(imageIS);\n } catch (IOException e) {\n e.printStackTrace();\n } // set the backround\n oneLevel.setBackroundImage(image);\n imageIS.close();\n return oneLevel;\n } else {\n oneLevel.setBackroundColor(new ColorsParser().colorFromString(backround));\n return oneLevel;\n }\n } catch (Exception e) {\n messageToUser();\n }\n return null;\n }", "protected void setLevelSize(int w, int h) {\n\t\twidth = w;\n\t\theight = h;\n\n\t\t// build it\n\t\tlevelTiled = new ArrayList<ArrayList<ArrayList<Integer>>>();\n\t\tlevelTyp = new HashMap<String, TYPE>();\n\n\t\t// run over\n\t\tfor (int i = 0; i < w; i++) {\n\t\t\tlevelTiled.add(new ArrayList<ArrayList<Integer>>());\n\t\t\tfor (int j = 0; j < h; j++) {\n\t\t\t\tlevelTiled.get(i).add(new ArrayList<Integer>());\n\t\t\t}\n\t\t}\n\t}", "public void startGameFlow(String path) throws IOException {\n\n List<LevelInformation> levelList = new ArrayList<>();\n\n LevelSetReader levelSetReader = new LevelSetReader(Paths.get(path));\n levelSetReader.fromReader(new FileReader(path));\n\n SubMenuAnimation<Task<Void>> subMenu =\n new SubMenuAnimation<Task<Void>>(\"Arkanoid\", keyboardSensor, animationRunner);\n levelList = getLevelListToRun(path, subMenu);\n\n\n this.startMenu(levelList, subMenu);\n }", "private void readFile() {\n\t\tint newPlayerScore = level.animal.getPoints();\n\t\t\n\t\tlevel.worDim = 30;\n\t\tlevel.wordShift = 25;\n\t\tlevel.digDim = 30;\n\t\tlevel.digShift = 25;\n\t\t\n\t\tfor( int y =0; y<10; y++ ) { //display placeholder numbers\n\t\t\tfor( int x=0; x<4; x++ ) {\n\t\t\t\tbackground.add(new Digit( 0, 30, 470 - (25*x), 200 + (35*y) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry { //display highscores from highscores.txt\n\t\t\tScanner fileReader = new Scanner(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tint loopCount = 0;\n\t\t\twhile( loopCount < 10 ) {\n\t\t\t\tString playerName = fileReader.next() ;\n\t\t\t\tString playerScore = fileReader.next() ;\n\t\t\t\tint score=Integer.parseInt(playerScore);\n\t\t\t\t\n\t\t\t\tif( newPlayerScore >= score && newHighScore == false ) {\n\t\t\t\t\tstopAt = loopCount;\n\t\t\t\t\tnewHighScore = true;\n\t\t\t\t\tlevel.wordY = 200 + (35*loopCount);\n\t\t\t\t\t\n\t\t\t\t\tpointer = new Icon(\"pointer.png\", 30, 75, 200 + (35*loopCount) );// add pointer indicator\n\t\t\t\t\tbackground.add( pointer ); \n\t\t\t\t\tlevel.setNumber(newPlayerScore, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}else {\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}\n\t\t\t}//end while\n\t\t\tfileReader.close();\n\t\t\tif( newHighScore ) {\n\t\t\t\tnewHighScoreAlert();\n\t\t\t}else {\n\t\t\t\tgameOverAlert();\n\t\t\t}\n } catch (Exception e) {\n \tSystem.out.print(\"ERROR: Line 168: Unable to read file\");\n //e.printStackTrace();\n }\n\t}", "public List<List<String>> levelsSplitter(java.io.Reader reader) throws Exception {\r\n BufferedReader bufferedReader = (BufferedReader) reader;\r\n String line;\r\n int fourChecks = 0;\r\n List<List<String>> levels = new ArrayList<>();\r\n List<String> level = new ArrayList<>();\r\n List<String> currentBlockLayOut = new ArrayList<>();\r\n boolean levelBool = false;\r\n boolean blocksBool = false;\r\n this.blocksLayOut = new ArrayList<>();\r\n try {\r\n while ((line = bufferedReader.readLine()) != null) {\r\n if (line.startsWith(\"#\") || line.startsWith(\" \")) { // empty lines and comments\r\n continue;\r\n }\r\n if (line.equals(\"START_LEVEL\")) {\r\n levelBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (levelBool) {\r\n level.add(line);\r\n }\r\n if (line.equals(\"START_BLOCKS\") && !blocksBool) {\r\n blocksBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (blocksBool) {\r\n currentBlockLayOut.add(line);\r\n }\r\n if (line.equals(\"END_BLOCKS\")) {\r\n blocksBool = false;\r\n blocksLayOut.add(currentBlockLayOut);\r\n fourChecks++;\r\n }\r\n if (line.equals(\"END_LEVEL\")) {\r\n levelBool = false;\r\n fourChecks++;\r\n if (fourChecks != 4) {\r\n throw new Exception(\"levels definition format is wrong!\");\r\n }\r\n fourChecks = 0;\r\n levels.add(level);\r\n level = new ArrayList<>();\r\n currentBlockLayOut = new ArrayList<>();\r\n }\r\n }\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found during reading the levels definition file\");\r\n } finally {\r\n if (bufferedReader != null) {\r\n try {\r\n bufferedReader.close();\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found while closing the levels definition file\");\r\n }\r\n }\r\n }\r\n return levels;\r\n }", "Level( int tiles_per_cam_width , int tiles_per_cam_height ) {\r\n\t\ttotal_scroll = 0;\r\n\t\tleft_map_scroll = 0;\r\n\t\tleft_map_width = 20;\r\n\t\tleft_map = 0;\r\n\t\tcollision = new int[2][];\r\n\t\t_load(0,0);\r\n\t\t_load(1,1);\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\tcamera[i]= new OrthographicCamera();\r\n\t\t\tcamera[i].setToOrtho(false, tiles_per_cam_width, \r\n\t\t\t\t\ttiles_per_cam_height ); }\r\n\t}", "public void runLevels(List<LevelInformation> levels) {\n\n for (LevelInformation levelInfo : levels) {\n\n Counter blocks = new Counter();\n GameLevel level = new GameLevel(levelInfo, this.keyboardSensor, this.animationRunner, this.lives,\n this.score, blocks);\n level.initialize();\n\n // play the same level over and over again as long as the player still has lives left\n while (this.lives.getValue() > 0) {\n level.playOneTurn();\n\n // if no blocks are left - move to the next level\n if (blocks.getValue() == 0) {\n // if all blocks are dead by now, add 100 to the score\n this.score.increase(LEVEL_COMPLETE_SCORE);\n break;\n } else {\n // subtract 1 life\n this.lives.decrease(1);\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n }\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n\n // ask the user for his name if his score is going to be on the highscore table\n if (this.highscore.isHighScore(this.score.getValue())) {\n DialogManager dialog = this.animationRunner.gui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\").trim();\n\n // if no name was entered\n if (name.equals(\"uninitializedValue\") || name.isEmpty()) {\n name = \"Anonymous\";\n }\n\n // remove commas\n if (name.contains(\",\")) {\n name = name.replace(\",\", \"\");\n }\n\n // add the record to the list\n this.highscore.add(new ScoreInfo(name.trim(), this.score.getValue()));\n\n try {\n // save the data\n this.highscore.save();\n } catch (IOException ioe) {\n System.err.println(ioe.getMessage());\n System.exit(-1);\n }\n }\n\n // show end screen - win or lose\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new EndScreen(this.lives, this.score)));\n // show highscores table\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new HighScoresAnimation(this.highscore)));\n\n // when the game ends reset counters\n this.score = new Counter();\n this.lives = new Counter(Ass7Game.LIVES);\n }", "private LevelInformation getLevelInfo(LevelCreator level, BlocksFromSymbolsFactory factoryB, int index) {\r\n List<Block> blocks = new ArrayList<>();\r\n String line;\r\n int blockX = level.getBlocksStartX();\r\n int blockY = level.getBlocksStartY();\r\n int rowHeight = level.getRowHeight();\r\n int rowsCounter = 0;\r\n boolean rowsFlag = false;\r\n for (int j = 0; j < this.blocksLayOut.get(index).size(); j++) { //reading blocksLayout\r\n\r\n line = this.blocksLayOut.get(index).get(j);\r\n if (line.isEmpty() || line.startsWith(\"#\")) { //empty or note lines.\r\n continue;\r\n } else {\r\n if (rowsFlag) {\r\n rowsCounter++;\r\n } else {\r\n rowsFlag = true;\r\n }\r\n }\r\n if (factoryB.isSpaceSymbol(line)) { // if its a space symbol , continue\r\n continue;\r\n }\r\n char[] charArr = line.toCharArray();\r\n for (char symbol : charArr) {\r\n if (factoryB.isSpaceSymbol(symbol + \"\")) {\r\n blockX = blockX + factoryB.getSpaceWidth(symbol + \"\");\r\n } else if (factoryB.isBlockSymbol(symbol + \"\")) {\r\n Block newBlock = factoryB.getBlock(symbol + \"\", blockX, blockY + (rowHeight * rowsCounter));\r\n blocks.add(newBlock);\r\n blockX += newBlock.getWidth();\r\n }\r\n }\r\n blockX = level.getBlocksStartX();\r\n }\r\n\r\n\r\n //get level information.\r\n LevelInformation information = new LevelInformation() {\r\n\r\n\r\n @Override\r\n public int numberOfBalls() {\r\n return 0;\r\n }\r\n\r\n @Override\r\n public List<Velocity> initialBallVelocities() {\r\n return level.getBallsVelocity();\r\n }\r\n\r\n @Override\r\n public int paddleSpeed() {\r\n return level.getPaddleSpeed();\r\n }\r\n\r\n @Override\r\n public int paddleWidth() {\r\n return level.getPaddleWidth();\r\n }\r\n\r\n @Override\r\n public String levelName() {\r\n return level.getLevelName();\r\n }\r\n\r\n\r\n @Override\r\n public Color getBackgroundColor() {\r\n return level.getBackgroundColor();\r\n }\r\n\r\n @Override\r\n public Image getBackgroundImg() {\r\n return level.getBackgroundImg();\r\n }\r\n\r\n @Override\r\n public List<Block> blocks() {\r\n return blocks;\r\n }\r\n\r\n @Override\r\n public int numberOfBlocksToRemove() {\r\n return level.getNumOfBlock();\r\n }\r\n\r\n @Override\r\n public void initialize() {\r\n\r\n }\r\n\r\n @Override\r\n public Ball[] ballsArray() {\r\n Ball[] ballsArray = new Ball[level.getBallsVelocity().size()];\r\n List<Velocity> ballsVelocity = level.getBallsVelocity();\r\n for (int i = 0; i < level.getBallsVelocity().size(); i++) {\r\n Ball ball = new Ball(400, 480, 5, Color.white);\r\n ball.setVelocity(ballsVelocity.get(i));\r\n ball.setColor(Color.red);\r\n ballsArray[i] = ball;\r\n }\r\n return ballsArray;\r\n }\r\n\r\n @Override\r\n public List<Sprite> getSprites() {\r\n List<Sprite> sprites = new ArrayList<>();\r\n return sprites;\r\n }\r\n\r\n @Override\r\n public Point paddleUpperLeft() {\r\n return new Point((400 - (this.paddleWidth() >> 1)), 505);\r\n }\r\n\r\n @Override\r\n public int paddleHeight() {\r\n return 10;\r\n }\r\n\r\n @Override\r\n public int ballsStartX() {\r\n return (400 + (this.paddleWidth() >> 1));\r\n }\r\n\r\n @Override\r\n public int ballsStartY() {\r\n return 480;\r\n }\r\n\r\n @Override\r\n public int flag() {\r\n return 0;\r\n }\r\n\r\n @Override\r\n public Color startingBallsColor() {\r\n return Color.white;\r\n }\r\n\r\n @Override\r\n public Velocity eachBallsVelocity() {\r\n return null;\r\n }\r\n\r\n };\r\n return information;\r\n }", "private void populateLevel() {\n\t\t// Make the ragdoll\n\t\tragdoll = new RagdollModel(DOLL_POS.x, DOLL_POS.y);\n\t\tragdoll.setDrawScale(scale.x,scale.y);\n\t\tragdoll.setPartTextures(bodyTextures);\n\t\tragdoll.getBubbleGenerator().setTexture(bubbleTexture);\n\t\taddObject(ragdoll);\n\n\t\t// Create ground pieces\n\t\tPolygonObstacle obj;\n\t\tobj = new PolygonObstacle(WALL1, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall1\");\n\t\taddObject(obj);\n\n\t\tobj = new PolygonObstacle(WALL2, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall2\");\n\t\taddObject(obj);\n\n\t\tselector = new ObstacleSelector(world);\n\t\tselector.setTexture(crosshairTexture);\n\t\tselector.setDrawScale(scale);\n\t\t\n\t\t/*\n\t\tBodyDef groundDef = new BodyDef();\n\t\tgroundDef.type = BodyDef.BodyType.StaticBody;\n\t\tEdgeShape groundShape = new EdgeShape();\n\t\tgroundShape.set(-500.0f, 0.0f, 500.0f, 0.0f);\n\t\tground = world.createBody(groundDef);\n\t\tground.createFixture(groundShape,0);\n\t\t*/\n\t}", "public void runLevels(List<LevelInformation> levels) {\n int i = 0;\n for (LevelInformation levelInfo : levels) {\n i++;\n Counter currScore = this.scoreBoard.getScoreCounter();\n GameLevel level = new GameLevel(levelInfo, this.animationRunner, this.keyboardSensor,\n this.numberOfLives, this.scoreBoard);\n\n level.initialize();\n //level has more blocks and player has more lives\n while (level.getBlockCounter().getValue() > 0 && level.getLifeCounter().getValue() > 0) {\n level.playOneTurn();\n }\n\n //no more lives\n if (this.numberOfLives.getValue() == 0) {\n addToTable();\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new GameOverScreen(currScore)));\n\n break;\n }\n if (i == levels.size() && level.getBlockCounter().getValue() == 0) {\n addToTable();\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new WinnerScreen(currScore)));\n\n break;\n }\n }\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new HighScoresAnimation(highScoresTable)));\n\n\n }", "private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }", "@Override\n public void load() {\n File file = new File(path + \"/\" + \"rooms.txt\"); //Hold file of the riddles. riddles.txt should be placed in the root folder.\n Scanner scanner = null; //if the scanner can't load the file.\n\n try {\n scanner = new Scanner(file); // scanner for the file\n } catch (FileNotFoundException ex) {\n try {\n //if not such file exists create it.\n file.createNewFile();\n } catch (IOException ex1) {\n Logger.getLogger(LoadRooms.class.getName()).log(Level.SEVERE, null, ex1);\n return;\n }\n }\n while (scanner.hasNextLine()) { //if scanner har fundt next line of text in the file\n switch (scanner.nextLine()) {\n case \"[Room]:\": //if scanner fundt \"[Room]:\" case, get rooms attributes\n state = LOAD_ATTRIBUTES;\n break;\n case \"[Connections]:\"://if scanner fundt \"[Connections]:\" case, get connections from file\n state = LOAD_CONNECTIONS;\n break;\n\n default:\n break;\n }\n switch (state) {\n case LOAD_ATTRIBUTES: //case, that get rooms attributes and add them to room_list\n String name = scanner.nextLine();\n int timeToTravel = Integer.parseInt(scanner.nextLine());\n boolean isLocked = Boolean.parseBoolean(scanner.nextLine());\n boolean isTransportRoom = Boolean.parseBoolean(scanner.nextLine());\n Room newRoom = new Room(name, timeToTravel, isLocked, isTransportRoom);\n if (newRoom.isTransportRoom()) {\n newRoom.setExit(\"exit\", newRoom);\n newRoom.setExitDir(\"west\", newRoom);\n }\n rooms_list.add(newRoom);\n break;\n case LOAD_CONNECTIONS: //case that get connections betweem rooms in game\n while (scanner.hasNextLine()) {\n String[] string = scanner.nextLine().split(\",\");\n Room room = this.getRoomByName(string[0]);\n room.setExit(string[1], this.getRoomByName(string[1]));\n if (!this.getRoomByName(string[1]).isTransportRoom() && !room.isTransportRoom()) {\n room.setExitDir(string[2], getRoomByName(string[1]));\n }\n }\n break;\n default:\n break;\n }\n }\n }", "public static void main(String[] args) {\r\n //Instalizing the gui and the keyboard sensor\r\n GUI guiGame = new GUI(\"Arkanoid\", 800, 600);\r\n //Initializing and running the gameLevel.\r\n List<LevelInformation> levels = new ArrayList<LevelInformation>();\r\n //When run without parameters, your program should read a default level-sets file\r\n String path = \"level_sets.txt\";\r\n //Get level sets from args.\r\n if (args.length > 0) {\r\n path = args[0];\r\n }\r\n\r\n try {\r\n //Reading the level.\r\n LevelSpecificationReader li = new LevelSpecificationReader();\r\n GameFlow gameFlow = new GameFlow(new AnimationRunner(guiGame), guiGame.getKeyboardSensor()\r\n , guiGame.getDialogManager());\r\n //Input stream to get in the resources folder.\r\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(\"level_sets.txt\");\r\n InputStreamReader reader = new InputStreamReader(is);\r\n //Running the game.\r\n Map<String, String> map = LevelSetsReader.getLevelSetMap(reader);\r\n //Reset the reader to read again the file.\r\n is = ClassLoader.getSystemClassLoader().getResourceAsStream(\"level_sets.txt\");\r\n reader = new InputStreamReader(is);\r\n List<List<LevelInformation>> levelSets = LevelSetsReader.getLevels(reader);\r\n gameFlow.createMenu(levelSets, map);\r\n\r\n\r\n guiGame.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void runLevels() {\n int levelnum = 1;\n double speed = 1;\n while (true) {\n\n GameLevel level = new GameLevel(new Level(levelnum, speed),\n this.keyboardSensor, this.animationRunner, this.blocks,\n this.score, this.numLives);\n this.frameRate = level.getFrameRate();\n\n level.initialize();\n\n while (this.blocks.getValue() > 0 && this.numLives.getValue() > 0) {\n level.playOneTurn(frameRate);\n if (this.blocks.getValue() == 0) {\n\n break;\n }\n\n this.numLives.decrease(1);\n }\n levelnum++;\n speed += 0.5;\n\n if (this.numLives.getValue() <= 0) {\n break;\n }\n\n }\n\n this.animationRunner.run(new KeyPressStoppableAnimation(animationRunner.getGui().getKeyboardSensor(),\n KeyboardSensor.SPACE_KEY, new EndScreen(score.getValue(), false)), this.frameRate);\n\n showScore();\n\n score = new Counter(0);\n numLives = new Counter(numberLives);\n blocks = new Counter(0);\n\n }", "public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}", "public void testEditExistingLevel()\n {\n window.button(\"exitButton\").requireVisible();\n window.button(\"exitButton\").click();\n window.dialog().requireVisible();\n window.dialog().pressAndReleaseKeys(KeyEvent.VK_ENTER);\n window.button(\"Edit Level\").click();\n window.button(\"editLevelButton\").click();\n\n //Verify initial file contents.\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n assertTrue(listOfFiles[0].getPath().contains(\"level1.txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[0]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n\n String initialData = \"TheFirst Puzzle 30 30 200 300 1 20 20 20 20 10 10 80 \" +\n \"25 5 1000 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 \" +\n \"1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 \" +\n \"1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 \";\n assertEquals(initialData, content);\n\n //Change level type and options\n window.comboBox(\"levelTypeSelector\").selectItem(\"Lightning\");\n window.textBox(\"timeLimitSelector\").setText(\"103\");\n window.button(\"setFrequenciesButton\").click();\n window.spinner(\"freq1\").decrement(5);\n window.spinner(\"freq5\").increment(5);\n window.spinner(\"freqx1\").increment(10);\n window.spinner(\"freqx2\").decrement(7);\n window.spinner(\"freqx3\").decrement(3);\n window.button(\"closeOptionsButton\").click();\n window.textBox(\"threeStarScoreSelector\").setText(\"1002\");\n window.radioButton(\"inactiveTileButton\").click();\n window.panel(\"square0\").click();\n window.panel(\"square80\").click();\n window.button(\"saveButton\").click();\n\n String finalData = \"TheFirst Lightning 103 1 200 300 1 15 20 20 20 15 \" +\n \"10 90 18 2 1000 1 0 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2\" +\n \" 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 \" +\n \"1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 \";\n\n scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[0]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n\n assertEquals(finalData, content);\n PrintWriter writer = null;\n try\n {\n writer = new PrintWriter(listOfFiles[0].getPath(), \"UTF-8\");\n writer.println(initialData);\n writer.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e)\n {\n e.printStackTrace();\n }\n }", "private void loadBoardFromXML(){\n int x = 0;\n int y = 0;\n int width = 0;\n try {\n File inputFile = new File(\"Config\\\\level1.xml\");\n DocumentBuilderFactory dbFactory\n = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(inputFile);\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"line\");\n for(int n = 0; n < nList.getLength(); ++ n){\n Node nNode = nList.item(n);\n NodeList innerList = nNode.getChildNodes();\n for(int j = 0; j < innerList.getLength(); ++j){\n Node innerNode = innerList.item(j);\n if(innerNode.getTextContent().equals(\"wall\")){\n Wall wall = new Wall(x,y);\n walls.add(wall);\n } else if(innerNode.getTextContent().equals(\"empty_field\")){\n } else if(innerNode.getTextContent().equals(\"player\")){\n player = new Player(x,y);\n } else if(innerNode.getTextContent().equals(\"box\")){\n Box box = new Box(x,y);\n boxes.add(box);\n } else if(innerNode.getTextContent().equals(\"end_position\")){\n End_position end_position = new End_position(x,y);\n end_positions.add(end_position);\n }\n x+= DISTANCE;\n }\n //next row\n y += DISTANCE;\n if(width < x){\n width = x;\n }\n if(LEVEL_WIDTH < x) LEVEL_WIDTH = x;\n x = 0;\n }\n LEVEL_HEIGHT = y;\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }", "public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}", "public static Map readMap(File f)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n Scanner mapReader = new Scanner(f);\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }", "public void generateLevel(int width, int height, int numberCrates, int difficulty) {\n\t\tgrid = GridGenerator.generateGrid(width, height, numberCrates, difficulty);\n\t\tlevel = new LevelDisplay(grid, this, -2, \"NOTHING\");\n\t\twindow.setContentPane(level);\n\t\tlevel.displayGrid.requestFocusInWindow();\n\t}", "public static Level[] createPhaseTwoLevel(){\n\t\tLevel[] testLevels = new Level[1];\n\t\t\n\t\tSquare Level1Piece1[] = new Square[6]; \n\t\tLevel1Piece1[0] = new Square(0,0);\n\t\tLevel1Piece1[1] = new Square(1,0);\n\t\tLevel1Piece1[2] = new Square(2,0);\n\t\tLevel1Piece1[3] = new Square(3,0);\n\t\tLevel1Piece1[4] = new Square(4,0);\n\t\tLevel1Piece1[5] = new Square(5,0);\t\t\n\t\t\n\t\tSquare Level1Piece2[] = new Square[6]; \n\t\tLevel1Piece2[0] = new Square(0,1);\n\t\tLevel1Piece2[1] = new Square(0,0);\n\t\tLevel1Piece2[2] = new Square(1,0);\n\t\tLevel1Piece2[3] = new Square(2,0);\n\t\tLevel1Piece2[4] = new Square(3,0);\n\t\tLevel1Piece2[5] = new Square(4,0);\t\t\n\t\t\n\t\tSquare Level1Piece3[] = new Square[6]; \n\t\tLevel1Piece3[0] = new Square(0,0);\n\t\tLevel1Piece3[1] = new Square(0,1);\n\t\tLevel1Piece3[2] = new Square(0,2);\n\t\tLevel1Piece3[3] = new Square(1,0);\n\t\tLevel1Piece3[4] = new Square(1,1);\n\t\tLevel1Piece3[5] = new Square(1,2);\t\t\n\t\t\n\t\tSquare Level1Piece4[] = new Square[6]; \n\t\tLevel1Piece4[0] = new Square(0,0);\n\t\tLevel1Piece4[1] = new Square(1,0);\n\t\tLevel1Piece4[2] = new Square(1,1);\n\t\tLevel1Piece4[3] = new Square(1,2);\n\t\tLevel1Piece4[4] = new Square(1,3);\n\t\tLevel1Piece4[5] = new Square(2,3);\n\t\t\n\t\tSquare Level1Piece5[] = new Square[6]; \n\t\tLevel1Piece5[0] = new Square(2,0);\n\t\tLevel1Piece5[1] = new Square(2,1);\n\t\tLevel1Piece5[2] = new Square(1,1);\n\t\tLevel1Piece5[3] = new Square(0,1);\n\t\tLevel1Piece5[4] = new Square(0,2);\n\t\tLevel1Piece5[5] = new Square(1,2);\t\n\t\t\n\t\tSquare Level1Piece6[] = new Square[6]; \n\t\tLevel1Piece6[0] = new Square(2,0);\n\t\tLevel1Piece6[1] = new Square(2,1);\n\t\tLevel1Piece6[2] = new Square(1,1);\n\t\tLevel1Piece6[3] = new Square(0,1);\n\t\tLevel1Piece6[4] = new Square(1,2);\n\t\tLevel1Piece6[5] = new Square(2,2);\t\n\t\t\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece1,Level1Piece1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece2,Level1Piece2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece3,Level1Piece3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece4,Level1Piece4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece5,Level1Piece5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece6,Level1Piece6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t\n\t\t\n\t\tSquare[] sq = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\t\t\t\tsq[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(0,0);\n\t\thitSquares[1] = new Square(1,0);\n\t\thitSquares[2] = new Square(2,0);\n\t\thitSquares[3] = new Square(3,0);\n\t\thitSquares[4] = new Square(4,0);\n\t\thitSquares[5] = new Square(5,0);\t\n\t\tHint hints = new Hint(hitSquares);\n\t\tBoard bd = new Board(sq);\n\t\tbd.sethint(hints);\n\t\t\n\t\ttestLevels[0] = new PuzzleLevel(0,GetLevelTpye(0%3),bd,bp,8);\n\t\ttestLevels[0].updateLevelStar(new Achievement(0));\n\t\t\n\t\treturn testLevels;\n\t}", "public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().forEach(textSprite -> levelGroup.getChildren().add(renderText(textSprite)));\n\t\tList<Sprite> imageSpriteList = level.sprites().stream().filter((sprite -> !sprite.isText())).collect(Collectors.toList());\n\t\timageSpriteList.stream().filter(sprite -> sprite.isActive()).forEach(sprite -> levelGroup.getChildren().add(renderSprite(sprite)));\n\t\treturn levelGroup;\n\t}", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "public Map(String level) {\n this.level = level;\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n\n //if default random\n if (level.equals(\"default\")) {\n String[] defaultLevel = {\n \"p\", \"p\", \"m1\", \"p\", \"r\", \"p\", \"m3\", \"p\", \"p\",\n \"p\", \"m1\", \"p\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m3\",\n \"m3\", \"p\", \"p\", \"p\", \"t\", \"p\", \"p\", \"p\", \"m1\",\n \"p\", \"m2\", \"p\", \"p\", \"r\", \"p\", \"m2\", \"p\", \"p\",\n \"p\", \"p\", \"m2\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m2\"};\n int j = 0;\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++, j++) {\n tiles[i][k] = new Tile(i, k, defaultLevel[j]);\n }\n }\n }\n\n // if random level\n if (level.equals(\"random\")) {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n String ter = terrains[(int) (Math.random() * (terrains.length - 1))];\n tiles[i][k] = new Tile(i, k, ter);\n }\n }\n tiles[2][4] = new Tile(2, 4, \"t\");\n }\n }", "private static void standardize(LevelPack pack) {\n\t\t// TODO: kill this once we have the LevelPacks stored at a standardized\n\t\t// state.\n\n\t\t// If level header info was not stored originally, check to make sure\n\t\t// there are not nulls after the deserialization.\n\t\tif (pack.levels == null)\n\t\t\tpack.levels = new WorldList();\n\t\tif (pack.levelTitles == null)\n\t\t\tpack.levelTitles = new ArrayList<String>();\n\t\tif (pack.levelDescriptions == null)\n\t\t\tpack.levelDescriptions = new ArrayList<String>();\n\t\tif (pack.levelEmblems == null)\n\t\t\tpack.levelEmblems = new ImageList();\n\n\t\t// If the level header stuff wasn't originally stored, it may be\n\t\t// necessary to populate header info with dummy data. There will always\n\t\t// be at least one level title/description/emblem, even if the levels\n\t\t// themselves don't exist.\n\t\tpack.levelCount = Math.max(1, Math.max(pack.levels.size(),\n\t\t\t\tMath.max(pack.levelTitles.size(), Math.max(pack.levelDescriptions.size(), pack.levelEmblems.size()))));\n\t\twhile (pack.levelTitles.size() < pack.levelCount)\n\t\t\tpack.levelTitles.add(\"Unnamed level.\");\n\t\twhile (pack.levelDescriptions.size() < pack.levelCount)\n\t\t\tpack.levelDescriptions.add(\"No description.\");\n\t\twhile (pack.levelEmblems.size() < pack.levelCount)\n\t\t\tpack.levelEmblems.add((BufferedImage) UIBuilder.getImage(\"images/ice_cave.jpg\"));\n\n\t\t// The lock is something new added, but it defaults to false anyway.\n\n\t}", "public LevelInterface generateLevel (GamePlay playerMetrics);", "private void addLevels() {\r\n\t\tlevel1 = new Level();\r\n\t\tadd(level1, LEVEL_OFFSET, getHeight() - FIRST_LEVEL_VERTICAL_OFFSET);\r\n\t\t\r\n\t\tlevel2 = new Level();\r\n\t\tadd(level2, LEVEL_OFFSET, (level1.getY() * (2/3.0)) - level2.getHeight() / 2.0);\r\n\t\t\r\n\t\tlevel3 = new Level();\r\n\t\tadd(level3, LEVEL_OFFSET, (level1.getY() * (1/3.0)) - level3.getHeight() / 2.0);\r\n\t\t\r\n\t\tladder1 = new Ladder();\r\n\t\tadd(ladder1, getWidth() - ladder1.getWidth() * 1.5, level2.getY());\r\n\t\t\r\n\t\tladder2 = new Ladder();\r\n\t\tadd(ladder2, ladder2.getWidth() / 2.0, level3.getY());\r\n\t}", "public static Level fromString(String s) throws InvalidLevelCharacterException, InvalidLevelFormatException {\n\t\tString[] valid = {\"P\", \"G\", \"X\", \"S\", \"T\", \"U\", \" \", \"B\"};\n\t\tString invalid = s;\n\t\tfor(String v: valid)\n\t\t\tinvalid = invalid.replace(v, \"\");\n\t\tinvalid = invalid.replace(\"\\r\", \"\");\n\t\tinvalid = invalid.replace(\"\\n\", \"\");\n\t\tif(invalid.length() > 0)\n\t\t\tthrow new InvalidLevelCharacterException(invalid.charAt(0));\n\t\t// Determine and validate the dimensions of the level\n\t\tScanner sc = new Scanner(s);\n\t\tint width = 0, height = 0, current;\n\t\twhile(sc.hasNextLine()) {\n\t\t\tcurrent = sc.nextLine().length();\n\t\t\tif(width != 0 && current != width) {\n\t\t\t\tsc.close();\n\t\t\t\tthrow new InvalidLevelFormatException();\n\t\t\t}\n\t\t\twidth = current;\n\t\t\t++height;\n\t\t}\n\t\t// Parse the level\n\t\tsc.close();\n\t\tsc = new Scanner(s);\n\t\tLevel level = new Level(width, height);\n\t\tfor(int i = 0; sc.hasNextLine(); ++i) {\n\t\t\tString line = sc.nextLine();\n\t\t\tfor(int j = 0; j < line.length(); ++j)\n\t\t\t\tlevel.setField(i, j, line.charAt(j));\n\t\t}\n\t\tsc.close();\n\t\treturn level;\n\t}", "private void prepareLevel(){\n levelAnimation = true;\n\n // Reset the menace level\n menaceInterval = 1200;\n\n // Here we will initialize all the game objects\n // Make a new player space ship\n defender = new Defender(context, PlayableX, PlayableY, ExcessX);\n\n // Prepare the players bullet\n bullet = new Bullet(context, PlayableX, PlayableY, (float) 1.2);\n\n // Initialize the invadersBullets array\n for(int i = 0; i < invadersBullets.length; i++){\n invadersBullets[i] = new Bullet(context, PlayableX, PlayableY, (float) 0.80);\n }\n\n // Build an army of invaders\n numInvaders = 0;\n for(int column = 0; column < invadersColumn; column ++ ){\n for(int row = 0; row < invadersRow; row ++ ){\n invaders[numInvaders] = new Invader(context, row, column, PlayableX, PlayableY, ExcessX);\n numInvaders ++;\n }\n }\n invadersLeft = numInvaders;\n\n try {\n // Create objects of the 2 required classes\n AssetManager assetManager = context.getAssets();\n explosionEffect = new Bitmap[12];\n for (int i=0; i < 12; i++) {\n explosionEffect[i] = Bitmap.createScaledBitmap(BitmapFactory.decodeStream(assetManager.open(\"explosion/\" + (i + 1) + \".png\")), (int) (invaders[0].getLength()*1.75), (int) (invaders[0].getLength()*1.75), true);\n }\n } catch (IOException e) {\n e.printStackTrace();\n // Print an error message to the console\n Log.e(\"error\", \"failed to load explosion effect image files\");\n }\n\n }", "public void setInitMap(int size,String[][] text) {\n\t\tfor(int i=0;i<this.size;i++) {\n\t\t\tfor(int j=0;j<this.size;j++) {\n\t\t\t\tthis.map[i][j] = text[i][j];\n\t\t\t\tif(map[i][j].equals(\"p\")) {\n\t\t\t\t\tsetPlayer(i,j,map[i][j]);\n\t\t\t\t}\n\t\t\t\telse if(map[i][j].equals(\"h\")||map[i][j].equals(\"s\")||map[i][j].equals(\"H\")||map[i][j].equals(\"c\")) {\n\t\t\t\t\tsetEnemy(i,j,map[i][j]);\n\t\t\t\t}\n\t\t\t\telse if(!(map[i][j].equals(\" \")||map[i][j].equals(\"*\"))){\n\t\t\t\t\tsetItemList(i,j,map[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void initialize() {\r\n /**********************************/\r\n //this.numOfLives=new hitevent.Counter(START_NUM_LIVES);\r\n //this.blocksCounter = new hitevent.Counter(this.levelInformation.numberOfBlocksToRemove());\r\n //this.gui = new GUI(\"jumping\", WIDTH_SCREEN, HI_SCREEN);\r\n /*****************************************/\r\n //create new point to create the edges of the screen\r\n Point p1 = new Point(-5, 20);\r\n Point p2 = new Point(-5, -5);\r\n Point p3 = new Point(WIDTH_SCREEN - 20, -5);\r\n Point p4 = new Point(-5, HI_SCREEN - 15);\r\n //an array to the blocks of the edges\r\n Block[] edges = new Block[4];\r\n //create the adges of the screen\r\n Counter[] edgeCount = new Counter[4];\r\n edgeCount[0] = new Counter(1);\r\n edges[0] = new Block(new Rectangle(p1, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[0]);\r\n edgeCount[1] = new Counter(1);\r\n edges[1] = new Block(new Rectangle(p2, 25, HI_SCREEN + 20), Color.RED, edgeCount[1]);\r\n edgeCount[2] = new Counter(1);\r\n edges[2] = new Block(new Rectangle(p3, 25, HI_SCREEN + 20), Color.RED, edgeCount[2]);\r\n edgeCount[3] = new Counter(1);\r\n edges[3] = new Block(new Rectangle(p4, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[3]);\r\n\r\n //initilize the paddle\r\n initializePaddle();\r\n //sprite collection and game evnironment\r\n SpriteCollection sprite = new SpriteCollection();\r\n GameEnvironment game1 = new GameEnvironment();\r\n\r\n //add the Background of the level to the sprite collection\r\n this.addSprite(this.levelInformation.getBackground());\r\n //create score Indicator, lives Indicator and level name\r\n ScoreIndicator scoreIndicator1 = new ScoreIndicator(score);\r\n LivesIndicator livesIndicator1 = new LivesIndicator(numOfLives);\r\n LevelIndicator levelName = new LevelIndicator(this.levelInformation.levelName());\r\n\r\n game1.addCollidable((Collidable) this.paddle);\r\n sprite.addSprite((Sprite) this.paddle);\r\n sprite.addSprite((Sprite) scoreIndicator1);\r\n sprite.addSprite((Sprite) livesIndicator1);\r\n sprite.addSprite((Sprite) levelName);\r\n\r\n //add the paddle, score Indicator, lives Indicator and level name to the game\r\n this.paddle.addToGame(this);\r\n scoreIndicator1.addToGame(this);\r\n livesIndicator1.addToGame(this);\r\n levelName.addToGame(this);\r\n\r\n //initilize the Blocks\r\n initializeBlocks();\r\n\r\n }", "private void loadTiles(String filename) {\n\t\ttry {\n\t\t\tScanner s;\n\n\t\t\tif (StealthGame.EXPORT)\n\t\t\t\ts = new Scanner(ResourceLoader.load(filename));\n\t\t\telse\n\t\t\t\ts = new Scanner(new File(filename));\n\n\t\t\tif (s.hasNextLine()) {\n\t\t\t\tname = s.nextLine();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Room has no name\");\n\t\t\t}\n\t\t\txSize = s.nextInt();\n\t\t\tySize = s.nextInt();\n\t\t\ttiles = new Tile[xSize][ySize];\n\t\t\tint xPos = 0;\n\t\t\tint yPos = 0;\n\t\t\tint tileNum = 0;\n\n\t\t\t// List of doors to be given destinations\n\n\t\t\twhile (s.hasNext()) {\n\n\t\t\t\tif (s.hasNextInt()) {\n\t\t\t\t\tparseInt(s, xPos, yPos, tileNum);\n\n\t\t\t\t\txPos++;\n\t\t\t\t\ttileNum++;\n\n\t\t\t\t\tif (xPos >= xSize) {\n\t\t\t\t\t\txPos = 0;\n\t\t\t\t\t\tyPos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Not a basic floor, door or wall\n\t\t\t\telse {\n\t\t\t\t\tString str = s.next();\n\t\t\t\t\tif (str.length() == 1) {\n\t\t\t\t\t\tparseChar(xPos, yPos, tileNum, str);\n\n\t\t\t\t\t\txPos++;\n\t\t\t\t\t\ttileNum++;\n\n\t\t\t\t\t\tif (xPos >= xSize) {\n\t\t\t\t\t\t\txPos = 0;\n\t\t\t\t\t\t\tyPos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (str.equals(\"door\")) {\n\t\t\t\t\t\t\tparseDoorDestination(s);\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\ts.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Room - Error loading file - IOException : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}", "public Level(int height, int width) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\ttiles = new Tile[width * height];\n\t\trandom = new Random();\n\t\tentities = new ArrayList<Entity>();\n\t\titems = new ArrayList<Item>();\n\t\tgenerateLevel();\n\n\t}", "private void changeLevel(int levelNum) {\n /* TODO: clean up in here */\n try \n {\n if(levelNum > 0) \n {\n /* positive leve number means get a puzzle from manager */\n\n /* retrieve the puzzle from the puzzlemanager by number */\n Puzzle level = timLevels.getLevel(levelNum);\n\n /* if manager returned null, print error message and don't do anything else */\n if(level == null) \n {\n System.err.println(\"Error changing to level \" + levelNum);\n fireTimEvent(new TimEvent(this,TimEvent.UPDATE),TimEvent.TIMGUI); //not quite sure why this event gets fired in the event of a level loading failure since nothing has changed --Andrew\n return;\n }\n\n /* clear existing world */\n winTester = null; //remove old wintester\n timWorld.clear(); //clear world of old widgets\n ws.clearWidgets(); //clear widget scroller of old widgets\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n /* create the widgets and add them to the world */\n ArrayList<LockedWidgetInfo> lockedWidgets = level.getLockedWidgetSet();\n\n /* ordered list of created widgets */\n ArrayList<Widget> widgetList = new ArrayList<Widget>();\n\n for(int i=0; i < lockedWidgets.size(); i++) \n {\n /* create the widget */\n Widget w = WidgetFactory.createWidget(lockedWidgets.get(i).getWidgetClassName());\n /* set its position */\n w.setPosition(new Vector2f(lockedWidgets.get(i).getX(),lockedWidgets.get(i).getY()));\n /* set its direction */\n w.setDirection(lockedWidgets.get(i).getDirection());\n /* set it to locked */\n w.setLock(true);\n /* add it to the world */\n timWorld.addWidget(w);\n\n /* dirty hack to be able to retrieve widgets from ordered list for win condition tester */\n widgetList.add(w);\n }\n\n /* Add placeable widgets to scroller */\n ArrayList<ToolboxWidgetInfo> levelWidgets = level.getToolboxWidgetSet();\n for(int i=0; i < levelWidgets.size(); i++) \n {\n String className =levelWidgets.get(i).getWidgetClassName();\n int qty = levelWidgets.get(i).getNumber();\n ws.addWidget(className.substring(className.lastIndexOf('.') + 1,className.length()), qty);\n }\n\n /* set up win condition tester */\n /* win condition info */\n String winConditionType = new String(level.getWinCondition().getType());\n ArrayList<Object> winArgs = level.getWinCondition().getArguments();\n \n /* set up the win condition for the level*/\n if(winConditionType.equals(WinConditionInfo.SINGLECOLLISION)) \n {\n if(winArgs != null) \n {\n SingleCollision singCol = new SingleCollision();\n timWorld.addCollisionListener(singCol);\n /* grab appropriate widget from the list */\n singCol.setTargetWidget(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n winTester = singCol;\n }\n }\n else if(winConditionType.equals(WinConditionInfo.PAIRCOLLISION)) \n {\n if(winArgs != null) \n {\n PairCollision pairCol = new PairCollision();\n timWorld.addCollisionListener(pairCol);\n pairCol.setTargetWidget1(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n pairCol.setTargetWidget2(widgetList.get(Integer.parseInt(winArgs.get(1).toString())));\n winTester = pairCol;\n }\n }\n else if(winConditionType.equals(WinConditionInfo.TOUCHLOCATION)) \n {\n if(winArgs != null) \n {\n TouchingLocationCollision touchLocCol = new TouchingLocationCollision(Integer.parseInt(winArgs.get(1).toString()), Integer.parseInt(winArgs.get(2).toString()), Integer.parseInt(winArgs.get(3).toString()), Integer.parseInt(winArgs.get(4).toString()));\n touchLocCol.setTargetWidget1(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n winTester = touchLocCol;\n }\n }\n else if(winConditionType.equals(WinConditionInfo.INSIDELOCATION)) \n {\n if(winArgs != null) \n {\n InsideLocationCollision inLocCol = new InsideLocationCollision(Integer.parseInt(winArgs.get(1).toString()), Integer.parseInt(winArgs.get(2).toString()), Integer.parseInt(winArgs.get(3).toString()), Integer.parseInt(winArgs.get(4).toString()));\n timWorld.addCollisionListener(inLocCol);\n inLocCol.setTargetWidget1(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n winTester = inLocCol;\n }\n }\n else\n {\n /* TODO: expand this error handling considerably */\n System.out.println(\"Invalid Win Condition set\");\n }\n \n /* fire event to tell timgui to update */\n fireTimEvent(new TimEvent(this,TimEvent.UPDATE,levelNum,level),TimEvent.TIMGUI);\n }\n else \n {\n /* freeplay mode */\n timWorld.clear();\n winTester = null; //remove old win tester\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n /* add all widgets from the factory to the scroller in unlimited quantities */\n ws.clearWidgets();\n for(String widget : WidgetFactory.availableWidgets()) {\n ws.addWidget(widget,-1);\n }\n }\n } \n catch (Exception ex) \n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n System.out.println(\"Error changing to level \" + levelNum);\n }\n }", "public void runLevels(List<LevelInformation> levels) {\r\n // Creating the scoreboard file.\r\n File highscores = new File(\"highscores\");\r\n // If it does not exist we create a new one.\r\n if (!highscores.exists()) {\r\n try {\r\n this.scoreTable.save(new File(\"highscores\"));\r\n } catch (IOException e) {\r\n System.out.println(\"Failed creating a file !\");\r\n return;\r\n }\r\n // If it exists we load a previous scoreboard file.\r\n } else {\r\n try {\r\n this.scoreTable.load(highscores);\r\n } catch (IOException e) {\r\n System.out.println(\"Failed reading from file\");\r\n return;\r\n }\r\n }\r\n // Running the levels.\r\n while (true) {\r\n GameLevel level = new GameLevel(this.k, this.a, this.score, this.lives);\r\n level.initialize();\r\n while (level.getNumOfBlocks() > 0 && this.lives.getValue() > 0) {\r\n level.playOneTurn();\r\n }\r\n break;\r\n }\r\n //Endscreen is shown.\r\n Animation win = new EndScreen(this.score);\r\n Animation winScreen = new KeyPressStoppableAnimation(k, \"m\", win);\r\n this.a.run(winScreen);\r\n // If the player needs to be added to the score board, we show it.\r\n if (checkScore()) {\r\n add();\r\n Animation scoreboard = new HighScoresAnimation(scoreTable);\r\n Animation scoreScreen = new KeyPressStoppableAnimation(k, \"m\", scoreboard);\r\n this.a.run(scoreScreen);\r\n }\r\n }", "@Override\n\tpublic void init() {\n\t\t\n\t\t// Set your level dimensions.\n\t\t// Note that rows and columns cannot exceed a size of 16\n\t\tsetDimensions(4, 4);\n\t\t\n\t\t// Select your board type\n\t\tsetBoardType(BoardType.CHECKER_BOARD);\n\n\t\t// Select your grid colors.\n\t\t// You need to specify two colors for checker boards\n\t\tList<Color> colors = new ArrayList<Color>();\n\t\tcolors.add(new Color(255, 173, 179, 250)); // stale blue\n\t\tcolors.add(new Color(255, 255, 255, 255)); // white\n\t\tsetColors(colors);\n\t\t\n\t\t// Specify the level's rules\n\t\taddGameRule(new DemoGameRule());\n\t\t\n\t\t// Retrieve player IDs\n\t\tList<String> playerIds = getContext().getGame().getPlayerIds();\n\t\tString p1 = playerIds.get(0);\n\t\tString p2 = playerIds.get(1);\n\n\t\t// Add your entities to the level's universe\n\t\t// using addEntity(GameEntity) method\n\t\taddEntity(new Pawn(this, p1, EntityType.BLACK_PAWN, new Point(0, 0)));\n\t\taddEntity(new Pawn(this, p2, EntityType.WHITE_PAWN, new Point(3, 3)));\n\t}", "@Override\n\tpublic void processTransition() {\n\t\tinit();\n\t\tMusicPlayer.playLoop(\"level2\");\n\n\t\t// show level title\n\t\taddPopup(levelPopup);\n\t\tsetAlpha(10 * 60 * 3 + 100);\n\t\tsetFadeRate(10);\n\n\t\t// show introduction text\n\t\tgameText.setText(\"Carnegie: Hmm... these tunnels were probably what \"\n\t\t\t\t+ \"the mayor was talking about. Maybe searching them will \"\n\t\t\t\t+ \"give me a lead as to where Sinclair is going! However, \"\n\t\t\t\t+ \"I have to be careful. Iím sure that Sinclair has left \"\n\t\t\t\t+ \"plenty of enemies and traps in my way, and if what the \"\n\t\t\t\t+ \"mayor said was correct, exploring wonít be easy!\"\n\t\t\t\t+ \"\\nInstructions: Explore the tunnels using the WASD or \"\n\t\t\t\t+ \"arrow keys for movement. Be careful to not fall \"\n\t\t\t\t+ \"into the lava. Press the space bar to shoot, \"\n\t\t\t\t+ \"and avoid being hit by enemies who will attack you on \"\n\t\t\t\t+ \"sight. But if you choose to confront these enemies \"\n\t\t\t\t+ \"and defeat them, they will ask you a question after \"\n\t\t\t\t+ \"they are defeated. Answering this question correctly \"\n\t\t\t\t+ \"results in a reward of of 10 gold, while other \"\n\t\t\t\t+ \"answers result in a reward of 5 gold. Click on \"\n\t\t\t\t+ \"the shop in this level to buy upgrades with the \"\n\t\t\t\t+ \"gold you have amassed.\");\n\t\tgameText.addFinishedListener(this);\n\t}", "public Level(String name) {\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\ttry {\n\t\t\tlevelType = new LevelType(DEFAULT_LEVEL_TYPE, true);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n//\t\tscreen = new Screen(300*3/SCREEN_SCALE, 168*3/SCREEN_SCALE, SCREEN_SCALE);\n\t\tscreen = new Screen(Game.width/SCREEN_SCALE, Game.height/SCREEN_SCALE, SCREEN_SCALE);\n\t\t\n\t\twidth = 800;\n//\t\theight = 500;\n\t\theight = 200;\n\t\t\n\t\tWall wall0 = new Wall(100,80,30,40);\n\t\tWall wall1 = new Wall(166,80,16,40);\n\t\t\n\t\t//Construct a default level\n\t\tFloor defaultFloor0 = new Floor(1,44,62, \"Floor 0\");\n\t\tFloor defaultFloor1 = new Floor(53,60,96, \"Floor 1\");\n\t\tFloor defaultFloor2 = new Floor(70,50,96, \"Floor 2\");\n\t\tFloor defaultFloor3 = new Floor(90,40,96, \"Floor 3\");\n\t\t\n\t\tPlatform pf0 = new Platform(186,40,100);\n\t\tPlatform pf1 = new Platform(130,80,36);\n\t\t\n\t\tBackground bg = new Background();\n\t\tadd(bg);\n\t\t\n\t\t//Background scrolling slower is probably going to have to wait a bit\n//\t\tBackgroundObject bgo = new BackgroundObject(100,25, 2);\n//\t\tadd(bgo);\n\t\t\n\t\tCoin c0 = new Coin(10, 44);\n\t\t\n\t\t\n\t\t//Note well- floors should be added in decreasing order of height, starting with the tallest.\n\t\t//\tWay to sort objects by a variable?\n\t\tadd(defaultFloor1);\n\t\tadd(defaultFloor2);\n\t\tadd(defaultFloor3);\n\t\tadd(defaultFloor0);\n\t\t\n\t\tadd(wall0);\n\t\tadd(wall1);\n\t\tadd(pf0);\n\t\tadd(pf1);\n\t\t\n\t\tadd(c0);\n\t\t\n\t}", "public static final void initLevel()\n {\n current = new JARLevel();\n\n //assign blocks, enemies, the player and all items\n current.iWalls = new JARWall[]\n {\n new JARWall( 30 + 256, current.iLevelBoundY - 310 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 384, current.iLevelBoundY - 320 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 512, current.iLevelBoundY - 300 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 640, current.iLevelBoundY - 290 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 768, current.iLevelBoundY - 280 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 896, current.iLevelBoundY - 270 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1152, current.iLevelBoundY - 260 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1408, current.iLevelBoundY - 250 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 0, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 2 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 3 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 4 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1920, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 2100, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 66, current.iLevelBoundY - 324, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n\n new JARWall( 0, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 128, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 256, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 384, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 512, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 640, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 768, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 896, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1024, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1152, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1280, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1408, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1536, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1664, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1792, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1920, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2048, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2176, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n };\n current.iEnemies = new JARPlayer[]\n {\n/*\n new JARPlayer( 500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG )\n*/\n };\n\n current.iPlayer = new JARPlayer( 0, GameObjectType.EPlayer, JARPlayerTemplate.USER );\n\n current.iItems = new JARItem[]\n {\n //new JARItem( 50, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 150, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 250, 700, JARItemType.ITEM_TYPE_COIN ),\n new JARItem( 550, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 650, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 750, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 1050, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1150, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1250, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1550, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1650, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1750, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 2050, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2150, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2250, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2550, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2650, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2750, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n };\n }", "public void fill(String thing){\n try{\n \n FileReader fr = new FileReader(\"src//monsters//\" + thing + \".txt\");\n BufferedReader br = new BufferedReader(fr);\n //the monster's name\n String monName = br.readLine();\n lblMonName.setText(monName);\n \n //monster's health\n String h = br.readLine();\n monHealth = Integer.parseInt(h); \n //loop to load up the health onto the health bar\n String H = \"\"; \n for(int i = 0; i < monHealth; i++){\n H += \"❤ \";\n }\n lblMonHealth.setText(H);\n \n //Monster's attack stats\n String f = br.readLine();\n String e = br.readLine();\n String i = br.readLine();\n String w = br.readLine();\n monFire = Double.parseDouble(f);\n monEarth = Double.parseDouble(e);\n monIce = Double.parseDouble(i);\n monWater = Double.parseDouble(w);\n //displays the monster's stats\n lblMonStats.setText(\"Earth: \" + monEarth + \"\\nFire: \" + monFire + \"\\nWater: \" + monWater + \"\\nIce: \" + monIce);\n \n //the amount of XP the player will gain if this monster is defeated\n String x = br.readLine();\n expGain = Integer.parseInt(x);\n \n //creates a new monster to hold all of this information for referance later\n m = new monster(thing, monFire, monEarth, monIce, monWater, monHealth);\n }catch(IOException e){\n //if something goes wrong, you will find it here\n System.out.println(e + \": Error reading monster file: \" + thing);\n }\n \n //set the image of the monster - depends on what level the user is at\n ImageIcon im = new ImageIcon(\"src//elementals//images//\" + thing + \".png\");\n lblMonster.setIcon(im);\n \n //set the players box to their color\n lblPlayer.setBackground(c.getUserColor());\n \n }", "public static int[][] loadMap(String fileName) throws Exception{\n FileReader fr=new FileReader(fileName);\n int c;\n String str=\"\";\n List<String> strA=new ArrayList<>(); //list of lines\n //process out newlines from midline\n while((c=fr.read())!=-1){\n System.out.print((char)c); //show map\n if(!(((char)c=='\\n') || ((char)c=='\\r'))){str=str+(char)c;}\n else if(((char)c=='\\n' || (char)c=='\\r')){\n if(strA.size()<1) {strA.add(str);str=\"\";}\n else if(strA.size()>0 && strA.get(0).length()>str.length()){} //newline char found midline\n else {strA.add(str);str=\"\";}\n }\n else System.out.println(\"Err: \"+(char)c);\n }\n strA.add(str);\n System.out.println(\"\\nWidth: \"+str.length()+\"\\nHeight: \"+strA.size());\n //now that size is known, fill info array\n int[][] map=fillMap(strA);\n \n return map;\n }", "public static void parseLevelObjectsFromXml(final CandyLevelActivity candyLevel) {\r\n\t\ttry {\r\n\t\t\t// Load the XML into a DOM.\r\n\t\t\tfinal InputStream input = candyLevel.getAssets().open(\"levels/w\" + candyLevel.world + \".xml\");\r\n\t\t\tfinal DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\tfinal DocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\tfinal Document doc = db.parse(new InputSource(input));\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\r\n\t\t\t// Get all elements named level.\r\n\t\t\tfinal NodeList levelNodeList = doc.getElementsByTagName(\"l\"); // l = level\r\n\r\n\t\t\t// Select the correct level in the world.\r\n\t\t\tfor (int i = 0; i < levelNodeList.getLength(); i++) {\r\n\t\t\t\tif (Integer.valueOf(((Element) levelNodeList.item(i)).getAttribute(\"id\")) == candyLevel.level) {\r\n\t\t\t\t\tfinal Element currentLevelElement = (Element) levelNodeList.item(i);\r\n\r\n\t\t\t\t\t// Make a list of all child objects.\r\n\t\t\t\t\tfinal NodeList objectNodeList = currentLevelElement.getElementsByTagName(\"o\"); // o = object\r\n\r\n\t\t\t\t\t// Load attributes into an Object[3], then append to objectArrayList.\r\n\t\t\t\t\tfor (int j = 0; j < objectNodeList.getLength(); j++) {\r\n\t\t\t\t\t\tfinal Element currentObjectElement = (Element) objectNodeList.item(j);\r\n\t\t\t\t\t\tcandyLevel.objectList.add(new int[] {Integer.valueOf(currentObjectElement.getAttribute(\"n\")), // n = number indicating type of object\r\n\t\t\t\t\t\t\t\tInteger.valueOf(currentObjectElement.getAttribute(\"r\")), // r = row\r\n\t\t\t\t\t\t\t\tInteger.valueOf(currentObjectElement.getAttribute(\"c\")) // c = column\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList tutorialNodeList = currentLevelElement.getElementsByTagName(\"h\"); // h = help = tutorial\r\n\t\t\t\t\tfor (int j = 0; j < tutorialNodeList.getLength(); j++) {\r\n\t\t\t\t\t\tfinal Element currentTutorialElement = (Element) tutorialNodeList.item(j);\r\n\t\t\t\t\t\tcandyLevel.tutorialList.add(new String[] {currentTutorialElement.getTextContent(),\r\n\t\t\t\t\t\t\t\tcurrentTutorialElement.getAttribute(\"r\"), // r = row\r\n\t\t\t\t\t\t\t\tcurrentTutorialElement.getAttribute(\"c\") // c = column\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList toastNodeList = currentLevelElement.getElementsByTagName(\"t\"); // t toast\r\n\t\t\t\t\tif (toastNodeList.getLength()==1) {\r\n\t\t\t\t\t\tcandyLevel.helpTextString = ((Element)toastNodeList.item(0)).getTextContent();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList moveNodeList = currentLevelElement.getElementsByTagName(\"m\");\r\n\t\t\t\t\tif (moveNodeList.getLength() == 0) {\r\n\t\t\t\t\t\tcandyLevel.advancedMovesFor3Stars = 1;\r\n\t\t\t\t\t\tcandyLevel.basicMovesFor2Stars = 1;\r\n\t\t\t\t\t\tif (CandyUtils.DEBUG) Log.w(TAG, \"Level \" + candyLevel.world + \"-\" + candyLevel.level + \" lacks moves requirements.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfinal Element currentMoveElement = (Element)moveNodeList.item(0);\r\n\t\t\t\t\t\tcandyLevel.advancedMovesFor3Stars = Integer.valueOf(currentMoveElement.getAttribute(\"a\"));\r\n\t\t\t\t\t\tcandyLevel.basicMovesFor2Stars = Integer.valueOf(currentMoveElement.getAttribute(\"b\"));\r\n\t\t\t\t\t\tif (CandyUtils.DEBUG) Log.i(TAG, \"Move requirements: \" + candyLevel.advancedMovesFor3Stars + \", \" + candyLevel.basicMovesFor2Stars);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else if (i + 1 == levelNodeList.getLength()) {\r\n\t\t\t\t\tthrow new Exception(\"Missing level \" + candyLevel.world + \"-\" + candyLevel.level + \"!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (CandyUtils.DEBUG) Log.e(TAG, \"XML FAIL!\", e);\r\n\t\t\tToast.makeText(candyLevel.getApplicationContext(), \"Failed to load level.\", Toast.LENGTH_LONG).show();\r\n\t\t\tif (!(candyLevel.world == 1 & candyLevel.level == 1)) {\r\n\t\t\t\tcandyLevel.world = 1;\r\n\t\t\t\tcandyLevel.level = 1;\r\n\t\t\t\tparseLevelObjectsFromXml(candyLevel);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Level readJson(String jsonName) {\n\n InputStream levelInputStream;\n try {\n levelInputStream = new FileInputStream(jsonName);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n JsonReader levelReader = Json.createReader(levelInputStream);\n\n JsonObject fileObject = levelReader.readObject();\n JsonObject levelInfo = fileObject.getJsonObject(\"Level Info\");\n JsonObject tiles = fileObject.getJsonObject(\"Tiles\");\n JsonArray rows = (JsonArray) tiles.get(\"rows\");\n\n int rowCount = levelInfo.getInt(\"rowCount\");\n int colCount = levelInfo.getInt(\"columnCount\");\n JsonArray enemies = (JsonArray) levelInfo.get(\"Enemies\");\n Position playerStart = new Position(levelInfo.getInt(\"playerX\"), levelInfo.getInt(\"playerY\"));\n\n AbstractTile[][] tileArray = new AbstractTile[colCount][rowCount];\n\n Iterator<JsonValue> rowsIterator = rows.iterator();\n\n while (rowsIterator.hasNext()) {\n // Convert from jsonValue to jsonObject, then get the array of tiles\n JsonObject currentRowObject = (JsonObject) rowsIterator.next();\n JsonArray currentRow = (JsonArray) currentRowObject.get(\"objects\");\n\n // Iterate through each row of tiles\n Iterator<JsonValue> currentRowIterator = currentRow.iterator();\n while (currentRowIterator.hasNext()) {\n JsonObject currentTile = (JsonObject) currentRowIterator.next();\n JsonValue type = currentTile.get(\"Tile Type\");\n JsonValue row = currentTile.get(\"row\");\n JsonValue column = currentTile.get(\"column\");\n JsonValue rotated = currentTile.get(\"Rotation\");\n boolean isRotated = false;\n if (rotated.toString().equals(\"\\\"Horizontal\\\"\")) {\n isRotated = false;\n } else if (rotated.toString().equals(\"\\\"Vertical\\\"\")) {\n isRotated = true;\n }\n String tileName = type.toString();\n int tileRow = stringToInt(row.toString());\n int tileColumn = stringToInt(column.toString());\n AbstractTile tileObject;\n if (tileName.equals(\"\\\"Key\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new Key(tileColour);\n } else if (tileName.equals(\"\\\"ExitPortal\\\"\")) {\n tileObject = new ExitPortal();\n } else if (tileName.equals(\"\\\"ExitLock\\\"\")) {\n tileObject = new ExitLock(isRotated);\n } else if (tileName.equals(\"\\\"InfoField\\\"\")) {\n JsonValue infoText = currentTile.get(\"InfoText\");\n String tileInfoText = infoText.toString();\n tileObject = new InfoField(tileInfoText);\n } else if (tileName.equals(\"\\\"LockedDoor\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new LockedDoor(isRotated, tileColour);\n } else if (tileName.equals(\"\\\"Treasure\\\"\")) {\n tileObject = new Treasure();\n } else if (tileName.equals(\"\\\"DeathTile\\\"\")) {\n tileObject = new DeathTile();\n } else if (tileName.equals(\"\\\"Wall\\\"\")) {\n tileObject = new Wall();\n // Free tile\n } else {\n tileObject = new FreeTile();\n }\n tileArray[tileColumn][tileRow] = tileObject;\n }\n }\n\n ArrayList<AbstractActor> enemiesArrayList = new ArrayList<AbstractActor>();\n\n Iterator<JsonValue> enemiesIterator = enemies.iterator();\n JsonObject currentEnemyObject;\n\n while (enemiesIterator.hasNext()) {\n AbstractActor currentEnemy;\n currentEnemyObject = (JsonObject) enemiesIterator.next();\n int xstartPos = currentEnemyObject.getInt(\"startingX\");\n int ystartPos = currentEnemyObject.getInt(\"startingY\");\n JsonValue aiType = currentEnemyObject.get(\"AI Type\");\n int tickSpeed = currentEnemyObject.getInt(\"Tick Speed\");\n JsonValue movement = currentEnemyObject.get(\"Movement String\");\n\n Position aiStartPos = new Position(xstartPos, ystartPos);\n\n String aiTypeString = aiType.toString();\n String movementString = movement.toString();\n aiTypeString = aiTypeString.substring(1, aiTypeString.length() - 1);\n movementString = movementString.substring(1, movementString.length() - 1);\n\n if (aiTypeString.equals(\"PatternEnemy\")) {\n currentEnemy = new PatternEnemy(aiStartPos, tickSpeed, movementString);\n enemiesArrayList.add(currentEnemy);\n } else if (aiTypeString.equals(\"StalkerEnemy\")) {\n currentEnemy = new StalkerEnemy(aiStartPos, tickSpeed);\n enemiesArrayList.add(currentEnemy);\n }\n\n }\n\n Player returnPlayer = new Player(playerStart);\n Set<AbstractActor> returnEnemies = new HashSet<AbstractActor>();\n returnEnemies.addAll(enemiesArrayList);\n int maxTime = levelInfo.getInt(\"timeLimit\");\n Level returnLevel = new Level(maxTime, returnPlayer, tileArray, returnEnemies);\n return returnLevel;\n\n }", "public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "private List<String> generateSquareStructureFromFile(String path) {\n Scanner scanner;\n List<String> readInput;\n InputStream inputStream = getClass().getResourceAsStream(path);\n scanner = new Scanner(inputStream);\n readInput = new ArrayList<>();\n\n while (scanner.hasNextLine()) {\n readInput.add(scanner.nextLine());\n }\n scanner.close();\n\n roomsToBuild = new ArrayList<>();\n squares = new ArrayList<>();\n spawnPoints = new ArrayList<>();\n for(int i = 0; i<readInput.size(); i++){\n if(i%2 == 0)\n squares.add(new ArrayList<>());\n }\n\n int row = 0;\n int col;\n char c;\n String s;\n while(row < readInput.size()){\n col = 0;\n while(col < readInput.get(row).length()){\n c = readInput.get(row).charAt(col);\n s = String.valueOf(c).toLowerCase();\n\n if(c=='R'||c=='B'||c=='Y'||c=='G'||c=='W'||c=='P') {\n SpawnPoint tempSquare = new SpawnPoint(row/2, col/2, Color.fromString(s));\n squares.get(row/2).add(tempSquare);\n spawnPoints.add(tempSquare);\n if(!roomsToBuild.contains(Color.fromString(s)))\n roomsToBuild.add(Color.fromString(s));\n }\n else if(c=='r'||c=='b'||c=='y'||c=='g'||c=='w'||c=='p'){\n squares.get(row/2).add(new Square(row/2, col/2, Color.fromString(s)));\n if(!roomsToBuild.contains(Color.fromString(s)))\n roomsToBuild.add(Color.fromString(s));\n }\n else if(c==' ' && row%2==0 && col%2==0){\n squares.get(row/2).add(null);\n }\n //update max\n if(row/2 + 1> numRow)\n numRow = row/2 + 1;\n if(col/2 + 1> numCol)\n numCol = col/2 + 1;\n col++;\n }\n row++;\n }\n\n return readInput;\n\n }", "public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }", "public Map(String inputFile) throws MapException, IOException, GraphException{\n\t\t\n\t\tthis.testLine = \"Luka<3<3\";\t\t\t// initiate testline to a string that will not be seen from input\n\t\tthis.changeCount = -1;\t\t\t\t// initiate the change counter used for recursive calls in other methods\n\t\tthis.input = inputFile;\t\t\t\t// set the input file\n\t\tthis.S = new Stack<Node>();\t\t\t// initiate the stack storing a path\n\t\t\n\t\t// make a file and make sure it exists, throw an exception otherwise\n\t\tFile inputFileTest = new File(this.input);\n\t\tif(!inputFileTest.exists()){\n\t\t\tthrow new MapException(\"File attempting to be input does not exist.\");\n\t\t}\n\t\t\t\t\n\t\t// create a buffered reader of the file\n\t\tBufferedReader inputScan = new BufferedReader(new FileReader(inputFileTest));\n\t\t\n\t\tint count = 0;\n\t\tString s;\t\t\t\t// 1st string for parsing\n\t\tString s2 = null;\t\t// 2nd string for parsing\n\t\t\n\t\t// loop through the first 4 lines of the input to parse necessary data\n\t\twhile (count < 4){\n\t\t\t\n\t\t\t//read a line of the file\n\t\t\ts = inputScan.readLine();\n\t\t\tcount++;\n\t\t\t\n\t\t\t//set width based on number on 2nd line\n\t\t\tif (count == 2){\n\t\t\t\tthis.width = Integer.parseInt(s.trim());\n\t\t\t}\n\t\t\t\n\t\t\t//set height based on number on 3nd line\n\t\t\tif (count == 3){\n\t\t\t\tthis.height = Integer.parseInt(s.trim());\n\t\t\t}\n\t\t\t\n\t\t\t//set changes based on number on 4th line\n\t\t\tif (count == 4){\n\t\t\t\tthis.changes = Integer.parseInt(s.trim());\n\t\t\t}\n\t\t}\n\t\t//create a graph based on width and height\n\t\tthis.graph = new Graph(this.width * this.height);\n\t\t\n\t\tint countNode = -1; \t\t\t\t// int to count the number of the node in the graph (corresponds to Node name)\n\t\t\n\t\t// read 2 lines of the file and store them in separate variables as long as it is not the end of the file\n\t\ts = inputScan.readLine();\n\t\tif (s!=null){\n\t\t\ts2 = inputScan.readLine();\n\t\t}\n\t\t\n\t\t// loop as long as there is 1 line to parse\n\t\twhile (s!=null){\n\t\t\t// prepare 2 string readers to use to parse both strings (if both exist, only 1 if not)\n\t\t\tStringReader in = new StringReader(s);\n\t\t\tStringReader in2 = null;\n\t\t\tif (s2!=null){\n\t\t\t\tin2 = new StringReader(s2);\n\t\t\t}\n\t\t\tint j = 0;\t\t\t\t\t\t\t// used to store int representation of characters in string 1\n\t\t\tint k = 0;\t\t\t\t\t\t\t// used to store int representation of characters in string 2\n\t\t\tint stringLength = s.length();\t\t// length of the strings (should be equal if input is valid)\n\t\t\t\n\t\t\t//loop through parsing the strings as long as they have characters to parse\n\t\t\twhile (j != -1){\n\t\t\t\tj = in.read();\n\t\t\t\tif(s2!=null){\n\t\t\t\t\tk = in2.read();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// break out of loop if end of string is reached\n\t\t\t\tif (j == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tchar c = (char)j;\t\t\t\t// currently parsed char of string 1\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is a 0, then increment the currentNode counter\n\t\t\t\t * and set the start of the path equal to the currentNode. If the second string's parsed\n\t\t\t\t * character is not white space and the second string exists, insert an edge between the\n\t\t\t\t * currentNode, and the node in the same position of the next line with the busLine value\n\t\t\t\t * of the second string's parsed character.\n\t\t\t\t */\n\t\t\t\tif (c == '0'){\n\t\t\t\t\tcountNode++;\n\t\t\t\t\tthis.start = countNode;\n\t\t\t\t\tif (s2 !=null && (char)k != ' '){\n\t\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+((stringLength+1)/2)), Character.toString((char)k));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is a 1, then increment the currentNode counter\n\t\t\t\t * and set the end of the path equal to the currentNode. If the second string's parsed\n\t\t\t\t * character is not white space and the second string exists, insert an edge between the\n\t\t\t\t * currentNode, and the node in the same position of the next line with the busLine value\n\t\t\t\t * of the second string's parsed character.\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\telse if (c == '1'){\n\t\t\t\t\tcountNode++;\n\t\t\t\t\tthis.end = countNode;\n\t\t\t\t\tif (s2 !=null && (char)k != ' '){\n\t\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+((stringLength+1)/2)), Character.toString((char)k));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is a +, then increment the currentNode counter.\n\t\t\t\t * If the second string's parsed character is not white space and the second string \n\t\t\t\t * exists, insert an edge between the currentNode, and the node in the same position \n\t\t\t\t * of the next line with the busLine value of the second string's parsed character.\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\telse if (c == '+'){\n\t\t\t\t\tcountNode++;\n\t\t\t\t\tif (s2 !=null && (char)k != ' '){\n\t\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+((stringLength+1)/2)), Character.toString(((char)k)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If the parsed character of string 1 is white space, do nothing.\n\t\t\t\telse if (c == ' '){\n\t\t\t\t\t// do nothing\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is any other character, then it is a busLine name\n\t\t\t\t * and thus add an edge with this as the busLine connecting the currentNode and the node\n\t\t\t\t * immediately following. \n\t\t\t\t */\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+1), Character.toString(c));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// get the next lines if they exist\n\t\t\tif (s2!=null){\n\t\t\t\ts = inputScan.readLine();\n\t\t\t\tif (s!=null){\n\t\t\t\t\ts2 = inputScan.readLine();\n\t\t\t\t}\n\t\t\t} else{\n\t\t\t\ts = null;\n\t\t\t}\n\t\t\t// close the string readers\n\t\t\tin.close();\n\t\t\tif (in2!=null){\n\t\t\t\tin2.close();\n\t\t\t}\n\t\t}\n\t\t// close the buffered reader\n\t\tinputScan.close();\n\t}", "Map(String input) {\n row = 0;\n col = 0;\n\n String line;\n Scanner fin = null;\n try\n {\n fin = new Scanner(new File(input));\n }\n catch (FileNotFoundException x)\n {\n System.out.println(\"Error: \" + x);\n System.exit(0);\n }\n // Take first line and get mapLength and mapHeight. Initialize map array\n line = fin.nextLine();\n String[] temp = line.split(\" \");\n maxR = Integer.parseInt(temp[0].toString());\n maxC = Integer.parseInt(temp[1].toString());\n map = new String[maxR][maxC];\n\n for(int j = 0; j < maxR; j++) {\n line = fin.nextLine();\n for(int i = 0; i < maxC; i++){\n map[j][i] = (line.charAt(i)) + \"\";\n }\n }\n }", "void loadOriginalGameState(String saveName, int level) throws IOException;", "private void draw(){\n\t\t\t Point level = new Point(txtBoard_top_left.x, txtBoard_top_left.y);\n\t\t\t level_info = new TextInfo(g, level, txt_width, size*4, LEVEL, this.level);\n\t\t\t level_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 2nd text info\n\t\t\t Point lines = new Point(level.x, level.y+size*2);\n\t\t\t lines_info = new TextInfo(g, lines, txt_width, size*4, LINES, this.lines);\n\t\t\t lines_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 3rd text info\n\t\t\t Point score = new Point(lines.x, lines.y+size*2);\n\t\t\t score_info = new TextInfo(g, score, txt_width, size*4, SCORE, this.score);\n\t\t\t score_info.drawTextInfo();\t\t\n\t\t}", "public void loadGame(){\n if(gamePaused == false){ return; }\n // animationThread.stop();\n // JOptionPane.showMessageDialog(null, \"Game Loaded\", \"Message\", 1);\n replay.load();\n board = replay.autoReplay();\n level = replay.getLevel();\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelMusic\");\n }\n musicName = \"LevelMusic\";\n setTitle(\"Chip's Challenge: Level \" + level);\n timeRuunableThread.setDrawNumber(true);\n timeRuunableThread.setSecond(replay.getTime());\n gameStarted = true;\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n timeRuunableThread.setGameStart(gameStarted);\n infoCanvas.drawLevelNumber(level);\n keysize = 0;\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n try {\n infoCanvas.drawKeysChipsPics();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n renderer = new MazeRenderer(boardCanvas.getGraphics());\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n checkMovedRedraw();\n }", "public void initWorld(String inName, int inLevel, int id)\r\n {\r\n setBackground(248);\r\n\r\n addObject(playerPkmnInfoBox, 334, 229);\r\n addObject(enemyPkmnInfoBox, 144, 49);\r\n\r\n currentEnemyPokemon = id;\r\n\r\n addNewPokemon(\"Player\", currentPlayerPokemon, \"\", 0);\r\n if(wildPokemon)\r\n {\r\n addNewPokemon(\"Enemy\", currentEnemyPokemon, inName, inLevel);\r\n }\r\n else\r\n {\r\n addNewPokemon(\"Enemy\", currentEnemyPokemon, \"\", 0);\r\n }\r\n\r\n this.textInfoBox = new TextInfoBox(\"BattleSelectBox\", \"BattleBar\", currentPlayerPokemon);\r\n addObject(textInfoBox, getWidth() / 2, getHeight() - 69); //Battle Text Box\r\n\r\n newMusic(\"Battle\");\r\n Greenfoot.setSpeed(50);\r\n setPaintOrder(Blackout.class, TextInfoBox.class, PkmnInfoBox.class, Pokemon.class);\r\n }", "static int[] createVisualToLogicalMap(byte[] levels) {\n int len = levels.length;\n int[] mapping = new int[len];\n\n byte lowestOddLevel = (byte)(NUMLEVELS + 1);\n byte highestLevel = 0;\n\n // initialize mapping and levels\n\n for (int i = 0; i < len; i++) {\n mapping[i] = i;\n\n byte level = levels[i];\n if (level > highestLevel) {\n highestLevel = level;\n }\n\n if ((level & 0x01) != 0 && level < lowestOddLevel) {\n lowestOddLevel = level;\n }\n }\n\n while (highestLevel >= lowestOddLevel) {\n int i = 0;\n for (;;) {\n while (i < len && levels[i] < highestLevel) {\n i++;\n }\n int begin = i++;\n\n if (begin == levels.length) {\n break; // no more runs at this level\n }\n\n while (i < len && levels[i] >= highestLevel) {\n i++;\n }\n int end = i - 1;\n\n while (begin < end) {\n int temp = mapping[begin];\n mapping[begin] = mapping[end];\n mapping[end] = temp;\n ++begin;\n --end;\n }\n }\n\n --highestLevel;\n }\n\n return mapping;\n }", "public LevelParser(String file) throws SyntacticIncException \n\t{\n\t\tthis.file = file;\n\t\ttry \n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(this.file));\n\t\t\tString zeile;\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint zeilenlaenge = 0;\n\t\t\twhile ((zeile = in.readLine()) != null) \n\t\t\t{\n\t\t\t\tchar[] zeilenChars = zeile.toCharArray();\n\t\t\t\tif(x!=0 && zeilenlaenge!=zeilenChars.length) throw new SyntacticIncException(\"Syntaktisch Inkorrekt - zeilen in datei unterschiedlich lang\");\n\t\t\t\tzeilenlaenge = zeilenChars.length;\n\t\t\t\tif(level==null){\n\t\t\t\t\tlevel = new char[1][zeilenlaenge];\n\t\t\t\t\tlevel[0] = zeilenChars.clone();\n\t\t\t\t}else{\n\t\t\t\t\tchar[][] levelClone = level.clone();\n\t\t\t\t\tlevel = new char[levelClone.length+1][zeilenlaenge];\n\t\t\t\t\tSystem.arraycopy(levelClone, 0, level, 0, level.length-1);\n\t\t\t\t\tlevel[levelClone.length] = zeilenChars;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tx++;\n\t\t\t}\n\t\t\tlevelActive = new char[level.length+2][level[0].length+2];\n\t\t\t\n\t\t\tfillActiveLevels();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - Datei nicht gefunden\");\n\t\t}\n\t\tif (!syntaktischRichtig()) \n\t\t{\n\t\t\tlevel = null;\n\t\t\tlevelActive = null;\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - datei fehlerhaft\");\n\t\t} else \n\t\t{\n\t\t\tlevelGeladen = true;\n\t\t}\n\t}", "private void switch_level_game(){\n switch (level_name){\n case \"Beginners\":\n uri_grammar1 = \"https://www.talkenglish.com/grammar/grammar.aspx\";\n uri_grammar2 = \"https://www.englisch-hilfen.de/en/exercises_list/alle_grammar.htm\";\n uri_grammar3 = \"https://learnenglish.britishcouncil.org/en/english-grammar\";\n button_grammar1_text = \"בסיס הדקדוק האנגלי\";\n button_grammar2_text = \"תרגילי דקדוק באנגלית\";\n button_grammar3_text = \"לימוד אנגלית\";\n break;\n\n case \"Basic\":\n uri_grammar1 = \"https://www.learnamericanenglishonline.com/Links.html\";\n uri_grammar2 = \"http://www.english-test.net/toefl/\";\n uri_grammar3 = \"https://learnenglish.britishcouncil.org/en/english-grammar\";\n button_grammar1_text = \"בסיס הדקדוק האנגלי\";\n button_grammar2_text = \"מבחן דקדוק באנגלית\";\n button_grammar3_text = \"לימוד אנגלית\";\n break;\n\n case \"Advanced\":\n uri_grammar1 = \"http://www.advanced-english-grammar.com/\";\n uri_grammar2 = \"http://www.bbc.co.uk/learningenglish/english/course/towards-advanced/unit-6/session-1\";\n uri_grammar3 = \"https://learnenglish.britishcouncil.org/en/english-grammar\";\n button_grammar1_text = \"דקדוק אנגלית למתקדמים\";\n button_grammar2_text = \"תרגילי דקדוק באנגלית\";\n button_grammar3_text = \"לימוד אנגלית\";\n break;\n }\n }", "public static boolean loadMap(String path) throws FileNotFoundException {\n\n// System.out.println(\" Enter map file address\");\n// String path = sc.next();\n\n // ---------------- Reading file-------------------------------\n File file_map = new File(path.trim());\n HashMap<String, List<String>> neighborsList = new HashMap<>();\n\n if (file_map.exists()) {\n Scanner myReader = new Scanner(file_map);\n\n while (myReader.hasNextLine()) {\n\n String data = myReader.nextLine();\n\n if (\"[Continents]\".equals(data.trim())) {\n System.out.println(\"==>\" + data.trim());\n data = myReader.nextLine();\n\n while (!data.equals(\"[Territories]\")) {\n System.out.println(data);\n String split[] = data.split(\"=\");\n String continent_name = split[0];\n String no_of_countries = split[1];\n continents.put(continent_name, Integer.parseInt(no_of_countries));\n data = myReader.nextLine();\n }\n }\n\n System.out.println(\"continents: \" + continents.toString());\n board.setContinents(continents);\n\n if (\"[Territories]\".equals(data)) {\n\n while (myReader.hasNextLine()) {\n String country_input = myReader.nextLine();\n\n String split[] = country_input.split(\",\");\n String country = split[0];\n int x = Integer.parseInt(split[1]);\n int y = Integer.parseInt(split[2]);\n String continent = split[3];\n List<String> neighbours = new ArrayList<>();\n\n for (int i = 4; i < split.length; i++) {\n neighbours.add(split[i]);\n }\n\n board.createTile(country, x, y, continent);\n neighborsList.put(country, neighbours);\n\n }\n }\n\n for (Map.Entry entry : neighborsList.entrySet()) {\n board.setNeighbourTile((List<String>) entry.getValue(), (String) entry.getKey());\n }\n\n\n }\n System.out.println(\"Risk Map Loaded!\");\n HashMap<String, Tile> map = board.getTiles();\n\n System.out.println(\"Map\" + map.keySet().toString());\n\n if (board.getContinents().size() == 0 || board.getTiles().size() == 0)\n return false;\n return true;\n\n } else {\n System.out.println(\"File does not exist! \");\n return false;\n }\n\n }", "void createNewLevel(int level);" ]
[ "0.7916575", "0.7801382", "0.6643085", "0.6354464", "0.63182795", "0.631728", "0.62130284", "0.6148259", "0.6101886", "0.59733564", "0.5963754", "0.5963407", "0.5948628", "0.59036225", "0.5899361", "0.58379424", "0.5832119", "0.57935524", "0.5784151", "0.57660246", "0.5751873", "0.5737324", "0.56967545", "0.568966", "0.5689582", "0.568563", "0.5684928", "0.56828535", "0.5678939", "0.5646996", "0.56436443", "0.5635727", "0.563529", "0.5627308", "0.5619354", "0.5606457", "0.56012344", "0.5580913", "0.55775094", "0.55765164", "0.5573898", "0.55377334", "0.5531605", "0.55315113", "0.5516698", "0.5506878", "0.550032", "0.54955447", "0.5494112", "0.5483935", "0.54803044", "0.5480014", "0.5465523", "0.5461614", "0.54503673", "0.5444037", "0.5424697", "0.5395355", "0.5391991", "0.5330805", "0.5325695", "0.5322053", "0.5315832", "0.5307741", "0.53045213", "0.5300086", "0.52885765", "0.52773947", "0.5270703", "0.5269215", "0.52601874", "0.5259952", "0.5259658", "0.5237638", "0.52350587", "0.5193858", "0.5193139", "0.51713866", "0.5168113", "0.5159636", "0.5140916", "0.5134189", "0.5133658", "0.5131541", "0.5128608", "0.5121319", "0.5111177", "0.51046324", "0.50919205", "0.50861704", "0.5083068", "0.5072108", "0.5070775", "0.50527817", "0.5050803", "0.50490814", "0.504337", "0.5033017", "0.50251824", "0.5024978" ]
0.7464434
2
Gets the character position
public Point getCharacterPosition() { return this.characterPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCharPos(){\n return charPos;\n }", "public int getCharStart() {\n\t\treturn -1;\n\t}", "public static int getAtChar(){\r\n\t\treturn atChar;\r\n\t}", "int getStartCharIndex();", "public int pos() {\r\n return cbyte;\r\n }", "public int getCodePoint()\n {\n ensureGlyphIndex();\n return codePoint.intValue();\n }", "@Override\n protected int getCharacterPosition() {\n return charsContentAlreadyStored + content.length();\n }", "public int getCaretPosition()\n {\n return field.getCaretPosition();\n }", "public char charAt(int charOffset);", "public int getCursorPosition();", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public String getPos() {\n return this.pos;\n }", "public int get_char() {\n return local_char;\n }", "public TextPosition getPosition ( ) { return _cursorPosition; }", "static int getIdx(char ch)\n {\n return (ch - 'a');\n }", "public int getTextPosition() {\r\n return TextPosition;\r\n }", "public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }", "public int getCharacter() {\n return getStat(character);\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead + pos];\n }", "public final char yycharat(int pos) {\n return input.readText().charAt(pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public String getPosition(){\r\n\t\treturn position;\r\n\t}", "int getEndCharIndex();", "public final char yycharat(int pos) {\n\t\treturn zzBuffer[zzStartRead+pos];\n\t}", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public abstract String getPos();", "public char charAt(int pos) {\n return content.charAt(pos);\n }", "private int getChar() {\n\n\t\ttry {\n\t\t\treturn stream.read();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.print(e.getMessage());\n\t\t\tSystem.err.println(\"IOException occured in Lexer::getChar()\");\n\t\t\treturn -1;\n\t\t}\n\n\t}", "final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }", "final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }", "public int getBlockIndex() {\n return mCursorPosition;\n }", "public int getPosition();", "public Position getTextPosition()\n {\n int hpos = getComponent().getHorizontalTextPosition();\n int vpos = getComponent().getVerticalTextPosition();\n return Position.get(hpos, vpos);\n }", "public Integer getCaretPosX() {\n\t\tint[] caretPos = getCaretPos();\n\t\treturn (caretPos == null) ? null : caretPos[0];\n\t}", "public int position() {\n return pos;\n }", "public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }", "@Pure\n public Integer getStartCharacter() {\n return this.startCharacter;\n }", "public int getPos();", "public int getPos();", "public char charAt(int index)\r\n/* 31: */ {\r\n/* 32: 44 */ if (index > this.pos) {\r\n/* 33: 45 */ throw new IndexOutOfBoundsException();\r\n/* 34: */ }\r\n/* 35: 47 */ return this.chars[index];\r\n/* 36: */ }", "public int getSelectedCharacterIndex() {\n return selectedCharacterIndex;\n }", "public int getCaretPosition() {\r\n\t\treturn getJTextField().getCaretPosition();\r\n\t}", "public char charAt(int index);", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "CodePosition getCodePosition();", "@Override\n public int[] getCurrentPosition() {\n int[] res = new int[2];\n res[0] = characterRow;\n res[1] = characterColumn;\n\n return res;\n }", "int getCursorPosition();", "public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }", "public String getPos(){\r\n\t\t return pos;\r\n\t }", "public int getPosition(){\n\t\treturn this.cell;\n\t}", "public int getPos()\n {\n return pos;\n }", "public int getGlyphIndex()\n {\n ensureGlyphIndex();\n return glyphIndex.getValue();\n }", "protected int charIndex(char c) {\r\n\t\ttry {\r\n\t\t\treturn characterMap.indexOf(c);\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "RealLocalizable getPosition();", "private static int getX(char chr) {\n \t\tswitch (chr) {\n \t\tcase '1':\n \t\tcase '!':\n \t\tcase '~':\n \t\tcase '`':\n \t\tcase 'q':\n \t\tcase 'a':\n \t\tcase 'z':\n \t\t\treturn 0;\n \t\tcase '2':\n \t\tcase 'w':\n \t\tcase 's':\n \t\tcase 'x':\n \t\t\treturn 1;\n \t\tcase '#':\n \t\tcase '3':\n \t\tcase 'e':\n \t\tcase 'd':\n \t\tcase 'c':\n \t\t\treturn 3;\n \t\tcase '4':\n \t\tcase 'r':\n \t\tcase 'f':\n \t\tcase 'v':\n \t\t\treturn 4;\n \t\tcase '5':\n \t\tcase 't':\n \t\tcase 'g':\n \t\tcase 'b':\n \t\t\treturn 5;\n \t\tcase '6':\n \t\tcase 'y':\n \t\tcase 'h':\n \t\tcase 'n':\n \t\t\treturn 6;\n \t\tcase '7':\n \t\tcase 'u':\n \t\tcase 'j':\n \t\tcase 'm':\n \t\t\treturn 7;\n \t\tcase '8':\n \t\tcase 'i':\n \t\tcase 'k':\n \t\tcase ',':\n \t\t\treturn 8;\n \t\tcase '9':\n \t\tcase 'o':\n \t\tcase 'l':\n \t\tcase '.':\n \t\t\treturn 9;\n \t\tcase '-':\n \t\tcase '_':\n \t\tcase '+':\n \t\tcase '=':\n \t\tcase 'p':\n \t\tcase '/':\n \t\t\treturn 10;\n \t\tdefault:\n \t\t\treturn 11;\n \t\t}\n \t}", "public char getChar()\n throws IOException\n {\n return (char) lineNumberReader.read();\n }", "private int currentChar()\n {\n if (m_bufferOffset_ < 0) {\n m_source_.previousCodePoint();\n return m_source_.nextCodePoint();\n }\n\n // m_bufferOffset_ is never 0 in normal circumstances except after a\n // discontiguous contraction since it is always returned and moved\n // by 1 when we do nextChar()\n return UTF16.charAt(m_buffer_, m_bufferOffset_ - 1);\n }", "public final int getPosition() {\n return position;\n }", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "protected final int getLeadOffset(char paramChar) {\n/* 294 */ return getRawOffset(0, paramChar);\n/* */ }", "int getPosition();" ]
[ "0.8266326", "0.77246577", "0.771778", "0.7409696", "0.7193138", "0.70974904", "0.7023527", "0.6984068", "0.69696045", "0.69651335", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.69509315", "0.69509315", "0.69509315", "0.69509315", "0.69509315", "0.69311184", "0.6920117", "0.69124913", "0.6906842", "0.6886271", "0.6883723", "0.6876616", "0.6862162", "0.68589693", "0.6829339", "0.6829339", "0.6829339", "0.6829339", "0.6829339", "0.6829339", "0.6829339", "0.6829339", "0.6826397", "0.67893976", "0.6780184", "0.6776967", "0.6776967", "0.6776967", "0.6776967", "0.6776967", "0.67600757", "0.6752714", "0.67357254", "0.6713866", "0.6713866", "0.6706834", "0.66752195", "0.6673243", "0.66447186", "0.6640878", "0.6628652", "0.6628652", "0.66157496", "0.66070884", "0.66070884", "0.660253", "0.6595348", "0.65921414", "0.6588809", "0.65854007", "0.6581576", "0.6572182", "0.65554196", "0.65433615", "0.6526372", "0.6516723", "0.6516239", "0.650117", "0.65003324", "0.6494387", "0.6485568", "0.6484948", "0.6479469", "0.646999", "0.6466407", "0.64626944", "0.6457605" ]
0.79902107
1
Sets the character position
private void setCharacterPosition(Point position) { this.characterPosition = position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public final char setIndex(final int position) {\n ArgumentChecks.ensureBetween(\"position\", lower, upper, position);\n return ((index = position) != upper) ? text.charAt(position) : DONE;\n }", "public void setPosition ( TextPosition position ) throws OutOfBoundsException { _cursorPosition = position; }", "void setCharacter(int c) {\n setStat(c, character);\n }", "public void setChar(Character c) {\n setText(String.valueOf(c));\n }", "public void setPos(int pos);", "public void setPos(int pos);", "public void setCharacterSequence(String chars);", "public void setCaretPosition(int arg1) {\r\n\t\tgetJTextField().setCaretPosition(arg1);\r\n\t}", "@Override\n public void setCharacter(String character) {\n this.character = character;\n }", "public void setPosition(int position);", "public void set_char(int param) {\n this.local_char = param;\n }", "public Position(String pos) {\n pos = pos.toLowerCase();\n x = (int) pos.charAt(0) - 97;\n y = (int) pos.charAt(1) - 49;\n }", "public int getCharPos(){\n return charPos;\n }", "public void set_char(_char param) {\n this.local_char = param;\n }", "public Writer setCharacterStream(long pos)\n\t{\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void setCurrentPosition(String position){\n this.currentPosition = position;\n }", "public void setPosition(Position pos);", "public void setPosition(int position) {\r\n if (position > 24) position = 24;\r\n this.position = position;\r\n }", "public TextPos() {\n this.value = 1;\n }", "public void PositionSet(int position);", "@Override\n protected int getCharacterPosition() {\n return charsContentAlreadyStored + content.length();\n }", "protected final void putChar(char c)\n\t{\n\t\tif (showCaret)\n\t\t{\n\t\t\tif (displayingCaret)\n\t\t\t\ttext.setText(text.getText().substring(0, text.getText().length() - 1) + c + \"|\");\n\t\t\telse text.setText(text.getText().substring(0, text.getText().length() - 1) + c + \" \");\n\t\t}\n\t\telse text.setText(text.getText() + c);\n\t}", "public void setPosition(String position){\r\n\t\tthis.position = position;\r\n\t}", "public void setCh(char ch) {\r\n\t\tthis.ch = ch;\r\n\t}", "public void setPosition(String position) {\n if(position==null){\n position=\"\";\n }\n this.position = position;\n }", "public void set(int pos);", "public void setValue(char value)\n\t{\n\t\tthis.value = value;\n\t}", "public void setCursor(int l, int c);", "public void setPosition(Position pos) {\n \tthis.position = pos;\n \t//setGrade();\n }", "public void setPosition(int position) {\r\r\r\r\r\r\n this.position = position;\r\r\r\r\r\r\n }", "public Token setPos(String pos) {\n this.pos = pos;\n return this;\n }", "public void setPosition(Integer position);", "@Override\n public void setPosition(long position) throws IOException {\n super.setPosition(position - startPosition);\n }", "public void setOffset(int offset)\n {\n m_source_.setIndex(offset);\n int ch_int = m_source_.current();\n char ch = (char)ch_int;\n if (ch_int != UCharacterIterator.DONE && m_collator_.isUnsafe(ch)) {\n // if it is unsafe we need to check if it is part of a contraction\n // or a surrogate character\n if (UTF16.isTrailSurrogate(ch)) {\n // if it is a surrogate pair we move up one character\n char prevch = (char)m_source_.previous();\n if (!UTF16.isLeadSurrogate(prevch)) {\n m_source_.setIndex(offset); // go back to the same index\n }\n }\n else {\n // could be part of a contraction\n // backup to a safe point and iterate till we pass offset\n while (m_source_.getIndex() > 0) {\n if (!m_collator_.isUnsafe(ch)) {\n break;\n }\n ch = (char)m_source_.previous();\n }\n updateInternalState();\n int prevoffset = 0;\n while (m_source_.getIndex() <= offset) {\n prevoffset = m_source_.getIndex();\n next();\n }\n m_source_.setIndex(prevoffset);\n }\n }\n updateInternalState();\n // direction code to prevent next and previous from returning a \n // character if we are already at the ends\n offset = m_source_.getIndex();\n if (offset == 0/* m_source_.getBeginIndex() */) {\n // preventing previous() from returning characters from the end of \n // the string again if we are at the beginning\n m_isForwards_ = false; \n }\n else if (offset == m_source_.getLength()) {\n // preventing next() from returning characters from the start of \n // the string again if we are at the end\n m_isForwards_ = true;\n }\n }", "void setPosition(Position position);", "void setPosition(Position position);", "public void setWordPosition() {\n this.wordPosition = wordPosition;\n }", "public void setPosition(){\r\n currentPosition = 0; \r\n }", "public void setText(char[] chars, int start, int length);", "public void updateChar(int c) {\n\t\tchars = c;\n\t}", "private void setText(Text text, int x_pos, int y_pos) {\n text.setTextOrigin(POS);\n text.setFont(new Font(fontType, fontSize));\n text.setX(x_pos);\n text.setY(y_pos);\n text.toFront();\n if (text == cursorPos) {\n cursor.setX(x_pos + round(text.getLayoutBounds().getWidth())+1);\n cursor.setY(y_pos);\n }\n }", "public void setPosition(Dot position) {\r\n\t\tthis.position = position;\r\n\t}", "public void SetPOS (String pos) {\n pos_ = pos;\n }", "public void setPos(int r, int c){\n\t\tthis.r = r;\n\t\tthis.c = r;\n\t}", "public void setPosition(String position) {\n this.position = position;\n }", "public void setPosition(String position) {\n this.position = position;\n }", "public void setPosition(Position p);", "public ByteBuf setChar(int index, int value)\r\n/* 301: */ {\r\n/* 302:316 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 303:317 */ return super.setChar(index, value);\r\n/* 304: */ }", "public void setPosition(int position)\r\n {\r\n this.position = position;\r\n }", "public void setGlyph(char c, WritingShape glyph) {\n\t\tKey<WritingShape> key = getGlyphKey(c);\n\t\tproperties.set(key, glyph);\n\t}", "private void setLevelUpChars() {\n /*\n * check this if you need more symbol set's\n * TODO do this right @me\n\t\t */\n String charset = KeyboardHandler.current_charset;\n if (charset.length() == 36) {\n for (int i = 0; i < 6; ++i) {\n characterAreas.get(i).setChars(\n charset.substring(i * 6, (i + 1) * 6));\n }\n }\n\n if (charset.length() == 40) {\n Log.d(\"main\",charset);\n characterAreas.get(0).setChars(charset.substring(0, 6));\n characterAreas.get(1).setChars(charset.substring(6, 14));\n characterAreas.get(2).setChars(charset.substring(14, 20));\n characterAreas.get(3).setChars(charset.substring(20, 26));\n characterAreas.get(4).setChars(charset.substring(26, 34));\n characterAreas.get(5).setChars(charset.substring(34, 40));\n }\n }", "public final void setPosition(int p) {\n this.position = p;\n }", "public void setPosition(Coordinate position) {\n cPosition = position;\n }", "public void updateMazeChars(int[] pos, char newChar) {\n\t\tString tmp = mMazeChars.get(pos[0]);\n\t\tStringBuilder tmpBuilder = new StringBuilder(tmp);\n\t\ttmpBuilder.setCharAt(pos[1], newChar);\n\t\tmMazeChars.set(pos[0], tmpBuilder.toString());\n\t}", "public void setBasicChar(BasicChar wotCharacter) {\n this.wotCharacter = wotCharacter;\n }", "protected void setPosition(Position p) {\n\t\tposition = p;\n\t}", "void setPosition(Position p);", "public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }", "public void setSelectedCharacterIndex(int selectedCharacterIndex) {\n this.selectedCharacterIndex = selectedCharacterIndex;\n }", "public int putChar(char c, int pos)\n {\n if (pos < 0) {\n if(this.post_comma_digits >= -pos)\n this.raw_value[this.pre_comma()-1-pos] = c;\n else return -2;\n } else {\n if(pos < this.pre_comma())\n this.raw_value[this.pre_comma()-1-pos] = c;\n else return -1;\n }\n return 0;\n }", "public void setInitPositions(char[] newInit) {\r\n\t\tinitPositions = newInit;\r\n\t}", "@Override\n public void setPosition(int position) {\n this.position = position;\n }", "public abstract void setPosition(Position position);", "public void setPosition(int position) {\r\n this.position = position;\r\n }", "public void setPosition(int position) {\r\n\t\tthis.position = position;\r\n\t}", "void setPosNr(String posNr);", "public void setCursor(int renglon){\n panel.setCaretPosition(renglon);\n }", "void setPosition(double xPos, double yPos);", "public Point getCharacterPosition() {\n\t\treturn this.characterPosition;\n\t}", "public void setStartCharacter(final Integer startCharacter) {\n this.startCharacter = startCharacter;\n }", "public TextPos() {\n lineNumber = -1;\n linePos = -1; \n }", "public void setPos(int r, int c) { _row = r; _col = c; }", "public void setPosition(int posX, int posY) {\n\t}", "public void getch(){\n pos++; \n nextch=fnb.charAt(pos);\n }", "public void setX(int x){ xPosition = x; }", "public TextPos(int value) {\n this.value = value;\n adjustLimits(NO_MAX_LIMIT);\n }", "Position()\n\t{\n\t\tsetFile('\\u0000');\n\t\tsetRank(0);\n\t}", "public void setPosition(Position pos) {\n position = new Position(pos);\n }", "private void writeChar(byte[] bytes) {\n // let terminal do auto wrap around. \n term.writeChar(bytes);\n\n // update cursor \n //int x=term.getCursorX(); \n //int y=term.getCursorY();\n //term.putChar(bytes, x, y);\n // increment: let terminal do auto wrap around. \n //term.moveCursor(1,0); \n\n }", "protected void setSymbol(char c){\r\n\t\tthis.symbol = c;\r\n\t}", "public Character(int x, int y, String s)\n\t{\n\t\txCoord = x;\n\t\tyCoord = y;\n\t\tappearance = s;\n\t}", "public void setSymbolPosition(CurrencySymbolPosition posn)\r\n {\r\n m_symbolPosition = posn;\r\n }", "public void characters(char[] ch, int start, int len) {\r\n \tif (charState > 0) {\r\n \t\tif (charState == 2) {\r\n \t\t\tlineBuffer.append(' ');\r\n \t\t}\r\n \t\tcharState = 1;\r\n \tlineBuffer.append(new String(ch, start, len));\r\n \t}\r\n }", "public void change_sword_pos() {\n\t\tif (!heroi.isArmado())\n\t\t\tlabirinto.setLabCell(espada.getX_coord(), espada.getY_coord(), 'E');\n\t}", "public void setPositions(char[] newPositions) {\r\n\t\trotors.setPositions(newPositions);\r\n\t}", "public void Insert(char ch)\n {\n if (map[ch] == -1) {\n map[ch] = pos;\n }\n else {\n map[ch] = -2;\n } \n pos ++;\n }", "public void setBytePosition(int bytePosition) {\n this.bytePosition = bytePosition;\n }", "public final void setXDPosition(final String xpos) {_xdpos = xpos;}", "public void setPosition(Point newPosition);", "public void setChar(char data, int row, int column) {\n\t\tcolumns[column].setChar(data, subset[row]);\n\t}", "public Character(int x, int y, int width, int type){\n\n super(x,y,width,type);\n setJFile(type);\n\n\n }", "private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }", "public void setPosition(Point position);", "@Override\n public void setPosition(int position) throws IOException\n {\n if (position < 0)\n {\n throw new IOException(\"position is negative\");\n }\n if (position >= randomAccessRead.length())\n {\n throw new IOException(\"New position is out of range \" + position + \" >= \"\n + randomAccessRead.length());\n }\n randomAccessRead.seek(position);\n }", "public Position(final String charAlgebraic) {\n this.charAlg = charAlgebraic;\n this.posX = PositionTraductor.getXIndexNotation(charAlgebraic);\n this.posY = PositionTraductor.getYIndexNotation(charAlgebraic);\n }", "private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }", "public void type(char c){\n //Only type if a text is selected\n if(currentText != null) {\n //If the character is a newline then a new line should be created and the character and line index's should be updated as appropriate\n if (c == '\\n') {\n currentText = codeWindow.getTextLineController().split(currentText, characterIndex, codeWindow);\n characterIndex = 0;\n lineIndex++;\n }\n //If the character that was typed is any other character then the line will not be split, update it with the typed character and update the character index\n else {\n currentText = codeWindow.getTextLineController().update(currentText, characterIndex, c);\n characterIndex++;\n }\n //After typing the position of the cursor will be different, update the position\n updatePosition();\n }\n }", "@Override\n public void btPutChar(int value) {\n }", "@Override\n\t/**\n\t * sets the position of the class\n\t * \n\t * @param i\n\t */\n\tpublic void setPosition(int i) {\n\t\tposition = i;\n\t}", "public void setPos(CArrayFacade<Float> pos) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 64;\n\t\t} else {\n\t\t\t__dna__offset = 64;\n\t\t}\n\t\tif (__io__equals(pos, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, pos)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, pos);\n\t\t} else {\n\t\t\t__io__generic__copy( getPos(), pos);\n\t\t}\n\t}" ]
[ "0.7365272", "0.70793587", "0.6911897", "0.6695637", "0.66518843", "0.66518843", "0.6536225", "0.6522106", "0.64377505", "0.6429935", "0.6415699", "0.64001006", "0.639742", "0.6363999", "0.6333862", "0.63277113", "0.630683", "0.62710845", "0.6243242", "0.6215277", "0.619277", "0.6174829", "0.61263645", "0.6125592", "0.61157584", "0.6102534", "0.60977936", "0.6094829", "0.6027734", "0.60117114", "0.60116434", "0.6008743", "0.6008013", "0.60071546", "0.60048133", "0.60048133", "0.59973216", "0.59945214", "0.5983934", "0.59764373", "0.59703207", "0.5966496", "0.59580505", "0.59266144", "0.5919274", "0.5919274", "0.5914214", "0.59117997", "0.5908966", "0.59004384", "0.5898541", "0.5882861", "0.5875818", "0.5874406", "0.5858544", "0.5846599", "0.5843819", "0.5835873", "0.5833547", "0.58322287", "0.58278215", "0.58193594", "0.5814826", "0.5811595", "0.58088386", "0.58024234", "0.58008534", "0.57934254", "0.57908404", "0.57841015", "0.5774842", "0.5774726", "0.577429", "0.5762582", "0.5753547", "0.57402873", "0.5739637", "0.573904", "0.5731472", "0.57257545", "0.5715659", "0.5712911", "0.5711021", "0.5705886", "0.56901103", "0.56875193", "0.5682985", "0.56802917", "0.56710094", "0.5665041", "0.5664809", "0.5663216", "0.5653287", "0.5649931", "0.5645924", "0.5644371", "0.5641925", "0.56413305", "0.5633466", "0.5630917" ]
0.8263626
0
TODO Autogenerated method stub
public void dispose() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void init(IWorkbenchWindow window) { shell = window.getShell(); page = window.getActivePage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void run(IAction action) { SaveAsDialog saveAsDialog = new SaveAsDialog(shell); saveAsDialog.open(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
public void selectionChanged(IAction action, ISelection selection) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Constructor from environment variables
public HederaClient(Dotenv env) throws Exception { if (env == null) { throw new Exception("provided environment is null"); } this.operatorId = AccountId.fromString(Objects.requireNonNull(env.get("OPERATOR_ID"))); this.operatorKey = PrivateKey.fromString(Objects.requireNonNull(env.get("OPERATOR_KEY"))); if (StringUtils.isEmpty(env.get("MIRROR_PROVIDER"))) { throw new Exception("MIRROR_PROVIDER environment variable not set"); } else { this.mirrorProvider = env.get("MIRROR_PROVIDER").toUpperCase(); } if (StringUtils.isEmpty(env.get("NETWORK"))) { throw new Exception("NETWORK environment variable not set"); } else { this.network = env.get("NETWORK").toUpperCase(); } this.client = clientForNetwork(this.network); String envVariable = "REST_".concat(this.mirrorProvider.toUpperCase()).concat("_") .concat(this.network); this.mirrorUrl = ""; if (StringUtils.isEmpty(env.get(envVariable))) { throw new Exception(envVariable + " environment variable not set"); } else { this.mirrorUrl = env.get(envVariable, ""); } if (StringUtils.isBlank(this.mirrorUrl)) { throw new Exception("NETWORK and/or MIRROR_PROVIDER environment variables not set"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Verif() {\n\t\tenv = new Environ();\n\t}", "Environment createEnvironment();", "Environment createEnvironment();", "public SetEnvCommand() {\n }", "EnvVariablesType createEnvVariablesType();", "private void init(String... argNames) {\n\t\tfor (int i = 0; i < argNames.length; i++) {\n\t\t\tString name = argNames[i];\n\t\t\t\n\t\t\tString value = System.getProperty(name);\n\t\t\tif (value == null) {\n\t\t\t\tvalue = System.getenv(name);\n\t\t\t}\n\t\t\tif (value == null) {\n\t\t\t\targs.put(name, new Argument(name));\n\t\t\t\t\n\t\t\t} else { \n\t\t\t\targs.put(name, new Argument(name, value));\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\trequireMoreArgument(args);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Config() {\n this(System.getProperties());\n\n }", "public MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}", "public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public envio() {\r\n }", "<T> T newInstance(URI description) throws EnvironmentException;", "public\n YutilProperties(String argv[])\n {\n super(new Properties());\n setPropertiesDefaults(argv);\n }", "EnvEntry createEnvEntry();", "EnvVarType createEnvVarType();", "private SystemProperties() {}", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public ExternalEnv(String progName, String version, String client, String cwd,\n\t\t\tString host, String port, String language, String os, String user,\n\t\t\tboolean unicode, Charset currentCharset) {\n\t\tthis.progName = progName;\n\t\tthis.version = version;\n\t\tthis.client = client;\n\t\tthis.cwd = cwd;\n\t\tthis.host = host;\n\t\tthis.port = port;\n\t\tthis.language = language;\n\t\tthis.os = os;\n\t\tthis.user = user;\n\t\tthis.unicode = unicode;\n\t\tthis.currentCharset = currentCharset;\n\t}", "public Factory(BaseProcessingEnvImpl env) {\n _env = env;\n }", "public void create(Environment environment);", "private Launcher(String[] args) {\n\n\t\t// parse commandline parameters\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName();\n\t\tString home = System.getProperty(Jyro.JYRO_HOME, \".\");\n\t\tfor (String arg : args) {\n\n\t\t\thome = arg;\n\t\t}\n\t\tthis.home = new File(home);\n\t\tthis.name = name;\n\t\tlogger.info(Jyro.JYRO_HOME + \"=\" + this.home);\n\t\treturn;\n\t}", "public SingletonApplicationEnvironment(\tClass<?> baseClass,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString applicationName,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSimplTypesScope translationScope,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString args[],\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfloat prefsAssetVersion) throws SIMPLTranslationException\n \t{\n \t\tthis(baseClass, applicationName, null, translationScope, null, args, prefsAssetVersion);\n \t}", "private static ServiceAccount getInstanceByEnvVars() {\n Map<String, String> env = System.getenv();\n String gaasUrl = env.get(GAAS_URL);\n String gaasApiKey = env.get(GAAS_API_KEY);\n if (gaasUrl == null || gaasApiKey == null) {\n return null;\n }\n logger.info(\"A ServiceAccount is created from environment variables: GAAS_URL=\"\n + gaasUrl + \", GAAS_API_KEY=***\");\n return getInstance(gaasUrl, gaasApiKey);\n }", "private void init(String[] args) {\n String provider = \"rackspace-clouddatabases-us\";\n\n String username = args[0];\n String apiKey = args[1];\n \n api = ContextBuilder.newBuilder(provider)\n .credentials(username, apiKey)\n .buildApi(TroveApi.class);\n \n flavorApi = api.getFlavorApiForZone(Constants.ZONE);\n }", "public void setEnvironment(Map<String, String> environment);", "private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}", "public Launcher() {\n this((java.lang.System[]) null);\n Launcher$$init$S();\n }", "void setEnvironment(Properties properties);", "@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}", "public Launcher(final java.lang.System[] $dummy) {\n \n }", "public static void\n initialize(Properties preProperties, Properties postProperties, String[] argv) {\n }", "Properties getEnvironment();", "Properties getEnvironment();", "public SingletonApplicationEnvironment(String applicationName) throws SIMPLTranslationException\n \t{\n \t\tthis(null, applicationName, null);\n \t}", "private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }", "public OMLBase(String oml_app_name) {\n\t\tthis(oml_app_name, System.getenv(\"OML_EXP_ID\").toString(), System\n\t\t\t\t.getenv(\"OML_NAME\").toString(), System.getenv(\"OML_SERVER\")\n\t\t\t\t.toString());\n\t}", "protected void setEnvironment(Map<String, String> env) {\n\t\tthis.environment = env;\n\t}", "protected JamCommand(Build env, String name) {\n super(env, name);\n }", "private CommandLine() {\n\t}", "public JamCommand(Build env) {\n this(env, \"jam\");\n }", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static void main(String[] args) {\n if(args.length == 0) {\n System.out.println(\"Unable to access specific env var, retrieving all env vars\");\n Map<String, String> envValues = getenv();\n for(String s : envValues.keySet()) {\n System.out.println(s + \"=\" + envValues.get(s));\n }\n\n } else {\n\n String envValue = System.getenv(args[0]);\n System.out.println(args[0] + \"=\" + envValue);\n }\n }", "public ApplicationProcess(Map<String, String> progArgs, Map<String,String> sysProps) throws Exception {\n\t\tthis.progArgs = progArgs;\n\t\tthis.sysProps = sysProps;\n\t}", "public void setEnvironmentParams(String[] environmentParams)\r\n\t{\r\n\t\tthis.environmentParams = environmentParams;\r\n\t}", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "public Scriptable construct(Context cx, Scriptable scope, Object[] args);", "private void initialiseByHand() {\n Configuration production = new Configuration(\"api.example.com\", false, 2000);\n Configuration staging = new Configuration(\"api-staging.example.com\", false, 2000);\n Configuration debug = new Configuration(\"api-dev.example.com\", true, 1000);\n Map<String, Configuration> baseVariants = new HashMap<>();\n baseVariants.put(PRODUCTION, production);\n baseVariants.put(STAGING, staging);\n baseVariants.put(DEBUG, debug);\n Neanderthal.initialise(this, baseVariants, PRODUCTION);\n }", "@BeforeClass(alwaysRun = true)\n\t@Parameters(\"Environment\")\n\tpublic void startEnvironment(String sEnv) {\n\t\ttry {\n\t\t\tcs = null;\n\t\t\tal = new AppLib(cs);\n\t\t\tal.setEnvironmentInfo(sEnv);\n\t\t\tproxy = al.getHttpProxy();\n\t\t\tapi = new API();\n\t\t\tapi.setProxy(proxy);\n\t\t\tmydb = al.getMongoDbConnection();\n\t\t\tma = new MemberAPIs();\n\t\t\tmember = new TC01_FindMemberFromDB();\n\t\t\t} catch (Exception e) {\n\t\t\t\tfail(e.toString());\n\t\t\t\t}\n\t}", "interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }", "File prepareEnvironment();", "EnvironmentLoader getEnvironmentLoader();", "public EnvironmentExporter() {\r\n super();\r\n fExporterList = new ArrayList<AbstractExporter>();\r\n fExporterList.add(new GlobalVariableExporter());\r\n fExporterList.add(new DatabaseConfigurationExporter());\r\n fExporterList.add(new WebServiceExporter());\r\n fExporterList.add(new BusinessCalendarExporter());\r\n }", "public native void getenv(java.lang.String key);", "@Override\r\n public void init(String args) {\n String[] arguments = args.split(\" \");\r\n arg = Integer.parseInt(arguments[0]);\r\n //If there is more than one argument then set var to the \r\n //second argument, which is the variable name\r\n if(arguments.length > 1){\r\n this.var = arguments[1];\r\n }\r\n }", "public\n void setProperties(String argv[])\n {\n if (argv == null)\n return;\n\n for (int i = 0; i < argv.length; i++)\n {\n try {\n load(new StringBufferInputStream(argv[i]));\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }\n }", "public DefaultNashRequestImpl(String command, String workingDirectory, Properties environment, String...arguments) {\n\t\tthis.command = command;\n\t\tthis.workingDirectory = workingDirectory;\n\t\tthis.environment.putAll(environment);\n\t\tfor(String arg: arguments) {\n\t\t\tif(arg!=null && !arg.isEmpty()) {\n\t\t\t\tthis.arguments.add(arg);\n\t\t\t}\n\t\t}\n\t}", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "@Override\n public void init(ProcessingEnvironment env) {\n // Not working at the moment.\n // myEnv = env;\n filer = env.getFiler();\n }", "@PostConstruct\n\tprivate void init() {\n\t\ttry {\n\t\t\tif (environment.getProperty(\"marathon.uri\") != null)\n\t\t\t\tmarathonUrl = environment.getProperty(\"marathon.uri\");\n\t\t\tif (environment.getProperty(\"quay.url\") != null)\n\t\t\t\tquayHost = environment.getProperty(\"quay.url\");\n\t\t\t{\n\t\t\t\tint slashslash = quayHost.indexOf(\"//\") + 2;\n\t\t\t\tquayHost = quayHost.substring(slashslash, quayHost.indexOf('/', slashslash));\n\t\t\t\t/*\n\t\t\t\t * URL aURL = new URL(\"quayhost\"); quayhost = aURL.getHost();\n\t\t\t\t */\n\t\t\t}\n\t\t\tif (environment.getProperty(\"chronos.uri.prefix\") != null) {\n\t\t\t\tchronosUrlPrefix = environment.getProperty(\"chronos.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"docker.uri.prefix\") != null) {\n\t\t\t\tdockerUri = environment.getProperty(\"docker.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"websocket.retsapi.server.url\") != null) {\n\t\t\t\twebsocketServerUrl = environment.getProperty(\"websocket.retsapi.server.url\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"tomcat.url\") != null) {\n\t\t\t\ttomcatUri = environment.getProperty(\"tomcat.url\");\n\t\t\t\t// String myString = tomcatUri;\n\t\t\t\t// tomcatUri = myString.replace(\"http://\",\"\").replace(\"http://\n\t\t\t\t// www.\",\"\").replace(\"www.\",\"\");\n\t\t\t\t// int slashslash = tomcatUri.indexOf(\"//\") + 2;\n\t\t\t\t// tomcatUri = tomcatUri.substring(slashslash,\n\t\t\t\t// tomcatUri.indexOf('/', slashslash));\n\t\t\t\t// System.out.println(a);\n\t\t\t}\n\t\t\tif (environment.getProperty(\"nvidia.host\") != null) {\n\t\t\t\tnvidiaHost = environment.getProperty(\"nvidia.host\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"mesos.slave.prefix\") != null) {\n\t\t\t\tmesosSlvaePrefix = environment.getProperty(\"mesos.slave.prefix\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error while reading properties for Marathon\", e);\n\n\t\t}\n\t}", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "public UtilClient(String[] args) \n {\n \n //set reference to args parameter\n this._args = args;\n this._parser = new UtilCmdParser();\n\n \n //set the restart directory\n// String restartdir = System.getProperty(Constants.PROPERTY_RESTART_DIR);\n// if (restartdir == null) \n// {\n// restartdir = System.getProperty(Constants.PROPERTY_USER_HOME);\n// if (restartdir == null)\n// restartdir = System.getProperty(\"user.home\") + File.separator\n// + Constants.RESTARTDIR;\n// }\n// this._restartDir = restartdir + File.separator + Constants.RESTARTDIR;\n// this._loginFile = this._restartDir + File.separator + Constants.LOGINFILE;\n \n \n //set the values of properties\n //this._domainFile = System.getProperty(Constants.PROPERTY_DOMAIN_FILE);\n \n this._domainFilename = System.getProperty(Constants.PROPERTY_DOMAIN_FILE);\n this._userScript = System.getProperty(Constants.PROPERTY_USER_APPLICATION);\n this._userOperation = System.getProperty(Constants.PROPERTY_USER_OPERATION);\n this._queryInterval = System.getProperty(Constants.PROPERTY_QUERY_INTERVAL);\n \n //get the action id based on the operation name\n //this._actionId = ActionTable.toId(this._userOperation);\n this._actionId = ActionTable.toId(this._userOperation);\n \n }", "public ApplicationService(String[] arguments) {\n this.arguments = arguments;\n }", "boolean initializeOrbEnvirement(String args[]){\n\t\t// create and initialize the ORB\n\t\tORB orb = ORB.init(args, null);\n\n\t\ttry {\n\t\t\t// get the root naming context\n\t\t\torg.omg.CORBA.Object objRef;\n\t\t\tobjRef = orb.resolve_initial_references(\"NameService\");\n\t\t\t// Use NamingContextExt instead of NamingContext. This is part of the Interoperable naming Service. \n\t\t\tnamingContextRef = NamingContextExtHelper.narrow(objRef);\n\t\t\treturn true;\n\t\t} catch (InvalidName e) {\n\t\t\tSystem.out.println(\"Failed to resolve NameService!\");\n\t\t\t//e.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void intServerEnv() {\n\t\tServerUtils serverUtils = new ServerUtils();\n\t\tTouchstoneParsers parsers = new TouchstoneParsers();\n\n\t\tString CONFIGFILE = psoResourcePkg + \"/configs/server.properties\";\n\t\tString testConfigFile = ServerUtils.class.getResource(CONFIGFILE).getFile();\n\n\t\tHashMap<String, HashMap<String, String>> configPropsMap = parsers.readPropsFile(new File(testConfigFile));\n\t\thostIP = (configPropsMap.get(\"URL_PARAMS\").get(\"LOCAL_ENV\").equalsIgnoreCase(\"yes\") ? \"localhost\" : serverUtils.getHostIp());\n\n\t\t// JDBC driver name and database URL\n\t\tJDBC_DRIVER=\"com.mysql.jdbc.Driver\";\n\t\tDB_URL=\"jdbc:mysql://\" + hostIP + \"/psotest\";\n\n\t\t// Database credentials\n\t\tUSERID = configPropsMap.get(\"SERVER_ENV\").get(\"USERID\");\n\t\tPASSWORD = configPropsMap.get(\"SERVER_ENV\").get(\"PASSWORD\");\n\n\t\t// Database tables:\n\t\tCLICKS_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"CLICKS_TABLE\");\n\t\tBEACON_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"BEACON_TABLE\");\n\n\t}", "public Builder fromEnvironment(Configuration globalConfiguration) {\n\t\t\tString krb5Config = System.getProperty(JAVA_SECURITY_KRB5_CONF);\r\n\t\t\tif(krb5Config != null && krb5Config.length() != 0) {\r\n\t\t\t\tkrb5ConfPath = new File(krb5Config);\r\n\t\t\t\tif(!krb5ConfPath.exists()) {\r\n\t\t\t\t\tthrow new IllegalStateException(\"java.security.krb5.conf refers to a non-existent file\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// FUTURE: check the well-known paths\r\n\t\t\t// - $JAVA_HOME/lib/security\r\n\t\t\t// - %WINDIR%\\krb5.ini (Windows)\r\n\t\t\t// - /etc/krb5.conf (Linux)\r\n\r\n\t\t\treturn this;\r\n\t\t}", "public SSLService(Environment environment) {\n this.env = environment;\n this.settings = env.settings();\n this.diagnoseTrustExceptions = DIAGNOSE_TRUST_EXCEPTIONS_SETTING.get(environment.settings());\n this.sslConfigurations = new HashMap<>();\n this.sslContexts = loadSSLConfigurations();\n }", "String getEnvironment();", "public BasicEnvironment(Predator predator_, Prey prey_) {\n\t\tthis(new ArrayList<Predator>(Arrays.asList(predator_)), prey_);\n\t}", "public static NashRequest newInstance(String command, String workingDirectory, Properties environment, String...arguments) {\n\t\treturn new DefaultNashRequestImpl(command, workingDirectory, environment, arguments);\n\t}", "private void loadEnvironment(String filename){\n // Code here to read from the file and set up the environment\n try (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n String line;\n while((line = br.readLine()) != null) {\n String[] values = line.split(\",\");\n String type = values[0].replaceAll(\"[^a-zA-Z0-9]\", \"\"); // remove special characters\n double x = Double.parseDouble(values[1]);\n double y = Double.parseDouble(values[2]);\n switch (type) {\n case \"Zombie\":\n Zombie zombie = new Zombie(x, y);\n this.zombies.put(zombie.getPosition(), zombie);\n break;\n case \"Sandwich\":\n Sandwich sandwich = new Sandwich(x, y);\n this.sandwiches.put(sandwich.getPosition(), sandwich);\n break;\n case \"Player\":\n this.player = new Player(x, y, Integer.parseInt(values[3]));\n break;\n case \"Treasure\":\n this.treasure = new Treasure(x, y);\n break;\n default:\n throw new BagelError(\"Unknown type: \" + type);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private static Map<String,String> getEnvVars() {\n return new TreeMap<>(System.getenv());\n }", "public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}", "public MySQLEnvironment() throws GuacamoleException {\n\n // Init underlying JDBC environment\n super();\n\n }", "Reproducible newInstance();", "public void setEnvironment(String environment1) {\n this.environment = environment1;\n }", "private void initJMeter() {\n\n JMeterUtils.setJMeterHome(PropertiesUtil.getBaseDir());\n JMeterUtils.loadJMeterProperties(PropertiesUtil.getJMeterPropertiesFile());\n JMeterUtils.initLogging();// you can comment this line out to see extra log messages of i.e. DEBUG level\n JMeterUtils.initLocale();\n userDefinedArguments = (Arguments) new ArgumentsPanel().createTestElement();\n }", "public ApplicationDefinitionProperties() {\n }", "public Map<String, String> getEnvironment();", "@Before\n public void initValidString() {\n appStateParcel = new AppStateParcel();\n sessionParcel = new SessionParcel();\n evaluationParcel = new EvaluationParcel();\n appStateParcel.setAppMode(AppStateParcel.NORMAL_MODE);\n appStateParcel.setUserType(AppStateParcel.TEACHER);\n appStateParcel.setUserId(\"1\");\n appStateParcel.setToken(TOKEN);\n }", "public static void setup(String[] args) {\n\t\tif (parametersContains(\"classpath\", args)) {\r\n\t\t\tRESOURCE_TYPE = RessourceType.CLASSPATH;\r\n\t\t\tCobra2DEngine.setupEnvironment(RESOURCE_TYPE);\r\n\t\t\tROOT_PATH_STR = \"./src/main/resources/\";\r\n\t\t} else if (parametersContains(\"currentDir\", args)) {\r\n\t\t\tRESOURCE_TYPE = RessourceType.INSTALL_DIR;\r\n\t\t\tCobra2DEngine.setupEnvironment(RESOURCE_TYPE);\r\n\t\t\tROOT_PATH_STR = \".\";\r\n\t\t} else {\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"Start this runtime environment with option -classpath to load all resources from your classpath or with -currentDir to load all resources from current directory ./game-resources/.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\r\n\t\tROOT_PATH = new File(ROOT_PATH_STR);\r\n\t\tRESOURCE_PATH = new File(ROOT_PATH_STR + File.separator\r\n\t\t\t\t+ RESOURCE_PATH_STR);\r\n\t\tIMAGE_RESOURCE_PATH = new File(ROOT_PATH_STR + File.separator\r\n\t\t\t\t+ RESOURCE_PATH_STR + File.separator + IMAGE_FOLDER_STR);\r\n\r\n\t\tlog.info(\"Setting up path settings for runtime.\");\r\n\t\tlog.info(\"Resource loading strategy : \" + RESOURCE_TYPE);\r\n\t\tlog.info(\"Root path (path): \" + ROOT_PATH.getPath());\r\n\t\tlog.info(\"Root path (absolute): \"\r\n\t\t\t\t+ ROOT_PATH.getAbsolutePath());\r\n\t\tlog.info(\"Resource path (path): \" + RESOURCE_PATH.getPath());\r\n\t\tlog.info(\"Resource path (absolute): \"\r\n\t\t\t\t+ RESOURCE_PATH.getAbsolutePath());\r\n\t\tlog.info(\"Image resource path (path): \"\r\n\t\t\t\t+ IMAGE_RESOURCE_PATH.getPath());\r\n\t\tlog.info(\"Image resource path (absolute): \"\r\n\t\t\t\t+ IMAGE_RESOURCE_PATH.getAbsolutePath());\r\n\t}", "private SystemPropertiesRemoteSettings() {}", "Ec2RunnerBuilder( InputStream in ) throws IOException {\n props.load( in );\n extractValues();\n\n if ( props.containsKey( SERVLET_TEMP_DIR ) ) {\n props.setProperty( Runner.RUNNER_TEMP_DIR_KEY, props.getProperty( SERVLET_TEMP_DIR ) );\n }\n }", "private Shell() { }", "private SysUtils(){}", "@PostConstruct\n public void init() {\n hasLength(env.getProperty(\"grouperClient.webService.url\"),\n \"property 'grouperClient.webService.url' is required\");\n hasLength(env.getProperty(\"grouperClient.webService.login\"),\n \"property 'grouperClient.webService.login' is required\");\n hasLength(env.getProperty(\"grouperClient.webService.password\"),\n \"property 'grouperClient.webService.password' is required\");\n }", "public EnvironmentPanelTest()\n {\n }", "public interface Environment {\n\tpublic Object resolveVariable(String name);\n\tpublic List<String> getRegisteredVariableNames();\n}", "private OspfConfigUtil() {\n\n }", "private Globals(){}", "public KeyVaultProperties() {\n }", "private JacobUtils() {}", "@Inject\n public Crypto(NinjaProperties ninjaProperties) {\n this.applicationSecret = ninjaProperties\n .getOrDie(NinjaConstant.applicationSecret);\n\n }", "protected BaseDriver(Class<T> clazz,InputStream in) {\r\n LOGGER = Logger.getLogger(clazz.getName()); // Need name with classpath\r\n final String appName = clazz.getSimpleName();\r\n \r\n // Load Application specific properties in a tempory properties map\r\n final Path propertiesFile = HOME_PROPERTIES_DIR.resolve(appName+\".properties\");\r\n final Properties properties = new Properties();\r\n try (InputStream is = Files.newInputStream(propertiesFile)) {\r\n // Implementation of Properties.load does not gain benefit from a BufferedInputStream.\r\n properties.load(is);\r\n LOGGER.log(Level.INFO, \"Loaded \\\"{0}\\\"\",new String [] { propertiesFile.toString()});\r\n } catch (IOException ex) {\r\n LOGGER.log(Level.WARNING, \"Could not load \\\"{0}\\\" ({1}); trying to ignore ...\", new String [] { propertiesFile.toString(), ex.getMessage()});\r\n }\r\n \r\n PROPERTIES = new HashMap<>(BASE_PROPERTIES.size());\r\n \r\n // Copy BASE_PROPERTIES over in the PROPERTIES Map\r\n BASE_PROPERTIES.forEach((k,v)->PROPERTIES.put((String)k, (String)v));\r\n \r\n // Copy Application Properties over in the PROPERTIES Map (overwriting as encountered).\r\n properties.forEach((k,v)->PROPERTIES.put((String)k, (String)v));\r\n \r\n // Copy command-line defines (-Dxxxx=yyy) over in the PROPERTIES Map (overwriting as encountered).\r\n System.getProperties().forEach((k,v)->PROPERTIES.put((String)k, (String)v));\r\n \r\n // Override from in\r\n if (in != null) {\r\n Properties p = new Properties();\r\n try {\r\n p.load(in);\r\n p.forEach((k,v)->PROPERTIES.put((String)k, (String)v));\r\n } catch (IOException ex) {\r\n LOGGER.log(Level.WARNING, \"Could not load properties from Input ...\", new String [] { propertiesFile.toString(), ex.getMessage()});\r\n }\r\n }\r\n\r\n // Boilerplate Spark Initialization\r\n CONF = new SparkConf().setAppName(appName);\r\n if (!CONF.getOption(\"spark.master\").isDefined()) {\r\n // If no Spark master set, then assume this will be a local run\r\n // This will even work for remote execution.\r\n CONF.setMaster(PROPERTIES.getOrDefault(\"spark.master.default\", \"local[5]\"));\r\n }\r\n JAVA_SPARK_CONTEXT = new JavaSparkContext(CONF);\r\n SPARK_CONTEXT = JAVA_SPARK_CONTEXT.sc();\r\n }", "public TestBase() {\n try {\n properties = new Properties();\n FileInputStream fileInputStream = new FileInputStream(\"F:/LearningStuff/PracticalWork\" +\n \"/Frameworks/DataDrivenFrameworkSelenium/src/main/resources/config/config.properties\");\n properties.load(fileInputStream);\n } catch (FileNotFoundException f) {\n f.printStackTrace();\n } catch (IOException i) {\n i.printStackTrace();\n }\n }", "private DomainManagerLauncher() {\n }", "public static void setEnv() throws IOException {\n\t\tBuildURL.propReader = new PropertyReader(App.getResourcesFilePath() + FileSystems.getDefault().getSeparator() + App.getConfigFileRoot() + \"configuration.properties\");\n\t\tBuildURL.baseURL = propReader.readValue(\"baseURL\");\n\t\tBuildURL.domain = propReader.readValue(\"domain\");\n\t\tBuildURL.project = propReader.readValue(\"project\");\n\n\t\tif(propReader.readValue(\"login_form_required\").equalsIgnoreCase(\"Y\")){\n\t\t\tlogin_required_string = \"?login-form-required=y\";\n\t\t}else{\n\t\t\tlogin_required_string = \"\";\n\t\t}\n\t}", "private static Map<String, Environment> getEnvironments() {\n Map<String, Environment> environmentMap = new HashMap<String, Environment>();\n Environment prodEnv = new Environment();\n prodEnv.setName(PROD_1);\n prodEnv.setPassword(PROD_1_PASSWORD);\n\n Environment sandBoxEnv = new Environment();\n sandBoxEnv.setName(SND_1);\n sandBoxEnv.setPassword(SND_1_PASSWORD);\n\n environmentMap.put(PROD_1, prodEnv);\n environmentMap.put(SND_1, sandBoxEnv);\n return environmentMap;\n }", "public void init(Map<String, String> pParams, Application pApp) throws Exception;", "@BeforeClass\n public static void init() throws Exception {\n System.setProperty(\"instanceUri\", STANDALONE.getClass().getMethod(\"getBaseURI\").invoke(STANDALONE).toString());\n }", "DDTestBase() {\r\n\t\t//TODO Change to get APP_BASE_DIR from properties? (currently passed in as JVM arg)\r\n\t super(APP_NAME, APP_BASE_DIR);\r\n\t setup();\r\n }", "boolean initialise (String args);" ]
[ "0.64366186", "0.6417384", "0.6417384", "0.6398671", "0.6312242", "0.62991303", "0.6205875", "0.6203328", "0.5985929", "0.5954193", "0.5894966", "0.58711386", "0.58709645", "0.5841044", "0.58334506", "0.5782192", "0.5777433", "0.57757646", "0.5761013", "0.5744711", "0.5700839", "0.5693922", "0.5682084", "0.56593573", "0.56495875", "0.5635152", "0.561955", "0.56107104", "0.56006503", "0.55953175", "0.55231076", "0.55231076", "0.54996", "0.54146147", "0.5405631", "0.5399946", "0.5349636", "0.53404045", "0.53399956", "0.5295429", "0.5280301", "0.52660644", "0.526564", "0.5256296", "0.52536553", "0.52526593", "0.5226324", "0.52142704", "0.5206898", "0.5201985", "0.518557", "0.5180535", "0.5174492", "0.5168007", "0.5166082", "0.5163304", "0.51509494", "0.51458615", "0.514326", "0.513964", "0.51383185", "0.5128288", "0.51215863", "0.511701", "0.5100301", "0.5090371", "0.50819623", "0.50816107", "0.5078944", "0.5078392", "0.5069227", "0.50677395", "0.50603795", "0.5052517", "0.5050307", "0.50411916", "0.50408405", "0.5039912", "0.5037465", "0.50330216", "0.50283664", "0.50275254", "0.5026348", "0.50245357", "0.5012254", "0.50111943", "0.50036603", "0.500278", "0.50020015", "0.50014395", "0.5001057", "0.4997817", "0.49933025", "0.49867085", "0.4986528", "0.49739626", "0.49602127", "0.4959966", "0.49580705", "0.49578753" ]
0.59334916
10
Creates a client for the auction's auction account
public Client auctionClient(Auction auction, PrivateKey operatorKey) throws Exception { Client newClient = clientForNetwork(this.network); newClient.setOperator(AccountId.fromString(auction.getAuctionaccountid()), operatorKey); return newClient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Client createNewClient(Client client);", "Client addClient(Client client) throws BaseException;", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public Client create(Client created);", "public void createAuctionTest(){\n\t\tAuction auc = new Auction(new User(),\"Test Auction Description\",1000l);\n\n\t}", "public void createClient() {\n FarmersBaseClient client = new FarmBeatsClientBuilder()\n .endpoint(\"https://<farmbeats resource name>.farmbeats-dogfood.azure.net\")\n .credential(new DefaultAzureCredentialBuilder().build())\n .buildFarmersBaseClient();\n }", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "@Override\n public Client createClient(Client client)\n throws RemoteException {\n client=clientManager.create(client);\n \n return client;\n }", "@Test\n @Order(1)\n void create_client() {\n client = new Client();\n client.setName(\"Test Client\");\n Client c = service.createClient(client);\n Assertions.assertEquals(client.getName(), c.getName());\n Assertions.assertNotEquals(0, c.getId());\n client = c;\n }", "private void createClient() {\n tc = new TestClient();\n }", "public void createClientFromCredential() {\n WebPubSubServiceAsyncClient serverClient = new WebPubSubServiceClientBuilder()\n .connectionString(\"<connection-string>\")\n .hub(\"<hub>>\")\n .buildAsyncClient();\n\n // wrap WebPubSubServiceAsyncClient.getClientAccessToken as WebPubSubClientCredential\n WebPubSubClientCredential clientCredential = new WebPubSubClientCredential(Mono.defer(() ->\n serverClient.getClientAccessToken(new GetClientAccessTokenOptions()\n .setUserId(\"<user-name>\")\n .addRole(\"webpubsub.joinLeaveGroup\")\n .addRole(\"webpubsub.sendToGroup\"))\n .map(WebPubSubClientAccessToken::getUrl)));\n\n // create WebPubSub client\n WebPubSubClient client = new WebPubSubClientBuilder()\n .credential(clientCredential)\n .buildClient();\n // END: readme-sample-createClientFromCredential\n }", "public void addClient() {\n String name = getToken(\"Enter client company: \");\n String address = getToken(\"Enter address: \");\n String phone = getToken(\"Enter phone: \");\n Client result;\n result = warehouse.addClient(name, address, phone);\n if (result == null) {\n System.out.println(\"Client could not be added.\");\n }\n System.out.println(result);\n }", "private Client createClient() {\n\t\tClient client = null;\n\t\tvar clientsList = clientDAO.getClients();\n\t\tvar name = txtName.getText();\n\t\tvar surnames = txtSurnames.getText();\n\t\tvar dni = txtDni.getText();\n\t\tvar telephone = txtTelephone.getText();\n\n\t\tif (txtDni.getText().isBlank() || txtName.getText().isBlank() || txtSurnames.getText().isBlank()\n\t\t\t\t|| txtTelephone.getText().isBlank()) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Error, los campos no pueden estar vacios, ni contener solo espacios\",\n\t\t\t\t\t\"Warning!\", JOptionPane.ERROR_MESSAGE);\n\t\t} else {\n\t\t\t// Comprobar si el cliente ya existe\n\t\t\tvar exist = false;\n\t\t\tfor (int i = 0; i < clientsList.size(); ++i) {\n\t\t\t\tif (dni.equalsIgnoreCase(clientsList.get(i).getDni())) {\n\t\t\t\t\texist = true;\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Error, ya existe el DNI introducido\", \"Warning!\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!exist) {\n\t\t\t\tclient = new Client(dni, name, surnames, telephone);\n\t\t\t}\n\t\t}\n\n\t\treturn client;\n\t}", "@RequestMapping(value = \"/createClient\", method = RequestMethod.GET)\n public @ResponseBody CreatorClient createClient(){\n return creatorService.createClient(null);\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "public TestingClient(int clientID, int auctionsPerMin, long auctionDuration, int updateIntervalSec, int bidsPerMin) {\n\t\tthis.clientID = clientID;\n\t\tthis.auctionsPerMin = auctionsPerMin;\n\t\tthis.auctionDuration = auctionDuration;\n\t\tthis.updateIntervalSec = updateIntervalSec;\n\t\tthis.bidsPerMin = bidsPerMin;\n\t\t//this.tcp = new TCPConnector(1234,tcc,new Client(\"localhost\",1234,4321));\n\n\n\t}", "WithCreate withClientTenantId(String clientTenantId);", "@RequestMapping(value = \"/createClient/{moduleId}\", method = RequestMethod.GET)\n public @ResponseBody CreatorClient createClient(@PathVariable String moduleId){\n return creatorService.createClient(moduleId, null);\n }", "private static Client createDummyClient() {\n\n PhoneNumber num1 = new PhoneNumber(\"Arnold Schubert\",\"0151234567\", \"Ehemann\");\n PhoneNumber num2 = new PhoneNumber(\"Helene Schubert\",\"0171234567\", \"Tochter\");\n ArrayList<PhoneNumber> phoneNumbers1 = new ArrayList<>();\n phoneNumbers1.add(num1);\n phoneNumbers1.add(num2);\n DummyVitalValues vital1 = new DummyVitalValues();\n\n ArrayList<Integer> pictograms1 = new ArrayList<>();\n\n DummyClientMedicine medicine1 = new DummyClientMedicine(DummyMedicine.ITEMS_PRESCRIBED_Erna, DummyMedicine.ITEMS_TEMPORARY, DummyMedicine.ITEMS_SELF_ORDERED);\n\n Client c = new Client(0,R.drawable.erna, \"Erna\",\"Schubert\",\"17.08.1943\",medicine1,DummyNotes.ITEMS_Erna, DummyFixedNotes.ITEMS_Erna, DummyToDos.ITEMS_Erna, vital1.vitalValues, \"Diabetes mellitus, Adipositas, Schilddrüsenunterfuntion\",1,\"Blankenfelder Str. 82, 13127 Berlin\",phoneNumbers1, pictograms1);\n\n return c;\n }", "public void create(Client client) {\n\n try {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.CREATE));\n super.saveOrUpdate(client);\n updateObservers(StringRessources.MSG_CLIENT_SUCCES);\n updateObservers(client);\n } catch (AccessControlException e) {\n e.printStackTrace();\n updateObservers(StringRessources.MSG_PRIVILEGES);\n }\n } catch (DataAccessLayerException e) {\n updateObservers(StringRessources.MSG_CLIENT_ERREUR);\n } catch (Exception e) {\n updateObservers(StringRessources.MSG_CLIENT_ERREUR);\n }\n }", "public void createClient(int id, String nume, String prenume, int idPetShop) {\n\t\tif (petShopOperations.checkPetShop(idPetShop) == false)\n\t\t\tSystem.out.println(\"PetShop not found.\");\n\n\t\tClient clientToAdd = new Client(id, nume, prenume, idPetShop);\n\t\tSystem.out.println(\"Before adding...\");\n\t\tList<Client> list = clientOperations.getAllClienti();\n\t\tclientOperations.addClient(clientToAdd);\n\t\tSystem.out.println(\"After adding...\");\n\t\tclientOperations.printListOfClienti(list);\n\t}", "UUID clientId();", "@Test\n public void createBaasClientUsingPostTest() throws ApiException {\n CreateBaasClientCO baasClientCO = null;\n BaasClientVO response = api.createBaasClientUsingPost(baasClientCO);\n\n // TODO: test validations\n }", "public void createClient() {\n client = new UdpClient(Util.semIp, Util.semPort, this);\n\n // Le paso true porque quiero que lo haga en un hilo nuevo\n client.connect(true);\n }", "String insertClientAccount(ClientAccount account) throws ServiceException;", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "private Client buildClient() {\n\t\tClient client = new Client();\n\t\tclient.setName(clientNameTextBox.getValue());\n\t\tclient.setAddress(clientAddressTextBox.getValue());\n\t\tclient.setTelephone(clientTelephoneTextBox.getValue());\n\t\treturn client;\n\t}", "public static Client createNewClient(Client client, TransactionType transactionType) {\r\n\t\tdbConnect();\r\n\t\tPreparedStatement stmt = null;\r\n\t\tfinal String INSERT_NEW_CLIENT;\r\n\t\tif (transactionType == TransactionType.PURCHASE)\r\n\t\t\tINSERT_NEW_CLIENT = \"INSERT INTO purchase_client (purchase_client_id, name, address, telephone)\";\r\n\t\telse\r\n\t\t\tINSERT_NEW_CLIENT = \"INSERT INTO sales_client (sales_client_id, name, address, telephone)\";\r\n\r\n\t\ttry {\r\n\t\t\tstmt = conn.prepareStatement(INSERT_NEW_CLIENT + \"VALUES (\" + client.getClientId() + \",\" + client.getName()\r\n\t\t\t\t\t+ \",\" + client.getAddress() + \",\" + client.getTelephone() + \")\");\r\n\t\t\tstmt.execute();\r\n\t\t\tstmt.close();\r\n\t\t\t// Get latest entry from client table\r\n\t\t\treturn latestEntryFromClient(TransactionType.PURCHASE);\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createClient(final ClientRepresentation rep) {\n ValidationMessages validationMessages = new ValidationMessages();\n if (!ClientValidator.validate(rep, validationMessages) || !pairwiseClientValidator.validate(rep, validationMessages)) {\n Properties messages = adminRoot.getMessages(realm, Locale.getDefault().getLanguage());\n throw new ErrorResponseException(\n validationMessages.getStringMessages(),\n validationMessages.getStringMessages(messages),\n Response.Status.BAD_REQUEST\n );\n }\n\n try {\n ClientModel clientModel = clientManager.createClient(realm, rep, true);\n\n if (TRUE.equals(rep.isServiceAccountsEnabled())) {\n UserModel serviceAccount = session.users().getServiceAccount(clientModel);\n\n if (serviceAccount == null) {\n new ClientManager(new RealmFacadeImpl()).enableServiceAccount(clientModel);\n }\n }\n\n if (TRUE.equals(rep.getAuthorizationServicesEnabled())) {\n AuthorizationService authorizationService = getAuthorizationService(clientModel);\n\n authorizationService.enable(true);\n\n ResourceServerRepresentation authorizationSettings = rep.getAuthorizationSettings();\n\n if (authorizationSettings != null) {\n authorizationService.resourceServer().importSettings(authorizationSettings);\n }\n }\n\n clientValidationUtil.validate(clientModel, true, c -> {\n session.getTransactionManager().setRollbackOnly();\n throw new ErrorResponseException(Errors.INVALID_INPUT, c.getError(), Response.Status.BAD_REQUEST);\n });\n\n return Response.created(session.getContext().getUri().getAbsolutePathBuilder().path(clientModel.getId()).build()).build();\n } catch (ModelDuplicateException e) {\n return ErrorResponse.exists(\"Client \" + rep.getClientId() + \" already exists\");\n }\n }", "public void makeClient() {\n try {\n clienteFacade.create(cliente);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cliente creado exitosamente\", null));\n } catch (Exception e) {\n System.err.println(\"Error en la creacion del usuario: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }", "Client getClient(int id) throws ClientNotFoundException;", "ClientAccount getInitializedClientAccountById(Integer clientAccountId) throws ServiceException;", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "public void createNewClient(String nom, String prenom, String tel, String mail, String adresse) throws SQLException {\n\t\tint tmp = getLastClientId();\n\t\tSystem.out.println(tmp);\n\t\tif(tmp != 0) {\n\t\t\t//voir generated keys pour l'id\n\t\t\tClient tmpClient = new Client(tmp, nom, prenom, tel, mail, adresse);\n\t\t\tClient tmp2 = create(tmpClient);\n\t\t\tSystem.out.println(tmp2.getLogin());\n\t\t\tSystem.out.println(\"Succès lors de la création de l'utilisateur\");\n\t\t}else\n\t\t\tSystem.out.println(\"Erreur lors de la création de l'utilisateur\");\n\t}", "public void createClient(String nam, String surnam, String id, String direction, String phone, String obs, int number) {\n\t\ttry {\n\t\t\trestaurant.addClient(nam, surnam, id, direction, phone, obs, number);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n void create(Cliente cliente);", "public ClientEditPage createNewClient() throws Exception {\n if (isNotAt()) {\n goTo();\n }\n newClientButton.click();\n Thread.sleep(Browser.getDelayAfterNewItemClick());\n return Pages.getClientEditPage();\n }", "public void clientId(UUID clientId) {\n this.clientId = clientId;\n }", "public Client(Client client) {\n\n }", "public Client getClient(String username) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n Client client = dbb.getClient(username);\n dbb.commit();\n dbb.closeConnection();\n return client;\n }", "private static void createCouchbaseClient() {\n LOGGER.debug(\"Creating Couchbase Client\");\n String bucket = CONFIG.getString(\"couchbase.bucket\");\n String[] hosts = CONFIG.getString(\"couchbase.host\").split(\";\");\n String port = CONFIG.getString(\"couchbase.port\");\n String base = CONFIG.getString(\"couchbase.base\");\n\n List<URI> uris = new ArrayList<>();\n for (final String host : hosts) {\n uris.add(URI.create(\"http://\" + host + \":\" + port + \"/\" + base));\n }\n try {\n tapClient = new TapClient(uris, bucket, \"\");\n } catch (Exception ex) {\n LOGGER.error(\"Caught exception trying to connect to Couchbase\", ex);\n }\n }", "@Override\n\tpublic void createClient(Client c) throws BeanAlreadyExistException {\n\t\t\n\t}", "@RequestMapping(value=\"/client\", method = RequestMethod.POST) \n\tpublic void saveClient(@RequestBody OauthClientDetails client) {\n\t\tlogger.debug(\"Add a new client: {}\", client.getClientId());\n\t\tauthService.saveClient(client);\n\t}", "public Client(String name, String emailAddress) {\n\t\tsuper();\n\t\tthis.name = name;\n\t\tthis.emailAddress = emailAddress;\n\t\thotelRoom = 0;\n\t}", "Client findClientById(Long id) throws BaseException;", "protected void createClient(MqttCallback callback) {\n\t\tLoggerUtility.info(CLASS_NAME, \"createClient\", \"Org ID = \" + getOrgId() +\n\t\t\t\t\"\\n Client ID = \" + clientId);\n\t\tthis.mqttAsyncClient = null;\n\t\tthis.mqttClientOptions = new MqttConnectOptions();\n\t\tthis.mqttCallback = callback;\n\t}", "Client findClientById(int clientId) throws ClientNotFoundException;", "@SuppressWarnings(\"unchecked\")\n @RequestMapping(value = \"/myClient/{username}/{moduleId}\", method = RequestMethod.POST)\n public @ResponseBody CreatorClient createClient(@RequestBody String body, @PathVariable String username, @PathVariable String moduleId){\n Map<String, String> data = (Map<String, String>) parseJsonToMap(body);\n return creatorService.createClient(username, data.get(\"password\"), moduleId, data);\n }", "private SubscriptionAdminClient createSubscriptionClient() throws IOException {\n if (useEmulator) {\n SubscriptionAdminSettings adminSettings = SubscriptionAdminSettings.newBuilder()\n .setCredentialsProvider(pubsubCredsProvider)\n .setTransportChannelProvider(channelProvider)\n .build();\n return SubscriptionAdminClient.create(adminSettings);\n } else {\n return SubscriptionAdminClient.create(); // todo arz shutdown listener\n }\n }", "@Test\n @Order(4)\n void create_account_2() {\n Account empty = service.createAccount(client.getId());\n Assertions.assertEquals(client.getId(), empty.getClientId());\n Assertions.assertNotEquals(-1, empty.getId());\n Assertions.assertEquals(0, empty.getAmount());\n client.addAccount(empty);\n }", "public void createClient(User user){\n //but first we hash the password for security purposes.\n BCryptPasswordEncoder encoder= new BCryptPasswordEncoder();\n user.setPassword(encoder.encode(user.getPassword()));\n //creating roles\n Role userRole = new Role(\"CLIENT\");//we create a role type client\n //a user can then take a list of roles\n List<Role> roles = new ArrayList<>();//list of roles\n roles.add(userRole);//add client role type to the list\n user.setRoles(roles);//set a user to a role type\n userRepository.save(user);//save the user to the database.\n }", "@Bean(name = \"stormpathClient\")\n @Autowired\n public Client getStormpathClient(BridgeConfig bridgeConfig) {\n ApiKey apiKey = ApiKeys.builder()\n .setId(bridgeConfig.getStormpathId().trim())\n .setSecret(bridgeConfig.getStormpathSecret().trim()).build();\n \n ClientBuilder clientBuilder = Clients.builder().setApiKey(apiKey);\n ((DefaultClientBuilder)clientBuilder).setBaseUrl(bridgeConfig.getStormpathBaseUrl());\n return clientBuilder.build(); \n }", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "public Auction createAuction(Auction auction) throws AuctionPersistenceException {\r\n auctions.add(auction);\r\n return auction;\r\n }", "public void addClient(ClientBean client){\r\n\t\tlog.info(\"Endpoint call: operation.addClient\" );\r\n\t\t// 3 Creiamo un'istanza di ClientDao e su questa chiamiamo il servizio creato al passo 2\r\n\t}", "private static IDiscordClient createClient(String token, boolean login) {\n ClientBuilder clientBuilder = new ClientBuilder(); // Creates the ClientBuilder instance\r\n clientBuilder.withToken(token); // Adds the login info to the builder\r\n try {\r\n if (login) {\r\n return clientBuilder.login(); // Creates the client instance and logs the client in\r\n } else {\r\n return clientBuilder.build(); // Creates the client instance but it doesn't log the client in yet, you would have to call client.login() yourself\r\n }\r\n } catch (DiscordException e) { // This is thrown if there was a problem building the client\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "public void createClient(String ip, String client, String password) {\n\t\tthis.password = password;\n\t\ttry {\n\t\t\tMqttClient tmpClient = new MqttClient(ip, client, null);\n\t\t\tif (mqttClient == null || (!mqttClient.getClientId().equals(tmpClient.getClientId()) && client != null)\n\t\t\t\t\t|| !mqttClient.getServerURI().equals(tmpClient.getServerURI())) {\n\t\t\t\tmqttClient = tmpClient;\n\t\t\t}\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ClientSecretCredential(IdentityClientOptions identityClientOptions) {\n identityClient = new IdentityClient(identityClientOptions);\n }", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "public static Client getClient(int clientId, TransactionType transactionType) {\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tfinal String GET_CLIENT;\r\n\t\tif (transactionType == TransactionType.PURCHASE) {\r\n\t\t\tGET_CLIENT = \"SELECT * FROM purchase_client WHERE purchase_client_id = \" + clientId;\r\n\t\t} else {\r\n\t\t\tGET_CLIENT = \"SELECT * FROM sales_client WHERE sales_client_id = \" + clientId;\r\n\t\t}\r\n\t\tClient client = null;\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(GET_CLIENT);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tclient = new Client(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn client;\r\n\t}", "@GET\n @Path(\"/add\")\n @Produces(\"application/json\")\n public Response add() {\n Session session = DBConnectionManager.getSession();\n session.beginTransaction();\n\n Client client = new Client();\n client.setFirstname(\"asdasdasdas d asd asd asd\");\n\n //Save the client in database\n session.save(client);\n\n //Commit the transaction\n session.getTransaction().commit();\n DBConnectionManager.closeConnection();\n\n return Response.ok(client, MediaType.APPLICATION_JSON).build();\n }", "DatabaseClient newFinalClient();", "public Client buscarClientePorId(String id){\n Client client = new Client();\n \n // Faltaaaa\n \n \n \n \n \n return client;\n }", "@org.testng.annotations.Test\n public void test_create_client_with_fullName() {\n Client client = new Client(\"Denis\", \"Denise\");\n Assert.assertEquals(\"Denis\", client.getNom());\n Assert.assertEquals(\"Denise\", client.getPrenom());\n Assert.assertEquals( Datutil.dateDuJour(), client.getDateInscription());\n Assert.assertEquals(Datutil.addDate(Datutil.dateDuJour(), 365), client.getDateCotisation());\n Assert.assertNotNull(client.getLesEmprunts());\n }", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/myClient/{username}\", method = RequestMethod.POST)\n public @ResponseBody CreatorClient createClientUser(@RequestBody String body, @PathVariable String username){\n Map<String, String> data = (Map<String, String>) parseJsonToMap(body);\n return creatorService.createClient(username, data.get(\"password\"), data);\n }", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "ClientAccount getClientAccountById(Integer clientAccountId) throws ServiceException;", "public static Books setUpClient() {\n return new Books.Builder(AndroidHttp.newCompatibleTransport()\n , jsonFactory, null)\n .setApplicationName(APPLICATION_NAME)\n .setGoogleClientRequestInitializer(new BooksRequestInitializer(APIKEY))\n .build();\n }", "public Client() {}", "private void createClient() throws NFFGClientException {\n\t\ttry {\n\t\t\ttestNFFGClient = NFFGClientFactory.newInstance().newNFFGClient();\n\t\t} catch (FactoryConfigurationError fce) {\n\t\t\tfce.printStackTrace();\n\t\t}\n\t\tassertNotNull(\"The implementation under test generated a null NFFGClient\", testNFFGClient);\n\t}", "@Override\r\n\tpublic void addclient(Client client) {\n\t\t\r\n\t}", "public void createClient(ClientView clientView, int tcpPort, int udpPort, String tcpIPAddress, String clientID) {\n Client client = new Client(clientView, tcpPort, udpPort, tcpIPAddress, udpIPAddress, clientID);\n }", "public Client() {\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "Account create();", "@Override\r\n\tpublic Client addClient(Client c) {\n\t\treturn dao.addClient(c);\r\n\t}", "@Override\r\n\tpublic Client consulterClient(Long codeClient) {\n\t\treturn dao.consulterClient(codeClient);\r\n\t}", "public void approveClient(Client client) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n client.setForbidden(false);\n dbb.overwriteClient(client);\n dbb.commit();\n dbb.closeConnection();\n }", "public CoARadiusClient(RadiusEndpoint client) {\n\t\tsuper(client);\n\t\t// TODO Auto-generated constructor stub\n\t}", "public static AscendClient init(AscendConfig config) {\n LOGGER.debug(\"Initializing Ascend Client.\");\n AscendParticipant participant = AscendParticipant.builder().build();\n return AscendClientFactory.createClient(config, participant);\n }", "EventHubManagementClient withSubscriptionId(String subscriptionId);", "public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }", "public Client getClient() {\n\t\tcheckInit();\n\t\tfinal Client cli = tenant.getContext().getBean(Client.class);\n\t\tif (cli.getEventMapper()==null) {\n\t\t\tcli.setEventMapper(getEventMapper());\n\t\t}\n\t\treturn cli;\n\t}", "@Override\n\tpublic Bid createBid(Auction auction, RegisteredUser user, float price)\n\t\t\tthrows DTException {\n\t\tBid bid = new BidImpl(auction, user, price);\n\t\treturn bid;\n\t}", "@O2Client\n @POST\n @Path(\"/client\")\n public Response clientAuthorizedPOST(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "@Override\n protected AWSBatchClient createClient(ProcessContext processContext, AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {\n getLogger().info(\"Creating client using aws credentials provider\");\n return new AWSBatchClient(awsCredentialsProvider, clientConfiguration);\n }", "private ClientId createBoardAccount(IInternalContest contest) {\n Vector<Account> scoreboards = contest.generateNewAccounts(ClientType.Type.SCOREBOARD.toString(), 1, true);\n return scoreboards.firstElement().getClientId();\n }", "public static AscendClient init(AscendConfig config, AscendParticipant participant) {\n LOGGER.debug(\"Initializing Ascend Client.\");\n return AscendClientFactory.createClient(config, participant);\n }", "@RequestMapping(\"/post/{urn}\")\n @ResponseBody\n public Client post(@PathVariable(\"urn\") String urn) {\n\n return new Client(urn, counter++);\n }", "public abstract Client getClient();", "Client getClientById(Integer id) throws SQLException;", "public Client(String lastName, String firstNames, String email, String address, Long creditNum,\n Date expiryDate) {\n super(lastName, firstNames, email);\n this.address = address;\n this.creditNum = creditNum;\n this.expiryDate = expiryDate;\n }", "public UPKClient() {\n connectToServer(BASE_URL);\n }", "default Client getClient(Long id) {\r\n return get(Client.class, id);\r\n }", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "Client findByName(String name){\n return new Client();\n }", "public Client(ClientConfiguration conf) {\n clientMessages = new Stack<>();\n serverMessages = new Stack<>();\n this.conf = conf;\n encryptionSessionHashMap = new HashMap<>();\n savedMessage = new HashMap<>();\n }", "Client getClient();", "public UUID clientId() {\n return clientId;\n }" ]
[ "0.6717533", "0.62968886", "0.6257784", "0.61059904", "0.6088115", "0.6076615", "0.6062632", "0.60576886", "0.6021409", "0.5980968", "0.5822017", "0.57608414", "0.57471675", "0.5709839", "0.57076776", "0.569314", "0.56607133", "0.56289524", "0.55672437", "0.55649304", "0.55328375", "0.552873", "0.5515827", "0.55067253", "0.55014086", "0.5493258", "0.549104", "0.5479642", "0.5440304", "0.5428335", "0.54222566", "0.540798", "0.53976923", "0.5385334", "0.53733397", "0.5371888", "0.53610504", "0.53584355", "0.53463435", "0.53366005", "0.532541", "0.5283875", "0.5263095", "0.52457327", "0.52445656", "0.524024", "0.5235083", "0.5231128", "0.522041", "0.5217704", "0.5211706", "0.5209362", "0.52070713", "0.51977986", "0.5177592", "0.5172112", "0.51675063", "0.51619196", "0.513488", "0.5134249", "0.51339626", "0.5127413", "0.51236963", "0.5121561", "0.51162934", "0.5102727", "0.50981605", "0.5094567", "0.5086503", "0.50785977", "0.5071013", "0.5065222", "0.50643593", "0.5052549", "0.5039872", "0.5037155", "0.50281435", "0.50236905", "0.502361", "0.50165623", "0.5013347", "0.50124615", "0.5010313", "0.50081563", "0.500468", "0.500379", "0.49975774", "0.49906948", "0.49872693", "0.49863315", "0.498488", "0.4983406", "0.49801746", "0.49766737", "0.4973823", "0.49731463", "0.49655354", "0.49651977", "0.49639308", "0.49615398" ]
0.6147249
3
Sets up a client for the given network
private Client clientForNetwork(String network) throws Exception { Client client; switch (network) { case "PREVIEWNET": client = Client.forPreviewnet(); break; case "TESTNET": client = Client.forTestnet(); break; case "MAINNET": client = Client.forMainnet(); break; default: log.error("Unknown network specified"); throw new Exception("Unknown network specified"); } client.setOperator(this.operatorId, this.operatorKey); return client; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createClient() {\n tc = new TestClient();\n }", "public void initializeNetwork(boolean isHost, String ip, int port) {\r\n if (isHost) {\r\n networkPlayer = new NetworkHost(this, ip, port);\r\n } else {\r\n networkPlayer = new NetworkClient(this, ip, port);\r\n }\r\n\r\n }", "protected void initializeNetwork() {\n logger.debug(\"Initialising ZWave controller\");\n\n // Create config parameters\n Map<String, String> config = new HashMap<String, String>();\n config.put(\"masterController\", isMaster.toString());\n config.put(\"sucNode\", sucNode.toString());\n config.put(\"secureInclusion\", secureInclusionMode.toString());\n config.put(\"networkKey\", networkKey);\n config.put(\"wakeupDefaultPeriod\", wakeupDefaultPeriod.toString());\n\n // TODO: Handle soft reset?\n controller = new ZWaveController(this, config);\n controller.addEventListener(this);\n\n // Start the discovery service\n discoveryService = new ZWaveDiscoveryService(this, searchTime);\n discoveryService.activate();\n\n // And register it as an OSGi service\n discoveryRegistration = bundleContext.registerService(DiscoveryService.class.getName(), discoveryService,\n new Hashtable<String, Object>());\n }", "public void createClient() {\n client = new UdpClient(Util.semIp, Util.semPort, this);\n\n // Le paso true porque quiero que lo haga en un hilo nuevo\n client.connect(true);\n }", "void startClient(String name, Config.ClientConfig config);", "Client createNewClient(Client client);", "private void setUpNetworking() {\n\t\ttry {\n\t\t\t// setup a socket to the server\n\t\t\tsock = new Socket(\"127.0.0.1\", 5000);\n\n\t\t\t// flow for reader client -> buffered reader -> inputstream reader\n\t\t\tInputStreamReader streamReader = new InputStreamReader(sock.getInputStream());\n\t\t\treader = new BufferedReader(streamReader);\n\n\t\t\t// flow for writer client -> printwriter ->outputstream -> server\n\t\t\twriter = new PrintWriter(sock.getOutputStream());\n\t\t\tSystem.out.println(\"networking established\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}", "public void initiate(TelnetClient client) {\n\t}", "public TestState network(Network network) {\n this.network = network;\n return this;\n }", "public NetworkClientController() {\r\n\t\trmiClient = new RMIClient();\r\n\t\trmiClient.addObserver(this);\r\n\t}", "public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }", "public Client(Configuration config) {\n if (config == null)\n throw new IllegalArgumentException(\"Null argument supplied\");\n this.config = config;\n connectivityStatus = ConnectivityStatus.Initial;\n lastInteraction = new Date(0l);\n recentPeers = new PeerList();\n refreshInterval = 30000l;\n randomizedRefreshInterval = (int)(refreshInterval * (1 - 0.25 * new Random ().nextDouble()));\n myLinkLocalAdress = Inet6Address.getByAddress(,, LINKLOCAL)\n }", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "private void init(String ip, int port, String name) {\n this.settings = new Settings(ip, port, name);\n this.network = new Network(this);\n this.clientGUI = new ClientGUI(this);\n //\n new Thread(network::start).start();\n }", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "WithCreate withNetworkProfile(LabNetworkProfile networkProfile);", "public EchoClient(String address) {\n try {\n socket = new DatagramSocket();\n } catch (SocketException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n try {\n inetAddress = InetAddress.getByName((address != null) ? address : \"localhost\");\n } catch (UnknownHostException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void setClient(ClientImpl model) {\n if (client == null) {\n this.client = model;\n }\n }", "public abstract void init(OwNetworkContext context_p, OwXMLUtil networkSettings_p) throws Exception;", "public void connect() {\n this.disconnect();\n\n Settings settings = ImmutableSettings.settingsBuilder()\n .put(\"cluster.name\", this.cluster)\n .put(\"client.transport.sniff\", true)\n .build();\n this.elasticClient = new TransportClient(settings).addTransportAddresses(\n new InetSocketTransportAddress(this.host, this.port)\n );\n }", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}", "public void initializeNetwork() {\n if (DataHelper.isNull(searchDTO.getNetwork())) {\n //If no Network is set we have to see which network applies for this user\n this.searchDTO.setNetwork(obtainCurrentUserNetwork());\n }\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tserverChannel = ServerSocketChannel.open();\n\t\tserverChannel.socket().bind(null, 0);\n\t\tportNumber = serverChannel.socket().getLocalPort();\n\t\t\n\t\t// Connect the client\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tclient = new Client(\"bob\");\n\t\t\t\ttry {\n\t\t\t\t\tclient.Connect(\"localhost\", portNumber);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tfail(\"Failure during setup...\");\n\t\t\t\t}\n\t\t\t}\n\t\t}, Boolean.TRUE);\n\t\t\n\t\tchannel = serverChannel.accept();\n\t\t\n\t\t// Get the connection request\n\t\tConnectionRequest conRequest = (ConnectionRequest) this.getMessage(channel);\n\t\t\n\t\tthis.sendMessage(new RequestResponse(Status.SUCCESS), channel);\n\t\tresult.get();\n\t}", "public Client(String nickname) throws RemoteException {\n\t\n\tthis.nickname=nickname;\n\n\t\t\t\t\t\t\t\t}", "public boolean createClient(String hostName, int port, Network network)\n throws IOException {\n this.network = network;\n try {\n clientSocket = new Socket(hostName, port);\n outputStream = new PrintWriter(clientSocket.getOutputStream(),\n true);\n inputStream = new BufferedReader(\n new InputStreamReader(clientSocket.getInputStream()));\n\n } catch (ConnectException ex) {\n return false;\n }\n if (clientSocket.isConnected()) {\n return true;\n } else {\n return false;\n }\n }", "public void setClientMachine(String sClientMachine) throws IOException;", "private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}", "public NetworkContainer(GraphPerspective network) {\n\t\tthis.network = network;\n\t}", "public void startNetworkHandler() throws ClientNetworkException {\n\t\tif (networkHandler != null) {\n\t\t\tnew Thread(networkHandler,\"NetworkHandler\").start();\n\t\t} else {\n\t\t\tthrow new ClientNetworkException(\"Error starting Networkhandler\");\n\t\t}\n\t}", "@BeforeClass\n\tpublic static void setUpClient() {\n\t\t_client = ClientBuilder.newClient();\n\t}", "public NomadsAppThread(TabbedBindle _client) {\n\t\t\tclient = _client;\n\t\t\tsand = new NSand();\n\t\t\tsand.connect();\n\t\t}", "@BeforeTest\n public void setupEnv() {\n CLUSTER.start();\n endpoints = CLUSTER.getClientEndpoints();\n Client client = Client.builder()\n .endpoints(endpoints)\n .build();\n\n this.authDisabledKVClient = client.getKVClient();\n this.authDisabledAuthClient = client.getAuthClient();\n }", "private void initPeers() {\n this.servers.clear();\n this.clients.clear();\n\n if (SharedPrefUtils.isConnectionNfcEnabled(this)) {\n clients.add(new NFCClient(this, walletServiceBinder));\n servers.add(new NFCServerACSCLTV(this, walletServiceBinder));\n servers.add(new NFCServerCLTV(this, walletServiceBinder));\n\n }\n\n if (SharedPrefUtils.isConnectionBluetoothLeEnabled(this)) {\n clients.add(new BluetoothLEClient(this, walletServiceBinder));\n servers.add(new BluetoothLEServer(this, walletServiceBinder));\n }\n\n if (SharedPrefUtils.isConnectionWiFiDirectEnabled(this)) {\n clients.add(new WiFiClient(this, walletServiceBinder));\n servers.add(new WiFiServer(this, walletServiceBinder));\n }\n\n for (AbstractServer server : servers) {\n server.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n }\n\n for (AbstractClient client : clients) {\n client.setPaymentRequestDelegate(getClientPaymentRequestDelegate());\n if(client instanceof NFCClient) {\n client.start();\n }\n }\n\n }", "public NetworkClient(String server, int port) {\n\t\tthis.host = server;\n\t\tthis.port = port;\n\t}", "public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }", "public void setClient(ConnectionToClient client) {\n this.client = client;\n }", "private MockClientNetworkModule() {\n\t\t// TODO complete this constructor\n\t}", "Client(String server, int port, String username, ClientGUI cg) {\n\t\tthis.server = server;\n\t\tthis.port = port;\n\t\tthis.username = username;\n\t\tthis.cg = cg; // Saved if in GUI mode or not\n\t}", "public static void setClient(DucktalesClient clientInstance) {\n \tclient = clientInstance;\n }", "@Override\n\tpublic void ConstructNetwork() {\n\t\t\n\t\tAddUnit add_r_t=new AddUnit();\n\t\tUnitIterator ui=new UnitIterator();\n\t\tui.unit=add_r_t;\n\n\t\tnetwork=new UnitList();\n\t\tnetwork.unitList.add(ui);\n\t\tnetwork.unitList.add(new AddUnit());\n\t\t\t\n\t}", "@Override\n public void setUp() throws Exception {\n transport = new TFramedTransport(new TSocket(\"123.56.206.195\", 1982));\n\n\n\n TProtocol protocol = new TBinaryProtocol(transport);\n client = new SubjectServ.Client(protocol);\n transport.open();\n }", "public Client(ClientEvents event) throws UnknownHostException, IOException {\n\t\t// TODO Auto-generated constructor stub\n\t\t//super(\"83.52.33.147\", 3553);\n\t\tmIp = \"85.53.66.42\";\n\t\tmPort = 3553;\n\t\tthis.event = event;\n\t\tmInstance = this;\n\t\t\n\t\t//startConection();\n\t}", "protected void configureClient() {\n\t\tswitch (getVariant(ClientRegistration.class)) {\n\t\tcase STATIC_CLIENT:\n\t\t\tcallAndStopOnFailure(GetStaticClientConfiguration.class);\n\t\t\tconfigureStaticClient();\n\t\t\tbreak;\n\t\tcase DYNAMIC_CLIENT:\n\t\t\tcallAndStopOnFailure(StoreOriginalClientConfiguration.class);\n\t\t\tcallAndStopOnFailure(ExtractClientNameFromStoredConfig.class);\n\t\t\tconfigureDynamicClient();\n\t\t\tbreak;\n\t\t}\n\n\t\texposeEnvString(\"client_id\");\n\n\t\tcompleteClientConfiguration();\n\t}", "void setDefaultClient(String id);", "@Before\n public void setUp() throws Exception {\n StoreDefinition.createAllTables(injector.getInstance(StructuredTableAdmin.class));\n cConf.setBoolean(Constants.Tethering.TETHERING_SERVER_ENABLED, true);\n cConf.setInt(Constants.Tethering.CONNECTION_TIMEOUT_SECONDS, 1);\n\n List<Permission> tetheringPermissions = Arrays.asList(InstancePermission.TETHER);\n InMemoryAccessController inMemoryAccessController = new InMemoryAccessController();\n inMemoryAccessController.grant(\n Authorizable.fromEntityId(InstanceId.SELF),\n MASTER_PRINCIPAL,\n Collections.unmodifiableSet(new HashSet<>(tetheringPermissions)));\n ContextAccessEnforcer contextAccessEnforcer =\n new DefaultContextAccessEnforcer(new AuthenticationTestContext(), inMemoryAccessController);\n AuthenticationTestContext.actAsPrincipal(MASTER_PRINCIPAL);\n\n service =\n new CommonNettyHttpServiceBuilder(\n CConfiguration.create(),\n getClass().getSimpleName(),\n new NoOpMetricsCollectionService())\n .setHttpHandlers(\n new TetheringServerHandler(\n cConf,\n tetheringStore,\n messagingService,\n contextAccessEnforcer,\n messagingProgramStatePublisher),\n new TetheringHandler(cConf, tetheringStore, messagingService, profileService))\n .build();\n service.start();\n config =\n ClientConfig.builder()\n .setConnectionConfig(\n ConnectionConfig.builder()\n .setHostname(service.getBindAddress().getHostName())\n .setPort(service.getBindAddress().getPort())\n .setSSLEnabled(false)\n .build())\n .build();\n }", "@Test\n @Order(1)\n void create_client() {\n client = new Client();\n client.setName(\"Test Client\");\n Client c = service.createClient(client);\n Assertions.assertEquals(client.getName(), c.getName());\n Assertions.assertNotEquals(0, c.getId());\n client = c;\n }", "@Before\r\n public void setup() throws IOException {\r\n echoClient = new EchoClient();\r\n echoClient.connect(\"127.0.0.1\", listeningPort);\r\n }", "public void startNetwork(int port);", "@Override\n\tpublic synchronized void initialize(OperatorContext context) throws Exception {\n\t\tsuper.initialize(context);\n\n // Construct a new Jest client according to configuration via factory\n JestClientFactory factory = new JestClientFactory();\n factory.setHttpClientConfig(new HttpClientConfig\n .Builder(hostName + \":\" + hostPort)\n .multiThreaded(true)\n .build());\n \n client = factory.getObject();\n\t}", "@Link Network network();", "public void setClient(Client client) {\r\n\t\tthis.client = client;\r\n\t}", "public Client(Client client) {\n\n }", "@BeforeClass\n public static void setUp() throws Exception {\n int port = 10001;\n System.out.println(port);\n int reconnectPeriod = 200;\n client = Exchangers.connect(URL.valueOf(\"telnet://127.0.0.1:\" + port + \"?client=netty&serialization=protobuf&check=false&\"+Constants.RECONNECT_KEY+\"=\"+reconnectPeriod ), new TelnetClientHandler());\n server = Exchangers.bind(URL.valueOf(\"telnet://127.0.0.1:\" + port + \"?server=netty&serialization=protobuf\"), new TelnetServerHandler());\n System.out.println(client.isConnected());\n while(!client.isConnected()){\n TimeUnit.SECONDS.sleep(1);\n }\n System.out.println(client.isConnected());\n }", "public void setup(){\n this.cluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build();\n this.session = this.cluster.connect(\"demo\");\n }", "public void setClient(Client client_) {\n\t\tclient = client_;\n\t}", "public UPKClient() {\n connectToServer(BASE_URL);\n }", "public void setUpNetworking() throws Exception {\n this.serverSock = new ServerSocket(4242);\n\n groupChats = new HashMap<String, ArrayList<String>>();\n groupMessages = new HashMap<String, ArrayList<String>>();\n groupMessages.put(\"Global\", new ArrayList<String>());\n\n int socketOn = 0;\n\n while (true) {\n\n Socket clientSocket = serverSock.accept();\n System.out.println(\"Received connection \" + clientSocket);\n\n ClientObserver writer = new ClientObserver(clientSocket.getOutputStream());\n\n Thread t = new Thread(new ClientHandler(clientSocket, writer));\n t.start();\n System.out.println(\"Connection Established\");\n socketOn = 1;\n }\n }", "Client addClient(Client client) throws BaseException;", "public void create(NetworkNode networkNode);", "private void createClient() throws NFFGClientException {\n\t\ttry {\n\t\t\ttestNFFGClient = NFFGClientFactory.newInstance().newNFFGClient();\n\t\t} catch (FactoryConfigurationError fce) {\n\t\t\tfce.printStackTrace();\n\t\t}\n\t\tassertNotNull(\"The implementation under test generated a null NFFGClient\", testNFFGClient);\n\t}", "@Test(dependsOnMethods = \"testEnableAuth\", groups = \"authEnable\", priority = 1)\n public void setupAuthClient() {\n this.userClient = Client.builder()\n .endpoints(endpoints)\n .user(user)\n .password(userNewPass).build();\n this.rootClient = Client.builder()\n .endpoints(endpoints)\n .user(root)\n .password(rootPass).build();\n }", "public SetupInterface(String networkInterface, Config.TimeStampType type, Logger logger) {\n this.interfaceName = networkInterface;\n this.networkInterface = fetchInterface(interfaceName);\n this.type = type;\n this.logger = logger;\n\n if (this.networkInterface == null) {\n\n logger.log(Level.SEVERE, \"Network interface: \" + this.interfaceName + \" Not found\");\n System.out.println(\"Could not find the network interface\");\n System.exit(-1);\n }\n }", "private void initConnection(Socket cli) {\t\n\tConnection conn = new Connection(this, cli);\n conn.setConnlist(connlist);\n\tThread t = new Thread(conn);\n\tt.start();\n\t\n\tconnlist.add(conn);\n\t\t\n\tsetConnectedStatus(true);\n }", "@Before\n public void setUp() {\n restClient = new RestClient(client, accessTokenProvider, nestUrls);\n }", "private MQTTNetworkLayer createMQTTNetworkLayer(NetworkLayerParams networkParams) \r\n throws Exception {\r\n String serverURI = networkParams.serverURI;\r\n String clientId = networkParams.clientId;\r\n String remoteMAC = networkParams.remoteMAC;\r\n \r\n return new MQTTNetworkLayer(\r\n networkParams.connectionStorage,\r\n serverURI, clientId, remoteMAC\r\n );\r\n }", "public void initializeRPC(){\n try{XmlRpcClientConfigImpl configuration = new XmlRpcClientConfigImpl();\n configuration.setServerURL(new URL(\"http://\"+RunnerRepository.host+\n \":\"+RunnerRepository.getCentralEnginePort()+\"/ra/\"));\n configuration.setEnabledForExtensions(true);\n configuration.setBasicPassword(RunnerRepository.password);\n configuration.setBasicUserName(RunnerRepository.user);\n client = new XmlRpcClient();\n client.setConfig(configuration);\n System.out.println(\"XMLRPC Client for testbed initialized: \"+client);}\n catch(Exception e){System.out.println(\"Could not conect to \"+\n RunnerRepository.host+\" :\"+RunnerRepository.getCentralEnginePort()+\"/ra/\"+\n \"for RPC client initialization\");}\n }", "@Override\n\tpublic void run() \n\t{\n\t\tcommunicator = com.zeroc.Ice.Util.initialize();\n GameServerPrx clientPrx = GameServerPrx.checkedCast(\n communicator.stringToProxy(\"client:default -h 58.167.142.74 -p 10002\")).ice_twoway().ice_secure(false).ice_collocationOptimized(false).ice_compress(true);\n\n if(clientPrx == null)\n {\n //If connection is failed due to server problems\n System.err.println(\"SB Connect: \" + \"Invalid proxy\");\n return;\n }\n System.out.println(\"SB Connect: \" + \"Connected\");\n Server server = new Server();\n server.address = ServerInfo.ADDRESS;\n server.UUID = ServerInfo.UUID;\n server.port = ServerInfo.PORT;\n server.name = ServerInfo.NAME;\n server.players = (short) players;\n\t\tclientPrx.sendServerDetails(server);\n\t\tSystem.out.println(\"SB Connect: \" + \"Data sent\");\n\t}", "private void createNetworkScreen() {\n\t\tnetworkSelectGroup = new VerticalGroup();\n\t\tif(MULTIPLAYER)\n\t\t\tnetworkSelectGroup.setVisible(true);\n\t\telse\n\t\t\tnetworkSelectGroup.setVisible(false);\n\t\t\n\t\tnetworkSelectGroup.setSize(WIDTH/2, HEIGHT/2);\n\t\tnetworkSelectGroup.setPosition(WIDTH/2 - networkSelectGroup.getWidth()/2, HEIGHT/2 - networkSelectGroup.getHeight()/2);\n\t\t\n\t\tTextButtonStyle smallStyle = new TextButtonStyle();\n\t\tsmallStyle.font = fontMedium;\n\t\t\n\t\tTextButton beServer = new TextButton(\"Create server\", smallStyle);\n\t\tbeServer.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tif(networkManager != null)\n\t\t\t\t\tnetworkManager.makeMeServer();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tnetworkSelectGroup.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tTextButton beClient = new TextButton(\"Join server\", smallStyle);\n\t\tbeClient.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tif(networkManager != null)\n\t\t\t\t\tnetworkManager.makeMeClient();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tnetworkSelectGroup.setVisible(false);\n\t\t\t\tserverSelectGroup.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tnetworkSelectGroup.addActor(beServer);\n\t\t\n\t\tnetworkSelectGroup.addActor(beClient);\n\n\t\t\n\t\tsmallStyle.font = fontSmall;\n\t\tTextButton notes = new TextButton(\"Connect both device to same\\n wifi network or create a hotspot\\n in one device and request another\\n one to join.\\n\\nUnder Construction\", smallStyle);\n\t\t//notes.setPosition(server, y, alignment);\n\t\tnetworkSelectGroup.addActor(notes);\n\n\n\t\t\n\t\tstage.addActor(networkSelectGroup);\n\t}", "public static void CreateClient(int port, String ip, String inname, String incolor){\n Client charlie = new Client(port, ip);\n charlie.clientName = inname;\n charlie.outhexColor = incolor; \n //charlie.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n charlie.startRunning(port);\n }", "public NetworkManager() {\n okHttpClient = new OkHttpClientProvider().getClient();\n retrofit = new RetrofitInstanceProvider(new RelatedTopicTypeAdapterFactory(), okHttpClient).getRetrofitInstance();\n }", "public void initializeClient(WebSocketAdapter client) {\n\t\tServer.log.debug(\"Send initial node info to \" + client);\r\n\r\n\t\tfor (IController controller : this.controllers.values()) {\r\n\t\t\tif (controller != null && controller.isEnabled() && controller.isInitialized()) {\r\n\t\t\t\tCollection<JSONMessage> messages = controller.initClient();\r\n\t\t\t\tif (messages != null) {\r\n\t\t\t\t\tfor (JSONMessage message : messages) {\r\n\t\t\t\t\t\tclient.getRemote().sendStringByFuture(message.serialize().toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public PeerToPeerConnection(GameController controller){\n this.controller = controller;\n clientID = \"HostClient\";\n isHost = true;\n isHost = true;\n System.out.println(\"PeerToPeerConnection: Constructor: HostClient\");\n }", "private synchronized void initNetwork() {\n if (connectivityManager == null) {\n ConnectivityManager tryConnectivityManager =\n (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n TelephonyManager tryTelephonyManager =\n (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n // Assign to member vars only after all the get calls succeeded,\n // so that either all get assigned, or none get assigned.\n connectivityManager = tryConnectivityManager;\n telephonyManager = tryTelephonyManager;\n \n // Some interesting info to look at in the logs\n NetworkInfo[] infos = connectivityManager.getAllNetworkInfo();\n for (NetworkInfo networkInfo : infos) {\n Logger.i(\"Network: \" + networkInfo);\n }\n Logger.i(\"Phone type: \" + getTelephonyPhoneType() +\n \", Carrier: \" + getTelephonyCarrierName());\n }\n assert connectivityManager != null;\n assert telephonyManager != null;\n }", "public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }", "private void createConnection() {\n this.callbacks = getCallbacks();\n\n Properties props = new Properties();\n props.putAll(getTestProps());\n props.putAll(getProps());\n this.connection = Connections.create((ConnectionCallbacks) callbacks, props);\n configureConnection(connection);\n }", "protected void createClient(MqttCallback callback) {\n\t\tLoggerUtility.info(CLASS_NAME, \"createClient\", \"Org ID = \" + getOrgId() +\n\t\t\t\t\"\\n Client ID = \" + clientId);\n\t\tthis.mqttAsyncClient = null;\n\t\tthis.mqttClientOptions = new MqttConnectOptions();\n\t\tthis.mqttCallback = callback;\n\t}", "public ClientGui() throws RemoteException, NotBoundException, Exception {\n // Layout initiieren\n initComponents();\n \n //Dem Client mitteilen, wo sein TrustStore liegt. Dieser wurde zuvor mit Keytool erzeugt:\n //keytool erzeugt KeyStore dann wird selbstsigniertes Zertifikat exportiert um im Client importiert und als Vertrauenswürdig erteilt\n System.setProperty(\"javax.net.ssl.trustStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.trustStorePassword\", \"password\");\n \n //Dem Client mitteilen, wo sein KeyStore liegt, in diesem Fall gleichzeitig sein TrustStore\n System.setProperty(\"javax.net.ssl.keyStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.keyStorePassword\", \"password\");\n\n //KeyStore aus der Datei laden\n KeyStore ks = KeyStore.getInstance(\"JKS\");\n ks.load(new FileInputStream(\"clientstore.jks\"), \"password\".toCharArray());\n \n // SSLServerSocketFactory initialisieren\n SSLServerSocketFactory sssf ;\n \n try{\n //SSLRMIClientSocketFactory erzeugen\n SslRMIClientSocketFactory csf = new SslRMIClientSocketFactory();\n //Verbindung aufbauen zum Registry auf Localhost, Port 2222 und dem SslRMiClientSocketFactory, um mittels RMI Methodenaufrufe zu starten.\n Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222, csf);\n \n \n //Verbindung aufbauen zum Registry um mittels RMI Methodenaufrufe zu starten. Ohne RMI,deshalbt auskommentiert\n //Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222);\n \n //Anlegenen eines TestRemotes Objektes um auf die Methoden zugreifen zu können.\n remote= (TestRemote) registry.lookup(\"remote\");\n }catch(NotBoundException | RemoteException e){\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, e);\n \n }\n \n //Überprüfen ob Methodenaufruf klappt\n System.out.println(remote.isLoginValid(\"heiko\"));\n //AES Objekt erzeugen um auf die Methoden der Klasse zuzugreifen zu können.\n aes = new AES();\n //RSA Schlüsselpaar erzeugen und in Datei speichern\n generateRSA();\n //Liste wer online ist updaten\n online(remote.online());\n \n \n }", "@Before\n public void setUp()\n {\n clientIn1 = new ClientInformation();\n clientIn1.setReaderToArray();\n clientIn1.printClientList();\n clientIn1.setAlphabetically();\n }", "public ControlCenter(){\n serverConnect = new Sockets();\n serverConnect.startClient(\"127.0.0.1\", 5000);\n port = 5000;\n }", "NetworkFactory getNetworkFactory();", "public CluelessClient(String username, String hostAddress) {\n\t\tclient = new Client();\n\t\tclient.start();\n\n\t\t// Registers the client class so we can send it over the network\n\t\tNetwork.register(client);\n\n\t\t// Gets the player from the other end of the connection for rmi\n\t\tconsolePlayer = ObjectSpace.getRemoteObject(client, Network.CONSOLE_PLAYER, ConsolePlayerInterface.class);\n\t\tRemoteObject remoteConsolePlayerObject = (RemoteObject) consolePlayer;\n\t\tremoteConsolePlayerObject.setResponseTimeout(Network.reponseTime);\n\n\t\tclient.addListener(new Listener() {\n\t\t\t@Override\n\t\t\tpublic void disconnected(Connection connection) {\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tconsoleTextArea.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t// ask user for host\n//\t\tString userInput = (String) JOptionPane.showInputDialog(null, \"Host:\", \"Connect to Clueless Server\",\n//\t\t JOptionPane.QUESTION_MESSAGE, null, null, \"localhost\");\n//\t\tif (userInput == null || userInput.trim().length() == 0) {\n//\t\t\tSystem.exit(1);\n//\t\t}\n//\t\tfinal String host = userInput.trim();\n\t\tfinal String host = hostAddress.trim();\n\n\t\t// ask for user name\n//\t\tuserInput = (String) JOptionPane.showInputDialog(null, \"Name:\", \"Connect to Clueless Server\",\n//\t\t JOptionPane.QUESTION_MESSAGE, null, null, \"YourUsername\");\n//\t\tif (userInput == null || userInput.trim().length() == 0) {\n//\t\t\tSystem.exit(1);\n//\t\t}\n//\t\tfinal String userName = userInput.trim();\n\t\tfinal String userName = username.trim();\n\n\t\tconsoleTextArea = new ConsoleFrame(host);\n\t\tnew ObjectSpace(client).register(Network.CONSOLE_TEXT_AREA, consoleTextArea);\n\t\tconsoleTextArea.setSendListener(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\t// Create a cheat mode to show case file\n\t\t\t\tif (consoleTextArea.getConsoleText().equals(\"CHEAT\")) {\n\t\t\t\t\tconsolePlayer.cheatMode();\n\t\t\t\t} else {\n\t\t\t\t\tswitch (consolePlayer.getGameState().getGameState()) {\n\t\t\t\t\t// addPlayer(1)\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tconsolePlayer.addPlayer(userName, consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waitingForStartGame(2)\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tconsolePlayer.startGame(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// gameStarted(3)\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// moving(4)\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\tconsolePlayer.movePlayer(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// chooseAction(5),\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\tconsolePlayer.chooseAction(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// suggesting(6)\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\tconsolePlayer.makeSuggestion(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// accussing(7)\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\tconsolePlayer.makeAccusation(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waiting(8)\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// showCard(9)\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\tconsolePlayer.showCard(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waitingSeeCard(10)\n\t\t\t\t\tcase 10:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tconsoleTextArea.setCloseListener(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tclient.stop();\n\t\t\t}\n\t\t});\n\t\tconsoleTextArea.setVisible(true);\n\n\t\t// connecting on a new thread. This allows a progress bar to be shown if\n\t\t// connection is slow enough.\n\t\tnew Thread(\"Connect\") {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tclient.connect(Network.reponseTime, host, Network.port);\n\t\t\t\t\tconsolePlayer.registerUserName(userName);\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "private void getClient(SocketAddress address, RedisOptions options, Handler<AsyncResult<Redis>> onClient) {\n\n Redis cli = connections.get(address);\n\n // already have a connection to this client, return that\n if (cli != null) {\n onClient.handle(Future.succeededFuture(cli));\n return;\n }\n\n RedisClient.create(vertx, address, options, create -> {\n if (create.failed()) {\n onClient.handle(create);\n return;\n }\n\n final Redis conn = create.result();\n\n conn.exceptionHandler(t -> {\n // broken connection so force a new client to be created\n connections.remove(address);\n // propagate the exception\n if (onException != null) {\n onException.handle(t);\n }\n\n // now since the clients are unbalanced, we need to reload the slots\n getSlots(options, ar -> {\n if (ar.failed()) {\n // getting slots failed, so raise the exception\n if (onException != null) {\n onException.handle(ar.cause());\n }\n }\n });\n });\n\n conn.endHandler(v -> {\n // closed connections should be removed\n connections.remove(address);\n // how many connections are still open?\n // when there's more than 0 then we can still operate\n if (connections.size() == 0) {\n // all connections are closed so we must assume this\n // cluster is ended (or we can't recover)\n if (onEnd != null) {\n onEnd.handle(null);\n }\n }\n });\n\n conn.handler(r -> {\n if (onMessage != null) {\n onMessage.handle(r);\n }\n });\n\n connections.put(address, conn);\n onClient.handle(Future.succeededFuture(conn));\n });\n }", "@Override\r\n\tpublic void connect(URL url) throws RemoteException {\n\t\tclientPool=ClientPoolManager.INSTANCE.getClientPool(url);\r\n\r\n\t}", "private void createAdminClient(String address, Integer port, String user,\n\t\t\tString password) throws Exception {\n\t\tProperties connectProps = new Properties();\n\t\tconnectProps.setProperty(AdminClient.CONNECTOR_TYPE,\n\t\t\t\tAdminClient.CONNECTOR_TYPE_SOAP);\n\t\tconnectProps.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, address.startsWith(\"https\")? \"true\":\"false\");\n\t\tconnectProps.setProperty(AdminClient.CONNECTOR_HOST, address.replace(\"https://\", \"\"));\n\t\tconnectProps.setProperty(AdminClient.CONNECTOR_PORT, port.toString());\n\t\tconnectProps.setProperty(AdminClient.USERNAME, user);\n\t\tconnectProps.setProperty(AdminClient.PASSWORD, password);\n\t\ttry {\n\t\t\tadminClient = AdminClientFactory.createAdminClient(connectProps);\n\t\t} catch (ConnectorException e) {\n\t\t\tSystem.out.println(\"Exception creating admin client: \" + e);\n\t\t\tthrow new Exception(e);\n\t\t}\n\n\t\tSystem.out.println(\"Connected to DeploymentManager\");\n\t}", "Client(String destination, int sendPort, int myPort, String myIP) {\n\t\tthis.destination = destination;\n\t\tthis.sendPort = sendPort;\n\t\tthis.myPort = myPort;\n\t\tthis.myIP = myIP;\n\t}", "public Network () {\n buildNetwork();\n }", "public void createClient(String nam, String surnam, String id, String direction, String phone, String obs, int number) {\n\t\ttry {\n\t\t\trestaurant.addClient(nam, surnam, id, direction, phone, obs, number);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "void setNetworkType(IsisNetworkType networkType);", "public DefaultCniNetworkInner() {\n }", "public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }", "public void connectClient(int client, String name) {\n final String n = name;\n final int c = client;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n JLabel nameLabel = (JLabel) cnames.get(c);\n nameLabel.setText(n);\n nameLabel.setForeground(Color.blue);\n \n JLabel statusLabel = (JLabel) cstatus.get(c);\n statusLabel.setText(\"Connected\");\n statusLabel.setForeground(new Color(25, 90, 25));\n \n pack();\n repaint();\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }", "public Client(ClientConfiguration conf) {\n clientMessages = new Stack<>();\n serverMessages = new Stack<>();\n this.conf = conf;\n encryptionSessionHashMap = new HashMap<>();\n savedMessage = new HashMap<>();\n }", "@Service NetworkService network(String id);", "private void configureClient(String username, String password)\r\n {\n client.getState().setCredentials(new AuthScope(\"twitter.com\", 80),\r\n new UsernamePasswordCredentials(username, password));\r\n }", "public ClientMain() throws RemoteException, MalformedURLException, NotBoundException\r\n\t{\r\n\t\t//server = (IServer) Naming.lookup(\"rmi://10.152.206.74:1099/bankingServer\");\r\n\t\tserver = (IServer) Naming.lookup(\"rmi://localhost:1099/bankingServer\");\r\n\r\n\t\tmodel = new BankModel();\r\n\r\n\t\tSystem.out.println(\"Client running\");\r\n\t}", "private void initialize(){\n\t\ttry\n\t\t{\n\t\t\tString[] packet = setPacket();\n\t\t\tif (validatePacket(packet))\n\t\t\t{\n\t\t\t\tsend(packet);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"Something went wrong...\");\n\t\t\tresetClient();\n\t\t}\n\t}", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }" ]
[ "0.6607788", "0.6058245", "0.6032107", "0.5992553", "0.5976614", "0.5868343", "0.5836457", "0.5812475", "0.5800292", "0.5760304", "0.5748437", "0.5729847", "0.5682894", "0.56411934", "0.5636173", "0.56203663", "0.55797535", "0.5564905", "0.5562027", "0.55444956", "0.5534646", "0.5522142", "0.5518874", "0.54841465", "0.54813176", "0.5463959", "0.5461924", "0.5460139", "0.54105425", "0.54055476", "0.5401856", "0.5384279", "0.5352123", "0.534814", "0.5328871", "0.53286415", "0.5320841", "0.53196853", "0.5306694", "0.5306438", "0.5300412", "0.5292987", "0.5276301", "0.52475804", "0.52413905", "0.5238519", "0.5223585", "0.5222129", "0.5221187", "0.5221127", "0.5216736", "0.5214163", "0.52117425", "0.5210184", "0.52079946", "0.52054477", "0.52035844", "0.5201682", "0.5200146", "0.51985407", "0.5198479", "0.51931983", "0.5181096", "0.5176525", "0.5163511", "0.51631117", "0.51615214", "0.51586807", "0.5148553", "0.51480657", "0.5147403", "0.5137631", "0.5133025", "0.5132576", "0.51310074", "0.51276857", "0.5125265", "0.51249784", "0.51245075", "0.51241124", "0.51228905", "0.511851", "0.51177347", "0.5114495", "0.51081294", "0.5108032", "0.5103353", "0.5102902", "0.5099532", "0.50978655", "0.50971395", "0.5094983", "0.5093799", "0.50930244", "0.5088627", "0.50821066", "0.50805205", "0.50725055", "0.50722134", "0.50722134" ]
0.694835
0
Find out the entity name from the sub class name
private String entityType(){ Type t = getClass().getGenericSuperclass(); ParameterizedType pt = (ParameterizedType)t; Class<T> type = (Class)pt.getActualTypeArguments()[0]; return type.getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEntityName();", "protected String getEntityClassName() {\n\t\treturn this.getEntityClass().getName();\n\t}", "private String getClassName(final Class<?> clazz) {\n return EntityType.getEntityType(clazz).map(e -> e.getEntityName(clazz)).orElse(clazz.getSimpleName());\n }", "public String getName(Class<? extends RawEntity<?>> entity) {\r\n\t\tTable tableAnnotation = entity.getAnnotation(Table.class);\r\n\t\tif (tableAnnotation != null) {\r\n\t\t\treturn tableAnnotation.value();\r\n\t\t}\r\n\t\t\r\n\t\tif (classMappings.containsKey(entity)) {\r\n\t\t\treturn classMappings.get(entity);\r\n\t\t}\r\n\t\t\r\n\t\treturn postProcessName(processName(convertName(entity)));\r\n\t}", "public String getEntityTypeName() { return \"org.doxer.app.db.dbflute.exentity.StShhnKnyMs\"; }", "protected String getEntityName() {\r\n\t\treturn EntityList.getEntityString(this);\r\n\t}", "public ClassName entity() {\n return ClassName.get(this.getEntityPack(), this.getClassName());\n }", "public String getNameOfEntityHere() {\n \n return entityHere_.getName();\n \n }", "<T extends ModelEntity> T findEntityType( Class<T> entityClass, String name );", "@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}", "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "public String getEntityName() {\n return entityName;\n }", "public static String getEntityName(Class<?> clazz) {\n Annotation entityAnnotation = null;\n for (Annotation annotation : clazz.getAnnotations()) {\n Class<?> annotationClass = annotation.annotationType();\n if (annotationClass.getName().equals(\"javax.persistence.Entity\")) {\n entityAnnotation = annotation;\n }\n }\n\n if (entityAnnotation == null) {\n return null;\n }\n try {\n Method method = entityAnnotation.getClass().getMethod(\"name\");\n String name = (String) method.invoke(entityAnnotation);\n if (name != null && name.length() > 0) {\n return name;\n } else {\n return null;\n }\n } catch (Exception e) {\n throw new IllegalStateException(\"Could not get entity name from class \" + clazz, e);\n }\n }", "public static String getEntityName(Entity entity) {\n\n\t\t//Player\n\t\tif (entity instanceof Player) return ((Player) entity).getName();\n\t\t//Other\n\t\telse return entity.getType().getName();\n\t}", "protected String extractMemberNameFromEntity(Member entity) {\r\n return convert(entity.getMemberName(), String.class);\r\n }", "String getClassName(Element e) {\n // e has to be a TypeElement\n TypeElement te = (TypeElement)e;\n String packageName = elementUtils.getPackageOf(te).getQualifiedName().toString();\n String className = te.getQualifiedName().toString();\n if (className.startsWith(packageName + \".\")) {\n String classAndInners = className.substring(packageName.length() + 1);\n className = packageName + \".\" + classAndInners.replace('.', '$');\n }\n return className;\n }", "Entity getSuperType();", "public String getEntityTypeName() { return \"com.sample.twitter.dbflute.exentity.Tweet\"; }", "<T extends ModelEntity> T findActualEntity( Class<T> entityClass, String name );", "@Override\n\tpublic String entityClassName() {\n\t\treturn null;\n\t}", "char[] getSuperclassName();", "public final String toStringClassName() {\r\n \t\tString str = this.getClass().getName();\r\n \t\tint lastIx = str.lastIndexOf('.');\r\n \t\treturn str.substring(lastIx+1);\r\n \t}", "@Override\n public String modelName() {\n Optional<? extends AnnotationMirror> mirror =\n Mirrors.findAnnotationMirror(element(), Entity.class);\n if (mirror.isPresent()) {\n return Mirrors.findAnnotationValue(mirror.get(), \"model\")\n .map(value -> value.getValue().toString())\n .filter(name -> !Names.isEmpty(name))\n .orElse(\"default\");\n }\n if (Mirrors.findAnnotationMirror(element(), javax.persistence.Entity.class).isPresent()) {\n Elements elements = processingEnvironment.getElementUtils();\n Name packageName = elements.getPackageOf(element()).getQualifiedName();\n String[] parts = packageName.toString().split(\"\\\\.\");\n return parts[parts.length - 1];\n } else {\n throw new IllegalStateException();\n }\n }", "public String getEntityName() {\n\t\treturn entityName;\n\t}", "@Override\n\tprotected String getEntityName() {\n\t\treturn GenOrderNum.class.getName();\n\t}", "abstract String getClassName();", "public String getObjectName() {\r\n\t\tif (objectName == null || objectName.length() == 0)\r\n\t\t\tsetObjectName(\"entity\" + entityNr);\r\n\t\treturn objectName;\r\n\t}", "public abstract String getClassName();", "public String getEntityName() {\n\t\treturn null;\n\t}", "String getEntityName() throws DatabaseNotAccessibleException;", "private static String resolveName(@Nonnull final Class<?> clazz) {\n\t\tfinal String n = clazz.getName();\n\t\tfinal int i = n.lastIndexOf('.');\n\t\treturn i > 0 ? n.substring(i + 1) : n;\n\t}", "protected String getClassName(Object o) {\n\t\tString classString = o.getClass().getName();\n\t\tint dotIndex = classString.lastIndexOf(\".\");\n\n\t\treturn classString.substring(dotIndex + 1);\n\t}", "java.lang.String getClassName();", "private String getClassName( Class c ) {\n\treturn c.getName().substring(c.getName().lastIndexOf('.')+1);\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "BaseComponent getComponentName();", "public interface AdminMainEntity {\n\n public static final String MAIN_ENTITY_NAME_PROPERTY = \"__adminMainEntity\";\n\n public String getMainEntityName();\n\n}", "public String getEntityTypeName() { return \"com.ort.dbflute.exentity.Camp\"; }", "public abstract String getDatabaseTableName(String entityName);", "@Override\n public String getName() {\n final String name = getClass().getName();\n final int lastDollar = name.lastIndexOf('$');\n return name.substring(lastDollar + 1);\n }", "@Override\n\tpublic String getReferencedEntityClassName() {\n\t\treturn null;\n\t}", "public String getTypeName() {\n if (isStatic()) {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n\n // the compiler doesn't type attribute static imports of classes\n if (fq == null) {\n String possibleInnerClassFqn = getTypeName(qualid);\n String possibleInnerClassName = possibleInnerClassFqn.substring(possibleInnerClassFqn.lastIndexOf('$') + 1);\n if (\"*\".equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n while (possibleInnerClassName.indexOf('$') >= 0) {\n possibleInnerClassName = possibleInnerClassName.substring(possibleInnerClassName.indexOf('$') + 1);\n }\n\n JavaType.Class owner = TypeUtils.asClass(qualid.getTarget().getType());\n if (owner != null && !(qualid.getTarget().getType() instanceof JavaType.ShallowClass)) {\n Iterator<JavaType.Method> visibleMethods = owner.getVisibleMethods();\n while (visibleMethods.hasNext()) {\n JavaType.Method method = visibleMethods.next();\n if (method.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n Iterator<JavaType.Variable> visibleMembers = owner.getVisibleMembers();\n while (visibleMembers.hasNext()) {\n JavaType.Variable member = visibleMembers.next();\n if (member.getName().equals(possibleInnerClassName)) {\n return possibleInnerClassFqn.substring(0, possibleInnerClassFqn.lastIndexOf('$'));\n }\n }\n\n return possibleInnerClassFqn;\n }\n }\n\n return getTypeName((FieldAccess) qualid.getTarget());\n }\n\n return getTypeName(qualid);\n }", "public static EntityType getEntityType(String name) {\n EntityType type = null;\n name = name.toLowerCase(Locale.ROOT).trim();\n if (name.contains(NAMESPACE)) {\n name = (name.split(\":\"))[1];\n }\n\n if (ConfigHandler.entities.get(name) != null) {\n type = EntityType.valueOf(name.toUpperCase(Locale.ROOT));\n }\n\n return type;\n }", "public String getClazzName();", "public String hierarchyEntityName() {\n return this.hierarchyEntityName;\n }", "Class<?> getEntityClass();", "@Override\n public String getName() {\n return this.getClass().getSimpleName();\n }", "abstract String getName();" ]
[ "0.71701276", "0.6809257", "0.6706981", "0.6612842", "0.6597382", "0.6551613", "0.64649284", "0.6374214", "0.6340286", "0.63335776", "0.62833685", "0.6204846", "0.6146266", "0.61309934", "0.6104164", "0.6101212", "0.60992354", "0.60824645", "0.60720426", "0.6024723", "0.60051155", "0.5996914", "0.5988489", "0.59882843", "0.5954683", "0.5948916", "0.593977", "0.5925086", "0.5913282", "0.58978766", "0.58893526", "0.5879909", "0.5867951", "0.58241785", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.580982", "0.5809463", "0.5807513", "0.57982457", "0.5789152", "0.57822007", "0.5733806", "0.5722528", "0.571944", "0.5691942", "0.5685129", "0.5668308", "0.56579775", "0.5655379", "0.56524277" ]
0.5925644
27
/ access modifiers changed from: packageprivate
public boolean isEmpty() { return this.extMap.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public LinkLogExtData putKV(@Nullable String str, @Nullable Object obj) { if (UMStringUtils.isEmpty(str)) { return this; } if (obj == null) { this.extMap.put(str, "null value"); return this; } this.extMap.put(str, obj); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public Map<String, Object> toClipExtMap() { Object obj; if (this.extMap.containsKey(EXT_DATA_MTOP_RESPONSE_STR) && (obj = this.extMap.get(EXT_DATA_MTOP_RESPONSE_STR)) != null) { String valueOf = String.valueOf(obj); if (valueOf.length() > MAX_EXT_LENGTH) { this.extMap.put(EXT_DATA_MTOP_RESPONSE_STR, valueOf.substring(0, MAX_EXT_LENGTH)); } } return this.extMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "protected void mo6255a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "public void mo21791P() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract String mo118046b();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "protected boolean func_70041_e_() { return false; }", "private Utils() {\n\t}", "private Utils() {\n\t}", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract String mo13682d();", "public abstract void mo35054b();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "public abstract void mo27464a();", "private OMUtil() { }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2740a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71516633", "0.66861993", "0.6557671", "0.64844686", "0.64307094", "0.63860685", "0.63849354", "0.6347811", "0.63300216", "0.62775", "0.6263697", "0.6250632", "0.623687", "0.6232753", "0.6229871", "0.61984533", "0.61984533", "0.6195501", "0.6184757", "0.6180239", "0.61578304", "0.6153741", "0.6152476", "0.61176836", "0.6109759", "0.6109044", "0.6088962", "0.60828936", "0.60719246", "0.6070167", "0.60564125", "0.6056111", "0.6055323", "0.60524994", "0.6050629", "0.60480267", "0.6043975", "0.60367846", "0.60236895", "0.60236895", "0.60236895", "0.60236895", "0.6020544", "0.6019258", "0.6018533", "0.60168415", "0.6006017", "0.60033923", "0.5999393", "0.5997694", "0.59972477", "0.5995712", "0.5991592", "0.5991592", "0.5991592", "0.5991592", "0.5991592", "0.5991592", "0.5991592", "0.5991073", "0.5986796", "0.5986796", "0.59851515", "0.5983399", "0.5973699", "0.5959469", "0.5957937", "0.59529465", "0.5952122", "0.5947705", "0.5946681", "0.59460294", "0.5943831", "0.5940968", "0.59386706", "0.5938424", "0.59269255", "0.59263015", "0.5925614", "0.5925614", "0.5914091", "0.59093624", "0.59058833", "0.5905594", "0.590547", "0.5900196", "0.58974063", "0.58947027", "0.5893353", "0.58907384", "0.5882495", "0.58781415", "0.587773", "0.58772564", "0.58755565", "0.58733183", "0.5867433", "0.5866107", "0.5866107", "0.5865901", "0.58642817" ]
0.0
-1
Constructors need to be public if you want to be able to create the object at all. There is a pattern called "Singleton" where you use a private constructor to make sure that only one object from a certain class is created, this pattern uses a private constructor. Private constructors are also used in "inner classes", which are classes defined inside another class. There are some use cases for that, but it's well beyond the scope of this course.
public Mage(String name){ this.name = name; //Set the name of the new mage to the supplied String parameter "name" this.className = "Mage"; //All mages are of the class Mage this.sex = "F"; //New mages are created as female by default this.health = 100; //New mages are created with 100 health this.mana = 100; //New mages are created with 100 mana this.spells = new ArrayList<Spell>(); //For now, an empty list of spells. this.fireball = new Spell(); //All spells are fireballs for now. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SingleObject(){\n }", "private SingleObject()\r\n {\r\n }", "private SingletonObject() {\n\n\t}", "private SingleObject(){}", "private Singleton() { }", "private Instantiation(){}", "private Singleton() {\n\t}", "private Singleton(){\n }", "private Singleton()\n\t\t{\n\t\t}", "private ObjectFactory() { }", "private Singleton(){}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private DarthSidious(){\n }", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private SingletonSample() {}", "private A(){\n System.out.println(\"Instance created\");\n }", "Reproducible newInstance();", "public ObjectFactory() {\n\t}", "Instance createInstance();", "public ObjectFactory() {\r\n\t}", "private J2_Singleton() {}", "private InnerClassSingleton(){}", "private void __sep__Constructors__() {}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.76390386", "0.76329327", "0.76169854", "0.7280806", "0.72353965", "0.7203347", "0.7178929", "0.71434003", "0.713174", "0.7114263", "0.7049416", "0.69895715", "0.6981076", "0.6977891", "0.6960417", "0.68585074", "0.6853845", "0.67934674", "0.67683655", "0.6761129", "0.6724137", "0.6708605", "0.6672184", "0.6671788", "0.6662448", "0.6662448", "0.6662448", "0.6634555", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804", "0.65927804" ]
0.0
-1
Methods Methods can be private if they should only be used by the class itself, like when you want to divide a complex thing you want to do into several steps. Cast a fireball spell.
public double castFireball(){ this.mana -= fireball.manaCost; return fireball.hit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void shoot() {\n }", "private void shoot() {\n }", "public void spellLevelUp() {\n \n }", "public default int getCastingTime(){ return Spell.STANDARD_ACTION; }", "public Casts(){\n\t\t\n\t}", "private void castSpellByAI() {\n\t\tboolean spellIsNotActivated = true;\n\t\tboolean[] spellsFlags = new boolean[3];\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\tArrayList<Spell> spells = ((Wizard)AI).getSpells();\n\t\twhile(spellIsNotActivated){\n\t\t\t\n\t\t\tint randomAction = (int) (Math.random()*2);\n\t\t\tSpell spell = null;\n\t\t\t\n\t\t\tswitch(randomAction){\n\t\t\tcase 0: if(spellsFlags[0]==false) {spell = spells.get(0); spellsFlags[0]=true; break;}\n\t\t\tcase 1:\tif(spellsFlags[1]==false) {spell = spells.get(1); spellsFlags[1]=true; break;}\n\t\t\tdefault: if(spellsFlags[2]==false) {spell = spells.get(2); spellsFlags[2] =true;}\n\t\t\t}\n\t\t\t\n\t\t\tif(spell instanceof HealingSpell){\n\t\t\t\tcastHealingSpell(spell);\n\t\t\t}else if(spell instanceof DamagingSpell){\n\t\t\t\tDirection direction;\n\t\t\t\tint randomDirection = (int) (Math.random()*3);\n\t\t\t\tswitch(randomDirection){\n\t\t\t\tcase 0: direction = Direction.BACKWARD;\n\t\t\t\tcase 1: direction = Direction.FORWARD;\n\t\t\t\tcase 2: direction = Direction.LEFT;\n\t\t\t\tdefault: direction = Direction.RIGHT;\n\t\t\t\t}\n\t\t\t\tspellInAction = spell;\n\t\t\t\tdirectionsInAction = new ArrayList<Direction>();\n\t\t\t\tdirectionsInAction.add(direction);\n\t\t\t\tcastDamagingSpell();\n\t\t\t}else if(spell instanceof RelocatingSpell){\n\t\t\t\tDirection direction1;\n\t\t\t\tint randomDirection1 = (int) (Math.random()*3);\n\t\t\t\tswitch(randomDirection1){\n\t\t\t\tcase 0: direction1 = Direction.BACKWARD;\n\t\t\t\tcase 1: direction1 = Direction.FORWARD;\n\t\t\t\tcase 2: direction1 = Direction.LEFT;\n\t\t\t\tdefault: direction1 = Direction.RIGHT;\n\t\t\t\t}\n\t\t\t\tDirection direction2;\n\t\t\t\tint randomDirection2 = (int) (Math.random()*3);\n\t\t\t\tswitch(randomDirection2){\n\t\t\t\tcase 0: direction2 = Direction.BACKWARD;\n\t\t\t\tcase 1: direction2 = Direction.FORWARD;\n\t\t\t\tcase 2: direction2 = Direction.LEFT;\n\t\t\t\tdefault: direction2 = Direction.RIGHT;\n\t\t\t\t}\n\t\t\t\tspellInAction = spell;\n\t\t\t\tdirectionsInAction = new ArrayList<Direction>();\n\t\t\t\tdirectionsInAction.add(direction1);\n\t\t\t\tdirectionsInAction.add(direction2);\n\t\t\t\t\n\t\t\t\tint randomRange = (int) (Math.random()*((RelocatingSpell)spell).getRange()) + 1;\n\t\t\t\tcastRelocatingSpell(randomRange);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tspellIsNotActivated = false;\n\t\t\t}\n\t\t\tif(AI != currentTask.getCurrentChamp()){\n\t\t\t\tspellIsNotActivated = false;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t\n\t}", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "@Override\r\n\tpublic void onSpellHit(Spell spell) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onSpellHit(Spell spell) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onSpellHit(Spell spell) {\n\t\t\r\n\t}", "void shoot();", "public static boolean castAI(Thing caster, Thing s) {\r\n \t\t// bail out if we have insufficient energy to cast\r\n \t\tif (!canCast(caster,s)) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\t\r\n \r\n \t\tMap map = caster.getMap();\r\n \r\n \t\tif (s.getStat(\"SpellUsage\") == SPELL_OFFENCE) {\r\n \r\n \t\t\tif (map == null)\r\n \t\t\t\treturn false;\r\n \r\n \t\t\t// find enemy to shoot at\r\n \t\t\tThing p = map.findNearestFoe(caster);\r\n \r\n \t\t\tif ((p!=null)) {\r\n \t\t\t\t// check if friend is too close!!\r\n \t\t\t\t// if not, then cast at target as planned\r\n \t\t\t\tThing f = map.findNearestFoe( p);\r\n \t\t\t\tif ((f == null) || (RPG.distSquared(f.x, f.y, p.x, p.y) > s.getStat(\"Radius\"))) {\r\n \t\t\t\t\tif (p.isVisible(Game.hero())||caster.isVisible(Game.hero())) {\r\n \t\t\t\t\t\tGame.message(caster.getTheName()+ \" casts \"+s.name()+\" at \"+p.getTheName());\r\n \t\t\t\t\t}\r\n \t\t\t\t\t\t\t\r\n \t\t\t\t\tcastAtLocation(s,caster, map, p.x, p.y);\r\n \t\t\t\t\tSpell.castCost(caster,s);\r\n \t\t\t\t\treturn true;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\treturn false;\r\n \r\n \t\t} else if ((s.getStat(\"SpellUsage\") == SPELL_DEFENCE)\r\n \t\t\t\t&& (caster.getStat(RPG.ST_HPS) < caster.getStat(RPG.ST_HPSMAX))) {\r\n \r\n \t\t\t// we're wounded, so cast a defensive spell\r\n \t\t\tcaster.visibleMessage(caster.getTheName()\r\n \t\t\t\t\t+ \" casts \"+s.name());\r\n \t\t\tSpell.castAtSelf(s,caster);\r\n \t\t\tSpell.castCost(caster,s);\r\n \t\t\treturn true;\r\n \r\n \t\t} else if ((s.getStat(\"SpellUsage\") == SPELL_SUMMON) && caster.isVisible(Game.hero())) {\r\n \r\n \t\t\t// cast summon spell between caster and nearest foe\r\n \t\t\tThing f = map.findNearestFoe(caster);\r\n \t\t\tif (f != null) {\r\n \r\n \t\t\t\tint tx = (caster.x + f.x) / 2;\r\n \t\t\t\tint ty = (caster.y + f.y) / 2;\r\n \r\n \t\t\t\tif (!map.isBlocked(tx, ty)) {\r\n \t\t\t\t\tGame.message(caster.getTheName()\r\n \t\t\t\t\t\t\t+ \" shouts words of summoning!\");\r\n \t\t\t\t\tSpell.castAtLocation(s,caster, map, tx, ty);\r\n \t\t\t\t\tSpell.castCost(caster,s);\r\n \t\t\t\t\treturn true;\r\n \t\t\t\t}\r\n \r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false;\r\n \t}", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "public abstract void teleport(TeleportSpell spell);", "@Test\n public void testCastWithThadaAdelAcquisitor() {\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 3);\n // Islandwalk\n // Whenever Thada Adel, Acquisitor deals combat damage to a player, search that player's library for an artifact card and exile it. Then that player shuffles their library.\n // Until end of turn, you may play that card.\n addCard(Zone.BATTLEFIELD, playerA, \"Thada Adel, Acquisitor\", 1); // Creature {1}{U}{U} 2/2\n\n addCard(Zone.BATTLEFIELD, playerB, \"Swamp\", 3);\n addCard(Zone.BATTLEFIELD, playerB, \"Forest\", 2);\n // Sacrifice Bottle Gnomes: You gain 3 life.\n addCard(Zone.LIBRARY, playerB, \"Bottle Gnomes\", 8); // Creature {3} 1/3\n // Return target creature card from your graveyard to your hand.\n addCard(Zone.HAND, playerB, \"Wildwood Rebirth\"); // Instant {1}{G}\n\n attack(1, playerA, \"Thada Adel, Acquisitor\");\n setChoice(playerA, \"Bottle Gnomes\");\n\n castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, \"Bottle Gnomes\");\n activateAbility(1, PhaseStep.POSTCOMBAT_MAIN, playerA, \"Sacrifice\");\n\n castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, \"Wildwood Rebirth\", \"Bottle Gnomes\");\n castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, \"Bottle Gnomes\");\n\n setStopAt(2, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertLife(playerB, 18);\n assertLife(playerA, 23);\n assertGraveyardCount(playerB, \"Wildwood Rebirth\", 1);\n assertPermanentCount(playerB, \"Bottle Gnomes\", 1);\n }", "abstract void fly();", "@Override\r\n\t\t \t public void eat(String item) {\n\t\t \t\t System.out.println(\"Penguin eats fish\");\r\n\t\t \t\t\r\n\t\t }", "@Test\n public void testNormalCase() {\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 1);\n addCard(Zone.HAND, playerA, \"Lightning Bolt\");\n addCard(Zone.BATTLEFIELD, playerB, \"Dryad Militant\");\n\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", playerB);\n setStopAt(1, PhaseStep.BEGIN_COMBAT);\n execute();\n \n assertLife(playerB, 17);\n assertExileCount(\"Lightning Bolt\", 1);\n }", "@Override\n public void talk(Direction myDirection){\n }", "public void attack() {\n\n }", "public abstract void fire(Player holder);", "public interface Movement {\n void sound ();\n}", "public abstract void talk();", "@Override\r\n\tpublic void onSpellHit(Spell spell) {\n\t\tif (spell.getName().contains(\"Antlitz der Göttin\")){\r\n\t\t\tcaster.setFlying(false);\r\n\t\t\tcaster.setAllowFlight(false);\r\n\t\t}\r\n\t}", "public boolean isSpellCaster() {\r\n if (_index == 2 || _index == 3 || _index == 6 || _index == 8 ||\r\n _index == 10 || _index == 11 || _index == 14 || _index == 16) {\r\n return true;\r\n }\r\n return false;\r\n }", "void fly();", "private void handleCastling() {\n GameState gameState = gameService.getCurrentGameState();\n gameState.setCastling(false);\n }", "@Override\n public void attack(){\n\n }", "public abstract void attack(Monster mon);", "protected abstract void internalPlay();", "void Dogs() {\n \n }", "public void talk() {\n\n\t}", "@Override\n\tpublic void fly() {\n\t\t\n\t}", "@Override\r\n\tpublic void fly() {\n\t\t\r\n\t}", "@Override\n\tvoid attack() {\n\n\t}", "@Override\n public void speak() {\n System.out.println(\"I'm an Aardvark, I make grunting sounds most of the time.\");\n }", "public Spell() {}", "public void speak(){\n System.out.println(\"Shark bait oooh ha haa!\");\n }", "public int fireball();", "@Override\n public boolean cast(Player player, Enemy target) {\n int damage;\n\n if (checkMana(player, this.MANA_COST)) {\n damage = calculateDamage();\n target.setHp(target.getHp() - damage);\n depleteMana(player, this.MANA_COST);\n System.out.println(\"You whistle for your dog Frostbite to come to your assistance.\");\n System.out.println(\"Frostbite bites \" + target.getName() + \" for \" + damage + \" damage.\");\n return true;\n }\n else {\n System.out.println(\"You tried casting \" + this.getSpellName() + \" but didn't have enough mana!\");\n return false;\n }\n }", "public void broadCastAction(String message, Creature performer, boolean combat) {\n/* 1628 */ broadCastAction(message, performer, null, combat);\n/* */ }", "public void attackTargetCharacter() {\n }", "@Test\n public void bestowWithFusedSpell() {\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 2);\n /**\n * Cyclops of One-Eyed Pass {2}{R}{R} Creature - Cyclops 5/2\n */\n addCard(Zone.BATTLEFIELD, playerA, \"Cyclops of One-Eyed Pass\");\n\n /**\n * Nyxborn Rollicker {R} Enchantment Creature - Satyr 1/1 Bestow {1}{R}\n * (If you cast this card for its bestow cost, it's an Aura spell with\n * enchant creature. It becomes a creature again if it's not attached to\n * a creature.) Enchanted creature gets +1/+1.\n */\n addCard(Zone.HAND, playerA, \"Nyxborn Rollicker\");\n\n addCard(Zone.BATTLEFIELD, playerB, \"Swamp\", 3);\n addCard(Zone.BATTLEFIELD, playerB, \"Island\", 2);\n\n // Instant\n // Far {1}{U} Return target creature to its owner's hand.\n // Away {2}{B} Target player sacrifices a creature.\n // Fuse (You may cast one or both halves of this card from your hand.)\n addCard(Zone.HAND, playerB, \"Far // Away\");\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Nyxborn Rollicker using bestow\", \"Cyclops of One-Eyed Pass\");\n\n castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerB, \"fused Far // Away\");\n addTarget(playerB, \"Cyclops of One-Eyed Pass\"); // Far\n addTarget(playerB, playerA); // Away\n addTarget(playerA, \"Nyxborn Rollicker\");\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n assertHandCount(playerA, \"Cyclops of One-Eyed Pass\", 1);\n assertHandCount(playerB, 0);\n\n assertGraveyardCount(playerB, \"Far // Away\", 1);\n\n assertPermanentCount(playerA, \"Nyxborn Rollicker\", 0);\n assertGraveyardCount(playerA, \"Nyxborn Rollicker\", 1);\n\n }", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "@Override\r\n\tpublic void actionFly() {\n\t\tSystem.out.println(\"날 수 있다.\");\r\n\t}", "public static void main(String[] args) {\n BaseClass myBase = new BaseClass();\n\n myBase.PlaySound();\n myBase.PlaySound();\n myBase.EditSound();\n\n// System.out.println(myBase.PlaySound());\n\n// myBase.EditSound();\n// myBase.RecordSound();\n\n\n }", "@Override\n public void attack() {\n\n }", "public void act()\n {\n if (Greenfoot.mouseClicked(this))\n Greenfoot.playSound(\"fanfare.wav\");\n }", "@Override\n\tpublic void sound() {\n\t\tSystem.out.println(\"Dog2..sound.\");\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "public abstract void fire();", "public abstract void fire();", "public default void doEffectStart(SpellData data, World world, Side onSide){ }", "public Spell() {\r\n spells = new ArrayList<>();\r\n // Add all 3 spells whenever defualt constructor is called\r\n spells.add(\"Jump the player to another grid location\");\r\n spells.add(\"Randomly reveal the location of one of the Tokimons\");\r\n spells.add(\"Randomly kill off one of the Fokimons\");\r\n spellsCounter = 3;\r\n }", "void basicAttack(Character attacked);", "public void fly() {\n\t\tSystem.out.println(\"我是比赛用排球, 我可以飞!\");\n\t}", "public void eat(){\r\n System.out.println(\"Life Isn't Precious\");}", "public Spell getSpell(String spellType, Name spellName, Money price, Level level, Damage damage, Mana mana);", "public static boolean canCast(Thing b,Thing s) {\r\n \t\tif (s.place!=b) {\r\n \t\t\tGame.warn(\"Spell.canCast: spell not in inventory!\");\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\r\n \t\tString order=s.getString(\"Order\");\r\n \t\tif (order.equals(Skill.BLACKMAGIC)) {\r\n \t\t\tint cost=s.getStat(\"SpellCost\");\r\n \t\t\tif (b.getStat(RPG.ST_MPS)<cost) return false;\r\n \t\t\tint us=Recipe.checkIngredients(b,s.getString(\"Ingredients\"));\t\r\n \t\t\treturn (us>0);\r\n \t\t} \r\n \t\t\r\n \t\tint c=s.getStat(\"Charges\");\r\n \t\treturn (c>0);\r\n \r\n \t}", "@Override\n\tpublic void attack() {\n\t}", "@Override\n\tpublic void attack() {\n\n\t}", "public abstract void makeSound();", "@Override\n\tpublic String fly() {\n\t\treturn \" Can t flying\";\n\t}", "@Override\n\tpublic void attack() {\n\t\t\n\t}", "@Override\n public void food(){\n System.out.println(\"They are Herbivorous in nature.\");\n }", "void doEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 87 */ if ((!target.isMailBox() && !target.isSpringFilled() && !target.isPuppet() && \n/* 88 */ !target.isUnenchantedTurret() && !target.isEnchantedTurret()) || (target\n/* 89 */ .hasDarkMessenger() && !target.isEnchantedTurret())) {\n/* */ \n/* 91 */ performer.getCommunicator().sendNormalServerMessage(\"The spell fizzles.\", (byte)3);\n/* */ return;\n/* */ } \n/* 94 */ if (target.isUnenchantedTurret() || target.isEnchantedTurret()) {\n/* */ \n/* 96 */ int spirit = Zones.getSpiritsForTile(performer.getTileX(), performer.getTileY(), performer.isOnSurface());\n/* 97 */ String sname = \"no spirits\";\n/* 98 */ int templateId = 934;\n/* 99 */ if (spirit == 4) {\n/* */ \n/* 101 */ templateId = 942;\n/* 102 */ sname = \"There are plenty of air spirits at this height.\";\n/* */ } \n/* 104 */ if (spirit == 2) {\n/* */ \n/* 106 */ templateId = 968;\n/* 107 */ sname = \"Some water spirits were closeby.\";\n/* */ } \n/* 109 */ if (spirit == 3) {\n/* */ \n/* 111 */ templateId = 940;\n/* 112 */ sname = \"Earth spirits are everywhere below ground.\";\n/* */ } \n/* 114 */ if (spirit == 1) {\n/* */ \n/* 116 */ sname = \"Some nearby fire spirits are drawn to your contraption.\";\n/* 117 */ templateId = 941;\n/* */ } \n/* 119 */ if (templateId == 934) {\n/* */ \n/* 121 */ performer.getCommunicator().sendAlertServerMessage(\"There are no spirits nearby. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* 125 */ if (target.isUnenchantedTurret()) {\n/* */ \n/* 127 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* 128 */ target.setTemplateId(templateId);\n/* 129 */ target.setAuxData(performer.getKingdomId());\n/* */ }\n/* 131 */ else if (target.isEnchantedTurret()) {\n/* */ \n/* 133 */ if (target.getTemplateId() != templateId) {\n/* */ \n/* 135 */ performer.getCommunicator().sendAlertServerMessage(\"The nearby spirits ignore your contraption. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 140 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* */ } \n/* */ } \n/* */ \n/* 144 */ ItemSpellEffects effs = target.getSpellEffects();\n/* 145 */ if (effs == null)\n/* 146 */ effs = new ItemSpellEffects(target.getWurmId()); \n/* 147 */ SpellEffect eff = effs.getSpellEffect(this.enchantment);\n/* 148 */ if (eff == null) {\n/* */ \n/* 150 */ performer.getCommunicator().sendNormalServerMessage(\"You summon nearby spirits into the \" + target\n/* 151 */ .getName() + \".\", (byte)2);\n/* */ \n/* 153 */ eff = new SpellEffect(target.getWurmId(), this.enchantment, (float)power, 20000000);\n/* 154 */ effs.addSpellEffect(eff);\n/* 155 */ Server.getInstance().broadCastAction(performer\n/* 156 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 157 */ .getName() + \".\", performer, 5);\n/* 158 */ if (!target.isEnchantedTurret()) {\n/* 159 */ target.setHasCourier(true);\n/* */ \n/* */ }\n/* */ }\n/* 163 */ else if (eff.getPower() > power) {\n/* */ \n/* 165 */ performer.getCommunicator().sendNormalServerMessage(\"You frown as you fail to summon more spirits into the \" + target\n/* 166 */ .getName() + \".\", (byte)3);\n/* */ \n/* 168 */ Server.getInstance().broadCastAction(performer.getName() + \" frowns.\", performer, 5);\n/* */ }\n/* */ else {\n/* */ \n/* 172 */ performer.getCommunicator().sendNormalServerMessage(\"You succeed in summoning more spirits into the \" + this.name + \".\", (byte)2);\n/* */ \n/* */ \n/* 175 */ eff.improvePower(performer, (float)power);\n/* 176 */ if (!target.isEnchantedTurret())\n/* 177 */ target.setHasCourier(true); \n/* 178 */ Server.getInstance().broadCastAction(performer\n/* 179 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 180 */ .getName() + \".\", performer, 5);\n/* */ } \n/* */ }", "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "public interface Spell extends Serializable {\n\tvoid castSpell(Hero hero, Monster monster);\n}", "public void attack();", "public void think() {\n\t\t\n\t}", "@Override\n public String specialMove(Entity target)\n {\n if(Math.random() <= this.accuracy-0.1)\n {\n Random rand = new Random();\n Attack atk = new Attack();\n atk.addDamage(new Damage(rand.nextInt(10), true, \"slash\"));\n CorrosiveAcid acidEffect = new CorrosiveAcid();\n atk.addStatus(acidEffect);\n atk.applyPower(this.power);\n\n return target.takeDamage(atk);\n }\n else\n {\n \t return (\"The attack failed!\");\n\n }\n }", "public void Turn(){\r\n \r\n }", "public SpellList spells();", "public void woke(){\n\n //TODO\n\n }", "public void speak() {\r\n\t\tSystem.out.print(\"This animal speaks\");\r\n\t}", "public void speak(){\n System.out.println(\"Smile and wave boys. Smile and wave.\");\n }", "public Castling(King king, Rook rook, boolean isShortCastling, int x, int y) {\n super(king, x, y);\n this.rook = rook;\n this.isShortCastling = isShortCastling;\n }", "@Override\n\tpublic void hit(Direction dir) {\n\t\t\n\t}", "@Override\n\tpublic void onHit() {\n\t\t\n\t}", "@Override\n\tvoid fly() {\n\t\tSystem.out.println(\"flying\");\n\t}", "@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\n }", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"狗吃肉\");\n\t}", "public void playTurn() {\r\n\r\n }", "public abstract void mo27386d();", "public static void Crafting() {\n\n }", "private static void addItemSpell(Thing t) {\r\n \t\taddSpell(t);\r\n \t}", "public abstract String forceAttack(Humanoid enemy);", "public Hit() {\n }", "@Override\n public void beHelpful() {\n this.playPiano();\n this.takeABow();\n }", "@Override\r\npublic void Play() {\n\t\r\n}", "public void setCast(Cast cast) {\n\t\tthis.cast = cast;\n\t}", "public static void main(String[] args) {\n System.out.println(canSpell2(\"hapseadoost\",\"ostehaps\"));\n }", "public static void main(String[] args) {\n// iron.setAge(38);\n// System.out.println(iron.getAge());\n\n\n SuperHero ironMan = new IronMan(100, 1000, 10);\n System.out.println(ironMan.getName());\n // DownCasting (SuperHero superclass -> IronMan subclass)\n System.out.println(((IronMan) ironMan).getNumOfSuits());\n ironMan.fight();\n\n SuperHero sp1 = new SpiderMan();\n SuperHero sp2 = new SpiderMan(70);\n SpiderMan sp3 = new SpiderMan(100,1000, 50);\n\n sp1.fight();\n sp2.fight();\n sp3.fight();\n\n SuperHero[] heros = new SuperHero[10];\n heros[0] = ironMan;\n heros[1] = sp1;\n heros[2] = sp2;\n\n // * inheritance (\"extends\" super class)\n // - subclass must call super class' constructor\n // (except when super class has a default constructor, Java automatically adds\n // a default constructor with super(); in it)\n // - everything (except for private fields) can be accessed from subclasses\n // - you can even override methods from super class - (\"method overriding\")\n // - you can create many methods with the same name unless they have different set of\n // parameters(arguments) - (\"method overloading\")\n // - method overloading example: many different constructors!\n // - inheritance creates \"is-a\" relationship.\n // * IronMan \"is-a\" SuperHero\n\n\n }", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void fight();", "public void talk() {\n System.out.println(\"Meow Meow!\");\n this.doFavoriteThing();\n super.doFavoriteThing();\n }", "public abstract void eat(String foodName);" ]
[ "0.6650055", "0.6650055", "0.6322278", "0.6275291", "0.62033904", "0.6157652", "0.615741", "0.6106945", "0.6106945", "0.6106945", "0.60637075", "0.60594845", "0.6021472", "0.6009139", "0.6009139", "0.6009139", "0.5949856", "0.58880097", "0.58865", "0.5813", "0.5795383", "0.57629776", "0.5759382", "0.5748904", "0.57083446", "0.56935346", "0.56850624", "0.56747127", "0.5666321", "0.56597954", "0.56484973", "0.56459856", "0.56407326", "0.56404847", "0.56380844", "0.5634012", "0.5622401", "0.5618507", "0.5611947", "0.5607405", "0.5602073", "0.55996937", "0.5591453", "0.5587861", "0.5584244", "0.55698997", "0.5567385", "0.55666864", "0.5564098", "0.55632937", "0.55626225", "0.555158", "0.55514175", "0.55435485", "0.55435485", "0.55434215", "0.55343556", "0.55321014", "0.5531912", "0.55278164", "0.5515307", "0.5507202", "0.5495952", "0.5492722", "0.5486696", "0.5485077", "0.54765964", "0.5472867", "0.5472837", "0.5471528", "0.5465579", "0.54614675", "0.5459279", "0.5444081", "0.5438007", "0.5434768", "0.54341877", "0.54322827", "0.5432177", "0.54314095", "0.54231846", "0.5421102", "0.54180276", "0.54063326", "0.539756", "0.53948575", "0.53943515", "0.5390006", "0.53886503", "0.53846115", "0.53842723", "0.538265", "0.5381497", "0.53811663", "0.537537", "0.5371061", "0.5368215", "0.53679234", "0.5366747", "0.53662986" ]
0.61221725
7
This method handles how the Mage takes damage. Depending on implementation you might need to add more variables as well.
public void takeDamage(double damage){ damage -= this.armor; this.health -= damage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mage() {\r\n\thp = 75;\r\n\tstrength = 50;\r\n\tdefense = 30;\r\n\tattack = .4;\r\n\tcrit=.3;\r\n\tevade=0;\r\n }", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "public int giveDamage();", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "private void takeDamage(int damage){ health -= damage;}", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "@Override\n public boolean isMage() {\n return true;\n }", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "private void setArmor() {\n\n if (VersionChecker.currentVersionIsUnder(12, 2)) return;\n if (!ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_ARMOR)) return;\n\n eliteMob.getEquipment().setItemInMainHandDropChance(0);\n eliteMob.getEquipment().setHelmetDropChance(0);\n eliteMob.getEquipment().setChestplateDropChance(0);\n eliteMob.getEquipment().setLeggingsDropChance(0);\n eliteMob.getEquipment().setBootsDropChance(0);\n\n if (hasCustomArmor) return;\n\n if (!(eliteMob instanceof Zombie || eliteMob instanceof PigZombie ||\n eliteMob instanceof Skeleton || eliteMob instanceof WitherSkeleton)) return;\n\n eliteMob.getEquipment().setBoots(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.AIR));\n\n if (eliteMobLevel >= 12)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.LEATHER_HELMET));\n\n if (eliteMobLevel >= 14)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.LEATHER_BOOTS));\n\n if (eliteMobLevel >= 16)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));\n\n if (eliteMobLevel >= 18)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));\n\n if (eliteMobLevel >= 20)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.CHAINMAIL_HELMET));\n\n if (eliteMobLevel >= 22)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.CHAINMAIL_BOOTS));\n\n if (eliteMobLevel >= 24)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.CHAINMAIL_LEGGINGS));\n\n if (eliteMobLevel >= 26)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.CHAINMAIL_CHESTPLATE));\n\n if (eliteMobLevel >= 28)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.IRON_HELMET));\n\n if (eliteMobLevel >= 30)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.IRON_BOOTS));\n\n if (eliteMobLevel >= 32)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.IRON_LEGGINGS));\n\n if (eliteMobLevel >= 34)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));\n\n if (eliteMobLevel >= 36)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.DIAMOND_BOOTS));\n\n if (eliteMobLevel >= 38)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.DIAMOND_HELMET));\n\n if (eliteMobLevel >= 40)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));\n\n if (eliteMobLevel >= 42)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));\n\n }", "public void takeDamage(int damage);", "public Mage (double h, double d, double a, double p, double c)\r\n\t{\r\n\t\thealth = h;\r\n\t\tdmg = d;\r\n\t\tnumber++;\r\n\t\taggro = a;\r\n\t\tpRange = p;\r\n\t\tcrit = c;\r\n\t}", "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "public void damage(int amount) {\n \tshield = shield - amount;\n }", "public int takeDamage(int damage) {\n damage -= ARMOR;\r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "public void setDamage(double d) {\n damage = d;\n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "@Test\n\tvoid testDealBackDamage() {\n\t\tthis.miner.shoot();\n\t\tassertEquals(mRUtil.dwarfMiner_hp - (mRUtil.pickaxe_damage/mRUtil.saphir_returnedDamageRatio), this.miner.getHp(), \"Case: Damage taken by the Miner from saphir\");\n\n\t\tthis.saphir.setHp(50); // reset hp to 50\n\t\tthis.soldier.shoot();\n\t\tassertEquals(mRUtil.dwarfSoldier_hp - (mRUtil.rocket_damage/mRUtil.saphir_returnedDamageRatio),this.soldier.getHp(), \"Case: Damage taken by the Soldier from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.demolitionist.shoot();\n\t\tassertEquals(mRUtil.dwarfDemolitionist_hp - (mRUtil.dynamite_damage/mRUtil.saphir_returnedDamageRatio),this.demolitionist.getHp(), \"Case: Damage taken by the Demolitionist from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.scientist.shoot();\n\t\tassertEquals(mRUtil.dwarfScientist_hp - (mRUtil.potion_damage/mRUtil.saphir_returnedDamageRatio),this.scientist.getHp(), \"Case: Damage taken by the Scientist from saphir\");\n\t}", "private void subtractEnemyHealth(int damage) {\n this.enemyShipHealth -= damage;\n }", "public void heal(){\n\t\thp += potion.getHpBoost();\n\t\tif(hp > max_hp)hp = max_hp;\n\t}", "void takeDamage(int points) {\n this.health -= points;\n }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "public void addDamage(int amount) {\n\t\tdamage = amount;\n\t}", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void damage(Hero other) {\n this.weapon.knockBack(other, this.state, this.dir);\n }", "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "public static void makeDamageCalculation (SummonedMonster AttackingMonster, SummonedMonster GuardingMonster) {\r\n AttackingMonster.canStillAttackThisTurn = false; // Just in case this might be missed somewhere, erase its one attack per turn, because now there is no turning back.\r\n AttMonster.rememberPropertiesOfMonster(AttackingMonster);\r\n GuardMonster.rememberPropertiesOfMonster(GuardingMonster);\r\n // get the 2 relevant values for the attack calculation\r\n int relevantAttValue = AttackingMonster.att;\r\n int releventGuardingValue = GuardingMonster.relevantValue();\r\n // get some relevant properties of the involved monsters\r\n boolean attackingMonsterIndestructible = AttackingMonster.isIndestructibleByBattle();\r\n boolean attackingMonsterImmuneWhileWinning = AttackingMonster.isImmuneWhileWinning();\r\n boolean attackingMonsterImmune = AttackingMonster.isImmune();\r\n boolean attackingMonsterBanishes = AttackingMonster.isBanishingOpposingMonster(GuardingMonster);\r\n boolean attackingMonsterBanishesBoth = AttackingMonster.isBanishingBothMonsters(GuardingMonster);\r\n \r\n boolean guardingMonsterIndestructible = GuardingMonster.isIndestructibleByBattle();\r\n boolean guardingMonsterImmuneWhileWinning = GuardingMonster.isImmuneWhileWinning();\r\n boolean guardingMonsterImmune = GuardingMonster.isImmune();\r\n boolean guardingMonsterBanishes = GuardingMonster.isBanishingOpposingMonster(AttackingMonster);\r\n boolean guardingMonsterBanishesBoth = GuardingMonster.isBanishingBothMonsters(AttackingMonster);\r\n // let monsters clash here\r\n if (relevantAttValue == releventGuardingValue) {\r\n if (relevantAttValue==0) {\r\n YuGiOhJi.informationDialog(\"Nothing happens, because of zero attack.\", \"\");\r\n endAttack(false);\r\n }\r\n else {\r\n if (GuardingMonster.isInAttackMode) { // usually both monsters kill each other\r\n if (attackingMonsterBanishesBoth) {\r\n banishingDialogBanisher(AttackingMonster);\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).banishMonster();\r\n if (!guardingMonsterImmuneWhileWinning && !guardingMonsterImmune) {\r\n banishingDialogBanisher(GuardingMonster);\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).banishMonster();\r\n }\r\n else {\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).killMonster();\r\n }\r\n }\r\n else if (guardingMonsterBanishesBoth) {\r\n banishingDialogBanisher(GuardingMonster);\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).banishMonster();\r\n if (!attackingMonsterImmuneWhileWinning && !attackingMonsterImmune) {\r\n banishingDialogBanisher(AttackingMonster);\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).banishMonster();\r\n }\r\n else {\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).killMonster();\r\n }\r\n }\r\n else {\r\n if (!guardingMonsterIndestructible) {\r\n if (attackingMonsterBanishes && !guardingMonsterImmuneWhileWinning && !guardingMonsterImmune) {\r\n banishingDialogBigBanisher(GuardingMonster);\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).banishMonster();\r\n }\r\n else {\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).killMonster();\r\n }\r\n }\r\n if (!attackingMonsterIndestructible) {\r\n if (guardingMonsterBanishes && !attackingMonsterImmuneWhileWinning && !attackingMonsterImmune) {\r\n banishingDialogBigBanisher(AttackingMonster);\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).banishMonster();\r\n }\r\n else {\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).killMonster();\r\n }\r\n }\r\n }\r\n if (!guardingMonsterIndestructible && attackingMonsterIndestructible) {\r\n possibleSuicideEffect(false, false);\r\n }\r\n else if (guardingMonsterIndestructible && !attackingMonsterIndestructible) {\r\n possibleSuicideEffect(true, false); // suicide effect of attacking monster\r\n }\r\n else if (!guardingMonsterIndestructible && !attackingMonsterIndestructible) {\r\n possibleSuicideEffect(false, true); // double kill here\r\n }\r\n else { // if both are indestructible, none of them has a suicide effect\r\n endDamageStep(false); // here both survive\r\n }\r\n } // else nothing happens\r\n }\r\n }\r\n else if (relevantAttValue > releventGuardingValue) { // here the attacking monster usually kills the guarding one\r\n // look if attacking monster is either piercing by itself or copies Lance or Holy Lance\r\n boolean isEffectivelyPiercing = (AttackingMonster.hasPiercingDamageAbility() && !guardingMonsterImmune);\r\n boolean isContinuingGame = true;\r\n if (GuardingMonster.isInAttackMode || isEffectivelyPiercing) {\r\n isContinuingGame = isDealingBattleDamageAndContinuingGame(false, relevantAttValue-releventGuardingValue, GuardingMonster.isPlayersMonster);\r\n } // else no damage\r\n if (isContinuingGame) {\r\n if (guardingMonsterBanishesBoth) { // definitely banishes itself\r\n banishingDialogBanisher(GuardingMonster);\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).banishMonster();\r\n if (!attackingMonsterImmuneWhileWinning && !attackingMonsterImmune) { // banishes opponent only, if it not immune against it\r\n banishingDialogBanisher(AttackingMonster);\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).banishMonster();\r\n }\r\n }\r\n else if (!guardingMonsterIndestructible) {\r\n if (attackingMonsterBanishes && !guardingMonsterImmune) {\r\n banishingDialogBigBanisher(GuardingMonster);\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).banishMonster();\r\n }\r\n else {\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).killMonster();\r\n }\r\n possibleSuicideEffect(false, false);\r\n }\r\n else {\r\n endDamageStep(false);\r\n }\r\n }\r\n }\r\n else { // here: relevantAttValue < releventGuardingValue\r\n // rare case in which attacker gets the damage\r\n boolean isContinuingGame = isDealingBattleDamageAndContinuingGame(false, releventGuardingValue-relevantAttValue, AttackingMonster.isPlayersMonster);\r\n if (isContinuingGame) {\r\n if (GuardingMonster.isInAttackMode) {\r\n if (attackingMonsterBanishesBoth) {\r\n banishingDialogBanisher(AttackingMonster);\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).banishMonster();\r\n if (!guardingMonsterImmuneWhileWinning && !guardingMonsterImmune) {\r\n banishingDialogBanisher(GuardingMonster);\r\n getNthSummonedMonster(GuardingMonster.sumMonsterNumber, GuardingMonster.isPlayersMonster).banishMonster();\r\n }\r\n }\r\n else if (!attackingMonsterIndestructible) {\r\n if (guardingMonsterBanishes && !attackingMonsterImmune) {\r\n banishingDialogBigBanisher(AttackingMonster);\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).banishMonster();\r\n }\r\n else {\r\n getNthSummonedMonster(AttackingMonster.sumMonsterNumber, AttackingMonster.isPlayersMonster).killMonster();\r\n }\r\n }\r\n possibleSuicideEffect(true, false);\r\n }\r\n else {\r\n endDamageStep(false);\r\n }\r\n }\r\n }\r\n \r\n }", "public void setHungerDamage(float hunger);", "public void damage(double amount, Unit source, int type) {\n damage(amount, source);\r\n }", "public void damage ( double amount ) {\n\t\texecute ( handle -> handle.damage ( amount ) );\n\t}", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "void inflictDamage(double amount) {\r\n if (amount < 0) // shouldn't happen\r\n return;\r\n damage = Math.min(MAX_DAMAGE, damage + amount);\r\n if (damage == MAX_DAMAGE)\r\n setIsAlive(false);\r\n }", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "public void damaged() {\n this.damageState = DamageState.DAMAGED;\n }", "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "public void damageDevice() {\n\t\t\r\n\t}", "public void customizeMob(LivingEntity mob, LeveledMonster leveledMonster, CreatureSpawnEvent.SpawnReason spawnReason){\n mob.getPersistentDataContainer().set(monsterIdKey, PersistentDataType.STRING, leveledMonster.getName());\n assert mob.getEquipment() != null;\n mob.getEquipment().setHelmet(leveledMonster.getHelmet());\n mob.getEquipment().setChestplate(leveledMonster.getChestPlate());\n mob.getEquipment().setLeggings(leveledMonster.getLeggings());\n mob.getEquipment().setBoots(leveledMonster.getBoots());\n mob.getEquipment().setItemInMainHand(leveledMonster.getMainHand());\n mob.getEquipment().setItemInOffHand(leveledMonster.getOffHand());\n\n mob.getEquipment().setHelmetDropChance((float) leveledMonster.getHelmetDropChance());\n mob.getEquipment().setChestplateDropChance((float) leveledMonster.getChestplateDropChance());\n mob.getEquipment().setLeggingsDropChance((float) leveledMonster.getLeggingsDropChance());\n mob.getEquipment().setBootsDropChance((float) leveledMonster.getBootsDropChance());\n mob.getEquipment().setItemInMainHandDropChance((float) leveledMonster.getMainHandDropChance());\n mob.getEquipment().setItemInOffHandDropChance((float) leveledMonster.getOffHandDropChance());\n\n if (leveledMonster.getMainHand() != null){\n mob.setCanPickupItems(false);\n }\n\n AttributeInstance attribute = mob.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n assert attribute != null;\n if (mob instanceof Slime){\n Slime slime = (Slime) mob;\n attribute.setBaseValue(leveledMonster.getBaseHealth() / (16/Math.pow(slime.getSize(), 2)));\n mob.setHealth(leveledMonster.getBaseHealth() / (16/Math.pow(slime.getSize(), 2)));\n } else {\n attribute.setBaseValue(leveledMonster.getBaseHealth());\n mob.setHealth(leveledMonster.getBaseHealth());\n }\n if (leveledMonster.getDisplayName() != null){\n if (!leveledMonster.getDisplayName().equals(\"null\")){\n mob.setCustomName(leveledMonster.getDisplayName());\n mob.setCustomNameVisible(leveledMonster.isDisplayNameVisible());\n }\n }\n if (leveledMonster.isBoss()){\n String title = leveledMonster.getDisplayName();\n if (leveledMonster.getDisplayName() == null){\n title = Utils.chat(\"&c&lBoss\");\n } else if (leveledMonster.getDisplayName().equals(\"null\")){\n title = Utils.chat(\"&c&lBoss\");\n }\n Utils.createBossBar(Main.getInstance(), mob, title, BarColor.RED, BarStyle.SOLID, Main.getInstance().getConfig().getInt(\"boss_bar_view_distance\"));\n }\n\n for (String key : leveledMonster.getAbilities()){\n Ability instantAbility = AbilityManager.getInstance().getInstantAbilities().get(key);\n if (instantAbility != null){\n instantAbility.execute(mob, null, new CreatureSpawnEvent(mob, spawnReason));\n }\n Ability runningAbility = AbilityManager.getInstance().getRunningAbilities().get(key);\n if (runningAbility != null){\n runningAbility.execute(mob, null, new CreatureSpawnEvent(mob, spawnReason));\n }\n }\n }", "public double getDamage() {\n return damage;\n }", "public int getDamage() {\n return damage;\n }", "public float getDamage() {\n return damage;\n }", "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "@Override\n\tpublic void onDamage(WorldObj obj, Items item) {\n\n\t\tif(is_stunned) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint dmg = (int) item.type.ATK;\n\t\t\n\t\tOnScreenText.AddText(\"\"+dmg, bounds.x , bounds.y + 1.1f);\n\t\t\n\t\tvelX = obj.direction * 5;\n\t\tvelY = 5;\n\t\tgrounded = false;\n\t\t\n\t\tHP -= dmg;\n\t\t\n\n\t\tstun_counter = 0;\n\t\t\n\t\tif(HP <= 0 && !isDead) {\n\t\t\tonDeath();\n\t\t}\n\t\t\n\t}", "public int getDamage() {\n //TODO\n return 1;\n }", "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "@Override\n public String performSpecialEffect() {\n this.health += HEALTH_STEAL_AMOUNT;\n return \"The vampire stole a bit of health after it attacked.\";\n }", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "public void func_180430_e(float distance, float damageMultiplier) {}", "public short getSiegeWeaponDamage();", "private float setAttackAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.attackDamageModifier = baseDamageModifier + change;\n//System.out.println(\"attack: \" + this.attackDamageModifier);\n content.put(\"attack_damage_modifier\", \"\" + this.attackDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "@EventHandler\r\n public void mobDmgLstn(EntityDamageByEntityEvent event) {\r\n if(plugin.getConfig().getBoolean(\"enablePhaseModifiers\")) {\r\n if (plugin.isNight()) {\r\n if (event.getDamager() instanceof Monster) {\r\n event.setDamage(event.getDamage() * main.DmgMult);\r\n } else if (event.getEntity() instanceof Monster) {\r\n event.setDamage(event.getDamage() / main.DmgMult);\r\n }\r\n }\r\n }\r\n }", "public void receiveDamage(double damage) {\r\n health = health - damage;\r\n }", "public int getDamage() {\n\t\treturn (int) (Math.random() * damageVariance) + damage;\n\t}", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}", "public void takeDamage(double amount, Creature damager)\n\t{\n\t\tthis.health -= amount;\n\n\t\t// Check if dead, handle it\n\t\tif(health <= 0)\n\t\t{\n\t\t\t// Tell the killer that they killed you\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// It's possible that the caster of an effect has\n\t\t\t\t// died by the time the effect kills someone\n\t\t\t\tdamager.targetKilled(this);\n\t\t\t} catch(Exception e)\n\t\t\t{\n\t\t\t\t// No handling is needed\n\t\t\t}\n\n\t\t\tdie();\n\t\t}\n\t}", "String getDamage() {\n return damage;\n }", "public double getDamage() {\r\n\t\treturn damage;\r\n\t}", "public void takeDamage(double num) {\r\n \r\n int damage = (int)Math.round(num);\r\n this.health -= damage;\r\n this.state=this.color+16;\r\n if (damage <= 5) {\r\n if (this.playerNum == 1)\r\n this.positionX -= 40;\r\n else \r\n this.positionX += 40;\r\n }\r\n else if (this.playerNum == 1)\r\n this.positionX -= damage * 6;\r\n else\r\n this.positionX += damage * 6;\r\n \r\n }", "public void setDamage(int damage) {\n\t\tWeapon.itemDamage = damage;\n\t}", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker)\n\t{\n\t\treduceCurrentHp(damage, attacker, true);\n\t}", "@Override\r\n public void affiche() {\r\n System.out.print(\"Mage, pdmana : \" + getPtMana() + \", \");\r\n super.affiche();\r\n }", "@Override\n public void adjustTypeAttributes() {\n this.getSpecialData().addAttribute(SharedMonsterAttributes.maxHealth, 20.0);\n }", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "public void usePotion() {\n Potion potion = this.getInventory().getFirstPotion();\n if (potion != null){\n this.setLife(this.getLife() + potion.getGainLife());\n this.getInventory().removeItems(potion);\n }\n }", "private void subtractPlayerHealth(int damage) {\n this.playerShipHealth -= damage;\n }", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "@EventHandler\n\tpublic void attackMobs(EntityDamageByEntityEvent e) {\n\t\tMessages messagesConfig = plugin.getMsgs();\n\n\t\tif (e.getCause().equals(EntityDamageEvent.DamageCause.PROJECTILE)) { //Just my magic code w(o.o)w\n\t\t\treturn;\n\t\t}else if (e.getDamager() instanceof Player) {\n\t\t\tPlayer p = (Player) e.getDamager();\n\t\t\tItemStack pInv = p.getInventory().getItemInMainHand();\n\n\t\t\tif (!pInv.getType().name().contains(\"SWORD\") && !pInv.getType().name().contains(\"AXE\")) {\n\t\t\t\tif (!(e.getEntity() instanceof Chicken)) {\n\t\t\t\t\te.setCancelled(true);\n\n\t\t\t\t\tif (canSendMessage(p.getUniqueId()))\n\t\t\t\t\t\tp.sendMessage(StringUtil.inColor(messagesConfig.getCantHitWithoutSword()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}", "public float getHungerDamage();", "@Test\n public void useEffect() {\n \t//should normally run useItem method, but for testing it is not needed here.\n \tHealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0);\n \tbombEff.applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP - 700);\n \tSpecial heal = new Special(SpecialType.HEALTHBLESS);\n \theal.getEffect().get(0).applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP);\n }", "public int getDmg(){\r\n return enemyDmg;\r\n }", "private void harm(){\n\t\t// grab the selected ID\n\t\tfinal long rowID = getSelectedRowID();\n\n\t\t// reset the selection\n\t\tresetSelection();\n\n\t\t// show the dialog\n\t\tQuickDialogs.showHarmDialog(getActivity(), new IInputCallback() {\n\n\t\t\t@Override\n\t\t\tpublic void onInput(String input) {\n\t\t\t\tint damage;\n\t\t\t\t// convert the string to int\n\t\t\t\ttry{\n\t\t\t\t\tdamage = Integer.valueOf(input);\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\t// TODO display incorrect input dialog\n\t\t\t\t\tdamage = 0;\n\t\t\t\t}\n\n\t\t\t\t// deal dat damage!\n\t\t\t\tEncountersTable.changeHP(GameSQLDataSource.getDatabase(getActivity()), rowID, -damage);\n\n\t\t\t\trefreshList();\n\t\t\t}\n\t\t});\n\t}", "public short getHandThrowDamage();", "public void damage ( double amount , Entity source ) {\n\t\texecute ( handle -> handle.damage ( amount , source ) );\n\t}" ]
[ "0.72443634", "0.7173947", "0.7067845", "0.6853745", "0.684332", "0.6775684", "0.67269075", "0.6719451", "0.669774", "0.66765565", "0.6663179", "0.6661486", "0.665331", "0.6648944", "0.6588945", "0.64824843", "0.6480835", "0.6444721", "0.6422123", "0.6402117", "0.640179", "0.640179", "0.640179", "0.640179", "0.640179", "0.64016545", "0.63972676", "0.6390817", "0.63573813", "0.63480777", "0.63323224", "0.63295066", "0.632253", "0.63140464", "0.63040376", "0.62983936", "0.62888443", "0.6288739", "0.62792736", "0.62735415", "0.62684935", "0.6268034", "0.62590086", "0.6258336", "0.6230277", "0.6224875", "0.6208366", "0.6204517", "0.6197562", "0.6192005", "0.61904025", "0.61895156", "0.61882955", "0.6180526", "0.617216", "0.6161378", "0.6156196", "0.6151449", "0.61499363", "0.61429906", "0.6139996", "0.6131165", "0.61244065", "0.6111649", "0.61078984", "0.609785", "0.6096988", "0.6085669", "0.60853255", "0.6079382", "0.6078477", "0.60763", "0.60735047", "0.6069195", "0.6069195", "0.6069195", "0.6069195", "0.6069195", "0.6057841", "0.60564286", "0.6052832", "0.60502684", "0.6043014", "0.60423315", "0.60413677", "0.60365814", "0.6033921", "0.6033601", "0.6029442", "0.60281646", "0.6026584", "0.60247624", "0.60228676", "0.60226476", "0.6022109", "0.601964", "0.60156095", "0.6014672", "0.60045683", "0.6003293" ]
0.6925566
3
supply parameter for the amount of raw dmg dealt check for mitigation check for physical mitigation apply flat reduction Check for greater than 0 apply %age reduction check for magic mitigation apply flat reduction Check for greater than 0 apply %age reduction apply resistances check for damage type check for resistances reduce health by the final amount check for zero or negative health return value(?), boolean for death or the actual health reduction or the final health value? Maybe we need a new datatype? TODO END OF YOUR CODE!!! END OF YOUR CODE!!! END OF YOUR CODE!!! END OF YOUR CODE!!! END OF YOUR CODE!!! Getters and setters.
public String getSex(){ //"public" access allows other classes to retrieve the value of "sex", but since there // is no setter it cannot be changed from outside the class = Encapsulation/Inkapsling return this.sex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean takeDamage(int dmg);", "public int giveDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}", "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }", "public float getHungerDamage();", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "public int getDamage() {\n //TODO\n return 1;\n }", "public DamageType getDamagetype();", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "boolean takeDamage(DamageCount damage);", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "public void setDamage(double d) {\n damage = d;\n }", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "public int getDmg(){\r\n return enemyDmg;\r\n }", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "public double getHealth() { return health; }", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }", "public int getDamage() {\n return damage;\n }", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public short getHandThrowDamage();", "public double getDamage() {\n return damage;\n }", "public short getSiegeWeaponDamage();", "public float getDamage() {\n return damage;\n }", "public double calculateDamage(int type, double damage, double pierce)\n {\n double damageTaken = 0;\n int critRng;\n int ratio = 1;\n int critChance =1;\n int critDmg = 1;\n if(type == 1)\n {\n damageTaken = ( (damage*pierce*ratio)+((damage*ratio*(1-pierce))/(1+(0.01*(armor)))) );\n }\n else if (type == 2)\n {\n damageTaken = ( (damage*pierce*ratio)+((damage*ratio*(1-pierce))/(1+(0.01*(shield)))) );\n }\n else if (type == 3)\n {\n critRng = (int)(Math.random()*1.01);\n if (critRng<= critChance)\n damageTaken = ( (damage*critDmg*pierce*ratio) + ((damage*critDmg*(1-pierce))/(1+(0.01*(armor)))) );\n else\n damageTaken = ( (damage*pierce*ratio) + ((damage*(1-pierce))/(1+(0.01*(armor)))) );\n }\n else if (type == 4)\n {\n critRng = (int)(Math.random()*1.01);\n if (critRng<= critChance)\n damageTaken = ( ((weaponDmg+damage)*critDmg*pierce) + (((weaponDmg+damage)*critDmg*(1-pierce))/(1+(0.01*(armor)))) );\n else\n damageTaken = ( ((weaponDmg+damage)*pierce) + (((weaponDmg+damage)*(1-pierce))/(1+(0.01*(armor)))) );\n }\n else\n {\n damageTaken = damage;\n }\n return damageTaken;\n }", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "public double getResistance() \n {\n //dummy return value.\n return 0;\n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }", "@Test\n\tpublic void TestCalculateDamage() \n\t{\n\t\tWeapon gun = new Gun();\n\t\t// 0<=distance between the range<=30\n\t\tgun.calculateDamage(10);\n\t\tassertEquals(15,gun.getDamage());\n\t\tassertEquals(3,((Gun) gun).gettRateofFire(),.1);\n\t\tassertEquals(39,((Gun) gun).getActualAmmo(),.1);\n\t\t//distance out of the range\n\t\tgun.calculateDamage(50);\n\t\tassertEquals(15,gun.getDamage());\n\t\tassertEquals(2,((Gun) gun).gettRateofFire(),.1);\n\t\tassertEquals(38,((Gun) gun).getActualAmmo(),.1);\n\t\t //reload when actual ammo is 0\n\t\t((Gun) gun).setActualAmmo(0);\n\t ((Gun) gun).reload();\n\t\tassertEquals(40,((Gun) gun).getActualAmmo(),.1);\n\t\t\n\t}", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "public void updateHealth(String target, Integer amount, boolean isAttack){\n\n if(target == \"player\"){\n if(isAttack){\n //To make defence/armour a bit weaker, round up on the damage.\n playerShipHealth+= (int) (amount - Math.ceil(amount*playerShipDefence));\n } else{\n playerShipHealth+=amount;\n\n }\n if (playerShipHealth > playerShipHealthMax){\n playerShipHealth = playerShipHealthMax;}\n else if (playerShipHealth <= 0){\n //PlayerDied\n\n playerShipDead = true;\n playerShip.setIsDead();\n }\n\n } else if (target == \"enemy\"){\n if(isAttack){\n enemyShipHealth+= (int) (amount - Math.ceil(amount*enemyShipDefence));\n } else{\n enemyShipHealth+=amount;\n }\n if (enemyShipHealth > enemyShipHealthMax){\n enemyShipHealth = enemyShipHealthMax;}\n else if (enemyShipHealth <= 0){\n //Enemy Died\n enemyShipDead = true;\n enemyShip.setIsDead();\n }\n }\n }", "private void takeDamage(int damage){ health -= damage;}", "public static double getWeaponDamage(Item weapon, Skill attStrength) {\n/* 2348 */ if (weapon.isBodyPart() && weapon.getAuxData() != 100) {\n/* */ \n/* */ try {\n/* */ \n/* 2352 */ float f = Server.getInstance().getCreature(weapon.getOwnerId()).getCombatDamage(weapon);\n/* */ \n/* 2354 */ return (f + Server.rand.nextFloat() * f * 2.0F);\n/* */ }\n/* 2356 */ catch (NoSuchCreatureException nsc) {\n/* */ \n/* 2358 */ logger.log(Level.WARNING, \"Could not find Creature owner of weapon: \" + weapon + \" due to \" + nsc.getMessage(), (Throwable)nsc);\n/* */ \n/* */ }\n/* 2361 */ catch (NoSuchPlayerException nsp) {\n/* */ \n/* 2363 */ logger.log(Level.WARNING, \"Could not find Player owner of weapon: \" + weapon + \" due to \" + nsp.getMessage(), (Throwable)nsp);\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* 2368 */ float base = 6.0F;\n/* 2369 */ if (weapon.isWeaponSword()) {\n/* */ \n/* 2371 */ base = 24.0F;\n/* */ }\n/* 2373 */ else if (weapon.isWeaponAxe()) {\n/* 2374 */ base = 30.0F;\n/* 2375 */ } else if (weapon.isWeaponPierce()) {\n/* 2376 */ base = 12.0F;\n/* 2377 */ } else if (weapon.isWeaponSlash()) {\n/* 2378 */ base = 18.0F;\n/* 2379 */ } else if (weapon.isWeaponCrush()) {\n/* 2380 */ base = 36.0F;\n/* 2381 */ } else if (weapon.isBodyPart() && weapon.getAuxData() == 100) {\n/* */ \n/* 2383 */ base = 6.0F;\n/* */ } \n/* 2385 */ if (weapon.isWood()) {\n/* 2386 */ base *= 0.1F;\n/* 2387 */ } else if (weapon.isTool()) {\n/* 2388 */ base *= 0.3F;\n/* */ } \n/* 2390 */ base = (float)(base * (1.0D + attStrength.getKnowledge(0.0D) / 100.0D));\n/* */ \n/* 2392 */ float randomizer = (50.0F + Server.rand.nextFloat() * 50.0F) / 100.0F;\n/* */ \n/* 2394 */ return base + (randomizer * base * 4.0F * weapon.getQualityLevel() * weapon.getDamagePercent()) / 10000.0D;\n/* */ }", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "@Override\n public double getDefenseAmount() {\n return this.getDefense().getAbilityValue();\n }", "@Override\n public final float getSpecialDefenseValue() {\n return _defenseValue;\n }", "public void setHungerDamage(float hunger);", "public boolean takeDamage(int[] damage){\n int damageTaken = 0;\n\n if(damage[0] == 1){\n damageTaken = damage[1] - endurance;\n if(damageTaken < 0) damageTaken = 0;\n System.out.println(type + \" took \" + damageTaken + \" damage\\n\");\n }else if(damage[0] == 2){\n damageTaken = damage[1] - willpower;\n if(damageTaken < 0) damageTaken = 0;\n System.out.println(type + \" took \" + damageTaken + \" damage\\n\");\n }\n healthPoints -= damageTaken;\n return healthPoints > 0;\n }", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "public void takeDamage(int damage);", "AbilityDamage getAbilityDamage();", "private static int playerDamageDealt(int playerAttack, int monsterDefense){\r\n int playerDamageDealt;\r\n playerDamageDealt = (playerAttack - monsterDefense);\r\n return playerDamageDealt;\r\n }", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "public double getHealth(){\r\n return health;\r\n }", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "int getIndividualDefense();", "String getDamage() {\n return damage;\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public int getHealthCost();", "public int takeDamage(int damage) \r\n\t{\r\n\t\t//Pre: an int damage\r\n\t\t//Post: reduces health variable by damage\r\n\t\tif(health - damage > 0) \r\n\t\t{\r\n\t\t\thealth -= damage;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t\treturn health;\r\n\t}", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "Float getHealth();", "double getReliability();", "@Override\n\tpublic void setDefense(double defense) {\n\n\t}", "public double getDamage() {\r\n\t\treturn damage;\r\n\t}", "public abstract double getPercentDead();", "public int getHealth();", "public int getWorth() { return 1; }", "public void setHealth(double Health){\r\n health = Health;\r\n }", "public interface Damaging\n{\n //public void damage();\n public float getDamage();\n}", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "@Override\n\tpublic int calculateCustomDamageTaken(Entity attacker, Entity defender, int damage, int attackType) {\n\t\treturn damage;\n\t}", "private static int monsterDamageDealt(int monsterAttack, int playerDefense){\r\n int monsterDamageDealt;\r\n monsterDamageDealt = (monsterAttack - playerDefense);\r\n if(monsterDamageDealt < 0){\r\n monsterDamageDealt = 0;\r\n return monsterDamageDealt;\r\n }else{\r\n return monsterDamageDealt;\r\n }\r\n }", "float getPercentHealth();", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\r\n\t\treturn damage;\r\n\t}", "public int \r\nomStudent_dTotalStudReqChapels( View mStudent,\r\n String InternalEntityStructure,\r\n String InternalAttribStructure,\r\n Integer GetOrSetFlag )\r\n{\r\n int nChapelsRequired = 0;\r\n\r\n\r\n //:CASE GetOrSetFlag\r\n switch( GetOrSetFlag )\r\n { \r\n //:OF zDERIVED_GET:\r\n case zDERIVED_GET :\r\n\r\n //:TraceLineS(\"*** mStudent Checking Chapels Required ***\", \"\")\r\n TraceLineS( \"*** mStudent Checking Chapels Required ***\", \"\" );\r\n //:IF mStudent.ChapelAttendanceByTerm.TotalChapelsRequiredOverride != \"\"\r\n if ( CompareAttributeToString( mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsRequiredOverride\", \"\" ) != 0 )\r\n { \r\n //:TraceLineS(\"*** mStudent Yes, override ***\", \"\")\r\n TraceLineS( \"*** mStudent Yes, override ***\", \"\" );\r\n //:nChapelsRequired = mStudent.ChapelAttendanceByTerm.TotalChapelsRequiredOverride \r\n {MutableInt mi_nChapelsRequired = new MutableInt( nChapelsRequired );\r\n GetIntegerFromAttribute( mi_nChapelsRequired, mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsRequiredOverride\" );\r\n nChapelsRequired = mi_nChapelsRequired.intValue( );}\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:TraceLineS(\"*** mStudent No, override ***\", \"\")\r\n TraceLineS( \"*** mStudent No, override ***\", \"\" );\r\n //:nChapelsRequired = mStudent.ChapelAttendanceByTerm.TotalChapelsRequired \r\n {MutableInt mi_nChapelsRequired = new MutableInt( nChapelsRequired );\r\n GetIntegerFromAttribute( mi_nChapelsRequired, mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsRequired\" );\r\n nChapelsRequired = mi_nChapelsRequired.intValue( );}\r\n } \r\n\r\n //:END\r\n\r\n //:StoreValueInRecord ( mStudent,\r\n //: InternalEntityStructure, InternalAttribStructure, nChapelsRequired, 0 )\r\n StoreValueInRecord( mStudent, InternalEntityStructure, InternalAttribStructure, nChapelsRequired, 0 );\r\n break ;\r\n //: /* end zDERIVED_GET */\r\n //:OF zDERIVED_SET:\r\n case zDERIVED_SET :\r\n break ;\r\n } \r\n\r\n\r\n //: /* end zDERIVED_SET */\r\n //:END /* case */\r\n return( 0 );\r\n// END\r\n}", "public int getDamageTaken() {\n return this.damageTaken;\n }", "public abstract void setHealth(int health);", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "public int getDamage()\n\t{\n\t\treturn Damage;\n\t}", "@Override\n\tpublic int getMetricInternal() {\n// Util.runToAddressNoLimit(0, 0, 0x3d702, 0x3e77f);\n// missed_ = curGb.readMemory(curGb.pokemon.fightAttackMissedAddress);\n// System.out.println(\"missed: \" + missed_);\n\n\t\tEflUtil.runToAddressNoLimit(0, 0, curGb.pokemon.fightBattleCommand0a);\n\t\tint crit = curGb.readMemory(curGb.pokemon.fightCriticalHitAddress);\n\t\tint missed = curGb.readMemory(curGb.pokemon.fightAttackMissedAddress);\n//\t\tSystem.out.println(\"EflCheckMoveDamage crit: \" + crit + \" missed: \" + missed);\n\t\tif (missed != 0 || criticalHit != (crit != 0))\n\t\t return Integer.MIN_VALUE;\n\t\tif (thrashAdditionalTurns > 0 && curGb.readMemory(curGb.pokemon.thrashNumTurnsAddress) < thrashAdditionalTurns) {\n\t\t\tSystem.out.println(\"caught bad thrash \"+ curGb.readMemory(curGb.pokemon.thrashNumTurnsAddress));\n return Integer.MIN_VALUE;\n\t\t}\n\t\tif (PokemonUtil.isGen2()) {\n\t\t\tint effectMissed = curGb.readMemory(curGb.pokemon.fightEffectMissedAddress);\n\t\t\tif (this.effectMiss != (effectMissed != 0))\n\t\t\t return Integer.MIN_VALUE;\n\t\t}\n\t\tint dmg = Util.getMemoryWordBE(curGb.pokemon.fightCurDamageAddress);\n// System.out.println(\"EflCheckMoveDamage dmg: \" + dmg);\n\t\tif (dmg < minDamage || dmg > maxDamage)\n return Integer.MIN_VALUE;\n//\t\t\tSystem.out.println(crit+\" \"+missed+\" \"+effectMissed+\" \"+dmg);\n//\t\tSystem.out.println(\"atk: \"+atk+\", def: \"+def+\", pow: \"+pow+\", lvl: \"+lvl);\n//\t\tSystem.out.println(\"max damage: \"+maxdmg+\", dmg: \"+dmg);\n\t\treturn negateOutputDamage ? -dmg : dmg;\n\t}", "public int getHealth(){\n return health;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public boolean getDamage(){\n\t\tdie();\n\t\treturn false;\n\t}", "int getMinigameDefenseChancesLeft();", "public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}", "public float getDefense()\n {\n return defense;\n }", "public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}" ]
[ "0.6379196", "0.6291156", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.6254079", "0.6232408", "0.616934", "0.6135942", "0.6118407", "0.6111844", "0.60851914", "0.6078092", "0.6071837", "0.60708076", "0.6026802", "0.6023537", "0.6023537", "0.6023537", "0.6023537", "0.6023537", "0.6023537", "0.60119104", "0.59570557", "0.59570557", "0.59570557", "0.59570557", "0.59570557", "0.5951572", "0.5928493", "0.59034324", "0.588187", "0.5869235", "0.5865946", "0.5838443", "0.58358026", "0.5834608", "0.5833415", "0.58142656", "0.58093965", "0.579441", "0.5785471", "0.57680446", "0.57600427", "0.575307", "0.5752708", "0.57517475", "0.57484066", "0.57476574", "0.57255757", "0.5722761", "0.5717195", "0.5712916", "0.57106584", "0.5709993", "0.5709973", "0.5705113", "0.5697455", "0.5689299", "0.5664404", "0.56586134", "0.56557107", "0.5653962", "0.56538486", "0.5653535", "0.56489056", "0.5636535", "0.56322426", "0.5632191", "0.56270725", "0.56262434", "0.56257015", "0.56199497", "0.56141037", "0.56114805", "0.56021625", "0.5592645", "0.55863523", "0.55804574", "0.55779594", "0.55779594", "0.55779594", "0.55779594", "0.55779594", "0.5574972", "0.55723584", "0.5569394", "0.55684483", "0.55665046", "0.5564431", "0.5561383", "0.5548178", "0.55444866", "0.5543777", "0.55426913", "0.5533635", "0.55324316", "0.55302805", "0.55287737" ]
0.0
-1
Returns information about the Mage as a String. Overrides the default toStringmethod of Object.
@Override public String toString() { String sexString = ""; if (this.sex == "M") { //The class can always access it's own variables sexString = "He"; } else if (this.sex == "F") { sexString = "She"; } return "It's " + this.name + " a " + this.className + " . " + sexString + " has " + this.health + " hitpoints left."; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return info();\n }", "public String toString() {\r\n\t\tString str;\r\n\t\tstr = (super.toString() + matureToString());\r\n\r\n\t\treturn str;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nCard Name: \" + getName() +\n\t\t\t\t\"\\nMultiverse Id: \" + getMultiverseid() +\n\t\t\t\t\"\\nMana Cost: \" + getManaCost();\n\t}", "public String toString() {\n String str = \"Manufacturer: \" + manufacturer + \"\\n\";\n str += \"Serial Number: \" + serialNumber + \"\\n\";\n str += \"Date: \" + manufacturedOn + \"\\n\";\n str += \"Name: \" + name;\n return str;\n }", "public String toString() {\n if (inCatlog) {\n return name + \" \" + quantity + \" \" + price;\n }\n return name + \" \" + quantity;\n }", "public String toString(){\n return storeName + \"\\n\" + \n \t\tstoreAdress + \"\\n\" +\n \t\tdate + \"\\n\" + \n \t\ttime + \"\\n\" +\n \t\titemList + \"\\n\" +\n \t\t\"total price \" + totalPrice + \"\\n\" +\n \t\t\"total VAT price \" + String.format(\"%.2f\",totalVATPrice) + \"\\n\" +\n \t\t\"payed amount \" + cash + \"\\n\" +\n \t\t\"money back \" + change + \"\\n\" +\n \t\t\"discount \" + discount + \"\\n\";\n }", "public String toString() {\n\t\treturn \"<Milch \" + this.markenname + \" \" + this.menge + \">\";\n\t}", "public String toString() {\n return String.format(mFormat,\n format(mManufacturer),\n format(mBrand),\n format(mModel),\n mResolution,\n mDensity,\n mAndroidDensity,\n mVersion,\n mSdk,\n mLanguage);\n }", "public String toString(){\n return XMLParser.parseObject(this);\n }", "public String toString()\n {\n return getClass().getName() + \n \t\t\" name=\" + name +\n \t\t\"\\n Movement=\" + movement + \n \t\t\"\\n Weapon Skill=\" + weaponSkill + \n \t\t\"\\n Balistic Skill=\" + balisticSkill +\n \t\t\"\\n Strength=\" + strength +\n \t\t\"\\n Toughness=\" + toughness +\n \t\t\"\\n Wounds=\" + wounds +\n \t\t\"\\n Initiative=\" + strength +\n \t\t\"\\n Attacks=\" + attacks ;\n }", "public String toString() {\n\t\treturn \"This Airplane is manufactured by \" + this.brand +\". It costs \" + this.price + \"$ and its horse power is \" + this.horsePower + \".\";\n\t}", "public String toString() {\n\t\treturn super.toString() + \"\\n Genre: \" + this.genre +\n\t\t\t\t\"\\n Directors: \" + this.directors +\n\t\t\t\t\"\\n Cast: \" + this.cast;\n\t}", "public String toString() {\n String memory = super.toString();\n return memory + \"(\" + locations + \", \" + vehicles + \")\";\n }", "@Override\n public String toString() {\n \treturn this.getM_Name()+\" \"+getM_Description();\n }", "public String toString() {\n \t\treturn super.toString();\n \t}", "public String toString() {\n\t\treturn \"\\t\" + this.getName() + \" \" + this.getAmount();\n\t}", "public String toString(){\n\t\treturn String.format(\"Address: %s\\nType: %s\\nPrice: %.2f\\nOwner: %s\",getAddress(),getType(),getPrice(),getOwner());\n\t}", "public String toString() {\n\t\t// initialize the string\n\t\tString fuelCanDetails = \"FuelCan: \";\n\t\t\n\t\t// prep decimal formatting\n\t\tDecimalFormat df = new DecimalFormat();\n\t\tdf.applyPattern(\"##.#\");\n\t\t\n\t\t// add details to the string for...\n\t\t\n\t\t// location\n\t\tfuelCanDetails += \"loc=\";\n\t\tfuelCanDetails += df.format( this.getLocation().getX() ) + \",\" + df.format( this.getLocation().getY() ) + \" \";\n\t\t\n\t\t// color\n\t\tfuelCanDetails += \"color=[\" + this.getColor().getRed() + \",\" + this.getColor().getGreen() + \",\" + this.getColor().getBlue() + \"] \";\n\t\t\n\t\t// size\n\t\tfuelCanDetails += \"size=\" + this.getSize();\n\t\t\n\t\t// return the fuel can details\n\t\treturn fuelCanDetails;\n\t}", "public String toString()\r\n\t{\r\n\t\tString output = \" \";\r\n\t\tString specialModifier = \" \";\r\n\t\tif(this.isSpecial())\r\n\t\t{\r\n\t\t\tspecialModifier = \" *\";\r\n\t\t}\r\n\t\t\t\r\n\t\toutput = String.format(\"%-9s%-5s%-19s%s%.2f\",getType(), specialModifier, this.getName(),\"$ \", this.getPrice());\r\n\t\t//code to be done here\r\n\t\t\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public String toString() {\n\t\treturn super.toString();\n\t}", "public String toString() {\n\t\treturn super.toString();\n\t}", "public String toString(){\r\n\t\tString str = \"<\";\r\n\t\tString nameOne;\r\n\t\tif (isSuperGiant() == true){\r\n\t\t\tnameOne = \"SuperGiant\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\tnameOne = \"Red Giant\";\r\n\t\t}\r\n\t\tString nameTwo = getName();\r\n\t\tdouble massOne = getMass();\r\n\t\tdouble sizeOne = getSize();\r\n\t\tString strMass = roundOffTo2DecPlaces((float) massOne);\r\n\t\tString strSize = roundOffTo2DecPlaces((float) sizeOne);\r\n\t\tstr = str+nameTwo+\"> Is a \"+nameOne+\" Star with mass = <\"+strMass+\">KG and size = <\"+strSize+\"> miles.\";\r\n\t\treturn str;\r\n\t}", "public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}", "@Override\n public String toString() {\n return mString;\n }", "public String toString() {\t\t\t\t\t\r\n\t\treturn super.toString();\r\n\t}", "public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}", "public String toString() {\n return \"[Name: \" + itemName + \" Performance:\" + \" \" + itemAttribute + \" Price: \" + \" \" + itemPrice + \"]\";\n }", "public String toString(){\n return getName() + getDetails() + getPhone();\n }", "public java.lang.String toString(){\n\t\treturn (super.toString()+this.recycledMaterial);\n\t}", "public String toString() {\n\t\treturn toString(this);\n\t}", "public String toString() {\n return getName() + \", \" + getAuthor() + \", \" + getPrice();\n }", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "public String toString() { return stringify(this, true); }", "@Override // Inherited from the Object class.\n public String toString() {\n return \"gear: \" + gear + \" cadence: \" + cadence + \" speed: \" + speed +\n \" name: \" + name;\n }", "public String toString() {\r\n\t\treturn \"Name: \" + getName() + \"\\nAddress: \" + getAddress() + \"\\nPhone Number: \" + getPhoneNumber();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "public String toString()\n\t{\n\t\treturn (super.toString() + \" Weight: \" + weight + \" oz. Price: \" + cost());\n\t}", "@Override\n public String toString() {\n return super.toString() +\n \"\\nChemical Name: \" + chemicalName +\n \"\\nHazards: \" + hazards +\n \"\\nPrecautions: \" + precautions +\n \"\\nFirst Aid: \" + firstAid +\n \"\\nUses: \" + uses;\n }", "public String toString() {\r\n\t\tString retVal = \"Description: \" + getDescription()+ \" Cost: \" + getCost() + \" Calories: \" + getCalories() ;\r\n\t\treturn retVal;\r\n\t}", "public String getDetails() {\n return toString();\n }", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "public String objectToString() {\n \n StringBuilder s = new StringBuilder(new String(\"\"));\n if(aggressor instanceof Town) {\n s.append(((Town) aggressor).getName()).append(\" \");\n } else {\n s.append(((Nation) aggressor).getName()).append(\" \");\n }\n if(defender instanceof Town) {\n s.append(((Town) defender).getName()).append(\" \");\n } else {\n s.append(((Nation) defender).getName()).append(\" \");\n }\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }", "public String toString() {\r\n return \"Product: \" + this.product + \", Amount: \" + this.amount;\r\n }", "public String toString(){\n \n \t\t return \"make:\"+this.make+\" ,model:\"+this.model+\",year:\"+this.year+\",Mileage\"+this.mileage;\n\t}", "@Override\n public String toString() {\n return (getId() + \" \" + getName() + \" \" + getPrice() + \" \" + getStock() \n + \" \" + getMin() + \" \" + getMax());\n }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }", "@Override\n public String toString()\n {\n return super.toString() + \" \" + this.extended + \" \" + this.price + \n \" \" + this.number;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.gems + \" gems for \" + this.amount + \" \" + this.goods.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "public String toString() {\n return toDisplayString();\n }", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "public String toString() {\n\t\tString str = \"\";\n\t\tstr = String.format(\"%.2f lbs. @ %.2f /lbs.\\n%s\\t%.2f \", this.getWeight(), getPrice(), this.getName(), this.getCost());\n\t\treturn str;\n\t}", "@Override\n public String toString() {\n\n String line = \"Manufacturer : \" + MANUFACTURER + \"\\n\" +\n \"Serial Number : \" + serialNumber + \"\\n\" +\n \"Date : \" + getManufactureDate() + \"\\n\" +\n \"Name : \" + name;\n //I use line because I felt it was easier to code with\n return line;\n\n }", "@Override String toString();", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "@Override\n public String toString() {\n String text = \"\";\n\n text += super.toString();\n text += \"Potatoes price per kilo: \" + potatoesPrice + \" €\"; \n return text;\n }", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "protected String stringGoodsInfo() {\n String ret = \"Goods Supply\";\n for (G good : this.goods) {\n ret += \"\\nN = \" + good.supply;\n }\n return ret;\n }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override public String toString();", "public String toString()\r\n\t{\r\n\t\treturn getName();\r\n\t}", "@Override\n public String toString() {\n return(this.name + \": \" + this.bust + \", \" + this.chest +\n \", \" + this.waist + \", \" + this.inseam);\n }", "public String toString() {\n if(this.getName()==null) {\n String output = String.format(\"%40.2f\\n\", this.getCost());\n return output;\n }else {\n String output = String.format(\"%-15s(IceCream)%15.2f\\n\\n%s(IceCream) calories:%.0f\\n\\n\",\n this.getName(),this.getCost(),this.getName(),this.getCalories());\n return output;\n /**\n * @return A string with the data from this class such as the name, cost, calories and formats the string by using the String.format method.\n */\n }\n\n }", "public String toString() {\n System.out.println(this.getName() +\":\");\n System.out.println(\"Balance: $\" + this.getBalance());\n System.out.println(\"Monthly Interest: $\" + this.getMonthlyInterest());\n System.out.println(\"Date Created: \" + this.getDateCreated());\n System.out.println();\n return \"\";\n }", "public String toString() {\n return super.toString();\n }", "@Override\n public String toString()\n {\n return this.toLsString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString record;\r\n\t\trecord = getID() + \":\" + getYear() + \":\" + getMake() + \":\" + getModel() + \":\" + getNumOfSeats() + \":\"\r\n\t\t\t\t+ getStatus() + \":\" + getImageName();\r\n\t\treturn record;\r\n\t}", "public String toString() {\n return name();\n }", "public String toString()\r\n\t{\r\n\t\tString str = \"\"; \r\n\t\t\r\n\t\tfor(Option o : option)\r\n\t\t\tstr += o.getClass().getSimpleName() + \" \" + \"(\"+o.getPrix()+\"€)\"; \r\n\t\treturn ( \"+ \" + this.getMarque().getName() + \" : \" + getNom() + \" \" + this.moteur.toString() + \" \" + \"(\"+String.valueOf(getPrix())+\"€)\" + \" [\"+ str +\"]\" + \" d'une valeur totale de \" + this.prixTotal() + \" €\\n\" ) ; \r\n\t}", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tString s = \"Volume Name: \" + volumeName + \" \" + \"Number of Books: \" + numberOfBooks + \"\\n\";\r\n\r\n\t\ts = s + getBookArray();\r\n\t\treturn s;\r\n\t}", "public String toString()\r\n/* 129: */ {\r\n/* 130:131 */ String str = \"\";\r\n/* 131:132 */ if (getAmplifier() > 0) {\r\n/* 132:133 */ str = getPotionName() + \" x \" + (getAmplifier() + 1) + \", Duration: \" + getDuration();\r\n/* 133: */ } else {\r\n/* 134:135 */ str = getPotionName() + \", Duration: \" + getDuration();\r\n/* 135: */ }\r\n/* 136:137 */ if (this.splash) {\r\n/* 137:138 */ str = str + \", Splash: true\";\r\n/* 138: */ }\r\n/* 139:140 */ if (!this.showParticles) {\r\n/* 140:141 */ str = str + \", Particles: false\";\r\n/* 141: */ }\r\n/* 142:143 */ if (Potion.potionList[this.id].j()) {\r\n/* 143:144 */ return \"(\" + str + \")\";\r\n/* 144: */ }\r\n/* 145:146 */ return str;\r\n/* 146: */ }", "public String toString() {\n\t\treturn getName();\r\n\t}", "public String toString() {\n\t\treturn store.toString();\n\t}", "public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }" ]
[ "0.7307911", "0.72756577", "0.7219411", "0.7175201", "0.71655935", "0.7147992", "0.70548534", "0.7050445", "0.7047605", "0.70382345", "0.7037541", "0.70310605", "0.7024476", "0.70100874", "0.69356185", "0.6923207", "0.69160396", "0.6912633", "0.69123423", "0.6905393", "0.6905393", "0.6905324", "0.689952", "0.68972856", "0.68936694", "0.68898505", "0.68833625", "0.6881687", "0.6879934", "0.6859654", "0.68550783", "0.6853401", "0.68485034", "0.68458366", "0.6835823", "0.68210894", "0.6813173", "0.6804109", "0.6801642", "0.68008375", "0.67949545", "0.6794875", "0.67942584", "0.6789514", "0.67865574", "0.6781975", "0.67797583", "0.6775804", "0.6773911", "0.6771317", "0.6769687", "0.67690235", "0.67634", "0.6760928", "0.67532426", "0.6751903", "0.6748859", "0.6746347", "0.6745238", "0.67446357", "0.67446357", "0.67446357", "0.67446357", "0.67446357", "0.67446357", "0.67438924", "0.6742002", "0.6740783", "0.6737949", "0.673666", "0.6734779", "0.6732709", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.6730383", "0.672862", "0.6712545", "0.6710995", "0.6709204", "0.66995347", "0.6699266", "0.66989714", "0.66955906", "0.6694424", "0.669321" ]
0.0
-1
Create a new XML document with some crappy content
@Nonnull private static Document _createDummyPayload () { final Document aXMLDoc = XMLFactory.newDocument (); final Node aRoot = aXMLDoc.appendChild (aXMLDoc.createElement ("test")); aRoot.appendChild (aXMLDoc.createTextNode ("Text content")); return aXMLDoc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "private Document createXMLDocumentStructure() {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = null;\r\n\t\ttry {\r\n\t\t\tbuilder = dbf.newDocumentBuilder();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Creates the Document\r\n\t\tDocument serviceDoc = builder.newDocument();\r\n\t\t/*\r\n\t\t * Create the XML Tree\r\n\t\t */\r\n\t\tElement root = serviceDoc.createElement(\"service\");\r\n\r\n\t\tserviceDoc.appendChild(root);\r\n\t\treturn serviceDoc;\r\n\t}", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "public void createEmptyDocument()\n throws IOException, SAXException {\n URL url = WPVSCapabilitiesDocument.class.getResource( XML_TEMPLATE );\n if ( url == null ) {\n throw new IOException( \"The resource '\" + XML_TEMPLATE + \" could not be found.\" );\n }\n load( url );\n }", "protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }", "public void startDocument()\n throws SAXException {\n newContent = new StringBuffer();\n // TODO: what is the proper way to set this?\n newContent.append(\"<?xml version=\\\"1.0\\\"?>\");\n }", "public void transformToSecondXml();", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }", "public void build() throws IOException {\n if (packageWriter == null) {\n //Doclet does not support this output.\n return;\n }\n build(layoutParser.parseXML(ROOT), contentTree);\n }", "public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }", "public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Content createContent();", "public void openXml() throws ParserConfigurationException, TransformerConfigurationException, SAXException {\n\n SAXTransformerFactory saxTransformerFactory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();\n transformer = saxTransformerFactory.newTransformerHandler();\n\n // pretty XML output\n Transformer serializer = transformer.getTransformer();\n serializer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n serializer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setResult(result);\n transformer.startDocument();\n transformer.startElement(null, null, \"inserts\", null);\n }", "public static Document createNewDocument(String rootName, Version version) {\r\n try {\r\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder();\r\n Document doc = db.newDocument();\r\n Node root = doc.createElement(rootName);\r\n if (version != null) {\r\n addAttr(doc, root, \"version\", version);\r\n }\r\n\r\n doc.appendChild(root);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }", "public static void createXmlNote() throws JAXBException {\n Staff staff = new Staff();\n\n //Creating xml root node;\n //Create JAXB context and instantiate marshaller;\n JAXBContext jaxbContext = JAXBContext.newInstance(Staff.class);\n // Marshaller : Java Object to XML content\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n jaxbMarshaller.marshal(staff, new File(\"test.xml\"));\n }", "private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "private static void createZipOrXmlFile(Document createdDocument) {\n if(attachmentList.size() > 0){\n File zipFile = new File(OUTPUT_ZIP_PATH);\n ZipOutputStream zipOutputStream = null;\n String fileName;\n byte[] decoded;\n\n try {\n zipOutputStream = new ZipOutputStream(new FileOutputStream(zipFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n for (Attachment attachment : attachmentList) {\n try {\n //create a new zip entry\n //add the zip entry and write the decoded data\n assert zipOutputStream != null;\n fileName = attachment.filename;\n decoded = attachment.data;\n ZipEntry imageOutputStream = new ZipEntry(ImportUtils.PHOTO_FILE_PATH + fileName);\n zipOutputStream.putNextEntry(imageOutputStream);\n zipOutputStream.write(decoded);\n\n } catch (IllegalArgumentException | IOException e) {\n e.printStackTrace();\n }\n }\n //add the xml after the attachments have been added\n ZipEntry xmlOutputStream = new ZipEntry(ImportUtils.GENERATED_XML_FILENAME);\n try {\n zipOutputStream.putNextEntry(xmlOutputStream);\n zipOutputStream.write(Entry.toBytes(createdDocument));\n //closing the stream\n //! not closing the stream can result in malformed zip files\n zipOutputStream.finish();\n zipOutputStream.flush();\n zipOutputStream.closeEntry();\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }else{\n //if no attachments found\n // add the xml file only\n OutputFormat format = OutputFormat.createPrettyPrint();\n try {\n OutputStream outputStream = new FileOutputStream(OUTPUT_XML_PATH);\n XMLWriter writer = new XMLWriter(outputStream, format);\n writer.write(createdDocument);\n } catch (IOException e ) {\n e.printStackTrace();\n }\n }\n }", "FileContent createFileContent();", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\ttry {\n\t\t\treset();\n\n\t\t\tif (writeXmlDecl) {\n\t\t\t\tString e = \"\";\n\t\t\t\tif (encoding != null) {\n\t\t\t\t\te = \" encoding=\\\"\" + encoding + '\\\"';\n\t\t\t\t}\n\n\t\t\t\twriteXmlDecl(\"<?xml version=\\\"1.0\\\"\" + e + \" standalone=\\\"yes\\\"?>\");\n\t\t\t}\n\n\t\t\tif (header != null) {\n\t\t\t\twrite(header);\n\t\t\t}\n\n\t\t\tsuper.startDocument();\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}", "public static XMLDocument create()\n {\n return new XMLDocument();\n }", "public static void initXMLdoc() throws Exception {\n\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n\tdoc = impl.createDocument(null,null,null);\n }", "abstract public Content createContent();", "private void createDOCDocument(String from, File file) throws Exception {\n\t\tPOIFSFileSystem fs = new POIFSFileSystem(Thread.currentThread().getClass().getResourceAsStream(\"/poi/template.doc\"));\n\t\tHWPFDocument doc = new HWPFDocument(fs);\n\t\n\t\tRange range = doc.getRange();\n\t\tParagraph par1 = range.getParagraph(0);\n\t\n\t\tCharacterRun run1 = par1.insertBefore(from, new CharacterProperties());\n\t\trun1.setFontSize(11);\n\t\tdoc.write(new FileOutputStream(file));\n\t}", "public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }", "public static Document newDocument() throws XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\t\t\t\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.newDocument();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}", "public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "DocumentContent createDocumentContent(byte[] bytes);", "public void generarDoc(){\n generarDocP();\n }", "public void generateXmlFile(IGallery gallery) {\r\n // create gallery node and page nodes for every page, subpage\r\n // and append that nodes to document object\r\n appendGallery(gallery);\r\n\r\n /*\r\n *****\r\n choose directory and file name\r\n *****\r\n */\r\n try {\r\n document.setXmlStandalone(true);\r\n xmlFile = new File(file + \".xml\");\r\n xmlFile.createNewFile();\r\n FileOutputStream outputStream = new FileOutputStream(xmlFile);\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer t = tf.newTransformer();\r\n DOMSource dSource = new DOMSource(document);\r\n StreamResult sr = new StreamResult(outputStream);\r\n\r\n // set node indentation in xml\r\n t.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n t.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", indent);\r\n\r\n // add doctype to xml document\r\n DOMImplementation domImpl = document.getImplementation();\r\n DocumentType docType = domImpl.createDocumentType(\"doctype\", ROOT_NODE, DTD_FILE);\r\n t.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, docType.getSystemId());\r\n t.transform(dSource, sr);\r\n\r\n outputStream.flush();\r\n outputStream.close();\r\n\r\n zipGallery();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (TransformerException e) {\r\n e.printStackTrace();\r\n }\r\n }", "DocumentFragment getXML(String path)\n throws ProcessingException ;", "public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }", "Object create(File file) throws IOException, SAXException, ParserConfigurationException;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public XMLDocument() {\r\n xml = new StringBuilder();\r\n }", "protected void assembleDocument() {\n\n // Create the missive\n this.createMissive();\n }", "public void createXMLFileForNOC(Report report) {\n\ttry{\n\t\tFile outDir = new File(report.getXmlFilePath()); \n\t\tboolean isDirCreated = outDir.mkdirs();\n\t\tif (isDirCreated)\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location created.\");\n\t\telse\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location already exist.\");\n\t\t\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\t\t\n\t\t// root elements\n\t\tDocument doc = docBuilder.newDocument();\n\t\tElement rootElement = doc.createElement(\"root\");\n\t\tdoc.appendChild(rootElement);\n\t\n\t\t\t//for(Student student : report.getStudentList()){\n\t\t\t\t\t\n\t\t\t\tElement studentList = doc.createElement(\"student\");\n\t\t\t\trootElement.appendChild(studentList);\n\t\t\t\t\n\t\t\t\t/*Element schoolname = doc.createElement(\"schoolname\");\n\t\t\t\tschoolname.appendChild(doc.createTextNode((report.getSchoolDetails().getSchoolDetailsName() != null ? report.getSchoolDetails().getSchoolDetailsName() : \"\" )));\n\t\t\t\tstudentList.appendChild(schoolname);*/\n\t\t\t\t\n\t\t\t\tElement academicYear = doc.createElement(\"academicYear\");\n\t\t\t\tacademicYear.appendChild(doc.createTextNode((String) (report.getAcademicYear().getAcademicYearName()!= null ? report.getAcademicYear().getAcademicYearName() : \"\" )));\n\t\t\t\tstudentList.appendChild(academicYear);\n\t\t\t\t\n\t\t\t\tElement roll = doc.createElement(\"roll\");\n\t\t\t\troll.appendChild(doc.createTextNode((report.getReportCode().toString()!=null?report.getReportCode().toString():\"---------\")));\n\t\t\t\tstudentList.appendChild(roll);\n\t\t\t\t\n\t\t\t\tElement studentname = doc.createElement(\"studentname\");\n\t\t\t\tstudentname.appendChild(doc.createTextNode((report.getUpdatedBy()!=null?report.getUpdatedBy():\"---------------\")));\n\t\t\t\tstudentList.appendChild(studentname);\n\t\t\t\n\t\t\t\t\n\t\t\t//}\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\t\t\n\t\t\tStreamResult result = new StreamResult(new File(report.getXmlFilePath()+report.getXmlFileName()));\n\t\t\t\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t}catch (ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t\tlogger.error(\"\",pce);\n\t\t} catch (TransformerException tfe) {\n\t\t\ttfe.printStackTrace();\n\t\t\tlogger.error(tfe);\n\t\t}\n\t}", "protected void createContents() {\n\n\t}", "public void createFirstXmlFile(ArrayList<Entry> entityList);", "public void buildPackageDoc(XMLNode node, Content contentTree) throws Exception {\n contentTree = packageWriter.getPackageHeader(Util.getPackageName(packageDoc));\n buildChildren(node, contentTree);\n packageWriter.addPackageFooter(contentTree);\n packageWriter.printDocument(contentTree);\n packageWriter.close();\n Util.copyDocFiles(configuration, packageDoc);\n }", "public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "protected InputStream getContentXML(String viewId) throws Exception {\n if (log.isDebugEnabled()) {\n log.debug(\"requested viewId: \" + viewId);\n }\n StringBuilder sb = new StringBuilder(\"<?xml version=\\\"1.0\\\"?>\");\n sb.append(\"<root>\");\n sb.append(\"<child>\");\n sb.append(\"Hello World!\");\n sb.append(\"</child>\");\n sb.append(\"</root>\");\n return new ByteArrayInputStream(sb.toString().getBytes(\"utf-8\"));\n }", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "public WalkerDocument newDocument() { return newDocument((IOptions)null); }", "public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }", "public void create() {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n\n // Create a new font object selecting one of the PDF base fonts\n PDFont font = PDType1Font.HELVETICA_BOLD;\n try (document) {\n // Start a new content stream which will \"hold\" the to be created content\n writeDataToDocument(document, page, font);\n // Save the results and ensure that the document is properly closed:\n document.save(\"Hello World.pdf\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }", "@org.junit.Test\n public void constrCompelemDoc1() {\n final XQuery query = new XQuery(\n \"element elem {., .}\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root></elem>\", false)\n );\n }", "public abstract StringBuffer toXML();", "public abstract StringBuffer toXML ();", "public abstract WalkerDocument newDocument(IOptions options);", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "public interface SDXHelper {\n /**\n * Creates a DOM <CODE>Element</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element. The attributes stored by\n * the SAX object are retrieved and set to the created DOM object.\n *\n * @param namespaceURI The namespace URI for the new element\n * @param localName The local name for the new element\n * @param qualifiedName The qualified name for the new element\n * @param attributes The attributes for the new element\n * @param parent The parent for the new element or\n * <CODE>null</CODE> if this is a root element\n * @return The created DOM <CODE>Element</CODE>\n */\n public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);\n\n /**\n * Creates a DOM <CODE>Text</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>Text</CODE> node. In other words, this method doesn't allow\n * the creation of adjacent <CODE>Text</CODE> nodes and creates\n * a <CODE>Text</CODE> node only when this is necessary.\n *\n * @param data The character data for the text node\n * @param parent The parent for the text node\n * @return The created or existent <CODE>Text</CODE> node\n */\n public Text createTextNode(String data, Element parent);\n\n /**\n * Creates a DOM <CODE>CDATASection</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>CDATASection</CODE> node and <CODE>newCDATA</CODE> is\n * <CODE>false</CODE>. In other words, this method avoids the creation\n * of adjacent <CODE>CDATASection</CODE> nodes and creates a\n * <CODE>CDATASection</CODE> node only when this is necessary or required.\n *\n * @param data The character data for the CDATA section\n * @param newCDATA Indicates the beginning of a new CDATA section\n * @param parent The parent for the CDATA section\n * @return The created or existent\n * <CODE>CDATASection</CODE> node\n */\n public CDATASection createCDATASection(String data, boolean newCDATA,\n Element parent);\n\n /**\n * Creates a DOM <CODE>ProcessingInstruction</CODE> node and appends it\n * as a child to the given <CODE>parent</CODE> element.\n *\n * @param target The target for the new processing instruction\n * @param data The data for the new processing instruction\n * @param parent The parent for the new processing instruction\n * @return The created <CODE>ProcessingInstruction</CODE>\n */\n public ProcessingInstruction createProcessingInstruction(\n String target, String data, Element parent);\n\n /**\n * Creates a DOM <CODE>Comment</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element.\n *\n * @param data The data for the new comment\n * @param parent The parent for the new comment\n * @return The created <CODE>Comment</CODE> node\n */\n public Comment createComment(String data, Element parent);\n}", "ShipmentPackageContent createShipmentPackageContent();", "@SuppressWarnings(\"PMD.AvoidDuplicateLiterals\")\n public XML getFixedResult() {\n final List<String> packages = this.skeleton.xpath(\"//package/@id\");\n String finalres = \"\";\n if (this.tempres.toString().indexOf(\"<package\") > 6) {\n finalres = this.tempres.toString().substring(\n 0,\n this.tempres.toString().indexOf(\"<package\") - 6\n );\n }\n for (final String apackage : packages) {\n finalres = finalres.concat(\n String.format(\n \" <package id=\\\"%s\\\">\\n\",\n apackage\n )\n );\n final List<String> classes = this.skeleton.xpath(\n String.format(\n \"//package[@id ='%s']/class/@id\",\n apackage\n )\n );\n for (final String aclass : classes) {\n finalres = this.calc(aclass, finalres);\n }\n finalres = finalres.concat(\" </package>\\n\");\n }\n if (this.tempres.toString().indexOf(\"</app\") > 1) {\n finalres = finalres.concat(\n this.tempres.toString().substring(\n this.tempres.toString().indexOf(\"</app\")\n )\n );\n }\n return new XMLDocument(finalres);\n }", "void generateContent(OutputStream output) throws Exception;", "public void newDocument();", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "private void createPostXML() {\n Call<PostModel> call = jsonPlaceHolderAPI.createPostXML(23, \"New Title\", \"New Text\");\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }", "public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }", "private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }", "public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);", "public static void main(String[]args){\n XMLOutputter out = new XMLOutputter();\n SAXBuilder sax = new SAXBuilder();\n\n //Objekte die gepseichert werden sollen\n Car car = new Car(\"CR-MD-5\",\"16.05.1998\",4,4,4);\n Car car2 = new Car(\"UL-M-5\",\"11.03.2002\",10,2,5);\n\n\n Element rootEle = new Element(\"cars\");\n Document doc = new Document(rootEle);\n\n //hinzufuegen des ersten autos\n Element carEle = new Element(\"car\");\n carEle.setAttribute(new Attribute(\"car\",\"1\"));\n carEle.addContent(new Element(\"licenseplate\").setText(car.getLicensePlate()));\n carEle.addContent(new Element(\"productiondate\").setText(car.getProductionDate()));\n carEle.addContent(new Element(\"numberpassengers\").setText(Integer.toString(car.getNumberPassengers())));\n carEle.addContent(new Element(\"numberwheels\").setText(Integer.toString(car.getNumberWheels())));\n carEle.addContent(new Element(\"numberdoors\").setText(Integer.toString(car.getNumberDoors())));\n\n //hinzufuegen des zweiten autos\n Element carEle2 = new Element(\"car2\");\n carEle2.setAttribute(new Attribute(\"car2\",\"2\"));\n carEle2.addContent(new Element(\"licenseplate\").setText(car2.getLicensePlate()));\n carEle2.addContent(new Element(\"productiondate\").setText(car2.getProductionDate()));\n carEle2.addContent(new Element(\"numberpassengers\").setText(Integer.toString(car2.getNumberPassengers())));\n carEle2.addContent(new Element(\"numberwheels\").setText(Integer.toString(car2.getNumberWheels())));\n carEle2.addContent(new Element(\"numberdoors\").setText(Integer.toString(car2.getNumberDoors())));\n\n\n doc.getRootElement().addContent(carEle);\n doc.getRootElement().addContent(carEle2);\n\n //Einstellen des Formates auf gut lesbares, eingeruecktes Format\n out.setFormat(Format.getPrettyFormat());\n //Versuche in xml Datei zu schreiben\n try {\n out.output(doc, new FileWriter(\"SaveCar.xml\"));\n } catch (IOException e) {\n System.out.println(\"Error opening File\");\n }\n\n\n //Einlesen\n\n File input = new File(\"SaveCar.xml\");\n Document inputDoc = null;\n //Versuche aus xml Datei zu lesen und Document zu instanziieren\n try {\n inputDoc = (Document) sax.build(input);\n } catch (JDOMException e) {\n System.out.println(\"An Error occured\");\n } catch (IOException e) {\n System.out.print(\"Error opening File\");\n }\n\n //Liste von Elementen der jeweiligen Autos\n List<Element> listCar = inputDoc.getRootElement().getChildren(\"car\");\n List<Element> listCar2 = inputDoc.getRootElement().getChildren(\"car2\");\n\n //Ausgabe der Objekte auf der Konsole (manuell)\n printXML(listCar);\n System.out.println();\n printXML(listCar2);\n\n //Erstellen der abgespeicherten Objekte\n Car savedCar1 = createObj(listCar);\n Car savedCar2 = createObj(listCar2);\n\n System.out.println();\n System.out.println(savedCar1);\n System.out.println();\n System.out.println(savedCar2);\n\n}", "public static DocumentFragment produceDocFragmentFromString(String theText, String enc, reporter theReporter)\n throws Exception {\n if (theText == null) {\n return null;\n }\n if (enc == null) {\n enc = default_encoding;\n }\n theText = theText.trim();\n if (!theText.startsWith(\"<?xml\")) {\n // put in artificial root so we reckognize it if it\n // is wrapped during tidy\n theText = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + enc + \"\\\"?><\"+WXTROOT+\">\" + theText + \"</\"+WXTROOT+\">\";\n //?? does not seem to help\n byte[] data = theText.getBytes(enc);\n theText = new String(data, enc);\n }\n try {\n // dont block tidy in this attempt\n Document doc = domer.makeDomFromString(theText, false,enc);\n doc.normalize();\n DocumentFragment df = doc.createDocumentFragment();\n NodeList nlist = doc.getDocumentElement().getChildNodes();\n\n for (int ix = 0; ix < nlist.getLength(); ix++) {\n df.appendChild(nlist.item(ix).cloneNode(true));\n }\n\n return df;\n \n } catch (DOMException e) {\n throw (new Exception(e.getMessage()));\n } catch (Exception e) {\n throw (new Exception(e.getMessage()));\n }\n }", "public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "private void createTempDatabase() {\n\t\thandler = new ERXmlDocumentHandler(doc);\n\t\tList<String> filter = initFilter(subjectId);\n\t\tparseEntitys(filter);\n\t}", "public static Document createDocument(final Element element) {\n\t\tfinal DOMImplementation domImplementation = element.getOwnerDocument().getImplementation(); //get the DOM implementation used to create the document\n\t\t//create a new document corresponding to the element\n\t\t//TODO bring over the doctype, if needed\n\t\tfinal Document document = domImplementation.createDocument(element.getNamespaceURI(), element.getNodeName(), null);\n\t\tfinal Node importedNode = document.importNode(element, true); //import the element into our new document\n\t\tdocument.replaceChild(importedNode, document.getDocumentElement()); //set the element clone as the document element of the new document\n\t\treturn document; //return the document we created\n\t}", "public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }", "BODY createBODY();", "@Override\n\tprotected void generateRootElement(Map<String, String> reqMap,\n\t\t\tDocument returnDoc, IVenderConfig config) throws Exception {\n\t\t\n\t}", "private static Document generateXmlFile(LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName) throws ParserConfigurationException\r\n {\r\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n \r\n Date date = new Date();\r\n long time = date.getTime();\r\n Timestamp ts = new Timestamp(time);\r\n \r\n //Nodo Radice export_results\r\n Element export_results = doc.createElement(\"export_results\");\r\n export_results.setAttribute(\"date\", \"\"+ts);\r\n doc.appendChild(export_results);\r\n \r\n //Figlo del nodo radice export_results\r\n Element graph = doc.createElement(\"graph\");\r\n graph.setAttribute(\"name\", graphName);\r\n export_results.appendChild(graph);\r\n \r\n //Popolo iterando sulla mappa i nodi interni del TAG graph\r\n for(String mapKey : inputData.keySet())\r\n {\r\n //System.out.println(\"Key: \" + mapKey + \" - - Value: \" + inputData.get(mapKey));\r\n \r\n Element singleElementInGraph = doc.createElement(elementInGraph);\r\n singleElementInGraph.setTextContent(Integer.toString(inputData.get(mapKey)));\r\n singleElementInGraph.setAttribute(\"type\", mapKey);\r\n graph.appendChild(singleElementInGraph);\r\n }\r\n return doc;\r\n }", "public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}", "public void createXMLFileForCertificate(Report report) {\n\ttry{\n\t\tFile outDir = new File(report.getXmlFilePath()); \n\t\tboolean isDirCreated = outDir.mkdirs();\n\t\tif (isDirCreated)\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location created.\");\n\t\telse\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location already exist.\");\n\t\t\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\t\t\n\t\t// root elements\n\t\tDocument doc = docBuilder.newDocument();\n\t\tElement rootElement = doc.createElement(\"root\");\n\t\tdoc.appendChild(rootElement);\n\t\n\t\t\tfor(Student student : report.getStudentList()){\n\t\t\t\t\t\n\t\t\t\tElement studentList = doc.createElement(\"student\");\n\t\t\t\trootElement.appendChild(studentList);\n\t\t\t\t\n\t\t\t\tElement schoolname = doc.createElement(\"schoolname\");\n\t\t\t\tschoolname.appendChild(doc.createTextNode((report.getSchoolDetails().getSchoolDetailsName() != null ? report.getSchoolDetails().getSchoolDetailsName() : \"\" )));\n\t\t\t\tstudentList.appendChild(schoolname);\n\t\t\t\t\n\t\t\t\tElement academicYear = doc.createElement(\"academicYear\");\n\t\t\t\tacademicYear.appendChild(doc.createTextNode((String) (report.getAcademicYear().getAcademicYearName()!= null ? report.getAcademicYear().getAcademicYearName() : \"\" )));\n\t\t\t\tstudentList.appendChild(academicYear);\n\t\t\t\t\n\t\t\t\tElement roll = doc.createElement(\"roll\");\n\t\t\t\troll.appendChild(doc.createTextNode((student.getRollNumber().toString()!=null?student.getRollNumber().toString():\"---------\")));\n\t\t\t\tstudentList.appendChild(roll);\n\t\t\t\t\n\t\t\t\t// nickname elements\n\t\t\t\tElement studentname = doc.createElement(\"studentname\");\n\t\t\t\tstudentname.appendChild(doc.createTextNode((student.getStudentName()!=null?student.getStudentName():\"---------------\")));\n\t\t\t\tstudentList.appendChild(studentname);\n\t\t\t\n\t\t\t\t\n\t\t\t\tElement house = doc.createElement(\"house\");\n\t\t\t\thouse.appendChild(doc.createTextNode((student.getHouse()!=null?student.getHouse():\"------\")));\n\t\t\t\tstudentList.appendChild(house);\n\t\t\t\n\t\t\t\tElement standard = doc.createElement(\"standard\");\n\t\t\t\tstandard.appendChild(doc.createTextNode((student.getStandard()!=null?student.getStandard():\"------\")));\n\t\t\t\tstudentList.appendChild(standard);\n\t\t\t\n\t\t\t\tElement section = doc.createElement(\"section\");\n\t\t\t\tsection.appendChild(doc.createTextNode((student.getSection()!=null?student.getSection():\"--------\")));\n\t\t\t\tstudentList.appendChild(section);\n\t\t\t\t\n\t\t\t//\tStudentResult setudentResult = new\n\t\t\t\t\n\t\t\t\tElement exam = doc.createElement(\"exam\");\n\t\t\t\texam.appendChild(doc.createTextNode((student.getStudentResultList().get(0).getExam()!=null?student.getStudentResultList().get(0).getExam():\"--------\")));\n\t\t\t\tstudentList.appendChild(exam);\n\t\t\t}\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\t\t\n\t\t\tStreamResult result = new StreamResult(new File(report.getXmlFilePath()+report.getXmlFileName()));\n\t\t\t\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t}catch (ParserConfigurationException pce) {\n\t\t\tlogger.error(\"\",pce);\n\t\t} catch (TransformerException tfe) {\n\t\t\tlogger.error(tfe);\n\t\t}\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\toml2OTIProvenanceEClass = createEClass(OML2OTI_PROVENANCE);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_IRI);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_ID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_URL);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__EXPLANATION);\n\n\t\t// Create data types\n\t\tuuidEDataType = createEDataType(UUID);\n\t\tomL_IRIEDataType = createEDataType(OML_IRI);\n\t\totI_TOOL_SPECIFIC_IDEDataType = createEDataType(OTI_TOOL_SPECIFIC_ID);\n\t\totI_TOOL_SPECIFIC_UUIDEDataType = createEDataType(OTI_TOOL_SPECIFIC_UUID);\n\t\totI_TOOL_SPECIFIC_URLEDataType = createEDataType(OTI_TOOL_SPECIFIC_URL);\n\t}", "public File makeXML(String key, int layerID, String value1, String time1, int totalCopies1, int copyNum1, boolean timerType1, String userId, String time, Certificate cert) {\n\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n Element key1 = document.createElement(\"Search_Result_for\" + key);\n document.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element layerid = document.createElement(\"layerid\");\n\n key1.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(layerID));\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value1));\n layerid.appendChild(Value);\n\n Element timer = document.createElement(\"timer\");\n timer.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(timer);\n\n Element totcopies = document.createElement(\"totcopies\");\n totcopies.appendChild(document.createTextNode(String.valueOf(totalCopies1)));\n layerid.appendChild(totcopies);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum1)));\n layerid.appendChild(copynum);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType1)));\n layerid.appendChild(timertype);\n\n Element userid = document.createElement(\"userid\");\n userid.appendChild(document.createTextNode(userId));\n layerid.appendChild(userid);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(time2);\n\n /*Element cert1 = document.createElement(\"cert\");\n cert1.appendChild(document.createTextNode(String.valueOf(cert)));\n layerid.appendChild((Node) cert);*/\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(layerID + \"_Search Result for \" + key + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n System.out.println(\"Done creating XML File\");\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(layerID + \"_Search Result for \" + key + \".xml\");\n return file;\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "public void test1() {\n\t\tString fileToUpload = \"test.xml\";\n\t\tContext context = SessionService.getInstance().getContext();\n\t\tAssetManager assetManager = context.getAssets();\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tinputStream = assetManager.open(fileToUpload, AssetManager.ACCESS_BUFFER);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// upload xml document for testing, the server adds IDs for every element\n\t\tboolean success;\n\t\tif (inputStream == null) {\n\t\t\tsuccess = false;\n\t\t} else {\n\t\t\tsuccess = collabEditingService.uploadDocument(fileToUpload, inputStream);\n\t\t}\n\t\tif (!success) {\n\t\t\tLog.w(TAG, \"Document already exists on the server or connection failure during upload\");\n\t\t}\n\n\t\t// download the decorated document file again\n\t\tString fileForEditing = \"test.xml\";\n\t\tsuccess = collabEditingService.loadDocumentFromServer(fileForEditing);\n\t\tif (success) collabEditingService.showDocument(); // debug\n\t\t\n\t\t// insert text under parent node 200 and before node 300 \n\t\tLog.i(TAG, System.currentTimeMillis() + \": \" + \"Inserting\");\n\t\tcollabEditingService.insertText(\"200\", \"300\", NodePosition.INSERT_BEFORE, \" Woohoo \", 0);\n\t\t// c1.insertText(\"200\", null, 1, \" Woohoo \", 0); // inserts text right under the parent node\n\t\t\n\t\t// insert a new Element node before Node 500\n\t\tElement newNode = collabEditingService.createElement(\"Foo\");\n\t\tnewNode.setAttribute(\"myAttrib\", \"69\");\n\t\tcollabEditingService.insertNode(\"200\", newNode, \"300\", NodePosition.INSERT_AFTER);\n\t\t\n\t\tLog.i(TAG, collabEditingService.getDocumentString());\n\t\tcollabEditingService.showStateVector();\n\t}", "private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}", "public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }", "public void testXML() {\n // check XML Entity Catalogs\n\n // \"Tools\"\n String toolsItem = Bundle.getStringTrimmed(\"org.netbeans.core.ui.resources.Bundle\", \"Menu/Tools\"); // NOI18N\n // \"DTDs and XML Schemas\"\n String dtdsItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogAction_Name\");\n new Action(toolsItem + \"|\" + dtdsItem, null).perform();\n // \"DTDs and XML Schemas\"\n String dtdsTitle = Bundle.getString(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogPanel_Title\");\n NbDialogOperator dtdsOper = new NbDialogOperator(dtdsTitle);\n\n String publicID = \"-//DTD XMLCatalog//EN\";\n Node catalogNode = new Node(new JTreeOperator(dtdsOper),\n \"NetBeans Catalog|\"\n + publicID);\n // view and close it\n new ViewAction().perform(catalogNode);\n new EditorOperator(publicID).close();\n dtdsOper.close();\n\n // create an XML file\n\n // create xml package\n // select Source Packages to not create xml folder in Test Packages\n new SourcePackagesNode(SAMPLE_PROJECT_NAME).select();\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, \"xml\"); // NOI18N\n Node xmlNode = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), \"xml\"); //NOI18N\n // \"XML\"\n String xmlCategory = Bundle.getString(\"org.netbeans.api.xml.resources.Bundle\", \"Templates/XML\");\n // \"XML Document\"\n String xmlDocument = Bundle.getString(\"org.netbeans.modules.xml.resources.Bundle\", \"Templates/XML/XMLDocument.xml\");\n NewFileWizardOperator.invoke(xmlNode, xmlCategory, xmlDocument);\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(\"XMLDocument\"); // NOI18N\n nameStepOper.next();\n nameStepOper.finish();\n // wait node is present\n Node xmlDocumentNode = new Node(xmlNode, \"XMLDocument.xml\"); // NOI18N\n // wait xml document is open in editor\n new EditorOperator(\"XMLDocument.xml\").close(); // NOI18N\n\n // \"Check XML\"\n\n String checkXMLItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Check_XML\");\n // invoke context action to check xml\n new Action(null, checkXMLItem).perform(xmlDocumentNode);\n // \"XML check\"\n String xmlCheckTitle = Bundle.getString(\"org.netbeans.modules.xml.actions.Bundle\", \"TITLE_XML_check_window\");\n // find and close an output with the result of xml check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Validate XML\"\n\n String validateItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_XML\");\n // invoke context action to validate xml\n new Action(null, validateItem).perform(xmlDocumentNode);\n // find and close an output with the result of xml validation\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DTD...\"\n\n String generateDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDTD\");\n new ActionNoBlock(null, generateDTDItem).perform(xmlDocumentNode);\n // \"Select File Name\"\n String selectTitle = Bundle.getString(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_fileNameTitle\");\n NbDialogOperator selectDialog = new NbDialogOperator(selectTitle);\n // name has to be set because of issue http://www.netbeans.org/issues/show_bug.cgi?id=46049\n new JTextFieldOperator(selectDialog).setText(\"DTD\");\n String oKLabel = Bundle.getString(\"org.netbeans.core.windows.services.Bundle\", \"OK_OPTION_CAPTION\");\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait DTD is open in editor\n new EditorOperator(\"DTD.dtd\").close(); // NOI18N\n Node dtdNode = new Node(xmlNode, \"DTD.dtd\"); // NOI18N\n\n // \"Check DTD\"\n\n String checkDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_DTD\");\n new Action(null, checkDTDItem).perform(dtdNode);\n // find and close an output with the result of dtd check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DOM Tree Scanner\"\n String generateScannerItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDOMScanner\");\n new ActionNoBlock(null, generateScannerItem).perform(dtdNode);\n selectDialog = new NbDialogOperator(selectTitle);\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait Scanner is open in editor\n new EditorOperator(\"DTDScanner.java\").close(); // NOI18N\n new Node(xmlNode, \"DTDScanner.java\"); // NOI18N\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n stylesheetEClass = createEClass(STYLESHEET);\n createEAttribute(stylesheetEClass, STYLESHEET__CHAR_SET);\n createEReference(stylesheetEClass, STYLESHEET__IMPORTS);\n createEReference(stylesheetEClass, STYLESHEET__STATEMENTS);\n\n cssTopLevelStatementEClass = createEClass(CSS_TOP_LEVEL_STATEMENT);\n\n cssOtherTopLevelDeclarationEClass = createEClass(CSS_OTHER_TOP_LEVEL_DECLARATION);\n\n importDeclarationEClass = createEClass(IMPORT_DECLARATION);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORT_URI);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__URL);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__MEDIA);\n\n mediaDeclarationEClass = createEClass(MEDIA_DECLARATION);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA_QUERIES);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEMBERS);\n\n mediaDeclarationMembersEClass = createEClass(MEDIA_DECLARATION_MEMBERS);\n\n mediaQueryEClass = createEClass(MEDIA_QUERY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__ONLY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__NOT);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__MEDIA_TYPE);\n createEReference(mediaQueryEClass, MEDIA_QUERY__EXPRESSIONS);\n\n mediaQueryExpressionEClass = createEClass(MEDIA_QUERY_EXPRESSION);\n createEAttribute(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__FEATURE);\n createEReference(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__EXPRESSION);\n\n pageDeclarationEClass = createEClass(PAGE_DECLARATION);\n createEAttribute(pageDeclarationEClass, PAGE_DECLARATION__PSEUDO_PAGE);\n createEReference(pageDeclarationEClass, PAGE_DECLARATION__BODY);\n\n namespaceDeclarationEClass = createEClass(NAMESPACE_DECLARATION);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__NAME);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__URL);\n\n fontFaceDeclarationEClass = createEClass(FONT_FACE_DECLARATION);\n createEReference(fontFaceDeclarationEClass, FONT_FACE_DECLARATION__BODY);\n\n ruleSetEClass = createEClass(RULE_SET);\n createEReference(ruleSetEClass, RULE_SET__SELECTORS);\n createEReference(ruleSetEClass, RULE_SET__BODY);\n\n ruleSetBodyEClass = createEClass(RULE_SET_BODY);\n createEReference(ruleSetBodyEClass, RULE_SET_BODY__DECLARATIONS);\n\n propertyDeclarationEClass = createEClass(PROPERTY_DECLARATION);\n createEReference(propertyDeclarationEClass, PROPERTY_DECLARATION__VALUES_LISTS);\n\n knownPropertyDeclarationEClass = createEClass(KNOWN_PROPERTY_DECLARATION);\n createEAttribute(knownPropertyDeclarationEClass, KNOWN_PROPERTY_DECLARATION__NAME);\n\n unrecognizedPropertyDeclarationEClass = createEClass(UNRECOGNIZED_PROPERTY_DECLARATION);\n createEAttribute(unrecognizedPropertyDeclarationEClass, UNRECOGNIZED_PROPERTY_DECLARATION__NAME);\n\n propertyValuesListsEClass = createEClass(PROPERTY_VALUES_LISTS);\n createEReference(propertyValuesListsEClass, PROPERTY_VALUES_LISTS__LISTS);\n\n propertyValuesListEClass = createEClass(PROPERTY_VALUES_LIST);\n createEReference(propertyValuesListEClass, PROPERTY_VALUES_LIST__VALUES);\n\n propertyValueEClass = createEClass(PROPERTY_VALUE);\n createEReference(propertyValueEClass, PROPERTY_VALUE__VALUE);\n createEAttribute(propertyValueEClass, PROPERTY_VALUE__IMPORTANT);\n\n selectorEClass = createEClass(SELECTOR);\n\n simpleSelectorEClass = createEClass(SIMPLE_SELECTOR);\n\n typeSelectorEClass = createEClass(TYPE_SELECTOR);\n createEReference(typeSelectorEClass, TYPE_SELECTOR__NAMESPACE_PREFIX);\n createEAttribute(typeSelectorEClass, TYPE_SELECTOR__TYPE);\n\n namespacePrefixEClass = createEClass(NAMESPACE_PREFIX);\n createEReference(namespacePrefixEClass, NAMESPACE_PREFIX__NAMESPACE);\n\n universalSelectorEClass = createEClass(UNIVERSAL_SELECTOR);\n createEReference(universalSelectorEClass, UNIVERSAL_SELECTOR__NAMESPACE_PREFIX);\n\n attributeSelectorEClass = createEClass(ATTRIBUTE_SELECTOR);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__ATTRIBUTE);\n createEAttribute(attributeSelectorEClass, ATTRIBUTE_SELECTOR__MATCHER);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__VALUE);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEReference(attributeEClass, ATTRIBUTE__NAMESPACE_PREFIX);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\n attributeValueLiteralEClass = createEClass(ATTRIBUTE_VALUE_LITERAL);\n\n idSelectorEClass = createEClass(ID_SELECTOR);\n createEAttribute(idSelectorEClass, ID_SELECTOR__NAME);\n\n classSelectorEClass = createEClass(CLASS_SELECTOR);\n createEAttribute(classSelectorEClass, CLASS_SELECTOR__NAME);\n\n pseudoSelectorEClass = createEClass(PSEUDO_SELECTOR);\n\n noArgsPseudoClassSelectorEClass = createEClass(NO_ARGS_PSEUDO_CLASS_SELECTOR);\n createEAttribute(noArgsPseudoClassSelectorEClass, NO_ARGS_PSEUDO_CLASS_SELECTOR__PSEUDO);\n\n pseudoElementSelectorEClass = createEClass(PSEUDO_ELEMENT_SELECTOR);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__DOUBLE_SEMI_COLON);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__PSEUDO);\n\n languagePseudoClassSelectorEClass = createEClass(LANGUAGE_PSEUDO_CLASS_SELECTOR);\n createEAttribute(languagePseudoClassSelectorEClass, LANGUAGE_PSEUDO_CLASS_SELECTOR__LANGUGAGE_ID);\n\n functionalPseudoClassSelectorEClass = createEClass(FUNCTIONAL_PSEUDO_CLASS_SELECTOR);\n createEAttribute(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__PSEUDO);\n createEReference(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__ARGUMENT);\n\n typeArgumentEClass = createEClass(TYPE_ARGUMENT);\n\n linearArgumentEClass = createEClass(LINEAR_ARGUMENT);\n createEReference(linearArgumentEClass, LINEAR_ARGUMENT__COEFFICIENT);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT_SIGN);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT);\n\n coefficientEClass = createEClass(COEFFICIENT);\n createEAttribute(coefficientEClass, COEFFICIENT__IDENT);\n createEAttribute(coefficientEClass, COEFFICIENT__INT);\n\n constantArgumentEClass = createEClass(CONSTANT_ARGUMENT);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__SIGN);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__INT);\n\n parityArgumentEClass = createEClass(PARITY_ARGUMENT);\n createEAttribute(parityArgumentEClass, PARITY_ARGUMENT__PARITY);\n\n negationSelectorEClass = createEClass(NEGATION_SELECTOR);\n createEReference(negationSelectorEClass, NEGATION_SELECTOR__SIMPLE_SELECTOR);\n\n valueLiteralEClass = createEClass(VALUE_LITERAL);\n\n numberLiteralEClass = createEClass(NUMBER_LITERAL);\n\n sizeLiteralEClass = createEClass(SIZE_LITERAL);\n\n stringLiteralEClass = createEClass(STRING_LITERAL);\n createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE);\n\n colorLiteralEClass = createEClass(COLOR_LITERAL);\n\n componentColorLiteralEClass = createEClass(COMPONENT_COLOR_LITERAL);\n\n colorComponentLiteralEClass = createEClass(COLOR_COMPONENT_LITERAL);\n createEReference(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__NUMBER);\n createEAttribute(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__PERCENTAGE);\n\n urlLiteralEClass = createEClass(URL_LITERAL);\n createEAttribute(urlLiteralEClass, URL_LITERAL__VALUE);\n\n bareWordLiteralEClass = createEClass(BARE_WORD_LITERAL);\n createEAttribute(bareWordLiteralEClass, BARE_WORD_LITERAL__BARE_WORD);\n\n functionCallLiteralEClass = createEClass(FUNCTION_CALL_LITERAL);\n createEAttribute(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__FUNCTION);\n createEReference(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__ARGUMENTS);\n\n descendantCombinatorEClass = createEClass(DESCENDANT_COMBINATOR);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__LEFT);\n createEAttribute(descendantCombinatorEClass, DESCENDANT_COMBINATOR__WS_I);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__RIGHT);\n\n childCombinatorEClass = createEClass(CHILD_COMBINATOR);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__LEFT);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_L);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_R);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__RIGHT);\n\n adjacentSiblingCombinatorEClass = createEClass(ADJACENT_SIBLING_COMBINATOR);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__LEFT);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_L);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_R);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__RIGHT);\n\n generalSiblingCombinatorEClass = createEClass(GENERAL_SIBLING_COMBINATOR);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__LEFT);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_L);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_R);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__RIGHT);\n\n simpleSelectorSequenceEClass = createEClass(SIMPLE_SELECTOR_SEQUENCE);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__HEAD);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__SIMPLE_SELECTORS);\n\n universalNamespacePrefixEClass = createEClass(UNIVERSAL_NAMESPACE_PREFIX);\n\n withoutNamespacePrefixEClass = createEClass(WITHOUT_NAMESPACE_PREFIX);\n\n stringAttributeValueLiteralEClass = createEClass(STRING_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(stringAttributeValueLiteralEClass, STRING_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerAttributeValueLiteralEClass = createEClass(INTEGER_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(integerAttributeValueLiteralEClass, INTEGER_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n decimalAttributeValueLiteralEClass = createEClass(DECIMAL_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(decimalAttributeValueLiteralEClass, DECIMAL_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerLiteralEClass = createEClass(INTEGER_LITERAL);\n createEAttribute(integerLiteralEClass, INTEGER_LITERAL__INT);\n\n decimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n createEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__DECIMAL);\n\n quantifiedSizeLiteralEClass = createEClass(QUANTIFIED_SIZE_LITERAL);\n createEReference(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__NUMBER);\n createEAttribute(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__DIMENSION);\n\n qualifiedSizeLiteralEClass = createEClass(QUALIFIED_SIZE_LITERAL);\n createEAttribute(qualifiedSizeLiteralEClass, QUALIFIED_SIZE_LITERAL__BAREWORD);\n\n fontHeightLiteralEClass = createEClass(FONT_HEIGHT_LITERAL);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__FONT_HEIGHT);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT);\n createEAttribute(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT_DIMENSION);\n\n rgbColorEClass = createEClass(RGB_COLOR);\n createEAttribute(rgbColorEClass, RGB_COLOR__RGB);\n\n namedColorEClass = createEClass(NAMED_COLOR);\n createEAttribute(namedColorEClass, NAMED_COLOR__COLOR);\n\n componentRGBColorEClass = createEClass(COMPONENT_RGB_COLOR);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__RED);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__GREEN);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__BLUE);\n\n componentRGBAlphaColorEClass = createEClass(COMPONENT_RGB_ALPHA_COLOR);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__RED);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__GREEN);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__BLUE);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__OPACITY);\n\n componentHSLColorEClass = createEClass(COMPONENT_HSL_COLOR);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__HUE);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__SATURATION);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__LIGHTNESS);\n\n componentHSLAlphaColorEClass = createEClass(COMPONENT_HSL_ALPHA_COLOR);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__HUE);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__SATURATION);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__LIGHTNESS);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__OPACITY);\n\n alphaLiteralEClass = createEClass(ALPHA_LITERAL);\n createEReference(alphaLiteralEClass, ALPHA_LITERAL__OPACITY);\n\n // Create enums\n knownPropertiesEEnum = createEEnum(KNOWN_PROPERTIES);\n attributeSelectorMatchersEEnum = createEEnum(ATTRIBUTE_SELECTOR_MATCHERS);\n noArgsPseudosEEnum = createEEnum(NO_ARGS_PSEUDOS);\n pseudoElementsEEnum = createEEnum(PSEUDO_ELEMENTS);\n functionalPseudoClassesEEnum = createEEnum(FUNCTIONAL_PSEUDO_CLASSES);\n paritiesEEnum = createEEnum(PARITIES);\n dimensionsEEnum = createEEnum(DIMENSIONS);\n colorNamesEEnum = createEEnum(COLOR_NAMES);\n }", "public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//-- Init Xpath\n\t\tinit();\n\t}" ]
[ "0.6707152", "0.66981876", "0.66462475", "0.6181635", "0.6158815", "0.6158815", "0.6158815", "0.6158815", "0.6128736", "0.61082727", "0.60414344", "0.60094476", "0.5999173", "0.5997792", "0.5989527", "0.5941478", "0.59238285", "0.59010565", "0.58919716", "0.58786535", "0.58579785", "0.58512783", "0.58424646", "0.58191067", "0.57709754", "0.5764435", "0.5759424", "0.57442015", "0.57426274", "0.57337725", "0.57153225", "0.5714458", "0.5714042", "0.571187", "0.5684989", "0.5677285", "0.5671804", "0.5670142", "0.5661915", "0.56618", "0.5661025", "0.5661025", "0.5661025", "0.56537765", "0.56279147", "0.5603476", "0.55986065", "0.5585597", "0.55735075", "0.55680287", "0.5566448", "0.5565096", "0.5564035", "0.55503744", "0.55482197", "0.55012244", "0.5491208", "0.54731274", "0.5472697", "0.54660475", "0.54539394", "0.5450355", "0.5445523", "0.54431695", "0.54370487", "0.5432684", "0.54227054", "0.54171467", "0.54165435", "0.54001886", "0.53896165", "0.5365877", "0.53557", "0.5353573", "0.53509134", "0.534386", "0.5343445", "0.5336118", "0.5327653", "0.53151214", "0.52992", "0.5289679", "0.5288252", "0.5283932", "0.52818996", "0.52779835", "0.5274144", "0.5273592", "0.52710855", "0.52665615", "0.526575", "0.525704", "0.52477616", "0.5238344", "0.5227044", "0.5223385", "0.52215433", "0.52206105", "0.5214472", "0.52118057" ]
0.61906713
3
This method checks that the buttons currently in the app can be clicked.
public void testCheckButtons() { onView(withId(R.id.quiz_button)).perform(click()); pressBack(); onView(withId(R.id.flash_button)).perform(click()); pressBack(); onView(withId(R.id.quiz_button)).perform(click()); onView(withId(R.id.quiz_make)).perform(click()); pressBack(); onView(withId(R.id.quiz_take)).perform(click()); onView(withId(R.id.quiz_all)).perform(click()); onView(withId(R.id.homeButton)).perform(click()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n\tprivate boolean wasAnyButtonPressed() {\n\t\tfor (ArcadeButton button : buttons) {\n\t\t\tif (button.getPressCounter() > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public int checkMenuButtons() {\n\n // computing the coordinates of the cursor\n\n mouseX = (float) ((currentPos.x * 1.0f - window.getWidth() / 2f) / (window.getWidth() / 2f));\n mouseY = (float) ((currentPos.y * 1.0f - window.getHeight() / 2f) / (window.getHeight() / 2f));\n\n float checkX = ((2f - 0.4f * boxRatio) / 2) - 1;\n int checkButton = 0;\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f) {\n checkButton = 11;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f && isLeftButtonPressed()) {\n checkButton = 12;\n }\n\n\n // coordinates of the 2nd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f) {\n checkButton = 21;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f && isLeftButtonPressed()) {\n checkButton = 22;\n }\n\n\n // coordinates of the 3rd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f) {\n checkButton = 31;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f && isLeftButtonPressed()) {\n checkButton = 32;\n }\n\n // coordinates of the 1st button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f) {\n checkButton = 41;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f && isLeftButtonPressed()) {\n checkButton = 42;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f) {\n checkButton = 51;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f && isLeftButtonPressed()) {\n checkButton = 52;\n }\n\n return checkButton;\n }", "public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }", "@Override\r\n\tpublic boolean canClickButtons(int interfaceId, int buttonId, int slotId,\r\n\t\t\tint packetId) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean canClickButtons(int interfaceId, int buttonId, int slotId,\r\n\t\t\tint packetId) {\n\t\treturn false;\r\n\t}", "protected boolean hasPositiveButton() {\n return false;\n }", "private void checkButton(ActionEvent e) {\n List<PuzzleButton> selectedButtons = buttons.stream()\n .filter(PuzzleButton::isSelectedButton)\n .collect(Collectors.toList());\n PuzzleButton currentButton = (PuzzleButton) e.getSource();// getting current button\n currentButton.setSelectedButton(true);\n int currentButtonIndex = buttons.indexOf(currentButton);\n //if no button are selected, do not update collection of PuzzleButton\n if (selectedButtons.size() == 1) {\n int lastClickedButtonIndex = 0;\n\n for (PuzzleButton button : buttons) {\n if (button.isSelectedButton() && !button.equals(currentButton)) {\n lastClickedButtonIndex = buttons.indexOf(button);\n }\n }\n Collections.swap(buttons, lastClickedButtonIndex, currentButtonIndex);\n updateButtons();\n }\n }", "public boolean isButton() {\n return this.type == Type.BUTTON;\n }", "protected boolean shouldUseActionsInsteadOfButtonBar() {\n DisplayMetrics metrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n\n return convertPxToDip(metrics.heightPixels) < 350;\n }", "public static void checkAndClickPlayButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t}", "public static boolean isButtonPressed() {\n return button.isPressed();\n }", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "public void listenButtons() {\n\n playGameButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.PLAY_GAME;\n startActivity();\n }\n });\n\n freePlayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.FREE_PLAY;\n startActivity();\n }\n });\n\n informationIcon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mActivities = MyActivities.POP_UP;\n startActivity();\n }\n });\n }", "public boolean canProceedWithTapAction() {\n return ClickDelayHelper.canProceedWithTapAction();\n }", "private void checkStartNewGameButton() {\n\t\tif(mButtons[0].isVisible() && Gdx.input.justTouched()){\n\t\t\t// Grab the touch position, saved as a Vector3\n\t\t\tmLastTouch.set(Gdx.input.getX(), Gdx.input.getY(), 0);\n\t\t\tmCamera.unproject(mLastTouch); // Translates to game world coordinates\n\t\t\t// The button is visible and the screen was just touched\n\t\t\t// See if the touch was in the button's outer rectangle\n\t\t\tif(mButtons[0].getRect().contains(mLastTouch.x, mLastTouch.y)){\n\t\t\t\t// The \"New Game\" button was pressed, start a new game!\n\t\t\t\tmRoundNumber = 1;\n\t\t\t\tresetRoundVars();\n\t\t\t\tmGameState = STATE_ROUND_START;\n\t\t\t\thideAllButtons();\n\t\t\t}\n\t\t}\n\t}", "boolean getButtonRelease(Buttons but);", "public boolean wasButtonJustPressed(int playerNum) {\r\n if (button.clicked) {\r\n button.clicked = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean hasButton(String key) {\n return !getGUIButtons(key).isEmpty();\n }", "boolean hasClickView();", "@Test\n\tpublic void addButtons_2Test() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showcover &&\n\t\t\t\t!Configuration.reorderplaylist && \n\t\t\t\t!Configuration.queuetrack &&\n\t\t\t\tConfiguration.clearplaylist ) {\n\t\t\tstart();\n\t\t\t\n\t\t\tgui.addButtons();\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\tJButton button =null;\n\t\t\t\n\t\t\tfor (int i = 0; i < g.getContentPane().getComponentCount(); i++) {\n\t\t\t\tif(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"clearList\")) {\n\t\t\t\t\tbutton = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tassertTrue(button.getBounds().getX() == 361);\n\t\t\tassertTrue(button.getBounds().getY() == 324);\n\t\t\tassertTrue(button.getBounds().getWidth() == 111);\n\t\t\tassertTrue(button.getBounds().getHeight() == 23);\n\t\t\tassertTrue(button.getActionListeners()!= null);\n\t\t\t\n\t\t\t}\n\t}", "public boolean isSearchButtonActivated() {\n\t\tboolean result;\n\t\tlog.debug(\"Getting window handles\");\n\t\tArrayList<String> tabs1 = new ArrayList<String>(\n\t\t\t\tdriver.getWindowHandles());\n\t\tlog.debug(\"Clicking on search button\");\n\t\tdriver.findElement(search_button).click();\n\t\tlog.debug(\"Getting window handles\");\n\t\tArrayList<String> tabs2 = new ArrayList<String>(\n\t\t\t\tdriver.getWindowHandles());\n\t\tif (tabs1.size() == tabs2.size())\n\t\t\tresult = false;\n\t\telse\n\t\t\tresult = true;\n\t\tlogger.log(Status.INFO, \"Search button is activated: \" + result);\n\t\tlog.info(\"Search button is activated: \" + result);\n\t\treturn result;\n\t}", "private void doButtons()\n {\n if (scopes.size()>1) addButtons();\n else hideButtons();\n }", "public boolean isButtonPressed(int playerNum) {\r\n return button.pressed;\r\n }", "@Test\n\tpublic void addButtonsTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showcover &&\n\t\t\t\tConfiguration.reorderplaylist && \n\t\t\t\t!Configuration.queuetrack \n\t\t\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\tgui.addButtons();\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\tJButton button =null;\n\t\t\tJButton button2 =null;\n\t\t\t\n\t\t\tfor (int i = 0; i < g.getContentPane().getComponentCount(); i++) {\n\t\t\t\tif(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"trackUp\")) {\n\t\t\t\t\tbutton = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t\telse if(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"trackDown\")) {\n\t\t\t\t\tbutton2 = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tassertTrue(button.getBounds().getX() == 506);\n\t\t\tassertTrue(button.getBounds().getY() == 327);\n\t\t\tassertTrue(button.getBounds().getWidth() == 120);\n\t\t\tassertTrue(button.getBounds().getHeight() == 25);\n\t\t\tassertTrue(button.getActionListeners()!= null);\n\t\t\t\n\t\t\tassertTrue(button2.getBounds().getX() == 506);\n\t\t\tassertTrue(button2.getBounds().getY() == 360);\n\t\t\tassertTrue(button2.getBounds().getWidth() == 120);\n\t\t\tassertTrue(button2.getBounds().getHeight() == 25);\n\t\t\tassertTrue(button2.getActionListeners()!= null);\n\t\t}\n\t}", "void bsButtonHandling(){\n\n Boolean checkFlag = false;\n for(int i = 0; i < 4; ++i){\n if(operatorButtonClicked[i]){\n checkFlag = true;\n break;\n }\n }\n\n // -----------------------------------------------------\n // if an operator button was clicked then ignore BS\n if(checkFlag == false){\n numberOnDisplay = Integer.parseInt(display.getText().toString());\n numberOnDisplay = numberOnDisplay/10;\n display.setText(Integer.toString(numberOnDisplay));\n numberOnDisplay = 0;\n }\n }", "public void verifyUIElements(){\r\n\t\t\tisClickable(Txt_HomePage_Search);\r\n\t\t\tisClickable(Btn_HomePage_Search);\r\n\t\t}", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}", "public boolean isKeyAvailable(String key) {\n return guiButtons.containsKey(key);\n }", "public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }", "@Override\n\tpublic boolean activate() {\n\t\tfinal Component CANCEL_BUTTON = CONSTS.CANCEL_BUTTON;\n\t\treturn ctx.backpack.select().id(CONSTS.fletching.getId()).count() >= 1\n\t\t\t\t&& !CANCEL_BUTTON.valid() \n\t\t\t\t&& !CANCEL_BUTTON.visible();\n\t}", "@Override\n\tprotected void setOnClickForButtons() {\n\t\tthis.buttons[0].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getActivity(), MainScreenActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tMainFunctions.selectedOption = 1;\n\t\t\t\tdestroyServices();\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t/* message box - onclick event */\n\t\tthis.buttons[1].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdestroyServices();\n\t\t\t\tMainFunctions.selectedOption = 2;\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* one tick sound */\n\t\tfor (int i = 0; i < this.totalButtons; i++){\n\t\t\tfinal String desc = buttons[i].getTag().toString();\n\t\t\tbuttons[i].setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\tif (hasFocus) {\n\t\t\t\t\t\tLog.i(TAG, \"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tlogFunctions.logTextFile(\"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tspeakButton(desc, 1.0f, 1.0f);\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}", "public void verifyAppPermissions() {\n boolean hasAll = true;\n mHasBluetoothPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) == PackageManager.PERMISSION_GRANTED;\n mHasBluetoothAdminPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_ADMIN) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n if (!hasAll) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n APP_PERMISSIONS,\n REQUEST_PERMISSIONS\n );\n }\n }", "@Test\n void checkButtons() throws FileNotFoundException {\n assertEquals(defaultMode.getText(), \"Candy Mode\");\n assertEquals(darkMode.getText(), \"Dark Mode\");\n assertEquals(rainbowMode.getText(), \"Rainbow Mode\");\n assertEquals(greenMode.getText(), \"Green Mode\");\n assertEquals(waveMode.getText(), \"Wave Mode\");\n }", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "private boolean isValidButton(String buttonId) {\n return buttonId.equals(stats.getId()) || buttonId.equals(loadouts.getId());\n }", "public boolean check_Help_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId(\"HelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_AppHelp_Icon);\r\n\t}", "public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}", "private void checkProducts() {\n for (JButton prodButton : productButtons) {\n if (inventoryManager.checkProductAvailability(prodButton.getText())) {\n prodButton.setEnabled(true);\n } else {\n prodButton.setEnabled(false);\n }\n }\n }", "private boolean hasButtonsEnabled(List<Button> buttonList) {\n\n for (Button button : buttonList\n ) {\n if (button.isEnabled()) {\n return true;\n }\n }\n return false;\n }", "public static void checkAndClickStartButton() {\r\n\t\tcheckElementNotInteractableExceptionByID(\"startB\", \"\\\"Start\\\" button\");\r\n\t}", "@Test\n public void onKgsRBTNClicked(){\n onView(withId(R.id.kgsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.lbsRBTN)).check(matches(isNotChecked()));\n }", "protected boolean activateActions() {\n AlertDialog.Builder confirmation = new AlertDialog.Builder(MainScreen.this);\n confirmation.setTitle(\"Activate Danger Signal?\");\n confirmation.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n ImageButton dangerButton = (ImageButton) findViewById(R.id.dangerButton);\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dangerButton.setImageResource(R.drawable.activatedimage);\n surfaceView.setVisibility(View.VISIBLE);\n try {\n camera = Camera.open();\n camera.setDisplayOrientation(90);\n\n } catch (RuntimeException e) {\n return;\n }\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n } catch (Exception e) {\n return;\n }\n isPlay = !isPlay;\n active = true;\n }\n });\n\n confirmation.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n turnOffActions();\n surfaceView.setVisibility(View.INVISIBLE);\n active = false;\n }\n });\n\n AlertDialog alertDialog = confirmation.create();\n alertDialog.show();\n\n return active;\n }", "public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roundTripButton.click();\n System.out.println(\"Round Trip button is clicked\");\n do {\n return true;\n }\n while (roundTripButton.isSelected());\n\n\n }", "public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}", "public static void checkAndClickQuitButtonStartPlayingPage() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of Start playing page\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of Start playing page\");\r\n\t}", "public void checkSolution() {\r\n\t\tArrayList<Point> current = new ArrayList<>();\r\n\r\n for (JComponent btn : buttons) {\r\n current.add((Point) btn.getClientProperty(\"position\"));\r\n }\r\n\r\n if (compareList(solutions, current)) {\r\n \tJOptionPane.showMessageDialog(jf,\"You win!!!.\");\r\n \tSystem.exit(0);\r\n }\r\n\t}", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "private boolean isEnableConfirmBtns() {\n int count = mManualItemArray.size();\n for (int i = 0; i < count; i++) {\n ListViewItem item = mManualItemArray.get(i);\n if (item.mNeedCheckBox && item.mIsChecked) {\n return true;\n }\n }\n return false;\n }", "private void checkButtonVisibility() {\n\n if (leftBlockIndex > 0) {\n buttonLeft.setVisibility(View.VISIBLE);\n } else {\n buttonLeft.setVisibility(View.INVISIBLE);\n }\n\n if (leftBlockIndex < blockCount - 2) {\n buttonRight.setVisibility(View.VISIBLE);\n } else {\n buttonRight.setVisibility(View.INVISIBLE);\n }\n\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "boolean hasCurrentAction();", "public boolean VerifyButtonStatus() throws InterruptedException {\n\n Thread.sleep(10000);\n if(roundTripButton.isSelected()) {\n System.out.println(\"round trip Button is already selected\");\n wait.until(ExpectedConditions.elementToBeClickable(oneWayButton));\n oneWayButton.click();\n System.out.println(\"Switched to One Way button\");\n }\n else if(oneWayButton.isSelected()){\n System.out.println(\"One way button is already selected\");\n roundTripButton.click();\n System.out.println(\"Switched to Round Trip button\");\n\n }\n return true;\n }", "public boolean check_WndsHelp_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_WndsHelp_Icon = driver.findElementByAccessibilityId(\"WindowsHelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_WndsHelp_Icon);\r\n\t}", "void CheckButtons()\n {\n // EXIT X\n if(ButtonExit.Update(eventX,eventY))\n {\n new android.os.Handler().postDelayed(\n new Runnable()\n {\n public void run()\n {\n main.viewTools.setVisibility(View.GONE);\n main.viewTools.setAlpha(0f);\n\n main.mainView.setVisibility(View.VISIBLE);\n main.mainView.bringToFront();\n main.mainView.animate()\n .alpha(1f)\n .setDuration(2500)\n .setListener(null);\n }\n },\n 500);\n return;\n }\n\n\n // IF CLICKED KOLUMNA\n if(ButtonUpdate.Update(eventX,eventY))\n {\n new android.os.Handler().postDelayed(\n new Runnable() {\n public void run()\n {\n main.viewTools.setAlpha(0f);\n main.viewTools.setVisibility(View.GONE);\n\n main.viewUpdate.setVisibility(View.VISIBLE);\n main.viewUpdate.bringToFront();\n\n main.viewUpdate.animate()\n .alpha(1f)\n .setDuration(2500)\n .setListener(null);\n\n main.viewUpdate.postInvalidate();\n }\n },\n 1000);\n\n //SetVoiceTimeOut(1500,5);\n return;\n }\n\n // IF CLICKED CHARTS\n if(ButtonWykres.Update(eventX,eventY))\n {\n new android.os.Handler().postDelayed(\n new Runnable() {\n public void run()\n {\n main.viewTools.setAlpha(0f);\n main.viewTools.setVisibility(View.GONE);\n\n // main.viewChart.setVisibility(View.VISIBLE);\n // main.viewChart.bringToFront();\n\n //main.viewChart.animate()\n // .alpha(1f)\n // .setDuration(2500)\n // .setListener(null);\n\n //main.viewChart.postInvalidate();\n //main.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n main.plot.setVisibility(View.VISIBLE);\n //main.btnX.setVisibility(View.VISIBLE);\n }\n },\n 1000);\n\n SetVoiceTimeOut(1500,7);\n return;\n }\n }", "private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }", "public static void checkAndClickQuitButtonResultsPage() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of results page\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of results page\");\r\n\t}", "public boolean check_About_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_About_Icon = driver.findElementByAccessibilityId(\"AboutAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_About_Icon);\r\n\t}", "private void initButtons() {\r\n\t\texitGameButton\t\t= game.screenHelper.createTextButton(BUTTON_EXIT_GAME_TEXT, BUTTON_EXIT_GAME_MOUSEOVER_TEXT, menuText);\r\n\t\tcancelExitButton\t= game.screenHelper.createTextButton(BUTTON_CANCEL_EXIT_TEXT, BUTTON_CANCEL_EXIT_MOUSEOVER_TEXT, menuText);\r\n\t\tcancelExitButton.addListener(new ChangeScreenInputListener(new MenuScreenChangeCommand()));\r\n\t\t// Event Listeners \r\n\t\t// TODO: clean up this giant piece of shitty code.\r\n\t\t\r\n\t\texitGameButton.addListener(new InputListener() {\r\n\t\t\tpublic boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {\r\n\t\t\t\texitGame();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "public boolean isCheckoutButtonPresent() {\n\t\ttry{\n\t\t\tdriver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + checkout + \"']\"));\n\t\t\treturn true;\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public static void checkAndClickBackButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnback\", \"\\\"Back\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnback\", \"\\\"Back\\\" button in trivia mode\");\r\n\t}", "public boolean isOkClicked() {\n return okClicked;\n }", "public boolean isOkClicked() {\n return okClicked;\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean buttonPressed(Button button) {\n return (!buttonsPressed.get(button.getId()) && joystick.getRawButton(button.getId()));\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public void checkActions() {\n\t\tfor (BaseAction ba : this.actions) {\n\t\t\tba.checkAction();\n\t\t}\n\t}", "@Test\n public void onLbsRBTNClicked(){\n onView(withId(R.id.lbsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.kgsRBTN)).check(matches(isNotChecked()));\n }", "public boolean isClicked() { return clicked; }", "public static void checkAndClickTryAgainButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t}", "public void uiVerifyButtonUndoExist() {\n try {\n getLogger().info(\"Verify button Undo Todo exist.\");\n btnToDoUndo.getAttribute(\"class\");\n NXGReports.addStep(\"Verify button Undo Todo exist.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo exist.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n {\r\n display.setUnit(dummyList.get(i));\r\n selectedIndex = i;\r\n }\r\n }\r\n \r\n //within bounds\r\n if ((new Rectangle2D.Double(initX, 0, width, height)).contains(x,y))\r\n return true;\r\n return false;\r\n }", "public static Boolean playBtn() { \n\t\tboolean startGame= false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tstartGame=true;\n\t\t}\n\t\treturn startGame; \n\t}", "public void able()\n {\n // Enable all the buttons one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n // If the column is full, disable the corresponding button\n if (chessBoard[0][col] != 0)\n {\n drop[col].setEnabled(false);\n }\n // Else enable the button\n else\n {\n drop[col].setEnabled(true);\n }\n }\n }", "public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}", "private void setupButtons() {\n\t\tButton scanButton = (Button) findViewById(R.id.button_scan);\n\n\t\tscanButton.setOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdoDiscovery();\n\t\t\t\t((Button) v).setText(\"Scanning\");\n\n\t\t\t\t((Button) v).setEnabled(false);\n\t\t\t\tButton cancelB = (Button) findViewById(R.id.button_cancel);\n\t\t\t\tcancelB.setText(\"Cancel Scan\");\n\t\t\t}\n\t\t});\n\n\t\tButton cancelButton = (Button) findViewById(R.id.button_cancel);\n\t\tcancelButton.setOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (m_BtAdapter.isDiscovering()) {\n\t\t\t\t\tm_BtAdapter.cancelDiscovery();\n\t\t\t\t\t((Button) v).setText(\"Back\");\n\t\t\t\t\t//setupViews();\n\t\t\t\t} else {\n\t\t\t\t\tsetResult(RESULT_CANCELED);\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public boolean isCancelButtonPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"), SHORTWAIT);\r\n\t}", "public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}", "public boolean doAccessibleAction(int i) {\n if (i == 0) {\n // Simulate a button click\n Toolkit.getEventQueue().postEvent(\n new ActionEvent(Button.this,\n ActionEvent.ACTION_PERFORMED,\n Button.this.getActionCommand()));\n return true;\n } else {\n return false;\n }\n }", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "public boolean getIsOperator_GearStartSequence_BtnJustPressed()\n\t{\n\t\treturn super.getIsOperatorBlueBtnXJustPressed();\n\t}", "public boolean getButtonPressed(Button button) {\n return getButtonPressed(button.getNumber());\n }", "boolean hasAction();", "boolean hasAction();", "private void createBottomActionButtons() {\n Composite actionControlComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n actionControlComp.setLayout(gl);\n actionControlComp.setLayoutData(gd);\n\n Button okBtn = new Button(actionControlComp, SWT.PUSH);\n okBtn.setText(\" OK \");\n okBtn.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n if (verifySelection()) {\n close();\n }\n }\n });\n\n Button cancelBtn = new Button(actionControlComp, SWT.PUSH);\n cancelBtn.setText(\" Cancel \");\n cancelBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n close();\n }\n });\n }", "public boolean isShowAnswerBtnPresent() {\n\t\treturn isElementPresent(By.id(\"btn_answer_1-1\"));\n\t}", "private void checkDirectionalButtonsForQuestion() {\n\t\tfor (int i = UP; i <= LEFT; i++) {\n\t\t\tif (gameActions[i].isPressed()) {\n\t\t\t\tdialog.move(i);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean performClick() {\n return super.performClick();\n }", "void killButton() {\n //goes through all columns\n for (int i = 0; i < 7; i++) {\n //if the not of valid move is true, disable the buttons\n if (!Checker.validMove(currentBoard, i)) {\n Inputbuttons[i].setEnabled(false);\n }\n }\n }", "public static void checkStartButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"startB\", \"\\\"Start\\\" button\");\r\n\t}" ]
[ "0.70371544", "0.66065055", "0.6598063", "0.65288675", "0.65288675", "0.648188", "0.64391166", "0.638222", "0.6380704", "0.6369418", "0.6359533", "0.63512677", "0.6302366", "0.629193", "0.62918663", "0.62522495", "0.62495327", "0.6226243", "0.61188513", "0.6107515", "0.61051655", "0.61012614", "0.60933477", "0.6078526", "0.6067025", "0.60620666", "0.6049614", "0.6040974", "0.6013147", "0.6006757", "0.6005739", "0.59944844", "0.59911466", "0.5958109", "0.5949144", "0.59261775", "0.59167576", "0.5909622", "0.5899445", "0.58935094", "0.58912814", "0.58897936", "0.58648366", "0.58598036", "0.5855119", "0.58544856", "0.58478487", "0.58473074", "0.5842523", "0.5841852", "0.5840766", "0.583398", "0.5828736", "0.5828425", "0.5825814", "0.5822169", "0.5814253", "0.58096087", "0.5802393", "0.57994336", "0.57959104", "0.57951367", "0.5787505", "0.5787505", "0.5785301", "0.5785301", "0.5785301", "0.5785301", "0.5773861", "0.576822", "0.5762355", "0.5762355", "0.5762355", "0.5762355", "0.5762355", "0.57620394", "0.57609546", "0.57594633", "0.5741642", "0.57413703", "0.57344556", "0.573207", "0.57319826", "0.57315207", "0.57303494", "0.57241446", "0.5716101", "0.57085335", "0.57036155", "0.57010025", "0.5695462", "0.5694731", "0.5685956", "0.5685956", "0.56843925", "0.56831056", "0.56823933", "0.56747645", "0.5671601", "0.5667404" ]
0.6435946
7
Checks to see whether we can enter null value into our Quizzes
public void testEmptyQuiz(){ onView(withId(R.id.quiz_button)).perform(click()); onView(withId(R.id.quiz_make)).perform(click()); onView(withId(R.id.submit_button)).perform(click()); Activity current = getActivity(); assertNotNull(current); onView(withId(R.id.homeButton)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canProcessNull() {\n return false;\n }", "@Test\r\n\tpublic void invalidQuizTest() {\r\n\t\tquizBean qbean = null;\r\n\t\tboolean b = false;\r\n\t\ttry {\r\n\t\t\tInstructorUI.appendQuizNodeToXML(qbean);\r\n\r\n\t\t\tquizReader reader = new quizReader();\r\n\t\t\ttry {\r\n\t\t\t\tquizzes qlist = reader.read(quizXMLPath);\r\n\r\n\t\t\t\tfor (quizBean q : qlist) {\r\n\t\t\t\t\tif (q.compareTo(qbean) == 0 && !b) {\r\n\t\t\t\t\t\tb = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tb = false;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tb = false;\r\n\t\t}\r\n\r\n\t\tAssert.assertFalse(b);\r\n\r\n\t}", "private boolean m2255q() {\n return this.f2952a == ValueType.nullValue;\n }", "public void nullValues() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Null values ​​are not allowed or incorrect values\");\r\n\t}", "private static void checkForNullValue(String value) {\n if ( value == null ) {\n throw new NullPointerException();\n }\n }", "public boolean isNull(){\n return false;\n }", "public boolean isSetQ() {\n return this.q != null;\n }", "@Override\n\tpublic boolean hasMissingValue() {\n\t\treturn false;\n\t}", "public boolean isSetQe() {\n return this.qe != null;\n }", "public boolean hasDefaultValues()\r\n\t{\r\n\t\tif (stepName != null)\r\n\t\t\treturn false;\r\n\r\n\t\tif (stepDisplayName != null)\r\n\t\t\treturn false;\r\n\r\n\t\tif (stepDescription != null)\r\n\t\t\treturn false;\r\n\r\n\t\tif (roleId != null)\r\n\t\t\treturn false;\r\n\r\n\t\tif (userId != null)\r\n\t\t\treturn false;\r\n\r\n\t\tif (permissions != null)\r\n\t\t\treturn false;\r\n\r\n\t\tif (priority != 0)\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}", "public static boolean isNull()\r\n {\r\n return (page == null);\r\n }", "private boolean testNulls(Fact req, ArrayList<Fact> facts) {\n boolean isNull = req.valueIsNotNull();\n for (Fact fact: facts) if (fact.getName().equals(req.getName())) {\n return isNull;\n }\n return !isNull;\n }", "boolean checkNull();", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "@Override\n public boolean isValid() {\n if((eMultipleAnswerType == null && textAnswerIn.getText().toString().trim().isEmpty()) || (eMultipleAnswerType != null && !compoundButtonController.isChecked())){\n try {\n invalidText = getResources().getString(R.string.output_invalidField_questionAnswering_notAnswered);\n } catch (NullPointerException e){\n e.printStackTrace();\n }\n return false;\n }\n return true;\n }", "public boolean isEmpty(){\n return raiz == null;\n }", "public boolean isNonNull() {\n return true;\n }", "private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n }\r\n }", "private boolean hasValue (String s) { return s != null && s.length() != 0; }", "private boolean checkDefaultValueAgainstQuestionType(){\n\t\t\n\t\tString defaultValue = txtDefaultValue.getText();\n\t\tQuestionDef questionDef = (QuestionDef) propertiesObj;\n\t\t\n\t\tif(questionDef.getDataType() == QuestionDef.QTN_TYPE_NUMERIC && \n\t\t\t\t!PropertiesViewHelper.isDefaultValueNumeric(defaultValue)){\n\t\t\t\n\t\t\ttxtDefaultValue.setText(\"\");\n\t\t\treturn false;\n\t\t}\n\t\telse if(questionDef.getDataType() == QuestionDef.QTN_TYPE_DECIMAL &&\n\t\t\t\t!PropertiesViewHelper.isDefaultValueDecimal(defaultValue)){\n\t\t\ttxtDefaultValue.setText(\"\");\n\t\t\treturn false;\n\t\t}\n\t\telse if(questionDef.getDataType() == QuestionDef.QTN_TYPE_BOOLEAN &&\n\t\t\t\t!PropertiesViewHelper.isDefaultValueBoolean(defaultValue)){\t\t\t\n\t\t\ttxtDefaultValue.setText(\"\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n\tvoid testCheckNulls4() {\n\t\tObject[] o = {2,5f,\"Test\",Duration.ZERO,new Station(0,0,\"Test\")};\n\t\tassertFalse(DataChecker.checkNulls(o));\n\t}", "public boolean isNull() {\n return false;\n }", "private boolean m16125a(Object obj) {\n return obj == null || obj.toString().equals(\"\") || obj.toString().trim().equals(\"null\");\n }", "Question() {\n ques = opt1 = opt2 = opt3 = opt4 = null; // initializing to null\n }", "@Test(expected = IllegalArgumentException.class)\n public void checkIfAllNullRecord() throws Throwable {\n triplets.add(null);\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertNull(resultTriplet);\n }", "boolean isNilValue();", "public TestCase isNull( Object obj );", "void check() throws IllegalStateException {\n if (\n title == null ||\n release == null ||\n duration == 0 ||\n synopsis == null ||\n genre == null ||\n cast == null\n )\n throw new IllegalStateException(\"incomplete type\");\n }", "@Test(timeout = TIMEOUT, expected = IllegalArgumentException.class)\n public void testQuickNull() {\n Random random = new Random(1332);\n Integer[] arr = {4, 2, 1, 3};\n Sorting.quickSort(null, comparator, random);\n Sorting.quickSort(arr, null, random);\n Sorting.quickSort(arr, comparator, null);\n }", "@Override\n public void visitNullCheck(Quad q) {\n for (RegisterOperand target : q.getUsedRegisters()) {\n String reg = target.getRegister().toString();\n // has been checked\n val.checkVar(reg);\n }\n }", "boolean isNullOmittable();", "public boolean isNull() {\n return this.data == null;\n }", "public boolean isNull() {\n\t\treturn false;\n\t}", "@Test\n\tvoid testCheckNull3() {\n\t\tassertTrue(DataChecker.checkNull((Object)null));\n\t}", "protected boolean skipBlankValues() {\n return true;\n }", "public int checkforNull() {\r\n\t\t int notNull=0;\r\n\t\t for(int a=0; a<populationSize();a++) {\r\n\t\t\t if(getTour(a)!=null) {\r\n\t\t\t\t notNull++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t return notNull;\r\n\t }", "protected boolean skipNullValues() {\n return true;\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "public boolean checkAllNull() {\n return (locationFilterCriteria == null || locationFilterCriteria.checkAllNull()) &&\n minPricePerM2 == null && maxPricePerM2 == null &&\n sizeInM2LowerBound == null &&\n sizeInM2UpperBound == null && roofed == null &&\n leasingTimeFrom == null && leasingTimeTo == null &&\n keywords == null && electricity == null && water == null &&\n high == null && glassHouse == null;\n }", "boolean getPredefinedValuesNull();", "public void testCheckNull() {\n Util.checkNull(\"\", \"test\");\n }", "boolean isEmpty(){\n return (book == null);\n }", "@Test\n\tvoid testCheckNulls1() {\n\t\tassertTrue(DataChecker.checkNulls(null));\n\t}", "public void testGetNullValue() {\n ValueString vs = new ValueString();\n\n assertNull(vs.getString());\n assertEquals(0.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate());\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(null, vs.getBigNumber());\n assertNull(vs.getSerializable());\n }", "public boolean isEmptyStepList(){ return this.step==null&&this.rest==null;}", "@Test\n public void shouldNotGiveQuestionIfAllQuestionsHaveBeenAnswered() {\n attributes.put(FinancialPlanningSpeechlet.GOAL_AMOUNT_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.MONTHLY_CONTRIBUTION_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.GOAL_PERIOD_KEY, 1000.0);\n String question = NextQuestionFactory.get(session);\n\n assertThat(question, Is.is(\"\"));\n }", "public boolean isEmpty() {\n\t\treturn getQuestions().isEmpty();\n\t}", "public void testCheckNull() {\n Util.checkNull(\" \", \"test\");\n }", "@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }", "public static void checkEnterQuestionField() {\r\n\t\tcheckNoSuchElementExceptionByName(\"question\", \"\\\"Enter question\\\" field\");\r\n\t}", "boolean isNull();", "@Override\r\n public boolean checkNull() {\r\n // Check if the two textfields are null or default \r\n return newIng_ingName.getText().equals(\"\") || newIng_ingCal.getText().equals(\"\");\r\n }", "@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}", "@java.lang.Override\n public boolean hasVal() {\n return val_ != null;\n }", "public boolean allowsNull() {\n return this.allowsNullValue;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testBookWithNullFacilities() throws Exception {\n\t\tbookingManagement.book(USER_ID, null, validStartDate, validEndDate);\n\t}", "boolean getSearchValueNull();", "public M csmiQqNull(){if(this.get(\"csmiQqNot\")==null)this.put(\"csmiQqNot\", \"\");this.put(\"csmiQq\", null);return this;}", "public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}", "private void questionValidation(Question question) throws SurveyEngineException {\r\n if (\"\".equals(question.getDescription())) {\r\n throw new SurveyEngineException(\"Question description empty or null\");\r\n }\r\n HashMap<Integer, String> answers = question.getAnswers();\r\n if (answers.size() < 2) {\r\n throw new SurveyEngineException(\"Question has less than 2 answers\");\r\n }\r\n for (int i: answers.keySet()) {\r\n if (\"\".equals(answers.get(i))) {\r\n throw new SurveyEngineException(\"Answer for a question is empty or null\");\r\n }\r\n } \r\n }", "@Test\n \tpublic void testWithNullValue() {\n \t\tAssert.assertFalse(f1.equals(fnull));\n \t}", "private boolean checkInput(String[] cred){\n\t\tfor(int i =0; i < cred.length;i++){\n\t\t\tif(cred[i].equals(\"\") || cred[i].equals(null)){\n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}", "public boolean isNull() {\n return Stream.<Object>of(airQualityIndex, humidity,\n measurementTime, pm1, pm25, pm10, pollutionLevel,\n pressure, temperature)\n .allMatch(Objects::isNull);\n }", "@Override\n\tpublic boolean getIncludesNull() {\n\t\treturn false;\n\t}", "public boolean isPresent() {\r\n\t\treturn value != null;\r\n\t}", "public boolean isNull() {\n return originalValue == null;\n }", "public boolean hasValue() { return false; }", "public boolean isNull()\n\t{\n\t\treturn cp.isNull();\n\t}", "private void checkFormNullInput(Point[] points) {\n // No null inputs are allowed\n if (points == null) throw new IllegalArgumentException();\n\n for (Point p : points) {\n // No null elements are allowed\n if (p == null) {\n throw new IllegalArgumentException();\n }\n }\n }", "public boolean isNullOrUndef() {\n checkNotPolymorphicOrUnknown();\n return (flags & (NULL | UNDEF)) != 0\n && (flags & (NUM | STR | BOOL)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n }", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "public abstract boolean isBlank() throws Exception;", "@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLCorrelationRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\n assertThrows(GeneralException.class, () -> testRule.execute(testRuleContext));\n verify(testRule).internalValidation(eq(testRuleContext));\n verify(testRule, never()).internalExecute(eq(testRuleContext), any());\n }\n }", "@Test\n void nullTest() {\n assertNull(sFloat1.toScrabbleInt());\n assertNull(sFloat1.and(sFloat2));\n assertNull(sFloat1.or(sFloat2));\n assertNull(sFloat1.toScrabbleBool());\n assertNull(sFloat1.toScrabbleBinary());\n assertNull(sFloat1.addToString(new ScrabbleString(\"Hello World\")));\n }", "private void getAllQuestion(){\r\n\r\n if(ques.getText().toString().equals(\"\")||opt1.getText().toString().equals(\"\")||opt2.getText().toString().equals(\"\")||\r\n opt3.getText().toString().equals(\"\")||correct.getText().toString().equals(\"\")){\r\n Toast.makeText(getBaseContext(), \"Please fill all fields\", Toast.LENGTH_LONG).show();\r\n }\r\n else{\r\n\r\n int c = Integer.parseInt((correct.getText().toString()));\r\n if (c > 3) {\r\n Toast.makeText(getBaseContext(), \"Invalid Correct answer\", Toast.LENGTH_LONG).show();\r\n } else {\r\n\r\n setQuestions();\r\n }\r\n finishQuiz();\r\n }\r\n }", "@Test(expected = NullPointerException.class)\n public void formatBooleanNullAsInputTest() {\n Boolean someBoolean = null;\n Format.formatBoolean(someBoolean);\n }", "private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Test\n public void testSpecializationIsNull() {\n boolean expected = false;\n boolean actual = hospital.canAllocateDoctorToRoom(\n null, SurgeryRoomType.small);\n assertEquals(expected, actual);\n }", "public boolean hasValue() {\n return value_ != null;\n }", "private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }", "@Override\r\n\tpublic boolean isEmtpy() {\r\n\t\tif (this.front == -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n\tpublic CeStoreJsonObject handleQuestion() {\n\n\t\treturn null;\n\t}", "public boolean isNullInstance()\n {\n return code == null;\n }", "@Test\n public void testConstructorWithNullsInQuestion() {\n TestRoutePoliciesAnswerer answerer =\n new TestRoutePoliciesAnswerer(\n new TestRoutePoliciesQuestion(Direction.IN, ImmutableList.of(), null, null), _batfish);\n assertEquals(answerer.getNodeSpecifier(), AllNodesNodeSpecifier.INSTANCE);\n assertEquals(answerer.getPolicySpecifier(), ALL_ROUTING_POLICIES);\n }", "public boolean checkEmpty(){\n if (history.empty() || historyValues.empty()){\n return true;\n }\n else {\n return false;\n }\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.addRequiredCondition((String) null, stringBuilder0);\n assertEquals(\"null\", stringBuilder0.toString());\n }", "@Test\n public void testNullInputPerturbDataSet() throws Exception {\n int[] result = NoiseGenerator.perturbDataSet(null, 2);\n Assert.assertTrue(result == null);\n }", "public void testNullEnum () {\n\t\tString example = null;\n\t\ttry {\n\t\t\tRadioBand temp = RadioBand.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (NullPointerException exception) {\n fail(\"Null string throws NullPointerException.\");\n\t\t}\n\t}", "boolean isDummy() {\n return var == null;\n }", "@Test\n public void sucheKategorienNull() throws Exception {\n System.out.println(\"suche Kategorien Null\");\n SaalKey saal = null;\n List<Kategorie> expResult = null;\n List<Kategorie> result = SaalHelper.sucheKategorien(saal);\n assertEquals(expResult, result);\n \n }", "@Test\n\tvoid testCheckNulls3() {\n\t\tObject[] o = {null,null,null,null,null};\n\t\tassertTrue(DataChecker.checkNulls(o));\n\t}", "@Override\npublic Boolean isEmpty() {\n\treturn null;\n}", "public Boolean isNull(){\n\t\treturn equals(NULL);\n\t}", "@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}", "int checkNull(int value) {\n return (value != Tables.INTNULL ? value : 0);\n }", "private void checkNull(T x) throws NullPointerException\n\t{\n\t\tif (x == null)\n\t\t{\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n stringBuilder0.append((-1.0));\n SQLUtil.addRequiredCondition((String) null, stringBuilder0);\n assertEquals(\"-1.0 and null\", stringBuilder0.toString());\n }", "private static void checkForNullKey(String key) {\n if ( key == null ) {\n throw new NullPointerException();\n }\n }", "public boolean isValid() {\n //primary variables must have proper values to identify the Book with\n if (this.author == null || this.title == null || dop == 0) {\n return false;\n }\n return true;\n }", "public static boolean isNull_fields_allowed() {\n return null_fields_allowed;\n }" ]
[ "0.6260811", "0.5985804", "0.5978706", "0.5949712", "0.5892914", "0.587697", "0.5873415", "0.5804016", "0.5738824", "0.5725135", "0.57065576", "0.5701017", "0.5661628", "0.56586206", "0.5658096", "0.5656887", "0.5648745", "0.56413674", "0.5634979", "0.56250364", "0.56046367", "0.5602735", "0.5574384", "0.5564908", "0.55516374", "0.55486876", "0.5545082", "0.55337214", "0.5525024", "0.5524642", "0.55110896", "0.5510616", "0.55087245", "0.5505882", "0.54912925", "0.54845124", "0.54842794", "0.5464025", "0.5460192", "0.545964", "0.5447278", "0.5446722", "0.543996", "0.54388946", "0.54203886", "0.54193205", "0.541763", "0.5413725", "0.5411034", "0.54095227", "0.5409392", "0.54055554", "0.5405278", "0.5396091", "0.539276", "0.5389594", "0.5378031", "0.5373622", "0.5371709", "0.5368949", "0.5368712", "0.53686625", "0.53597593", "0.5357866", "0.5352589", "0.535201", "0.53474313", "0.5346378", "0.53444254", "0.5340857", "0.5324254", "0.5323114", "0.5323012", "0.5318255", "0.53141516", "0.5311319", "0.53079695", "0.53003144", "0.5298873", "0.5296403", "0.5289629", "0.5286447", "0.5284094", "0.5282307", "0.5281432", "0.5277005", "0.52769107", "0.5274421", "0.5273943", "0.5271251", "0.526982", "0.5266887", "0.5258957", "0.5254142", "0.5253112", "0.52475", "0.5246187", "0.5244944", "0.52403754", "0.52354354" ]
0.54768765
37
Tests our make flashcards function
public void testMakeFlash() { onView(withId(R.id.flash_button)).perform(click()); onView(withId(R.id.make_flash_button)).perform(click()); onView(withId(R.id.flashCardsTitle)) .perform(click()) .perform(typeText("The best Flashcard")); onView(withId(R.id.flashCardsQuestion)) .perform(click()) .perform(typeText("Who is the coolest guy around?")); onView(withId(R.id.flashCardsAnswer)) .perform(click()) .perform(typeText("Brian Richardson")); onView(withId(R.id.submit_FlashCards_button)).perform(click()); pressBack(); pressBack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void doAction() throws ModelException {\n CommonTestMethods.gameInitOne(game);\n String response;\n CommonTestMethods.givePlayerLeaderCards(game.getCurrentPlayer(), game.getLeaderCards().get(2), game.getLeaderCards().get(1));\n\n actionController.getGame().getCurrentPlayer().addPossibleAction(BUY_CARD);\n actionController.getGame().getCurrentPlayer().addPossibleAction(ACTIVATE_LEADERCARD);\n\n response = card.doAction(actionController);\n assertEquals(\"Not enough resources to buy Card\", response);\n messageToClient = card.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"Not enough resources to buy Card\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.ACTIVATE_PRODUCTION, messageToClient.getPossibleActions().get(0));\n assertEquals(ActionType.BUY_CARD, messageToClient.getPossibleActions().get(1));\n assertEquals(ActionType.MARKET_CHOOSE_ROW, messageToClient.getPossibleActions().get(2));\n assertEquals(ActionType.ACTIVATE_LEADERCARD, messageToClient.getPossibleActions().get(3));\n\n\n ResourceStack stack = new ResourceStack(5,3,3,0);\n CommonTestMethods.giveResourcesToPlayer(game.getCurrentPlayer(), 1,12,1, ResourceType.SHIELDS, ResourceType.COINS, ResourceType.STONES, stack);\n BuyCard secondCard = new BuyCard(0,0);\n response = card.doAction(actionController);\n assertEquals(\"2 0 2 0\", game.getCurrentPlayer().getBoard().getResourceManager().getTemporaryResourcesToPay().toString());\n assertEquals(\"SUCCESS\", response);\n messageToClient = card.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"SUCCESS\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.PAY_RESOURCE_CARD, messageToClient.getPossibleActions().get(0));\n\n actionController.getGame().getCurrentPlayer().addPossibleAction(BUY_CARD);\n\n assertEquals(\"Card does not fit inside Personal Board\", secondCard.doAction(actionController));\n messageToClient = secondCard.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"Card does not fit inside Personal Board\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.ACTIVATE_PRODUCTION, messageToClient.getPossibleActions().get(0));\n assertEquals(ActionType.BUY_CARD, messageToClient.getPossibleActions().get(1));\n assertEquals(ActionType.MARKET_CHOOSE_ROW, messageToClient.getPossibleActions().get(2));\n assertEquals(ActionType.ACTIVATE_LEADERCARD, messageToClient.getPossibleActions().get(3));\n }", "@Test\n public void testCardCanPlay_WILD() {\n System.out.println(\"cardCanPlay WILD\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.WILD, UnoCardValue.ONE);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.THREE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "private void makeCards() {\n //make number cards(76 cards)\n for (int i = 0; i < 10; i++) {\n String s = i + \"\";\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n if(i > 0) {\n cards.add(new NumberCard(s, Color.RED, i));\n cards.add(new NumberCard(s, Color.GREEN, i));\n cards.add(new NumberCard(s, Color.BLUE, i));\n cards.add(new NumberCard(s, Color.YELLOW, i));\n }\n }\n\n //make wild cards(8 cards)⨁\n for (int i = 0; i < 4; i++) {\n cards.add(new WildCard(\"W\", Color.BLACK));\n cards.add(new WildDrawCard(\"W+4\", Color.BLACK));\n }\n\n //make reverse cards(8 cards)⤤⤦\n for (int i = 0; i < 2; i++) {\n cards.add(new ReverseCard(\"Rev\", Color.RED));\n cards.add(new ReverseCard(\"Rev\", Color.GREEN));\n cards.add(new ReverseCard(\"Rev\", Color.BLUE));\n cards.add(new ReverseCard(\"Rev\", Color.YELLOW));\n }\n\n //make draw cards(8 cards)⧉\n for (int i = 0; i < 2; i++) {\n cards.add(new Draw2Card(\"D+2\", Color.RED));\n cards.add(new Draw2Card(\"D+2\", Color.GREEN));\n cards.add(new Draw2Card(\"D+2\", Color.BLUE));\n cards.add(new Draw2Card(\"D+2\", Color.YELLOW));\n }\n\n //make skip cards(8 cards)🚫\n for (int i = 0; i < 2; i++) {\n cards.add(new SkipCard(\"Ski\", Color.RED));\n cards.add(new SkipCard(\"Ski\", Color.GREEN));\n cards.add(new SkipCard(\"Ski\", Color.BLUE));\n cards.add(new SkipCard(\"Ski\", Color.YELLOW));\n }\n //Shuffling cards list\n Collections.shuffle(cards);\n }", "@Test\n\tpublic void ShuffleDeckofcardsTC001() throws Exception {\n\n\t}", "void playMonumentCard();", "@Test\r\n public void testGenerateHand() {\r\n System.out.println(\"generateHand\");\r\n Cardhand instance = new Cardhand();\r\n instance.generateHand();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testCardCanPlay_TRUE() {\n System.out.println(\"cardCanPlay TRUE COLOUR\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "public Boolean TrashesCards();", "public void fakeCards(){\n this.drawPile = new ArrayList<>();\n drawPile.add(new RemoveActionCard(\"Fernsprechgerät\", (float) 0.5, 4, new SpecialActions(0,0,1) ));\n drawPile.add(new MovingCard(\"Millionärin\", 4, 5, 4, 99, new COLOR[]{COLOR.SAND}));\n drawPile.add(new RemoveMoveSellCard(\"Propellerflugzeug\", 4, 4, 4, 99, new COLOR[]{COLOR.SAND, COLOR.RIVER, COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new MovingCard(\"Ureinwohner\", (float) 0.5, 5, 99, 1, new COLOR[]{COLOR.BASECAMP, COLOR.RUBBLE, COLOR.JUNGLE, COLOR.SAND, COLOR.RIVER,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new ActionCard(\"Wissenschaftlerin\", (float) 0.5, 4, new SpecialActions(1,1,0)));\n drawPile.add(new MovingCard(\"Pionier\", (float) 0.5, 5, 5, 99, new COLOR[]{COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE}));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n Collections.shuffle(drawPile);\n }", "@Test\n public void giveCard() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n x.setCards(5,3);\n int numberOfCardsToGive = x.giveCard(5);\n assertTrue(numberOfCardsToGive == 3);\n }", "@Test\n public void checkBook() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n x.setCards(3,4);\n boolean gotBook = x.checkBook();\n assertTrue(gotBook);\n }", "static boolean playBlackjack() {\n\n Deck mazo; // Un mazo de cartas. Una nueva baraja para cada juego.\n BlackjackHand manoRepartidor; // La mano del repartidor.\n BlackjackHand manoUsuario; // La mano del usuario.\n \n mazo = new Deck();\n manoRepartidor = new BlackjackHand();\n manoUsuario = new BlackjackHand();\n\n // Baraja el mazo, luego reparte dos cartas a cada jugador.\n \n mazo.barajar();\n manoRepartidor.agregarCarta( mazo.cartaReparto());\n manoRepartidor.agregarCarta( mazo.cartaReparto() );\n manoUsuario.agregarCarta( mazo.cartaReparto() );\n manoUsuario.agregarCarta( mazo.cartaReparto() );\n \n System.out.println();\n System.out.println();\n \n /* Marque si uno de los jugadores tiene Blackjack (dos cartas con un total de 21).\n El jugador con Blackjack gana el juego. El repartidor gana empates.\n */\n \n if (manoRepartidor.obtenerValorBlackjack() == 21) {\n String m=\"El distribuidor tiene el \" + manoRepartidor.obtenerCarta(0) + \" y el \" + manoRepartidor.obtenerCarta(1) + \".\\n\"\n + \"El usuario tiene el \" + manoUsuario.obtenerCarta(0) + \" y el \" + manoUsuario.obtenerCarta(1) + \".\\n\"\n + \"El repartidor tiene Blackjack. El repartidor gana.\";\n JOptionPane.showMessageDialog(null, m);\n \n return false;\n }\n \n if (manoUsuario.obtenerValorBlackjack() == 21) {\n String m1 = \"El distribuidor tiene el \" + manoRepartidor.obtenerCarta(0) + \" y el \" + manoRepartidor.obtenerCarta(1) + \".\\n\"\n + \"El usuario tiene el \" + manoUsuario.obtenerCarta(0) + \" y el \" + manoUsuario.obtenerCarta(1) + \".\\n\"\n + \"Tienes Blackjack. Tú ganas.\";\n JOptionPane.showMessageDialog(null, m1);\n return true;\n }\n \n /* Si ninguno de los dos jugadores tiene Blackjack, juega el juego. Primero el usuario \n tiene la oportunidad de robar cartas (es decir,\"Golpear\"). El bucle while termina \n cuando el usuario elige \"Stand\". Si el usuario supera los 21,\n el usuario pierde inmediatamente.\n */\n \n while (true) {\n \n /* Muestra las cartas de los usuarios y deja que el usuario decida si golpea o se para. */\n\n System.out.println();\n System.out.println();\n System.out.println();\n String aux1=\"\";\n for ( int i = 0; i < manoUsuario.obtenerConteoCartas(); i++ ){\n aux1=aux1+\" \"+manoUsuario.obtenerCarta(i)+\"\\n\";\n }\n JOptionPane.showMessageDialog(null, \"Tus cartas son: \\n\" \n + aux1+\"\\n\"\n + \"Su total es \" + manoUsuario.obtenerValorBlackjack()+\"\\n\\n\"\n +\"El concesionario está mostrando el \" + manoRepartidor.obtenerCarta(0));\n \n char userAction= JOptionPane.showInputDialog(null,\"¿Pulse (H) o Pararse (S)? \").charAt(0);\n \n // char x = JOptionPane.showInputDialog(null,\"Ingres... el dato\").charAt(0);\n char opcion;\n do {\n opcion=Character.toUpperCase(userAction);\n if (opcion != 'H' && opcion != 'S')\n \n JOptionPane.showMessageDialog(null,\"Por favor responda H o S: \" );\n } while (opcion != 'H' && opcion != 'S');\n\n /* Si el usuario acierta, el usuario recibe una tarjeta. Si el usuario se para, el bucle termina \n (y es el turno de la banca para robar cartas).\n */\n \n if ( opcion == 'S' ) {\n // Termina el bucle; el usuario termina de coger las tarjetas.\n break;\n }\n else { // La accion del usuario es' H'. Dar al usuario una tarjeta. \n // Si el usuario pasa de 21, el usuario pierde.\n Card newCard = mazo.cartaReparto();\n manoUsuario.agregarCarta(newCard);\n \n System.out.println();\n System.out.println();\n System.out.println();\n \n JOptionPane.showMessageDialog(null, \"Aciertos de usuario.\\n\"\n + \"Su carta es el \" + newCard+\"\\n\"\n + \"Su total es ahora \" + manoUsuario.obtenerValorBlackjack());\n if (manoUsuario.obtenerValorBlackjack() > 21) {\n \n JOptionPane.showMessageDialog(null, \"Pasaste por encima de los 21. Tú pierdes.\\n\"\n + \"La otra carta del repartidor era el \" + manoRepartidor.obtenerCarta(1));\n return false; \n }\n }\n \n } // end while loop\n \n /* Si llegamos a este punto, el usuario tiene un nivel Ahora, es\n la oportunidad del traficante de dibujar. El Dealer coge cartas hasta que el dealer\n total es > 16. Si el concesionario pasa de 21, pierde.\n */\n\n \n JOptionPane.showMessageDialog(null, \"Usuario parado.\\n\"\n +\"Las cartas del distribuidor son\\n\"\n +\" \" + manoRepartidor.obtenerCarta(0)+\"\\n\"\n + \" \" + manoRepartidor.obtenerCarta(1));\n while (manoRepartidor.obtenerValorBlackjack() <= 16) {\n Card newCard = mazo.cartaReparto();\n \n JOptionPane.showMessageDialog(null, \"El distribuidor golpea y obtiene el \" + newCard);\n manoRepartidor.agregarCarta(newCard);\n if (manoRepartidor.obtenerValorBlackjack() > 21) {\n \n JOptionPane.showMessageDialog(null, \"Distribuidor detenido por pasar de 21. Usted gana.\");\n return true;\n }\n }\n \n JOptionPane.showMessageDialog(null, \"El total del distribuidor es \" + manoRepartidor.obtenerValorBlackjack());\n /* Si llegamos a este punto, ambos jugadores tienen 21 o menos. \n Podemos determinar el ganador comparando los valores de sus manos. */\n \n System.out.println();\n if (manoRepartidor.obtenerValorBlackjack() == manoUsuario.obtenerValorBlackjack()) {\n JOptionPane.showMessageDialog(null, \"El concesionario gana por empate. Tú pierdes.\");\n \n return false;\n }\n else if (manoRepartidor.obtenerValorBlackjack() > manoUsuario.obtenerValorBlackjack()) {\n \n JOptionPane.showMessageDialog(null, \"El concesionario gana, \" + manoRepartidor.obtenerValorBlackjack() \n + \" puntos para \" + manoUsuario.obtenerValorBlackjack() + \".\");\n return false;\n }\n else {\n \n JOptionPane.showMessageDialog(null, \"Tu ganas, \" + manoUsuario.obtenerValorBlackjack() \n + \" puntos para \" + manoRepartidor.obtenerValorBlackjack() + \".\");\n return true;\n }\n\n }", "@Test\n public void testCardCanPlay_FALSE() {\n System.out.println(\"cardCanPlay FALSE COLOUR\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(false, result);\n }", "@Test\n public void giveCard2() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n int numberOfCardsToGive = x.giveCard(5);\n assertTrue(numberOfCardsToGive == 0);\n }", "@Test\r\n\tpublic void testPlayableCards2()\r\n\t{\n\t\t\r\n\t\tCardList clubList = new CardList();\r\n\t\tclubList.add(AllCards.a6C);\r\n\t\tclubList.add(AllCards.aTC);\t\t\r\n//\t\tassertTrue( h.playableCards(Suit.CLUBS, null).toString().equals(clubList.toString()));\r\n\t\t\r\n\t\tCardList diamondsList = new CardList();\r\n\t\tdiamondsList.add(AllCards.a7D);\r\n\t\tdiamondsList.add(AllCards.aQD);\r\n\t\tdiamondsList.add(AllCards.aKD);\r\n//\t\tassertTrue( h.playableCards(Suit.DIAMONDS, null).toString().equals(diamondsList.toString()));\r\n\t\t\r\n\t\tCardList heartsList = new CardList();\r\n\t\theartsList.add(AllCards.a9H);\t\t\r\n//\t\tassertTrue( h.playableCards(Suit.HEARTS, null).toString().equals(heartsList.toString()));\r\n\t\t\r\n\t\tCardList spadesList = new CardList();\r\n\t\tspadesList.add(AllCards.aTS);\r\n\t\tspadesList.add(AllCards.a7S);\r\n\t\tspadesList.add(AllCards.aJS);\r\n\t\tspadesList.add(AllCards.aKS);\r\n//\t\tassertTrue( h.playableCards(Suit.SPADES, null).toString().equals(spadesList.toString()));\r\n\t\t\r\n\t\tCardList joker = new CardList();\t\t\t\r\n\t\tjoker.add(AllCards.aLJo);\t\t\r\n\t\tjoker.add(AllCards.aHJo);\r\n//\t\tassertTrue(jokerhand.playableCards(Suit.DIAMONDS, null).sort(new Card.ByRankComparator()).toString().equals(joker.toString()));\r\n\t\t\r\n\t\t\r\n\t\t// Trump\r\n\t\tclubList.add(AllCards.aJS);\r\n\t\tclubList.add(AllCards.aLJo);\r\n\t\tclubList = clubList.sort(new Card.ByRankComparator());\r\n\t\tassertTrue( h.playableCards(Suit.CLUBS, Suit.CLUBS).sort(new Card.ByRankComparator()).toString().equals(clubList.toString()));\r\n\t\t\r\n\t\tdiamondsList.add(AllCards.aLJo);\r\n\t\tdiamondsList = diamondsList.sort(new Card.ByRankComparator());\r\n\t\tassertTrue( h.playableCards(Suit.DIAMONDS, Suit.DIAMONDS).sort(new Card.ByRankComparator()).toString().equals(diamondsList.toString()));\r\n\r\n\t\theartsList = heartsList.sort(new Card.ByRankComparator());\t\t\r\n\t\tassertTrue( h.playableCards(Suit.HEARTS, Suit.DIAMONDS).sort(new Card.ByRankComparator()).toString().equals(heartsList.toString()));\r\n\t\t\r\n\t\tspadesList.remove(AllCards.aJS);\r\n\t\tspadesList = spadesList.sort(new Card.ByRankComparator());\r\n\t\tassertTrue( h.playableCards(Suit.SPADES, Suit.CLUBS).sort(new Card.ByRankComparator()).toString().equals(spadesList.toString()));\r\n\t\t\r\n\t\t// no Trump in hand\r\n\t\tassertTrue(jokerhand.playableCards(Suit.DIAMONDS, Suit.DIAMONDS).sort(new Card.ByRankComparator()).toString().equals(joker.toString()));\r\n\t\tassertTrue(jokerhand.playableCards(Suit.DIAMONDS, Suit.CLUBS).sort(new Card.ByRankComparator()).toString().equals(joker.toString()));\r\n\t\t\r\n\t\tCardList jackList = new CardList();\r\n\t\tjackList.add(AllCards.aJS);\r\n\t\tjackList.add(AllCards.aJC);\r\n\t\tassertTrue(jackHand.playableCards(Suit.CLUBS, Suit.SPADES).sort(new Card.ByRankComparator()).toString().equals(jackList.toString()));\r\n\t\t\r\n\t}", "public static List<Flashcard> generateStudySet() {\n\n Flashcard card1 = new Flashcard(\"ANT\", \n \"Another Neat Tool, a Java library for building Java projects\", 1); \n Flashcard card2 = new Flashcard(\"HTTP\", \"HyperText Transfer Protocol for \"\n + \"browser requests and server responses.\", 2); \n Flashcard card3 = new Flashcard(\"Servlet\", \"A Java class that handles \" \n + \"browser requests by sending responses with data.\", 2); \n Flashcard card4 = new Flashcard(\"JSP\", \"Java Server Page, server-compiled \" \n + \"webpages.\", 3);\n\n ArrayList<Flashcard> flashcards = new ArrayList<Flashcard>(); \n flashcards.add(card1);\n flashcards.add(card2);\n flashcards.add(card3);\n flashcards.add(card4);\n \n return flashcards; \n\n }", "@Test\n public void testPlay1()\n {\n List<Card> hand = new ArrayList<Card>();\n hand.add(new Card(UnoPlayer.Color.RED, UnoPlayer.Rank.NUMBER, 4));\n hand.add(new Card(UnoPlayer.Color.GREEN, UnoPlayer.Rank.NUMBER, 7));\n hand.add(new Card(UnoPlayer.Color.GREEN, UnoPlayer.Rank.REVERSE, -1));\n hand.add(new Card(UnoPlayer.Color.BLUE, UnoPlayer.Rank.NUMBER, 2));\n hand.add(new Card(UnoPlayer.Color.BLUE, UnoPlayer.Rank.SKIP, -1));\n hand.add(new Card(UnoPlayer.Color.NONE, UnoPlayer.Rank.WILD, -1));\n\n Card upCard = new Card(UnoPlayer.Color.RED, UnoPlayer.Rank.NUMBER, 7);\n int cardPlayed = thePlayer.play(hand, upCard, UnoPlayer.Color.RED, new\n GameState(upCard));\n\n // Let's see whether the card played was legit.\n assertTrue(\"Player didn't think a card could be played.\\nThis is an \"\n + \"error, since cards 0, 1, and 5 are legal plays.\",\n cardPlayed >= 0);\n assertTrue(\"Player tried to play \" + hand.get(cardPlayed)\n + \", which is an error.\", cardPlayed == 0 || cardPlayed == 1\n || cardPlayed == 5);\n System.out.println(\"Player played \" + hand.get(cardPlayed));\n }", "@Test\n void findDevCard() {\n ArrayList<DevelopmentCardExt> developmentCards= Starter.DevCardParser();\n DashboardExt dashboard= new DashboardExt(developmentCards);\n Random rand= new Random();\n\n for (int i=0; i<48; i++){\n assertNotNull(dashboard.findDevCard(i));\n }\n\n for (int i=48; i<100; i++){\n assertNull(dashboard.findDevCard(i));\n }\n\n\n assertEquals(dashboard.findDevCard(5).getLevel(), Level.ONE);\n assertEquals(dashboard.findDevCard(16).getColor(), ColorDevCard.GREEN);\n\n }", "@Test\n public void testCardCanPlay_TRUE_VALUE() {\n System.out.println(\"cardCanPlay TRUE VALUE\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "public void testCanPlayOn() {\n \n DrawCard redDraw2 = new DrawCard(Card.COLOUR_RED, 2);\n \n // create another 4 normal cards\n \n Card card1 = new Card(Card.COLOUR_BLUE, 5);\n Card card2 = new Card(Card.COLOUR_BLUE,2);\n \n //card 1 and card 2 should yield false on the method\n assertFalse(redDraw2.canPlayOn(card1));\n assertFalse(redDraw2.canPlayOn(card2));\n \n Card card3 = new Card(Card.COLOUR_RED, 5);\n Card card4 = new Card(Card.COLOUR_RED,2);\n \n // card 3 and card 4 should gives true\n \n assertTrue(redDraw2.canPlayOn(card3));\n assertTrue(redDraw2.canPlayOn(card4));\n \n }", "@Test\n \tpublic void testDisprovingSuggestion() {\n \t\t//Set suggestion\n \t\tSolution suggestion = new Solution(\"Colonel Mustard\", \"Knife\", \"Library\");\n \t\tComputerPlayer computer1 = new ComputerPlayer();\n \t\tComputerPlayer computer2 = new ComputerPlayer();\n \t\tComputerPlayer computer3 = new ComputerPlayer();\n \t\tHumanPlayer human = new HumanPlayer();\n \t\tArrayList<Card> hand = new ArrayList<Card>();\n \t\tArrayList<ComputerPlayer> comps = new ArrayList<ComputerPlayer>();\n \t\t\n \t\t\n \t\t//ensure If a player (human or computer) has a card that's suggested, that card is \"shown\"\n \t\tCard mustardCard = new Card(\"Colonel Mustard\", Card.cardType.PERSON);\n \t\thand.add(mustardCard);\n \t\tcomputer1.setCards(hand);\n \t\tAssert.assertEquals(computer1.disproveSuggestion(suggestion), mustardCard);\n \t\t\n \t\t\n \t\t//ensure If the player has multiple cards that match, the card to be returned is selected randomly.\n \t\tCard knifeCard = new Card (\"Knife\", Card.cardType.WEAPON);\n \t\tCard libraryCard = new Card(\"Library\", Card.cardType.ROOM);\n \t\thand.add(knifeCard);\n \t\thand.add(libraryCard);\n \t\thuman.setCards(hand);\n \t\tint mustard = 0, knife = 0, library = 0;\n \t\t//make sure card is valid and counts how many times each card is returned\n \t\tfor(int i = 0; i < 100; i++) {\n \t\t\tCard disproved = human.disproveSuggestion(suggestion);\n \t\t\t\n \t\t\tif(disproved == mustardCard)\n \t\t\t\tmustard++;\n \t\t\telse if(disproved == knifeCard)\n \t\t\t\tknife++;\n \t\t\telse if(disproved == libraryCard)\n \t\t\t\tlibrary++;\n \t\t\telse\n \t\t\t\tfail(\"Invalid card returned\");\n \t\t}\n \t\t//makes sure every card is returned more than once\n \t\tAssert.assertTrue(mustard > 10);\n \t\tAssert.assertTrue(knife > 10);\n \t\tAssert.assertTrue(library > 10);\n \t\t\n \t\thuman.setCards(null);\n \t\tgame.setCurrentPlayer(game.getHuman());\n \t\t\t\n \t\t//ensure In the board game, disproving a suggestion starts with a player to the left of the person making the suggestion\n \t\thand.remove(mustardCard);\n \t\thand.remove(knifeCard);\n \t\tcomputer2.setCards(hand);\n \t\thand.remove(libraryCard);\n \t\thand.add(knifeCard);\n \t\tcomputer3.setCards(hand);\n \t\tcomps.add(computer1);\n \t\tcomps.add(computer2);\n \t\tcomps.add(computer3);\n \t\t\n \t\tint comp1 = 0, comp2 = 0, comp3 = 0;\n \t\tgame.setComputer(comps);\n \t\tfor(int i = 0; i < 100; i++) {\n \t\t\tCard returned = game.handleSuggestion(suggestion);\n \t\t\tif(returned == mustardCard)\n \t\t\t\tcomp1++;\n \t\t\telse if(returned == libraryCard)\n \t\t\t\tcomp2++;\n \t\t\telse if(returned == knifeCard)\n \t\t\t\tcomp3++;\n \t\t\telse\n \t\t\t\tfail(\"Invalid card returned\");\t\n \t\t}\n\t\t//Assert.assertTrue(comp1 > 10);\n\t\t//Assert.assertTrue(comp2 > 10);\n \t\tAssert.assertTrue(comp3 > 10);\n \t\t//ensure The player making the suggestion should not be queried\n \t\tgame.setCurrentPlayer(computer1);\n \t\tfor(int i = 0; i < 100; i++) {\n \t\t\tCard returned = game.handleSuggestion(suggestion);\n \t\t\tif(returned == mustardCard)\n \t\t\t\tfail(\"Suggesting player cannot return a card\");\t\n \t\t}\n \t}", "private void cards() {\n newUserCard();\n editTypeCard();\n changePasswordCard();\n }", "@Test\n public void testGiveHand() throws Exception {\n\n Deck giveHand = new Deck();\n giveHand.add(cardB);\n giveHand.add(cardB);\n giveHand.add(cardP);\n playerHuman.addCardToDeck(cardB);\n playerHuman.addCardToDeck(cardB);\n playerHuman.addCardToDeck(cardP);\n playerHuman.giveHand();\n org.junit.Assert.assertEquals(giveHand, playerHuman.getPlayHand());\n }", "@Test\n void grab() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n Square s = new Square(0, 4, false, true, false, true, false, 'b');\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(s);\n p.getPh().getPowerupDeck().getPowerups().clear();\n p.setTurn(true);\n AmmoTile a = new AmmoTile();\n PowerupDeck pud = new PowerupDeck();\n int[] cubes = new int[3];\n cubes[0] = 2;\n cubes[2] = 1;\n char[] c1 = {'b', 'b', 'b'};\n char[] c2 = {'r', 'r', 'r'};\n char[] c3 = {'y', 'y', 'y'};\n p.getPb().payAmmo(c1);\n p.getPb().payAmmo(c2);\n p.getPb().payAmmo(c3);\n a.setCubes(cubes);\n a.setPowerup(false);\n s.setAmmo(a);\n try{\n p.grab(p.getPlayerPosition(), pud);\n }catch (WrongSquareException e){}\n }", "private void generateNewCards()\n {\n // Set the card sets to be drafted from.\n setsForDraft = new ArrayList<>();\n setsForDraft.add(M19_CARD_TABLE);\n\n // Generates sealed pool and places in openedCardPool.\n drawPacksFromSets();\n\n // Initialize a selectedCardPool that is empty, for the user to move cards into when desired.\n selectedCardPool = new ArrayList<>();\n }", "@Test\r\n public void testPlayer_getDumbStrategyCard_oneWinner_color() {\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n player2.getHand().discard(wild);\r\n player2.getHand().discard(wildDrawFour);\r\n assertTrue(player2.getDumbStrategyCard(blueNine, blueNine.getColor()).equals(blueFour));\r\n }", "@Test\n @DisplayName(\"Action Marker Production Blue And Buy Test\")\n public void ActionMarkerProductionBlueAndBuyTest() throws IOException, InterruptedException {\n ActionMarkerProductionBlue actionMarker = new ActionMarkerProductionBlue();\n Server server= new Server();\n ClientHandler clientHandler= new ClientHandler(server);\n ClientController clientController= new ClientController(server,clientHandler) ;\n VirtualView virtualView = new VirtualView(clientController);\n\n GameSolitaire game = new GameSolitaire(\"Ali\",true,clientController);\n\n assertEquals(4, game.productionDeckSize(0));\n assertEquals(4, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(2, game.productionDeckSize(0));\n assertEquals(4, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n try {\n game.deckFromDeckNumber(10).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(1, game.productionDeckSize(0));\n assertEquals(4, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(3, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n try {\n game.deckFromDeckNumber(2).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(3, game.productionDeckSize(1));\n assertEquals(3, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(1, game.productionDeckSize(1));\n assertEquals(3, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(0, game.productionDeckSize(1));\n assertEquals(2, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(0, game.productionDeckSize(1));\n assertEquals(0, game.productionDeckSize(2));\n\n FileClass.FileDestroyer();\n\n }", "@Test\n public void play_FullHouseVsFullHouse() throws Exception {\n Hand hand1 = new Hand();\n hand1.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_5));\n hand1.addCard(new Card(Card.SUIT_SPADES, Card.CARD_5));\n hand1.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_7));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_7));\n hand1.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_7));\n Hand hand2 = new Hand();\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_10));\n hand2.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_10));\n hand2.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_ACE));\n hand2.addCard(new Card(Card.SUIT_SPADES, Card.CARD_ACE));\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_ACE));\n assertEquals(hand2, FiveCardDraw.play(hand1, hand2));\n }", "void dealTheCards();", "@Test\r\n public void testDrawCard() {\r\n Deck instance = new Deck();\r\n System.out.println(\"Testing drawCard\");\r\n Card result = instance.drawCard();\r\n System.out.println('\\t' + \"Card toString: \" + result.toString());\r\n assertNotNull(result); \r\n }", "@Test\n public void play_ThreeOfAKindVsThreeOfAKind() throws Exception {\n Hand hand1 = new Hand();\n hand1.addCard(new Card(Card.SUIT_SPADES, Card.CARD_2));\n hand1.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_2));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_2));\n hand1.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_5));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_6));\n Hand hand2 = new Hand();\n hand2.addCard(new Card(Card.SUIT_SPADES, Card.CARD_8));\n hand2.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_8));\n hand2.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_8));\n hand2.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_9));\n hand2.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_10));\n assertEquals(hand2, FiveCardDraw.play(hand1, hand2));\n }", "@Test\n\tpublic void test() {\n\t\t// CHECKSTYPE:OFF\n\n\t\t// Test the addPlayer(Player player) method\n\t\tPlayer player1 = new Player(\"Iris\");\n\t\tPlayer player2 = new Player(\"Emily\");\n\t\tPlayer player3 = new Player(\"Jason\");\n\t\tPlayer player4 = new Player(\"Rain\");\n\t\tPlayer player5 = new Player(\"Mandy\");\n\t\tscrabbleSystem.addPlayer(player1);\n\t\tscrabbleSystem.addPlayer(player2);\n\t\tscrabbleSystem.addPlayer(player3);\n\t\tscrabbleSystem.addPlayer(player4);\n\t\tscrabbleSystem.addPlayer(player5);\n\t\tList<Player> playersList = scrabbleSystem.getPlayers();\n\t\tassertEquals(4, playersList.size());\n\n\t\t// Test the startNewGame() method\n\t\t/**\n\t\t * The first Turn -- place some tiles on the board\n\t\t */\n\t\tscrabbleSystem.startNewGame();\n\t\tPlayer currentPlayer1 = scrabbleSystem.getCurrentPlayer();\n\t\tSystem.out.println(currentPlayer1.getName());\n\t\tassertEquals(7, currentPlayer1.getTileList().size());\n\t\tList<SpecialTile> specialStore = scrabbleSystem.getSpecialStore();\n\t\tassertEquals(5, specialStore.size());\n\t\tassertEquals(\"Boom\", specialStore.get(0).getName());\n\t\tassertEquals(\"NegativePoint\", specialStore.get(1).getName());\n\t\tassertEquals(\"RetrieveOrder\", specialStore.get(2).getName());\n\t\tassertEquals(\"ReverseOrder\", specialStore.get(3).getName());\n\t\tassertEquals(70, scrabbleSystem.getLetterBag().getNumber());\n\n\t\t// Test the playMove(Move move) method\n\t\tSquare square1 = scrabbleSystem.getBoard().getSquare(7, 7);\n\t\tSquare square2 = scrabbleSystem.getBoard().getSquare(8, 7);\n\t\tSquare square3 = scrabbleSystem.getBoard().getSquare(9, 7);\n\n\t\tTile tile1 = currentPlayer1.getTileList().get(0);\n\t\tTile tile2 = currentPlayer1.getTileList().get(1);\n\t\tTile tile3 = currentPlayer1.getTileList().get(2);\n\n\t\tint scoreSum1 = tile1.getValue() + tile2.getValue() + tile3.getValue();\n\t\t// The first Player\n\t\tMove move = scrabbleSystem.getMove();\n\t\tmove.addTile(square2, tile2);\n\t\tmove.addTile(square3, tile3);\n\n\t\tscrabbleSystem.playMove(move);\n\t\tassertEquals(7, currentPlayer1.getTileList().size());\n\t\tassertEquals(70, scrabbleSystem.getLetterBag().getNumber());\n\n\t\tmove.addTile(square1, tile1);\n\t\tscrabbleSystem.playMove(move);\n\t\tassertEquals(7, currentPlayer1.getTileList().size());\n\t\tassertEquals(67, scrabbleSystem.getLetterBag().getNumber());\n\n\t\tassertTrue(scrabbleSystem.getBoard().getSquare(7, 7).isOccuppied());\n\t\tassertTrue(scrabbleSystem.getBoard().getSquare(8, 7).isOccuppied());\n\t\tassertTrue(scrabbleSystem.getBoard().getSquare(9, 7).isOccuppied());\n\t\tassertFalse(scrabbleSystem.getBoard().getSquare(10, 7).isOccuppied());\n\t\tassertFalse(scrabbleSystem.isGameOver());\n\t\t// check player's score\n\t\tassertEquals(scoreSum1, currentPlayer1.getScore());\n\n\t\tPlayer challengePlayer1 = playersList.get(0);\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tPlayer playerTmp = playersList.get(i);\n\t\t\tif (playerTmp != currentPlayer1) {\n\t\t\t\tchallengePlayer1 = playerTmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// if there is no player invoke a challenge\n\t\tscrabbleSystem.updateOrder();\n\n\t\t/**\n\t\t * The secord turn -- place some tiles on the board and challenges by\n\t\t * another player\n\t\t */\n\t\tPlayer currentPlayer2 = scrabbleSystem.getCurrentPlayer();\n\t\tassertNotEquals(currentPlayer1, currentPlayer2);\n\t\tSystem.out.println(currentPlayer1.getName());\n\t\tSystem.out.println(currentPlayer2.getName());\n\n\t\tSquare square4 = scrabbleSystem.getBoard().getSquare(8, 6);\n\t\tSquare square5 = scrabbleSystem.getBoard().getSquare(8, 8);\n\t\tSquare square6 = scrabbleSystem.getBoard().getSquare(8, 9);\n\t\tSquare square7 = scrabbleSystem.getBoard().getSquare(7, 8);\n\n\t\tTile tile4 = currentPlayer2.getTileList().get(0);\n\t\tTile tile5 = currentPlayer2.getTileList().get(1);\n\t\tTile tile6 = currentPlayer2.getTileList().get(2);\n\n\t\tMove move2 = scrabbleSystem.getMove();\n\t\tassertEquals(0, move2.getTileMap().size());\n\t\tmove2.addTile(square4, tile4);\n\t\tmove2.addTile(square5, tile5);\n\t\tmove2.addTile(square7, tile6);\n\t\t// check invalid move\n\t\tscrabbleSystem.playMove(move2);\n\n\t\t// check invalid move\n\t\tmove2.clearMove();\n\t\tmove2.addTile(square4, tile4);\n\t\tmove2.addTile(square6, tile6);\n\t\tscrabbleSystem.playMove(move2);\n\n\t\t// make valid move\n\t\tmove2.clearMove();\n\t\tmove2.addTile(square4, tile4);\n\t\tmove2.addTile(square5, tile5);\n\t\tmove2.addTile(square6, tile6);\n\t\tscrabbleSystem.playMove(move2);\n\n\t\tint scoreSum2 = tile2.getValue() + tile4.getValue() * 2 + tile5.getValue() * 2 + tile6.getValue();\n\t\tassertEquals(scoreSum2, currentPlayer2.getScore());\n\n\t\t// get the challenge player\n\t\tPlayer challengePlayer2 = playersList.get(0);\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tPlayer playerTmp = playersList.get(i);\n\t\t\tif (playerTmp != currentPlayer1) {\n\t\t\t\tchallengePlayer2 = playerTmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tassertEquals(64, scrabbleSystem.getLetterBag().getNumber());\n\n\t\tscrabbleSystem.challenge(challengePlayer2);\n\t\tscrabbleSystem.updateOrder();\n\t\tassertEquals(67, scrabbleSystem.getLetterBag().getNumber());\n\t\tassertFalse(square4.isOccuppied());\n\t\tassertFalse(square5.isOccuppied());\n\t\tassertFalse(square6.isOccuppied());\n\n\t\t/**\n\t\t * The third turn -- buy a Boom special tile and pass this turn\n\t\t */\n\n\t\tPlayer currentPlayer3 = scrabbleSystem.getCurrentPlayer();\n\t\tMove move3 = scrabbleSystem.getMove();\n\t\tcurrentPlayer3.addScore(100);\n\t\tscrabbleSystem.buySpecialTile(\"Boom\");\n\t\tassertEquals(80, currentPlayer3.getScore());\n\n\t\tSquare square8 = scrabbleSystem.getBoard().getSquare(8, 8);\n\t\tSquare square9 = scrabbleSystem.getBoard().getSquare(9, 8);\n\t\tSquare square10 = scrabbleSystem.getBoard().getSquare(10, 8);\n\t\tSquare square11 = scrabbleSystem.getBoard().getSquare(10, 7);\n\n\t\tTile tile8 = currentPlayer3.getTileList().get(0);\n\t\tTile tile9 = currentPlayer3.getTileList().get(1);\n\t\tTile tile10 = currentPlayer3.getTileList().get(2);\n\t\tSpecialTile specialTile = currentPlayer3.getSpecialTiles().get(\"Boom\").get(0);\n\t\tmove3.addTile(square8, tile8);\n\t\tmove3.addTile(square9, tile9);\n\t\tmove3.addTile(square10, tile10);\n\t\tmove3.addSpecialTile(specialTile, square11);\n\n\t\tint scoreSum3 = 2 * tile8.getValue() + tile9.getValue() + tile10.getValue() + 2 * tile8.getValue()\n\t\t\t\t+ tile2.getValue() + tile3.getValue() + tile9.getValue() + 80;\n\t\tscrabbleSystem.playMove(move3);\n\t\tassertEquals(scoreSum3, currentPlayer3.getScore());\n\t\tscrabbleSystem.challenge(currentPlayer2);\n\t\tassertEquals(67, scrabbleSystem.getLetterBag().getNumber());\n\t\tassertTrue(square11.hasSpecialTile());\n\n\t\t/**\n\t\t * The fourth turn -- buy a NegativePoint special tile and place it on\n\t\t * the board\n\t\t */\n\t\tPlayer currentPlayer4 = scrabbleSystem.getCurrentPlayer();\n\t\tcurrentPlayer4.addScore(10);\n\t\tscrabbleSystem.buySpecialTile(\"NegativePoint\");\n\t\tassertEquals(1, currentPlayer4.getSpecialTiles().get(\"NegativePoint\").size());\n\n\t\tcurrentPlayer4.addScore(50);\n\t\tSystem.out.println(currentPlayer4.getScore());\n\t\tscrabbleSystem.buySpecialTile(\"NegativePoint\");\n\t\tint scoreSum4 = currentPlayer4.getScore();\n\n\t\tMove move4 = scrabbleSystem.getMove();\n\t\tSpecialTile specialTile2 = currentPlayer4.getSpecialTiles().get(\"NegativePoint\").get(0);\n\n\t\tSquare square12 = scrabbleSystem.getBoard().getSquare(11, 7);\n\t\tmove4.addSpecialTile(specialTile2, square12);\n\n\t\tscrabbleSystem.pass(move4);\n\t\tassertEquals(scoreSum4, currentPlayer4.getScore());\n\t\tassertTrue(square12.hasSpecialTile());\n\t\tassertEquals(1, currentPlayer4.getSpecialTiles().get(\"NegativePoint\").size());\n\n\t\t/**\n\t\t * The fifth turn -- invork the Boom and NegativePoint special tiles at\n\t\t * the same time\n\t\t */\n\t\tPlayer currentPlayer5 = scrabbleSystem.getCurrentPlayer();\n\t\tMove move5 = scrabbleSystem.getMove();\n\t\tSquare square13 = scrabbleSystem.getBoard().getSquare(10, 7);\n\t\tSquare square14 = scrabbleSystem.getBoard().getSquare(11, 7);\n\t\tSquare square15 = scrabbleSystem.getBoard().getSquare(12, 7);\n\t\tSquare square16 = scrabbleSystem.getBoard().getSquare(13, 7);\n\t\tSquare square17 = scrabbleSystem.getBoard().getSquare(14, 7);\n\n\t\tTile tile13 = currentPlayer5.getTileList().get(0);\n\t\tTile tile14 = currentPlayer5.getTileList().get(1);\n\t\tTile tile15 = currentPlayer5.getTileList().get(2);\n\t\tTile tile16 = currentPlayer5.getTileList().get(3);\n\t\tTile tile17 = currentPlayer5.getTileList().get(4);\n\n\t\tmove5.addTile(square13, tile13);\n\t\tmove5.addTile(square14, tile14);\n\t\tmove5.addTile(square15, tile15);\n\t\tmove5.addTile(square16, tile16);\n\t\tmove5.addTile(square17, tile17);\n\t\tscrabbleSystem.playMove(move5);\n\t\tassertFalse(square13.isOccuppied());\n\t\tassertFalse(square14.isOccuppied());\n\t\tassertFalse(square15.isOccuppied());\n\t\tassertFalse(square2.isOccuppied());\n\t\tassertFalse(square3.isOccuppied());\n\t\tassertTrue(square1.isOccuppied());\n\t\tscrabbleSystem.updateOrder();\n\n\t\tint scoreSum5 = scoreSum1 - 3 * (tile13.getValue() + tile14.getValue() + tile1.getValue());\n\t\tSystem.out.println(scoreSum5);\n\n\t\t/**\n\t\t * The sixth turn -- The player exchanges some tiles\n\t\t */\n\t\tPlayer currentPlayer6 = scrabbleSystem.getCurrentPlayer();\n\t\tList<Tile> tiles = new ArrayList<>();\n\t\tTile tile18 = currentPlayer6.getTileList().get(0);\n\t\tTile tile19 = currentPlayer6.getTileList().get(1);\n\t\tTile tile20 = currentPlayer6.getTileList().get(2);\n\t\ttiles.add(tile18);\n\t\ttiles.add(tile19);\n\t\ttiles.add(tile20);\n\t\tscrabbleSystem.exchangeTile(tiles);\n\t\tassertEquals(7, currentPlayer6.getTileList().size());\n\n\t\t/**\n\t\t * Get winner\n\t\t */\n\n\t\tList<Player> playersWinner = scrabbleSystem.getWinner();\n\t\tassertEquals(currentPlayer3.getName(), playersWinner.get(0).getName());\n\t}", "@Test\n public void play_FourOfAKindVsFourOfAKind() throws Exception {\n Hand hand1 = new Hand();\n hand1.addCard(new Card(Card.SUIT_SPADES, Card.CARD_5));\n hand1.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_5));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_5));\n hand1.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_5));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_JACK));\n Hand hand2 = new Hand();\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_3));\n hand2.addCard(new Card(Card.SUIT_SPADES, Card.CARD_10));\n hand2.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_10));\n hand2.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_10));\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_10));\n assertEquals(hand2, FiveCardDraw.play(hand1, hand2));\n }", "public void ActonCard() {\n\t}", "@Override\r\n\tpublic void playMonumentCard() {\n\t\t\r\n\t}", "@Test\r\n public void testGetSpecificCard() {\r\n Deck instance = new Deck();\r\n System.out.println(\"Testing getSpecificCard\");\r\n Card result = instance.getSpecificCard(51);\r\n System.out.println('\\t' + \"Card toString: \" + result.toString());\r\n assertNotNull(result);\r\n }", "public void createCard(String front,String back)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.createACard(packId, front, back);\n \n \n }", "@Test\n public void testDeck() {\n System.out.println(\"getCards\");\n assertTrue(instance.getSize() == deckSize);\n\n System.out.println(\"getUsedCards\");\n assertTrue(instance.getUsedPileSize() == ditchCount);\n\n System.out.println(\"ditch\");\n Class<? extends ICardType> type = DefaultType2.class;\n IMarauroaCard ditchedCard = (IMarauroaCard) instance.ditch(RPDeck.PAGES, type);\n assertTrue(ditchedCard == null || ditchedCard instanceof DefaultType2);\n cardDitched();\n assertTrue(instance.getUsedPileSize() == ditchCount);\n assertTrue(instance.getSize() == deckSize);\n updateInterfaceIndex();\n\n System.out.println(\"ditchBottom\");\n IMarauroaCard toDitch = (IMarauroaCard) instance.getCards().get(instance.getCards().size() - 1);\n assertEquals(toDitch, instance.ditchBottom());\n cardDitched();\n assertEquals(ditchCount, instance.getUsedPileSize());\n\n System.out.println(\"ditch\");\n int ditch = 2;\n List<ICard> ditched = instance.ditch(RPDeck.PAGES, ditch, false);\n cardDitched(ditch);\n assertTrue(ditched.size() == ditch);\n\n System.out.println(\"ditch\");\n ditch = 5;\n List result = instance.ditch(RPDeck.PAGES, ditch);\n cardDitched(ditch);\n assertTrue(result.size() == ditch);\n\n System.out.println(\"ditch\");\n toDitch = (IMarauroaCard) instance.getCards().get(0);\n card = (IMarauroaCard) instance.ditch(RPDeck.PAGES, false);\n cardDitched();\n assertEquals(ditchCount, instance.getUsedPileSize());\n assertEquals(toDitch, card);\n\n System.out.println(\"ditch\");\n toDitch = (IMarauroaCard) instance.getCards().get(0);\n card = (IMarauroaCard) instance.ditch(RPDeck.PAGES);\n cardDitched();\n assertEquals(ditchCount, instance.getUsedPileSize());\n assertEquals(toDitch, card);\n\n System.out.println(\"draw\");\n updateInterfaceIndex();\n toDitch = (IMarauroaCard) instance.getCards().get(interfaceIndex);\n card = (IMarauroaCard) instance.draw(DefaultType2.class);\n assertEquals(toDitch, card);\n updateInterfaceIndex();\n interfaceCounter--;\n cardDrawn();\n assertEquals(ditchCount, instance.getUsedPileSize());\n\n System.out.println(\"draw\");\n IMarauroaCard toDraw = (IMarauroaCard) instance.getCards().get(0);\n card = (IMarauroaCard) instance.draw();\n assertEquals(toDraw, card);\n cardDrawn();\n assertEquals(ditchCount, instance.getUsedPileSize());\n\n System.out.println(\"draw\");\n toDraw = (IMarauroaCard) instance.getCards().get(0);\n card = (IMarauroaCard) instance.draw(false);\n assertEquals(toDraw, card);\n cardDrawn();\n assertEquals(ditchCount, instance.getUsedPileSize());\n\n System.out.println(\"drawBottom\");\n toDraw = (IMarauroaCard) instance.getCards().get(instance.getSize() - 1);\n card = (IMarauroaCard) instance.drawBottom();\n assertEquals(toDraw, card);\n cardDrawn();\n assertEquals(ditchCount, instance.getUsedPileSize());\n\n System.out.println(\"draw\");\n int draw = 5;\n list = instance.draw(draw, false);\n assertTrue(result.size() == draw);\n cardDrawn(draw);\n\n System.out.println(\"draw\");\n draw = 5;\n list = instance.draw(draw);\n cardDrawn(draw);\n assertTrue(result.size() == draw);\n\n System.out.println(\"getSize\");\n assertEquals(deckSize, instance.getSize());\n\n System.out.println(\"getUsedPileSize\");\n assertEquals(ditchCount, instance.getUsedPileSize());\n\n System.out.println(\"shuffle\");\n ArrayList<ICard> current = (ArrayList<ICard>) instance.getCards();\n instance.shuffle();\n assertTrue(current.size() == instance.getCards().size());\n updateInterfaceIndex();\n }", "@Test\n void play_BranchThree()\n {\n dealer = 21;\n player = 22;\n result = BlackjackSimple.play(dealer, player);\n\n assertEquals(dealer, result);\n }", "@Test\n void testWinnerOfTrickFollowingClubSuit() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n\n Bot botA = testDealer.getBotA();\n Bot botB = testDealer.getBotB();\n Bot botC = testDealer.getBotC();\n\n ArrayList<Card> botAHand, botBHand, botCHand = new ArrayList <Card>();\n\n // botAHand = new ArrayList <Card>();\n botAHand = new ArrayList <Card>();\n botBHand = new ArrayList <Card>();\n botCHand = new ArrayList <Card>();\n\n Card thrownCard = new Card(Suit.CLUBS,Rank.FOUR,true);\n \n Card cardA1 = new Card(Suit.CLUBS,Rank.KING,true);\n\n Card cardB1 = new Card(Suit.CLUBS,Rank.FIVE,true);\n\n Card cardC1 = new Card(Suit.CLUBS,Rank.QUEEN,true);\n\n botAHand.add(cardA1);\n botBHand.add(cardB1);\n botCHand.add(cardC1);\n \n // botA.fillHandCards(botAHand);\n botA.fillHandCards(botAHand);\n botB.fillHandCards(botBHand);\n botC.fillHandCards(botCHand);\n\n testDealer.addToPlayedCards(thrownCard);\n \n Card cardToPlay = botA.playCard(thrownCard, 1);\n testDealer.addToPlayedCards(cardToPlay);\n Card largestPlayedCard = testDealer.getLargestCardFromTrick();\n\n cardToPlay = botB.playCard(largestPlayedCard, 2);\n testDealer.addToPlayedCards(cardToPlay);\n largestPlayedCard = testDealer.getLargestCardFromTrick();\n\n cardToPlay = botC.playCard(largestPlayedCard, 3);\n testDealer.addToPlayedCards(cardToPlay);\n\n // List<Card> allPlayedCards = testDealer.getPlayedCardsForTrick();\n assertEquals(\"botA\", testDealer.getWinnerOfTrick(testDealer.getPlayedCardsForTrick()));\n }", "@Test\n public void receiveCard() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 0);\n x.receiveCard(4, 4);\n assertTrue(x.getCards().get(4) == 4);\n }", "@Test\n void testWinnerOfTrickNotFollowingSuit() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n\n Bot botA = testDealer.getBotA();\n Bot botB = testDealer.getBotB();\n Bot botC = testDealer.getBotC();\n\n ArrayList<Card> botAHand, botBHand, botCHand = new ArrayList <Card>();\n\n // botAHand = new ArrayList <Card>();\n botAHand = new ArrayList <Card>();\n botBHand = new ArrayList <Card>();\n botCHand = new ArrayList <Card>();\n\n Card thrownCard = new Card(Suit.CLUBS,Rank.FOUR,true);\n \n Card cardA1 = new Card(Suit.CLUBS,Rank.ACE,true);\n\n Card cardB1 = new Card(Suit.DIAMONDS,Rank.ACE,true);\n\n Card cardC1 = new Card(Suit.SPADES,Rank.ACE,true);\n\n botAHand.add(cardA1);\n botBHand.add(cardB1);\n botCHand.add(cardC1);\n \n // botA.fillHandCards(botAHand);\n botA.fillHandCards(botAHand);\n botB.fillHandCards(botBHand);\n botC.fillHandCards(botCHand);\n\n testDealer.addToPlayedCards(thrownCard);\n \n Card cardToPlay = botA.playCard(thrownCard, 1);\n testDealer.addToPlayedCards(cardToPlay);\n Card largestPlayedCard = testDealer.getLargestCardFromTrick();\n\n cardToPlay = botB.playCard(largestPlayedCard, 2);\n testDealer.addToPlayedCards(cardToPlay);\n largestPlayedCard = testDealer.getLargestCardFromTrick();\n\n cardToPlay = botC.playCard(largestPlayedCard, 3);\n testDealer.addToPlayedCards(cardToPlay);\n\n // List<Card> allPlayedCards = testDealer.getPlayedCardsForTrick();\n assertEquals(\"botA\", testDealer.getWinnerOfTrick(testDealer.getPlayedCardsForTrick()));\n }", "@Test\n @DisplayName(\"Action Marker Production Yellow And Buy Test\")\n public void ActionMarkerProductionYellowAndBuyTest() throws IOException, InterruptedException {\n ActionMarkerProductionYellow actionMarker = new ActionMarkerProductionYellow();\n Server server= new Server();\n ClientHandler clientHandler= new ClientHandler(server);\n ClientController clientController= new ClientController(server,clientHandler) ;\n VirtualView virtualView = new VirtualView(clientController);\n\n GameSolitaire game = new GameSolitaire(\"Ali\",true,clientController);\n\n assertEquals(4, game.productionDeckSize(9));\n assertEquals(4, game.productionDeckSize(10));\n assertEquals(4, game.productionDeckSize(11));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(2, game.productionDeckSize(9));\n assertEquals(4, game.productionDeckSize(10));\n assertEquals(4, game.productionDeckSize(11));\n\n try {\n game.deckFromDeckNumber(11).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(1, game.productionDeckSize(9));\n assertEquals(4, game.productionDeckSize(10));\n assertEquals(4, game.productionDeckSize(11));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(9));\n assertEquals(3, game.productionDeckSize(10));\n assertEquals(4, game.productionDeckSize(11));\n\n try {\n game.deckFromDeckNumber(3).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(0, game.productionDeckSize(9));\n assertEquals(3, game.productionDeckSize(10));\n assertEquals(3, game.productionDeckSize(11));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(9));\n assertEquals(1, game.productionDeckSize(10));\n assertEquals(3, game.productionDeckSize(11));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(9));\n assertEquals(0, game.productionDeckSize(10));\n assertEquals(2, game.productionDeckSize(11));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(9));\n assertEquals(0, game.productionDeckSize(10));\n assertEquals(0, game.productionDeckSize(11));\n\n FileClass.FileDestroyer();\n\n }", "@Test\n void pass3CardsRound99(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(99);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }", "@Test\r\n public void testPlayer_getCautiousStrategyCardCard_higherFirst_wd4() {\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // get rid of the wild so the wd4 is the most attractive option\r\n player2.getHand().discard(wild);\r\n assertTrue(player2.getCautiousStrategyCard(yellowThree, yellowThree.getColor()).equals(wildDrawFour));\r\n }", "@org.junit.Test\n public void test_PlayerWinOfBlackJack(){\n deck.add(new Card(Suit.Club ,10)); //player\n deck.add(new Card(Suit.Diamond, 10)); //dealer\n deck.add(new Card(Suit.Spade, 11)); //player\n deck.add(new Card(Suit.Heart, 8)); //dealer\n deck.add(new Card(Suit.Diamond, 8)); //player\n\n Start start=new Start(player,dealer,deck,table);\n Assert.assertTrue(start.checkBetValidity());\n start.deal();\n Assert.assertTrue(start.checkBlackJack());\n Assert.assertEquals(Status.Players_wins,start.getGameStatus());\n }", "@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }", "@Test\n public void testCardCanPlay_FALSE_VALUE() {\n System.out.println(\"cardCanPlay FALSE VALUE\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.THREE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(false, result);\n }", "@Test\n public void testCastWithThadaAdelAcquisitor() {\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 3);\n // Islandwalk\n // Whenever Thada Adel, Acquisitor deals combat damage to a player, search that player's library for an artifact card and exile it. Then that player shuffles their library.\n // Until end of turn, you may play that card.\n addCard(Zone.BATTLEFIELD, playerA, \"Thada Adel, Acquisitor\", 1); // Creature {1}{U}{U} 2/2\n\n addCard(Zone.BATTLEFIELD, playerB, \"Swamp\", 3);\n addCard(Zone.BATTLEFIELD, playerB, \"Forest\", 2);\n // Sacrifice Bottle Gnomes: You gain 3 life.\n addCard(Zone.LIBRARY, playerB, \"Bottle Gnomes\", 8); // Creature {3} 1/3\n // Return target creature card from your graveyard to your hand.\n addCard(Zone.HAND, playerB, \"Wildwood Rebirth\"); // Instant {1}{G}\n\n attack(1, playerA, \"Thada Adel, Acquisitor\");\n setChoice(playerA, \"Bottle Gnomes\");\n\n castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, \"Bottle Gnomes\");\n activateAbility(1, PhaseStep.POSTCOMBAT_MAIN, playerA, \"Sacrifice\");\n\n castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, \"Wildwood Rebirth\", \"Bottle Gnomes\");\n castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, \"Bottle Gnomes\");\n\n setStopAt(2, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertLife(playerB, 18);\n assertLife(playerA, 23);\n assertGraveyardCount(playerB, \"Wildwood Rebirth\", 1);\n assertPermanentCount(playerB, \"Bottle Gnomes\", 1);\n }", "@Test\n @DisplayName(\"Action Marker Production Green And Buy Test\")\n public void ActionMarkerProductionGreenAndBuyTest() throws IOException, InterruptedException {\n ActionMarkerProductionGreen actionMarker = new ActionMarkerProductionGreen();\n Server server= new Server();\n ClientHandler clientHandler= new ClientHandler(server);\n ClientController clientController= new ClientController(server,clientHandler) ;\n VirtualView virtualView = new VirtualView(clientController);\n\n GameSolitaire game = new GameSolitaire(\"Ali\",true,clientController);\n\n assertEquals(4, game.productionDeckSize(3));\n assertEquals(4, game.productionDeckSize(4));\n assertEquals(4, game.productionDeckSize(5));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(2, game.productionDeckSize(3));\n assertEquals(4, game.productionDeckSize(4));\n assertEquals(4, game.productionDeckSize(5));\n\n try {\n game.deckFromDeckNumber(9).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(1, game.productionDeckSize(3));\n assertEquals(4, game.productionDeckSize(4));\n assertEquals(4, game.productionDeckSize(5));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(3));\n assertEquals(3, game.productionDeckSize(4));\n assertEquals(4, game.productionDeckSize(5));\n\n try {\n game.deckFromDeckNumber(1).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(0, game.productionDeckSize(3));\n assertEquals(3, game.productionDeckSize(4));\n assertEquals(3, game.productionDeckSize(5));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(3));\n assertEquals(1, game.productionDeckSize(4));\n assertEquals(3, game.productionDeckSize(5));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(3));\n assertEquals(0, game.productionDeckSize(4));\n assertEquals(2, game.productionDeckSize(5));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(3));\n assertEquals(0, game.productionDeckSize(4));\n assertEquals(0, game.productionDeckSize(5));\n\n FileClass.FileDestroyer();\n\n }", "@Test\r\n public void testPlayer_getBoldStrategyCard_higherLast_wild_wd4() {\n player2 = new Player(\"Player Two\", true);\r\n Hand hand = new Hand();\r\n player2.setHand(hand.getAllCards());\r\n player2.getHand().addCard(wild);\r\n assertTrue(player2.getBoldStrategyCard(yellowThree, yellowThree.getColor()).equals(wild));\r\n\r\n player2.getHand().discard(wild);\r\n player2.getHand().addCard(wildDrawFour);\r\n assertTrue(player2.getBoldStrategyCard(yellowThree, yellowThree.getColor()).equals(wildDrawFour));\r\n }", "@Test\n public void testGetAllCards() {\n System.out.println(\"TestgetAllCards\");\n String expResult = \"Fireblast\";\n ArrayList<Card> cards = CardDeckController.getAllCardsFromDB();\n assertEquals(\"Name incorrect expected \" + expResult + \"recieved: \" + cards.get(1).getName(), expResult, cards.get(1).getName());\n }", "@Test\n\tvoid testPokerStatusAlVerificarUnaManoQuePoseePokerRetornaPoker() {\n\t\t\n\t\tcarta5=new Carta(\"A\",\"D\") ;//Setup junto con las cartas declaradas anteriormente\n\t\t\n\t\tassertEquals(\"Poker\",pokerStatus.verificar(carta1,carta2,carta3,carta4,carta5));//verify\n\t}", "@Test\n @DisplayName(\"Action Marker Production Blue Test\")\n public void ActionMarkerProductionBlueTest() throws IOException, InterruptedException {\n ActionMarkerProductionBlue actionMarker = new ActionMarkerProductionBlue();\n Server server= new Server();\n ClientHandler clientHandler= new ClientHandler(server);\n ClientController clientController= new ClientController(server,clientHandler) ;\n VirtualView virtualView = new VirtualView(clientController);\n\n GameSolitaire game = new GameSolitaire(\"Ali\",true,clientController);\n\n assertEquals(\"ActionMarkerProductionBlue\", actionMarker.getType());\n\n assertEquals(4, game.productionDeckSize(0));\n assertEquals(4, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(2, game.productionDeckSize(0));\n assertEquals(4, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(4, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(2, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(0, game.productionDeckSize(1));\n assertEquals(4, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(0, game.productionDeckSize(1));\n assertEquals(2, game.productionDeckSize(2));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(0));\n assertEquals(0, game.productionDeckSize(1));\n assertEquals(0, game.productionDeckSize(2));\n\n FileClass.FileDestroyer();\n\n }", "public void testEmptyFlash() {\n onView(withId(R.id.flash_button)).perform(click());\n onView(withId(R.id.make_flash_button)).perform(click());\n onView(withId(R.id.submit_FlashCards_button)).perform(click());\n pressBack();\n pressBack();\n }", "@Test\n void doEffectshockwave() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n RealPlayer b = new RealPlayer('b', \"blue\");\n RealPlayer e = new RealPlayer('e', \"emerald\");\n RealPlayer gr = new RealPlayer('g', \"grey\");\n RealPlayer v = new RealPlayer('v', \"violet\");\n RealPlayer y = new RealPlayer('y', \"yellow\");\n AlphaGame.getPlayers().add(b);\n AlphaGame.getPlayers().add(e);\n AlphaGame.getPlayers().add(gr);\n AlphaGame.getPlayers().add(v);\n AlphaGame.getPlayers().add(y);\n WeaponFactory wf = new WeaponFactory(\"shockwave\");\n Weapon w12 = new Weapon(\"shockwave\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w12);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w12.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n try{\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n players.clear();\n players.add(victim2);\n players.add(victim3);\n try{\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim4 = new RealPlayer('b', \"ciccia\");\n RealPlayer victim5 = new RealPlayer('p', \"ciccia\");\n victim4.setPlayerPosition(Board.getSquare(1));\n victim5.setPlayerPosition(Board.getSquare(0));\n players.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"alt\", null, null, p, null, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1 && victim4.getPb().countDamages() == 0 && victim5.getPb().countDamages() == 0);\n }", "@Test\n public void askForCardSmart() throws Exception {\n Map<Integer,Integer> allMovesMade = new HashMap<Integer,Integer>();\n allMovesMade.put(1, 2);\n SmartPlayer x = new SmartPlayer(0,1);\n x.setCards(2,2);\n x.setMovesMadeByOtherPlayers(allMovesMade);\n SmartPlayer y = new SmartPlayer(1,2);\n y.setCards(2,2);\n int rankToAsk = x.askForCard(2);\n assertTrue(rankToAsk == 2);\n //assertTrue(rankToAsk<=13 && rankToAsk> 0);\n }", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }", "@Test\n public void playMonopolyCard() throws Exception {\n ResourceType type = ResourceType.ORE;\n when(devCardFacade.canUseMonopolyCard(noDevCardsPlayer, type)).thenReturn(false);\n dcc.playMonopolyCard(type);\n verify(devCardFacade, never()).useMonopolyCard(noDevCardsPlayer, type);\n //Player 1; has devCards\n when(devCardFacade.canUseMonopolyCard(currentPlayer, type)).thenReturn(true);\n dcc.playMonopolyCard(type);\n }", "@Test\n public void CardRequirement1() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(1);\n DevelopmentCard card1 = new DevelopmentCard(1, Color.YELLOW, 0, null, null);\n DevelopmentCard card2 = new DevelopmentCard(2, Color.GREEN, 0, null, null);\n p.getDevelopmentSlot().addCard(card1, 1);\n p.getDevelopmentSlot().addCard(card2, 1);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l2.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(2, c.messages.size());\n\n }", "public void testGetCard() {\n System.out.println(\"getCard\");\n Card expResult = new Card(Rank.QUEEN, Suit.SPADES);\n Play instance = new Play(\"Player1\", expResult);\n Card result = instance.getCard();\n assertEquals(expResult, result);\n }", "@Test\n void play_BranchOne()\n {\n dealer = 22;\n player = 22;\n result = BlackjackSimple.play(dealer, player);\n\n assertEquals(0, result);\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "public void printPermitCards(Player player);", "@Test\n\tpublic void testGenerateaPlaybleHardSudoku() {\n\t\tSudoku s = SudokuGenerator.generatePlayableRandomSudoku(SudokuLevel.DIFFICULT);\n\t\tSystem.out.println(s);\n\t\tassertTrue(s.isValid());\n\t\t\n\t}", "@Test\n void pass3CardsRound2(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(2);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of SPADES[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of SPADES[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of SPADES[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n System.out.println(testDealer.getBotC().getHandCards());\n assertEquals(\"QUEEN of DIAMONDS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n System.out.println(testDealer.getUser().getHandCards());\n assertEquals(\"QUEEN of HEARTS[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }", "@Test\n public void CardRequirement2() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(1);\n\n LeaderCard l3 = new LeaderCard(4,\n new CardRequirements(Map.of(Color.YELLOW, new ReqValue(1, 2))),\n new Production(Resource.SHIELD));\n ArrayList<LeaderCard> cards = new ArrayList<>();\n cards.add(l1);\n cards.add(l3);\n p.associateLeaderCards(cards);\n DevelopmentCard card1 = new DevelopmentCard(1, Color.GREEN, 0, null, null);\n DevelopmentCard card2 = new DevelopmentCard(2, Color.YELLOW, 0, null, null);\n p.getDevelopmentSlot().addCard(card1, 1);\n p.getDevelopmentSlot().addCard(card2, 1);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l3.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(2, c.messages.size());\n }", "public void setUpCards() {\n this.setSuspectCardsAndPlayerPieces();\n this.setWeaponCardsAndPieces();\n this.setRoomCards();\n this.setUpDetectiveSlips();\n this.shuffleCards();\n this.setEnvelope();\n this.shuffleCards();\n this.gatherCards();\n this.giveOutCards();\n }", "@Test\n void pass3CardsRound3(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(3);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }", "@Test\n void pass3CardsRound1(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(1);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of HEARTS[pickable by botB]\", testDealer.getBotB().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by botB]\", testDealer.getBotB().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by botB]\", testDealer.getBotB().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of SPADES[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of SPADES[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of SPADES[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n System.out.println(testDealer.getUser().getHandCards());\n System.out.println();\n assertEquals(\"QUEEN of CLUBS[pickable by user]\", testDealer.getUser().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by user]\", testDealer.getUser().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by user]\", testDealer.getUser().getHandCards().get(2).toString());\n }", "@Test\r\n public void testHasAtLeastTwoPlayableCards() {\n Player player2 = new Player(\"Three Playable Cards Test\", true);\r\n Hand threePlayableCardsHand = strategyHand;\r\n player2.setHand(threePlayableCardsHand.getAllCards());\r\n\r\n // Make it harder to find playable cards:\r\n player2.getHand().discard(new Card(Card.COLORLESS, Card.WILD, cvm));\r\n player2.getHand().discard(new Card(Card.COLORLESS, Card.WILD_DRAW_FOUR, cvm));\r\n\r\n Card currentPlayedCard_1 = new Card(Card.YELLOW, Card.ONE, cvm);\r\n assertTrue(player2.hasAtLeastTwoPlayableCards(currentPlayedCard_1, Card.BLUE));\r\n\r\n Card currentPlayedCard_2 = new Card(Card.BLUE, Card.SEVEN, cvm);\r\n assertFalse(player2.hasAtLeastTwoPlayableCards(currentPlayedCard_2, Card.BLUE));\r\n }", "@Test\n void doEffectcyberblade(){\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"cyberblade\");\n Weapon w20 = new Weapon(\"cyberblade\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w20);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w20.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n }", "@Test\n public void play_RoyalFlushVsStraightFlush() throws Exception {\n Hand hand1 = new Hand();\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_10));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_JACK));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_QUEEN));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_KING));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_ACE));\n Hand hand2 = new Hand();\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_8));\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_9));\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_10));\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_JACK));\n hand2.addCard(new Card(Card.SUIT_CLUBS, Card.CARD_QUEEN));\n assertEquals(hand1, FiveCardDraw.play(hand1, hand2));\n }", "private void drawCard1(){\n Shoe s = new Shoe(1);\n\n boolean[][] gotPicked=new boolean[4][13];\n\n for(int i=0; i<Deck.getNumCardsInDeck(); i++){\n Card c=s.drawCard();\n int st=c.getSuit();\n int rnk=c.getRank();\n gotPicked[st][rnk]=true;\n }\n\n for(int i=0; i<gotPicked.length;i++){\n for(int j=0;j<gotPicked[0].length;j++){\n Assert.assertTrue(gotPicked[i][j]);\n }\n }\n }", "@Test\n void doEffectsledgehammer() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"sledgehammer\");\n Weapon w13 = new Weapon(\"sledgehammer\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w13);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w13.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(6));\n }", "@Test\n public void bestowWithFusedSpell() {\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 2);\n /**\n * Cyclops of One-Eyed Pass {2}{R}{R} Creature - Cyclops 5/2\n */\n addCard(Zone.BATTLEFIELD, playerA, \"Cyclops of One-Eyed Pass\");\n\n /**\n * Nyxborn Rollicker {R} Enchantment Creature - Satyr 1/1 Bestow {1}{R}\n * (If you cast this card for its bestow cost, it's an Aura spell with\n * enchant creature. It becomes a creature again if it's not attached to\n * a creature.) Enchanted creature gets +1/+1.\n */\n addCard(Zone.HAND, playerA, \"Nyxborn Rollicker\");\n\n addCard(Zone.BATTLEFIELD, playerB, \"Swamp\", 3);\n addCard(Zone.BATTLEFIELD, playerB, \"Island\", 2);\n\n // Instant\n // Far {1}{U} Return target creature to its owner's hand.\n // Away {2}{B} Target player sacrifices a creature.\n // Fuse (You may cast one or both halves of this card from your hand.)\n addCard(Zone.HAND, playerB, \"Far // Away\");\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Nyxborn Rollicker using bestow\", \"Cyclops of One-Eyed Pass\");\n\n castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerB, \"fused Far // Away\");\n addTarget(playerB, \"Cyclops of One-Eyed Pass\"); // Far\n addTarget(playerB, playerA); // Away\n addTarget(playerA, \"Nyxborn Rollicker\");\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n assertHandCount(playerA, \"Cyclops of One-Eyed Pass\", 1);\n assertHandCount(playerB, 0);\n\n assertGraveyardCount(playerB, \"Far // Away\", 1);\n\n assertPermanentCount(playerA, \"Nyxborn Rollicker\", 0);\n assertGraveyardCount(playerA, \"Nyxborn Rollicker\", 1);\n\n }", "@Test\r\n\tpublic void testy5() \r\n\t{\r\n\t\tBlackjackGame b = new BlackjackGame();\r\n\t\tassertEquals(\"dealer invalid\",0, b.blackjack(18, 0));\r\n\t}", "@Test\r\n public void testPlayer_getDumbStrategyCard_null() {\n player2 = new Player(\"\", true);\r\n Hand hand = new Hand();\r\n player2.setHand(hand.getAllCards());\r\n assertEquals(player2.getDumbStrategyCard(yellowOne, yellowOne.getColor()), null);\r\n }", "@Test\n @DisplayName(\"Action Marker Production Violet And Buy Test\")\n public void ActionMarkerProductionVioletAndBuyTest() throws IOException, InterruptedException {\n ActionMarkerProductionViolet actionMarker = new ActionMarkerProductionViolet();\n Server server= new Server();\n ClientHandler clientHandler= new ClientHandler(server);\n ClientController clientController= new ClientController(server,clientHandler) ;\n VirtualView virtualView = new VirtualView(clientController);\n\n GameSolitaire game = new GameSolitaire(\"Ali\",true,clientController);\n\n assertEquals(4, game.productionDeckSize(6));\n assertEquals(4, game.productionDeckSize(7));\n assertEquals(4, game.productionDeckSize(8));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(2, game.productionDeckSize(6));\n assertEquals(4, game.productionDeckSize(7));\n assertEquals(4, game.productionDeckSize(8));\n\n try {\n game.deckFromDeckNumber(12).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(1, game.productionDeckSize(6));\n assertEquals(4, game.productionDeckSize(7));\n assertEquals(4, game.productionDeckSize(8));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(6));\n assertEquals(3, game.productionDeckSize(7));\n assertEquals(4, game.productionDeckSize(8));\n\n try {\n game.deckFromDeckNumber(4).removeOneCard();\n } catch (EmptyException | EndOfSolitaireGame ignored) {\n }\n\n assertEquals(0, game.productionDeckSize(6));\n assertEquals(3, game.productionDeckSize(7));\n assertEquals(3, game.productionDeckSize(8));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(6));\n assertEquals(1, game.productionDeckSize(7));\n assertEquals(3, game.productionDeckSize(8));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(6));\n assertEquals(0, game.productionDeckSize(7));\n assertEquals(2, game.productionDeckSize(8));\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(0, game.productionDeckSize(6));\n assertEquals(0, game.productionDeckSize(7));\n assertEquals(0, game.productionDeckSize(8));\n\n FileClass.FileDestroyer();\n\n }", "@Test\n public void testNextCardGood() {\n System.out.println(\"nextCardGood\");\n Deck deck = new Deck();\n Card card = deck.nextCard();\n ////since the deck is unshuffled, that last card should be WILDCARD\n assertEquals(CardType.WILDCARD, card.getValue());\n }", "@Test\n public void checkValidityTest2() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n List<Card> deck = g.getDeck();\n deck.set(32, new Card(Card.number.four, Card.suit.club));\n assert (!g.checkValidity(deck));\n }", "@Test\n\t\tpublic void testGetColour() {\n\t\t\tgreenSix = new Card (Card.Colour.Green, 6);\n\t\t\tblueSix = new Card (Card.Colour.Blue, 6);\n\t\t\twild = new Card (Card.Wild.Wild);\n\t\t\twild_Draw4 = new Card (Card.Wild.WildDraw4);\n\t\t\tblueSkip = new Card(Card.Colour.Blue, Card.Action.Skip);\n\t\t\tredDraw2 = new Card(Card.Colour.Red, Card.Action.Draw2);\n\t\t\tgreenReverse = new Card (Card.Colour.Green, Card.Action.Reverse);\n\t\t\tassertEquals(\"black\", wild.getColour());\n\t\t\tassertEquals(\"black\", wild_Draw4.getColour());\n\t\t\tassertEquals(\"Blue\", blueSkip.getColour());\n\t\t\tassertEquals(\"Red\", redDraw2.getColour());\n\t\t\tassertEquals(\"Green\", greenReverse.getColour());\n\t\t}", "@Test\n void play_BranchTwo()\n {\n dealer = 22;\n player = 21;\n result = BlackjackSimple.play(dealer, player);\n\n assertEquals(player, result);\n }", "@Test\n @DisplayName(\"Action Marker Black Cross Once Test\")\n public void ActionMarkerCrossOnceTest() throws IOException, InterruptedException {\n ActionMarkerForCrossOnce actionMarker = new ActionMarkerForCrossOnce();\n Server server= new Server();\n ClientHandler clientHandler= new ClientHandler(server);\n ClientController clientController= new ClientController(server,clientHandler) ;\n VirtualView virtualView = new VirtualView(clientController);\n\n GameSolitaire game = new GameSolitaire(\"Ali\",true,clientController);\n\n assertEquals(\"ActionMarkerForCrossOnce\", actionMarker.getType());\n\n assertEquals(0, game.getLorenzoFaithIndicator());\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(1, game.getLorenzoFaithIndicator());\n\n game.activateActionMarker(actionMarker);\n\n assertEquals(2, game.getLorenzoFaithIndicator());\n\n game.activateActionMarker(actionMarker);\n game.activateActionMarker(actionMarker);\n\n assertEquals(4, game.getLorenzoFaithIndicator());\n\n game.activateActionMarker(actionMarker);\n game.activateActionMarker(actionMarker);\n game.activateActionMarker(actionMarker);\n game.activateActionMarker(actionMarker);\n\n assertEquals(8, game.getLorenzoFaithIndicator());\n\n game.activateActionMarker(actionMarker);\n game.activateActionMarker(actionMarker);\n game.activateActionMarker(actionMarker);\n game.activateActionMarker(actionMarker);\n\n assertEquals(12, game.getLorenzoFaithIndicator());\n\n FileClass.FileDestroyer();\n\n }", "@Test\n public void play_TwoPairVsTwoPair() throws Exception {\n Hand hand1 = new Hand();\n hand1.addCard(new Card(Card.SUIT_SPADES, Card.CARD_2));\n hand1.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_2));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_3));\n hand1.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_3));\n hand1.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_5));\n Hand hand2 = new Hand();\n hand2.addCard(new Card(Card.SUIT_SPADES, Card.CARD_8));\n hand2.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_8));\n hand2.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_9));\n hand2.addCard(new Card(Card.SUIT_HEARTS, Card.CARD_9));\n hand2.addCard(new Card(Card.SUIT_DIAMONDS, Card.CARD_10));\n assertEquals(hand2, FiveCardDraw.play(hand1, hand2));\n }", "@Test\n public void checkBook2() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n boolean gotBook = x.checkBook();\n assertTrue(!gotBook);\n }", "@Test\n public void askForCardSmart2() throws Exception {\n Map<Integer,Integer> allMovesMade = new HashMap<Integer,Integer>();\n allMovesMade.put(3, 2);\n SmartPlayer x = new SmartPlayer(0,1);\n x.setCards(3,2);\n x.setMovesMadeByOtherPlayers(allMovesMade);\n SmartPlayer y = new SmartPlayer(0,2);\n y.setCards(2,2);\n int rankToAsk = x.askForCard(2);\n assertTrue(rankToAsk == 3);\n\n }", "@Test\n public void testDrawOneCard() {\n System.out.println(\"drawOneCard\");\n Deck instance = new Deck();\n Card expResult = new Card(cardColors.CLUB, cardValues.ACE);\n Card result = instance.drawOneCard();\n assertEquals(expResult, result);\n // TEST 1 : draw a card from an empty deck\n // TEST 2 : add a card, draw it and check it's the good one.\n instance = new Deck();\n Card card = new Card(cardColors.HEART, cardValues.THREE);\n int expResulti = 0;\n instance.addOneCard(card);\n Card drawnCard = instance.drawOneCard();\n assertEquals(expResulti, card.compare(drawnCard));\n /* TEST 3 : add an existing card. Draw this card, be sure that the \n second one is still there */\n boolean expResultb = true;\n assertEquals(expResultb, instance.into(card));\n\n }", "private void createShuffleAndAddCards() {\n //Creating all 108 cards and saving them into an arraylist\n ArrayList<Card> cards = new ArrayList<>();\n String[] colors = {\"red\", \"blue\", \"yellow\", \"green\"};\n for (String color : colors) {\n for (int i = 1; i < 10; i++) {\n for (int j = 0; j < 2; j++) {\n cards.add(new Card(\"Numeric\", color, i));\n }\n }\n cards.add(new Card(\"Numeric\", color, 0));\n for (int i = 0; i < 2; i++) {\n cards.add(new Card(\"Skip\", color, 20));\n cards.add(new Card(\"Draw2\", color, 20));\n cards.add(new Card(\"Reverse\", color, 20));\n }\n }\n for (int i = 0; i < 4; i++) {\n cards.add(new Card(\"WildDraw4\", \"none\", 50));\n cards.add(new Card(\"WildColorChanger\", \"none\", 50));\n }\n //shuffling cards and adding them into the storageCards main list\n Collections.shuffle(cards);\n for (Card card : cards) {\n storageCards.add(card);\n }\n cards.clear();\n }", "@Test\n void pass3CardsRound4(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(4);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"TWO of HEARTS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"THREE of HEARTS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"FOUR of HEARTS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"TWO of SPADES[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"THREE of SPADES[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"FOUR of SPADES[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of CLUBS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of CLUBS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of DIAMONDS[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }", "@Test\n\tpublic void playAndRemoveDevelopmentCardTest()\n\t\t\tthrows CannotAffordException, DoesNotOwnException, BankLimitException, CannotPlayException\n\t{\n\t\tassertTrue(p.getDevelopmentCards().size() == 0);\n\t\tp.grantResources(DevelopmentCardType.getCardCost(), game.getBank());\n\t\tDevelopmentCardType c = buyDevelopmentCard();\n\t\tassertTrue(p.getDevelopmentCards().get(c) == 1);\n\n\t\t// Reset recent dev card for player, so they can play this turn\n\t\tgame.getPlayer(game.getCurrentPlayer()).clearRecentDevCards();\n\n\t\t// Reset recent dev card for player, so they can play this turn\n\t\tgame.getPlayer(game.getCurrentPlayer()).clearRecentDevCards();\n\n\t\t// Play card and test it was removed\n\t\tDevelopmentCardType key = (DevelopmentCardType) p.getDevelopmentCards().keySet().toArray()[0];\n\t\tp.playDevelopmentCard(key, game.getBank());\n\n\t\tassertTrue(p.getDevelopmentCards().get(c) == 0);\n\t}", "static HashMap <String, ArrayList> startGame(HashMap <String, ArrayList> paramsToFront) {\n CardsActions action = new CardsActions();\n ArrayList <Card> cards = new ArrayList<>();\n ArrayList<Card> upTable = new ArrayList<>();\n ArrayList<Card> downTable = new ArrayList<>(); \n ArrayList<String> state = new ArrayList<>(); \n \n state.add(\"player_attak\"); \n\n ArrayList<String> userId = new ArrayList<>();\n double id = Math.random();\n userId.add(Double.toString(id));\n\n cards = CardsActions.createCards(cards);\n \n Card trumpCard = action.setTrumpCard(cards);\n ArrayList <Card> trumpCards = new ArrayList<>();\n trumpCards.add(trumpCard);\n // System.out.println(\"Козырь: \" + trumpCard.getName()); \n\n ArrayList <Card> playerHand = new ArrayList<>();\n action.takeCards(playerHand,cards); \n \n ArrayList <Card> compHand = new ArrayList<>();\n action.takeCards(compHand,cards);\n\n ArrayList <Integer> quantaty = new ArrayList<>();\n int quantatyComp = compHand.size();\n quantaty.add(quantatyComp);\n\n ArrayList <Integer> deck = new ArrayList<>();\n int quantatyCards = cards.size();\n deck.add(quantatyCards);\n\n for (int j = 102,i=0;i<cards.size();i++){\n // Card minTrump = cards.get(i);\n Card checker = new Card (j,trumpCard.getMasti()); \n\n if (checker.isSameRank(cards)) {j++;} \n else { \n if (checker.isSameRank(compHand)) {\n System.out.println(\"Комп ходит первый\");\n turn.compAttak (playerHand,compHand,table,cards); \n } \n else {\n turn.humanAttak(playerHand,compHand,table,cards);\n } \n }\n }\n \n paramsToFront.put(\"player_hand\", playerHand);\n paramsToFront.put(\"up_table\", upTable);\n paramsToFront.put(\"down_table\", downTable);\n paramsToFront.put(\"trump_cards\", trumpCards);\n paramsToFront.put(\"deck\", deck);\n paramsToFront.put(\"comp_hand\", quantaty);\n paramsToFront.put(\"user_id\", userId);\n paramsToFront.put(\"state\", state);\n\n return paramsToFront;\n }", "public void makeDeck()\r\n\t{\r\n\t\tfor (int i = 1; i < 5; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 2; j < 15; j++)\r\n\t\t\t{\r\n\t\t\t\tdeck.add(new Card(i,j));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n void checkAmmoResources() {\n ArrayList<Player> array = new ArrayList<>();\n AlphaGame game = new AlphaGame(1, array, false, 5);\n RealPlayer rp = new RealPlayer('b', \"rp\");\n rp.setPlayerPosition(Board.getSpawnpoint('b'));\n array.add(rp);\n char[] cost = new char[3];\n cost[0] = 'b';\n cost[1] = 'r';\n\n assertTrue(rp.checkAmmoResources(cost));\n\n cost[0] = 'b';\n cost[1] = 'b';\n\n assertFalse(rp.checkAmmoResources(cost));\n }", "@Before\n public void before(){\n this.card = new Card(Suit.CLUBS, Rank.NINE);\n }", "private List<Card> setupDeck(){\n List<Card> llist = new LinkedList<Card>();\n String[] faceCards = {\"J\",\"Q\",\"K\",\"A\"};\n String[] suits = {\"spades\",\"clubs\",\"diamonds\",\"hearts\"};\n\n for(int i=2; i<=10; i++){\n for(int j=1; j<=4; j++){\n llist.add(new Card(Integer.toString(i), suits[j-1], j, i));\n }\n }\n for(int k=1; k<=4; k++){\n for(int l=1; l<=4; l++){\n llist.add(new Card(faceCards[k-1],suits[l-1], l, k+10));\n }\n }\n return llist;\n }", "@Test\n public void buyCard() throws Exception {\n model.getTurnTracker().setCurrentTurn(PlayerIndex.FIRST);\n when(devCardFacade.canBuyDevCard(currentPlayer)).thenReturn(true);\n dcc.buyCard();\n verify(devCardFacade, atMost(1)).buyDevCard(currentPlayer);\n }", "void showFaithCards(int first, int second, int third);", "public static void main(String[] args) {\n CardGame c = new CardGame(4, 0);\r\n c.start();\r\n\r\n // h 9\r\n // h 7\r\n // h 12\r\n // h 4\r\n // p 5\r\n // p 6\r\n // p 14\r\n // p 11\r\n // e 13\r\n // e 10\r\n // e 9\r\n // c 7\r\n // c 4\r\n\r\n // System.out.println(Arrays.toString(c.onePlay(new int[][] { { 1, 12 }, { 0, 2\r\n // }, { 1, 10 }, { 1, 9 } }, 0)));\r\n\r\n // [] Hukum 0\r\n // [] Paan 1\r\n // [] Eat 2\r\n // [] Chiddi 3\r\n }", "public static void learnWithFlaschcards(Scanner input,String modality,Questions thisSession){\n Random rand=new Random();\n int randomNumber=rand.nextInt(thisSession.getLength());\n String answer;\n short forLength;\n String decision;\n boolean isPlaying=false;\n System.out.println(\" _______________________________________\\n\"+\n \"| FLASHCARDS |\\n\"+\n \"| Game |\\n\"+\n \"| Begins |\\n\"+\n \"|______________________________________|\");\n\n System.out.println(\"How many questions would you like your teacher to do?\");\n forLength=input.nextShort();\n \n System.out.println(\"Okay. Lets start!\\nRemember your answer has to be written exactly as you wrote it when you created your question set(upper and lower case won't affect the answer) .\");\n System.out.println(thisSession.getQuestion(randomNumber));\n input.nextLine();\n for (int i=0;i<forLength;i++){\n if (i!=0){\n System.out.println(thisSession.getQuestion(randomNumber));\n }\n answer=input.nextLine();\n if (answer.equals(thisSession.getAnswer(randomNumber))){ \n System.out.println(\"That's the answer!\");\n }else {\n System.out.println(\"Wrong. The answer is: \" + thisSession.getAnswer(randomNumber)); //agregar la devolucion de la respuesta.;\n }\n randomNumber=rand.nextInt(thisSession.getLength());\n }\n System.out.println(\"Thanks for playing! Returning to main menu...\");\n\n }" ]
[ "0.64839697", "0.64327115", "0.6404578", "0.63653105", "0.63539624", "0.628499", "0.62079304", "0.61998147", "0.618084", "0.6141818", "0.6089025", "0.604051", "0.6023163", "0.6014559", "0.5974954", "0.5955588", "0.59282815", "0.5897256", "0.58879906", "0.5861662", "0.58548516", "0.58529", "0.5829832", "0.5826069", "0.582605", "0.5820055", "0.5783794", "0.5774417", "0.5771261", "0.5760155", "0.57517046", "0.5722607", "0.57204425", "0.5719551", "0.5711044", "0.5709591", "0.57062334", "0.5705697", "0.570222", "0.5699071", "0.5693849", "0.5693071", "0.56926984", "0.5691098", "0.56897986", "0.5683795", "0.5683401", "0.5674031", "0.56705636", "0.5665998", "0.566377", "0.5660653", "0.5657315", "0.56511694", "0.56454384", "0.5642012", "0.5641673", "0.5634233", "0.5627227", "0.5624969", "0.56156605", "0.5614564", "0.5612462", "0.5601505", "0.56013584", "0.559698", "0.5591306", "0.5590631", "0.55795485", "0.5579002", "0.55777407", "0.55756044", "0.5575243", "0.55682707", "0.55590767", "0.55495524", "0.5546997", "0.5535007", "0.55339396", "0.5533315", "0.5531657", "0.5524169", "0.55171055", "0.5509517", "0.550567", "0.55047745", "0.5504614", "0.54892385", "0.54886377", "0.54852504", "0.54765", "0.5476179", "0.54718035", "0.5457527", "0.54545873", "0.54533255", "0.5445329", "0.54315597", "0.54287905", "0.54261625" ]
0.7110365
0
Tests our delete flashcard function
public void testDeleteFlash() { onView(withId(R.id.flash_button)) .perform(click()); onView(withId(R.id.all_flash_button)) .perform(click()); onData(startsWith("The best")) .inAdapterView(withId(R.id.listAll)) .onChildView(withId(R.id.delete_btn)) .perform(click()); onView(withText(startsWith("No"))) .perform(click()); onData(startsWith("The best")) .inAdapterView(withId(R.id.listAll)) .onChildView(withId(R.id.delete_btn)) .perform(click()); onView(withText(startsWith("Yes"))) .perform(click()); pressBack(); pressBack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteFlashcard(Flashcard f) {\n\t\t\n\t}", "public boolean delete(String cardid);", "@Test public void delete_card_check_status_test() throws ClientProtocolException, IOException\n\t{\t\t\n\t\tSystem.out.println(\"\\n--------------------------------------------------\");\n\t\tSystem.out.println(\"Start test: \" + testName.getMethodName());\n\t\t\n\t\t//Given\n\t\t//Create a card first\n\t\tString idList = testSuite.listId;\n\t\tString due = \"null\";\n\t\tString name = \"Card need to delete\";\n\t\tString desc = \"API test - create this card and need to delete\";\n\t\t\n\t\tString createQuery = String.format(\"idList=%s&due=%s&name=%s&desc=%s&key=%s&token=%s\", \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(idList, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(due, charset),\n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(name, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(desc, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(key, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(token, charset));\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\n\t\tHttpPost postRequest = new HttpPost(cardUrl + \"?\" + createQuery);\n\t\tHttpResponse response = httpClient.execute(postRequest);\n\t\tif(response.getStatusLine().getStatusCode() == 200) \t\t\t\t\t\t\t\t//Add test card successfully \n\t\t{\n\t\t\tJsonReader jsonReader = Json.createReader(response.getEntity().getContent());\n\t\t\tJsonObject cardJson = jsonReader.readObject();\n\t\t\tString cardId = cardJson.getString(\"id\");\n\t\t\tjsonReader.close();\n\t\t\tString query = String.format(\"key=%s&token=%s\", \n\t\t\t\t\tURLEncoder.encode(key, charset), \n\t\t\t\t\tURLEncoder.encode(token, charset));\n\t\t\t//When\n\t\t\tHttpDelete deleteRequest = new HttpDelete(cardUrl + cardId + \"?\" + query);\n\t\t\tHttpResponse delResponse = httpClient.execute(deleteRequest);\n\t\t\t//Then\n\t\t\t/*\n\t\t\t * Expect: 200 - Status code\n\t\t\t * */\n\t\t\tassertEquals(delResponse.getStatusLine().getStatusCode(), 200);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfail(\"Adding card is wrong, cannot delete card\");\n\t\t}\n\n\t\t//Tear down\n\t\thttpClient.close();\n\t\t\n\t\tSystem.out.println(\"Finish test: \" + testName.getMethodName());\n\t\tSystem.out.println(\"--------------------------------------------------\\n\");\n\t}", "int deleteByExample(CardExample example);", "public void deleteCard(int cardId)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.deleteCard(cardId, packId);\n \n \n }", "@Test\n final void testDeleteDevice() {\n when(deviceDao.deleteDevice(user, DeviceFixture.SERIAL_NUMBER)).thenReturn(Long.valueOf(1));\n ResponseEntity<String> response = deviceController.deleteDevice(DeviceFixture.SERIAL_NUMBER);\n assertEquals(200, response.getStatusCodeValue());\n assertEquals(\"Device with serial number 1 deleted\", response.getBody());\n }", "@Override\n\tpublic String deletecard(String phonum) {\n\t\treturn this.vd.deletecard(phonum)?\"删除成功\":\"删除失败\";\n\t}", "int deleteByPrimaryKey(String card);", "@Test\n public void testDeleteMessage() {\n System.out.println(\"deleteMessage\");\n String message = \"\";\n FileSystemStorage instance = null;\n instance.deleteMessage(message);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int deleteCard() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn CreditCardDA.deleteCard(id);\r\n\t}", "@Test\r\n\tpublic void checkDeleteTest() {\n\t\tassertFalse(boardService.getGameRules().checkDelete(board.field[13][13])); \r\n\t}", "int deleteByExample(PasswordCardExample example);", "@Test\n public void testRemoveCard() {\n d_gameData.getD_playerList().get(1).addCard(GameCard.BOMB);\n d_gameData.getD_playerList().get(1).removeCard(GameCard.BOMB);\n assertEquals(false, d_gameData.getD_playerList().get(1).getD_cards().contains(GameCard.BOMB));\n }", "public void deleteCard(final WebsiteInterface.WebsiteResult verification,\n int id, String front, String back){\n Response.Listener<JSONObject> deleteCard = setResponse(verification);\n //isntantiate network request object\n NetworkRequest networkRequest = new NetworkRequest(this.appContext);\n //set api endpoint; use /:id/:front?/:back?\n //TODO: change the value here to incluse the fron and back\n String api = WebsiteInterface.DELETE_CARD + String.valueOf(id) + \"/\" + front + \"/\" + back;\n //set method\n int method = networkRequest.getMethod(\"DELETE\");\n //send the network request off into queue\n networkRequest.addToRequestQueue(new JsonObjectRequest(\n method,\n api,\n null,\n deleteCard,\n error\n ));\n }", "@Test\n public void testDelete() {\n System.out.println(\"delete\");\n String guestIDnumber = \"test\";\n BookingController instance = new BookingController();\n boolean expResult = true;\n boolean result = instance.delete(guestIDnumber);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }", "@Override\n\tpublic void delete(Integer id) {\n\t\tString sql = \"DELETE FROM tbl_flashcard WHERE flcard_id = ?\";\n\t\tDelete(sql, id);\n\t\t\n\t}", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }", "@Test\n public void deleteRecipe_Deletes(){\n int returned = testDatabase.addRecipe(testRecipe);\n testDatabase.deleteRecipe(returned);\n assertEquals(\"deleteRecipe - Deletes From Database\", null, testDatabase.getRecipe(returned));\n }", "int deleteByExample(DeviceExample example);", "@Query(\"DELETE FROM FlashCards WHERE cardId = :cardId\")\n abstract void deleteByCardId(String cardId);", "@Test\n public void deleteRecipe_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipe - Returns True\",true, testDatabase.deleteRecipe(returned));\n\n }", "private static void deleteTest(int no) {\n\t\tboolean result=new CartDao().delete(no);\r\n\t\tif(!result) System.out.println(\"deleteTest fail\");\r\n\t}", "@Test\r\n public void testDeleteNonExistRecipe() {\r\n assertNull(coffeeMaker.deleteRecipe(1)); // Test do not exist recipe\r\n }", "int deleteByExample(CmstTransfdeviceExample example);", "@Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String doc = \"\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = false;\r\n boolean result = instance.delete(doc);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void deleteDeviceTest() throws ApiException {\n String deviceId = null;\n // DeviceEnvelope response = api.deleteDevice(deviceId);\n\n // TODO: test validations\n }", "@Override\n\tpublic String deleteCard(int cid) {\n\t\treturn cb.deleteCard(cid);\n\t}", "@Test\n\tpublic void testDelete(){\n\t}", "@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }", "@Override\n\tpublic void delete(int ShopLoyaltyCardId) {\n\t\t\n\t}", "@Test\n public void testDeleteCartsIdPaymentAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteCartsIdPaymentAction(\"{id}\", \"{customerId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Cart\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }", "@Test\r\n\tpublic void deleteGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGame \r\n\t\tGame game_1 = new tsw.domain.Game();\r\n\t\tservice.deleteGame(game_1);\r\n\t}", "@Test\n public void deleteContact() {\n }", "@Test\n public void deleteIngredient_Deletes(){\n int returned = testDatabase.addIngredient(ingredient);\n testDatabase.deleteIngredient(returned);\n assertEquals(\"deleteIngredient - Deletes From Database\",null, testDatabase.getIngredient(returned));\n }", "@Test\n public void delete01(){\n Response responseGet=given().\n spec(spec03).\n when().\n get(\"/198\");\n responseGet.prettyPrint();\n //delete islemi\n Response responseDel =given().\n spec(spec03).\n when().\n delete(\"/198\");\n responseDel.prettyPrint();\n //responseDel yazdirildiginda \"Not Found\" cevabi gelirse status code 404 ile test edilir. Eger bos bir\n // satir donerse Ststus code 200 ile test edilir.\n responseDel.then().assertThat().statusCode(200);\n // Hard assert\n assertTrue(responseDel.getBody().asString().contains(\"\"));\n //softAssertion\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertTrue(responseDel.getBody().asString().contains(\"\"));\n softAssert.assertAll();\n\n\n }", "@Test\n void deleteSuccess() {\n genericDAO.delete(genericDAO.getByID(2));\n assertNull(genericDAO.getByID(2));\n }", "private void TempCardDelete(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\tString tempcard_id =request.getParameter(\"card_id\");\n\t\t\n\t\tPrintWriter out=response.getWriter();\n\t\tTempCardDao tempcardDao=new TempCardDao();\n\t\tif(tempcardDao.deleteTempCard(tempcard_id)) {\n\t\t\ttry {\n\t\t\t\tout.write(\"<script>alert('删除信息成功!'); location.href = '/ParkManager/TempCardServlet?type=gettempcardlist';</script>\");\n\t\t\t\t//response.getWriter().write(\"success\");\n\t\t\t}finally {\n\t\t\t\ttempcardDao.closeCon();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\tout.write(\"<script>alert('删除信息失败!'); location.href = '/ParkManager/TempCardServlet?type=gettempcardlist';</script>\");\n\t\t\t\t//response.getWriter().write(\"failed\");\n\t\t\t}finally {\n\t\t\t\ttempcardDao.closeCon();\n\t\t\t}\n\t\t}\n\t}", "public void removePresentCard() {\n storageCards.remove();\n }", "@Test(priority = 2)\n\tpublic void deleteTest() throws IOException, InterruptedException\n\t{\n\t\tdriver.get(baseURL);\n\t\tloginPage lp = new loginPage(driver);\n\t\tSearchCustomerPage scp = new SearchCustomerPage(driver);\n\t\tEditDeleteCustomerPage edcp = new EditDeleteCustomerPage(driver);\n\t\t\n\t\tlp.setUserName(username);\n\t\tlp.setPassword(password);\n\t\tlp.clickLogin();\n\t\tlogger.info(\"login passed\");\n\t\t\n\t\t//getting cutsomers page\n\t\tscp.clickCustomers();\n\t\tscp.clickCustomers1();\n\t\tlogger.info(\"customers page \");\n\t\t\n\t\t//choosing a customer to edit and editing them\n\t\tedcp.editCustomer(edcp.btnEdit2);\n\t\tlogger.info(\"edit customer clicked\");\n\t\t\n\t\tedcp.deleteCutomer();\n\t\tlogger.info(\"deleting\");\n\t\tedcp.deleteCutomer1();\n\t\tlogger.info(\"confirm delete\");\n\t\t\n\t\tString s = edcp.alertMsgDeleted.getText();\n\t\t\n\t\t//checking if true\n\t\tif(s.contains(\"The customer has been deleted successfully.\"))\n\t\t{\n\t\t\tAssert.assertTrue(true);\n\t\t\tlogger.info(\"passed\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcaptureScreen(driver, \"deleteTest\");\n\t\t\tAssert.assertTrue(false);\n\t\t\tlogger.info(\"failed\");\n\t\t}\n\t\tThread.sleep(2000);\n\t\tlp.clickLogout();\n\t}", "@Test\n public void testDeleteCartsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteCartsIdAction(\"{id}\", \"{customerId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Cart\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }", "@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }", "@Test\n public void testDeleteCustomer() {\n System.out.println(\"deleteCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n instance.deleteCustomer(customerID);\n Customer result = instance.getCustomer(customerID);\n assertNull(result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@org.junit.Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String emailid = \"[email protected]\";\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();\r\n ContactResponse c = new ContactResponse(\"Contact Deleted\");\r\n expResult.add(c);\r\n List<ContactResponse> result = instance.delete(emailid);\r\n String s=\"No such contact ID found\";\r\n if(!result.get(0).getMessage().equals(s))\r\n assertEquals(expResult.get(0).getMessage(), result.get(0).getMessage());\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public void delete(String so_cd);", "@Test\n void delete() {\n }", "@Test\n void delete() {\n }", "@Test\n void deleteSuccess() {\n genericDao.delete(genericDao.getById(3));\n assertNull(genericDao.getById(3));\n }", "@Test\n public void deleteRecipeCategory_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipeCategory - Returns True\",true, testDatabase.deleteRecipeCategory(returned));\n }", "@Test\n\tpublic void testDeleteCart() {\n\t}", "@Test\n void deleteSuccess() {\n carDao.delete(carDao.getById(1));\n assertNull(carDao.getById(1));\n\n //Delete repairs\n GenericDao<Repair> repairDao = new GenericDao(Repair.class);\n Repair repair = repairDao.getById(2);\n assertNull(carDao.getById(2));\n\n //Delete part\n GenericDao<Part> partDao = new GenericDao(Part.class);\n Role part = partDao.getById(2);\n assertNull(partDao.getById(2));\n }", "@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}", "@Test\n final void testDeleteDeviceNotExisting() {\n assertThrows(\n ExceptionType.DeviceNotFoundException.class,\n () -> deviceController.deleteDevice(\"Not Available device\"));\n }", "@Test\n public void testEliminar3() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 0;\n boolean expResult = false;\n boolean result = usuarioController.eliminar(codigo);\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 }", "@Test\n public void deleteCategory_Deletes(){\n int returned = testDatabase.addCategory(category);\n testDatabase.deleteCategory(returned);\n assertEquals(\"deleteCategory - Deletes From Database\", null, testDatabase.getCategory(returned));\n }", "@Test\n public void delete01() {\n Response responseGet = given().\n spec(spec03).\n when().\n get(\"/3\");\n responseGet.prettyPrint();\n\n Response responseDel = given().\n spec(spec03).\n when().\n delete(\"/3\");\n responseDel.prettyPrint();\n\n\n // responseDel yazdirildiginda not found cevabi gelirse status code 404 ile test edilir.\n // Eger bos bir satir donerse status code 200 ile test edilir.\n\n responseDel.\n then().\n statusCode(200);\n\n\n // hard assert\n\n assertTrue(responseDel.getBody().asString().contains(\" \"));\n\n // soft assertion\n\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertTrue(responseDel.getBody().asString().contains(\" \"));\n softAssert.assertAll();\n }", "@Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String isbn = \"1222111131\";\r\n int expResult = 1;\r\n int result = TitleDao.delete(isbn);\r\n assertEquals(expResult, result);\r\n }", "@Test\r\n\tpublic void deleteGameTswacct() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGameTswacct \r\n\t\tInteger game_gameId_1 = 0;\r\n\t\tInteger related_tswacct_tswAcctId = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = null;\r\n\t\tresponse = service.deleteGameTswacct(game_gameId_1, related_tswacct_tswAcctId);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: deleteGameTswacct\r\n\t}", "@Test\r\n\tvoid testdeleteProductFromCart() throws Exception\r\n\t{\r\n\t\tCart cart=new Cart();\r\n\t\tcart.setProductId(1001);\r\n\t\tcartdao.addProductToCart(cart);\r\n\t\tList<Cart> l=cartdao.findAllProductsInCart();\r\n\t\tcart=cartdao.deleteProductByIdInCart(1001);\r\n\t\tassertEquals(1,l.size());\r\n\t}", "@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }", "@Test\n\tpublic void playAndRemoveDevelopmentCardTest()\n\t\t\tthrows CannotAffordException, DoesNotOwnException, BankLimitException, CannotPlayException\n\t{\n\t\tassertTrue(p.getDevelopmentCards().size() == 0);\n\t\tp.grantResources(DevelopmentCardType.getCardCost(), game.getBank());\n\t\tDevelopmentCardType c = buyDevelopmentCard();\n\t\tassertTrue(p.getDevelopmentCards().get(c) == 1);\n\n\t\t// Reset recent dev card for player, so they can play this turn\n\t\tgame.getPlayer(game.getCurrentPlayer()).clearRecentDevCards();\n\n\t\t// Reset recent dev card for player, so they can play this turn\n\t\tgame.getPlayer(game.getCurrentPlayer()).clearRecentDevCards();\n\n\t\t// Play card and test it was removed\n\t\tDevelopmentCardType key = (DevelopmentCardType) p.getDevelopmentCards().keySet().toArray()[0];\n\t\tp.playDevelopmentCard(key, game.getBank());\n\n\t\tassertTrue(p.getDevelopmentCards().get(c) == 0);\n\t}", "public StatusObj deleteMovieFlexEntry(String uuid, String securityToken);", "@Test\n public void deleteIngredient_ReturnsTrue(){\n int returned = testDatabase.addIngredient(ingredient);\n assertEquals(\"deleteIngredient - Returns True\",true, testDatabase.deleteIngredient(returned));\n }", "public void deleteCardInventory() {\n try {\n System.out.println(\"********************ServiceBean=>deleteCardInventory********\");\n if (cardInventoryDataBean != null) {\n cardInventoryTransformerBean.deleteCardInventory(cardInventoryDataBean);\n retrieveCardInventoryList();\n System.out.println(\"CardInventory Delete Sussesfully\");\n messageDataBean.setMessage(\"CardInventory deleted successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n }\n } catch (Exception e) {\n System.out.println(e);\n messageDataBean.setMessage(\"Error in Deleting CardInventory.\");\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }", "int deleteByExample(TVideoExample example);", "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "@Test\r\n public void testDeleteRecipe() {\r\n coffeeMaker.addRecipe(recipe1);\r\n assertEquals(recipe1.getName(), coffeeMaker.deleteRecipe(0));\r\n assertNull(coffeeMaker.deleteRecipe(0)); // Test already delete recipe\r\n }", "void deleteChallenge();", "private void delete() {\n\n\t}", "@Override\n\tpublic int deleteById(int id) {\n\t\treturn wdReceiveCardMapper.deleteById(id);\n\t}", "int deleteByExample(PaasCustomAutomationRecordExample example);", "@Test\n\tpublic void testDeleteCorrectParamNoDeletePb() {\n\t\tfinal String owner = \"1\";\n\t\tfinal Long piiUniqueId = (long) 12345789;\n\t\t\n\t\tPiiDeleteRequest piiRequest = new PiiDeleteRequest();\n\t\tpiiRequest.setOwner(owner);\n\t\tpiiRequest.setPiiUniqueId(piiUniqueId);\n\t\t\n\t\tPiiDeleteResponse piiDeleteResponse = new PiiDeleteResponse();\n\t\tpiiDeleteResponse.setDeleted(true);\n\t\twhen(mPiiService.delete(piiRequest)).thenReturn(piiDeleteResponse);\n\t\t\n\t\tResponse response = piiController.delete(piiRequest);\n\t\t\n\t\tverify(mPiiService).delete(piiRequest);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(200, response.getStatus());\n\t\t\n\t\tPiiDeleteResponse returnedResponse = (PiiDeleteResponse) response.getEntity();\n\t\tassertTrue(returnedResponse.isDeleted());\n\t}", "@Override\r\n\tpublic int delete(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}", "@Test\n public void testBombCard() {\n Player l_player = d_gameData.getD_playerList().get(0);\n l_player.getD_cards().add(GameCard.BOMB);\n l_player.getD_cards().add(GameCard.BOMB);\n// assertEquals(get.getD_cards().size(), 2);\n l_player.getD_cards().remove(GameCard.BOMB);\n boolean l_removed = l_player.getD_cards().remove(GameCard.AIRLIFT);\n assertEquals(l_removed, false);\n }", "int deleteByExample(ErpOaLicKeyExample example);", "public void deleteMessageTest(){\n\t\tint messageId = 102;\n\t\tgiven()\n\t\t\t.pathParam(\"messageId\", messageId)\n\t\t.when()\n\t\t\t.delete(\"/message/{messageId}\")\n\t\t.then()\n\t\t\t.statusCode(200)\n\t\t\t.body(\"message\", is(\"Message Deleted \"+messageId));\n\t}", "@Test\n void deleteTest() {\n Product product = new Product(\"Apple\", 10, 4);\n shoppingCart.addProducts(product.getName(), product.getPrice(), product.getQuantity());\n //when deletes two apples\n boolean result = shoppingCart.deleteProducts(product.getName(), 2);\n //then basket contains two apples\n int appleNb = shoppingCart.getQuantityOfProduct(\"Apple\");\n assertTrue(result);\n assertEquals(2, appleNb);\n }", "@SmallTest\n public void testDelete() {\n int result = -1;\n if (this.entity != null) {\n result = (int) this.adapter.remove(this.entity.getId());\n Assert.assertTrue(result >= 0);\n }\n }", "@Test\n\tpublic void testDeleteCorrectParamDeletePb() {\n\t\tfinal String owner = \"1\";\n\t\tfinal Long piiUniqueId = (long) 12345789;\n\t\t\n\t\tPiiDeleteRequest piiRequest = new PiiDeleteRequest();\n\t\tpiiRequest.setOwner(owner);\n\t\tpiiRequest.setPiiUniqueId(piiUniqueId);\n\t\t\n\t\tPiiDeleteResponse piiDeleteResponse = new PiiDeleteResponse();\n\t\tpiiDeleteResponse.setDeleted(false);\n\t\twhen(mPiiService.delete(piiRequest)).thenReturn(piiDeleteResponse);\n\t\t\n\t\tResponse response = piiController.delete(piiRequest);\n\t\t\n\t\tverify(mPiiService).delete(piiRequest);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(200, response.getStatus());\n\t\t\n\t\tPiiDeleteResponse returnedResponse = (PiiDeleteResponse) response.getEntity();\n\t\tassertFalse(returnedResponse.isDeleted());\n\t}", "@Test\n void deletePermanentlyTest() {\n Product product = new Product(\"Apple\", 10, 4);\n shoppingCart.addProducts(product.getName(), product.getPrice(), product.getQuantity());\n //when deletes four apples\n boolean result = shoppingCart.deleteProducts(product.getName(), 4);\n //then basket does not contain any apple\n int appleNb = shoppingCart.getQuantityOfProduct(\"Apple\");\n assertTrue(result);\n assertEquals(0, appleNb);\n }", "@Test\n public void delete() {\n System.out.println(\"\\n--- delete Singer by id=2 ---\");\n\n restTemplate.delete(\"http://localhost:9082/restful-ws/singer/{id}\", 2);\n\n printAllSingers();\n }", "int delete(String clientId);", "@Test\n void deleteSuccess() {\n\n UserDOA userDao = new UserDOA();\n User user = userDao.getById(1);\n String orderDescription = \"February Large Test-Tshirt Delete\";\n\n Order newOrder = new Order(orderDescription, user, \"February\");\n user.addOrder(newOrder);\n\n dao.delete(newOrder);\n List<Order> orders = dao.getByPropertyLike(\"description\", \"February Large Test-Tshirt Delete\");\n assertEquals(0, orders.size());\n }", "@Test\n public void deleteRecipeDirections_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipeDirections - Returns True\",true, testDatabase.deleteRecipeDirections(returned));\n }", "@Test\n public void testEliminar() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 1;\n boolean expResult = true;\n boolean result = usuarioController.eliminar(codigo);\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 }", "int deleteByExample(ReleaseSystemExample example);", "@Test\n void deleteItem() {\n }", "@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }", "public void testDelete() {\n TDelete_Return[] Basket_delete_out = basketService.delete(new String[] { BasketPath });\n assertNoError(Basket_delete_out[0].getError());\n }", "@Test\n @DisplayName(\"delete removes anime when successful\")\n void delete_RemovesAnime_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(ADMIN);\n \n // using testRestTemplateRoleAdmin to perform request\n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleAdmin.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);\n }", "@Test\r\n\tpublic void testExecuteCommandsDeleteAdl() throws Exception {\r\n\t\t\r\n\t\tadvertising.executeCommand(advertising, \"adl delete --Name L1-r-medical\");\r\n\t\tassertTrue(\"adc all\", true);\r\n\t\t\r\n\t}", "@Test\n void deleteNoteSuccess() {\n noteDao.delete(noteDao.getById(2));\n assertNull(noteDao.getById(2));\n }", "int deleteByExample(StorageExample example);", "@Test\n public void testDeleteFolder() {\n System.out.println(\"deleteFolder\");\n String folder = \"\";\n FileSystemStorage instance = null;\n instance.deleteFolderAndAllContents(folder);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void delete() {\n auctionService.restTemplate = mockRestTemplate;\n auctionService.delete(1);\n verify(mockRestTemplate).delete(testOneUrl);\n }", "@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}", "void delete(SecretIdentifier secretIdentifier);", "@Test\n public void deleteAccountTest() throws InterruptedException, IOException {\n\n\n logger.info(\"DeleteAccount_008\");\n logger.info(\"URL is opened\");\n LoginPage loginPage = new LoginPage(driver);\n loginPage.setUserName(userName);\n logger.info(\"Enter Username\");\n loginPage.setPassword(passWord);\n logger.info(\"Enter Password\");\n loginPage.clickSubmitButton();\n logger.info(\"Clicked Login Button\");\n\n logger.info(\"Enter Customer ID\");\n DeleteAccountPage deleteAccountPage = new DeleteAccountPage(driver);\n deleteAccountPage.selectDeleteAccount();\n driver.manage().timeouts().implicitlyWait(2000, TimeUnit.SECONDS);\n deleteAccountPage.setAccountNo(\"87286\");\n deleteAccountPage.selectSubmitButton();\n\n driver.switchTo().alert().accept();\n logger.info(\"Confirm delete\");\n Thread.sleep(3000);\n\n Alert alert = driver.switchTo().alert();\n String message = \"Account Deleted Sucessfully\";\n String alertMessage = driver.switchTo().alert().getText();\n //System.out.println(alertMessage);\n\n if (alertMessage.equals(message)){\n Assert.assertTrue(true);\n alert.accept();\n logger.info(\"Delete Customer Test Case Passed\");\n }else {\n logger.info(\"Delete Customer Test Case Failed\");\n captureScreen(driver, \"DeleteAccountTest_008\");\n Assert.assertTrue(false);\n alert.accept();\n }\n\n\n }", "public void cancelCard() {}", "void delete(String uuid);" ]
[ "0.7592752", "0.7432099", "0.72948736", "0.68540233", "0.68223417", "0.67997473", "0.6751157", "0.66596323", "0.65624756", "0.6548071", "0.65303636", "0.65062827", "0.6447781", "0.6360632", "0.63599885", "0.635282", "0.6351001", "0.6341294", "0.6313867", "0.6297796", "0.62881714", "0.6223941", "0.62219423", "0.6220962", "0.6219517", "0.62130165", "0.6197057", "0.61904603", "0.617638", "0.617162", "0.6162189", "0.61387765", "0.6131509", "0.61303186", "0.61179227", "0.6117517", "0.61039186", "0.61026585", "0.6097713", "0.6085782", "0.6072655", "0.6038829", "0.6034283", "0.6029768", "0.6024035", "0.6021776", "0.6021776", "0.60143656", "0.6009767", "0.5998177", "0.5996331", "0.5989514", "0.59866005", "0.59787244", "0.5972744", "0.5969663", "0.5966967", "0.59587455", "0.5953739", "0.5953542", "0.59529984", "0.5949565", "0.59488535", "0.5945942", "0.59381616", "0.59301287", "0.5925592", "0.5919891", "0.5906192", "0.5902941", "0.5890589", "0.5884807", "0.5874784", "0.5867191", "0.58662194", "0.5864364", "0.5863229", "0.58585113", "0.5857435", "0.5856108", "0.5856095", "0.5850344", "0.58491725", "0.58406323", "0.58364075", "0.58361304", "0.58356893", "0.583548", "0.58350146", "0.58347386", "0.5833532", "0.58297014", "0.58293015", "0.5820932", "0.5820839", "0.5816499", "0.5816406", "0.5805521", "0.58030826", "0.5800725" ]
0.67643464
6
Checks to see whether we can enter null value into our flash cards
public void testEmptyFlash() { onView(withId(R.id.flash_button)).perform(click()); onView(withId(R.id.make_flash_button)).perform(click()); onView(withId(R.id.submit_FlashCards_button)).perform(click()); pressBack(); pressBack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canProcessNull() {\n return false;\n }", "private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n }\r\n }", "public void nullValues() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Null values ​​are not allowed or incorrect values\");\r\n\t}", "public boolean isNotNullSupportsNakedCredit() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsNakedCredit);\n }", "boolean checkNull();", "public boolean isEmpty(){\n\t\tif(attackValue>0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "boolean isNilValue();", "private boolean m2255q() {\n return this.f2952a == ValueType.nullValue;\n }", "private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "public boolean isNull(){\n return false;\n }", "private boolean isCardValid(Card data) {\n // Check card if it valid to save isValid == true\n boolean isValid = (StringUtils.isEmpty(data.getName()) == false &&\n StringUtils.isEmpty(data.getAddress()) == false &&\n StringUtils.isEmpty(data.getPosition()) == false &&\n StringUtils.isEmpty(data.getGender()) == false);\n\n return isValid;\n }", "@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }", "public boolean isNullRecord () {\n if ((latitude == FLOATNULL) &&\n (longitude == FLOATNULL) &&\n (depth == FLOATNULL) &&\n (temperatureMin == FLOATNULL) &&\n (temperatureMax == FLOATNULL) &&\n (salinityMin == FLOATNULL) &&\n (salinityMax == FLOATNULL) &&\n (oxygenMin == FLOATNULL) &&\n (oxygenMax == FLOATNULL) &&\n (nitrateMin == FLOATNULL) &&\n (nitrateMax == FLOATNULL) &&\n (phosphateMin == FLOATNULL) &&\n (phosphateMax == FLOATNULL) &&\n (silicateMin == FLOATNULL) &&\n (silicateMax == FLOATNULL) &&\n (chlorophyllMin == FLOATNULL) &&\n (chlorophyllMax == FLOATNULL)) {\n return true;\n } else {\n return false;\n } // if ...\n }", "public final boolean isNull()\n\t{\n\t\treturn (dataValue == null) && (stream == null) && (_blobValue == null);\n\t}", "public static boolean isNull_fields_allowed() {\n return null_fields_allowed;\n }", "private boolean hasValue (String s) { return s != null && s.length() != 0; }", "private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "private static void checkForNullValue(String value) {\n if ( value == null ) {\n throw new NullPointerException();\n }\n }", "boolean getActiveNull();", "public boolean isNotNullDebitKeyCode() {\n return genClient.cacheValueIsNotNull(CacheKey.debitKeyCode);\n }", "public boolean isNotNullSredCode() {\n return genClient.cacheValueIsNotNull(CacheKey.sredCode);\n }", "public boolean isEmpty() {\n return deck[fFront] == null && deck[bFront] == null;\n }", "private boolean allCardsAreNull(ArrayList<Card> set) {\r\n\t\tfor (Card c : set) {\r\n\t\t\tif (c != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isNull() {\n return Stream.<Object>of(airQualityIndex, humidity,\n measurementTime, pm1, pm25, pm10, pollutionLevel,\n pressure, temperature)\n .allMatch(Objects::isNull);\n }", "@Override\r\n public boolean checkNull() {\r\n // Check if the two textfields are null or default \r\n return newIng_ingName.getText().equals(\"\") || newIng_ingCal.getText().equals(\"\");\r\n }", "boolean isNull();", "public boolean validate() {\n if (value == null || currencyCode == null) {\n return false;\n }\n return true;\n }", "public static String chosenCard1IsNull() {\n return \"The first card you chose is invalid, please select again: \";\n }", "public boolean isNull() {\n return false;\n }", "public boolean allowsNull() {\n return this.allowsNullValue;\n }", "boolean isNullOmittable();", "public boolean isNull() {\n return originalValue == null;\n }", "public boolean isNotNullMcc() {\n return genClient.cacheValueIsNotNull(CacheKey.mcc);\n }", "public boolean isEmpty() {\n return getCardCount() <= 0;\n }", "private boolean testNulls(Fact req, ArrayList<Fact> facts) {\n boolean isNull = req.valueIsNotNull();\n for (Fact fact: facts) if (fact.getName().equals(req.getName())) {\n return isNull;\n }\n return !isNull;\n }", "public boolean hasNullSig() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_NULLSIG)) {\n // The Mek has Null-Sig\n return true;\n }\n }\n return false;\n }", "public boolean isNullInstance()\n {\n return code == null;\n }", "public boolean isNull() {\n\t\treturn false;\n\t}", "@Override\n public boolean isNull(){\n return (this.nativeHandle == 0L); \n }", "public boolean isSetNullFlavor()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(NULLFLAVOR$28) != null;\n }\n }", "public boolean isNull()\n\t{\n\t\treturn cp.isNull();\n\t}", "public boolean isNullOrUndef() {\n checkNotPolymorphicOrUnknown();\n return (flags & (NULL | UNDEF)) != 0\n && (flags & (NUM | STR | BOOL)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n }", "public boolean isNull() {\n return this.data == null;\n }", "public boolean isEmpty() {\n\t\treturn cards.size() <= 4;\n\t}", "int checkNull(int value) {\n return (value != Tables.INTNULL ? value : 0);\n }", "public static String chosenCard2IsNull() {\n return \"The second card you chose is invalid, please select again: \";\n }", "public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }", "private boolean m16125a(Object obj) {\n return obj == null || obj.toString().equals(\"\") || obj.toString().trim().equals(\"null\");\n }", "private boolean isEmpty(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n int test = bitMap[bit] & MASK[mask];\n return test==0;\n }", "public boolean validCardPlay(UnoCard card) {\r\n return card.getColor() == validColor || card.getValue() == validValue;\r\n }", "boolean getValueCharacteristicIdNull();", "@Override\n\tpublic boolean hasMissingValue() {\n\t\treturn false;\n\t}", "public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}", "public boolean isEmpty()\n {\n return cards.size() == 0;\n }", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "public boolean isEmpty() {\n return super.cards.isEmpty();\n }", "public boolean checkListNull() {\n\t\treturn ((drawerItems == null) ? true : false);\n\t}", "private static boolean verifyNullObject(LogManager pLogger, UnmodifiableSMG pSmg) {\n SMGValue null_value = null;\n\n // Find a null value in values\n for (SMGValue value : pSmg.getValues()) {\n if (pSmg.getObjectPointedBy(value) == SMGNullObject.INSTANCE) {\n null_value = value;\n break;\n }\n }\n\n // Verify that one value pointing to NULL object is present in values\n if (null_value == null) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: no value pointing to null object\");\n return false;\n }\n\n // Verify that NULL value returned by getNullValue() points to NULL object\n if (pSmg.getObjectPointedBy(SMGZeroValue.INSTANCE) != SMGNullObject.INSTANCE) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null value not pointing to null object\");\n return false;\n }\n\n // Verify that the value found in values is the one returned by getNullValue()\n if (SMGZeroValue.INSTANCE != null_value) {\n pLogger.log(\n Level.SEVERE,\n \"SMG inconsistent: null value in values set not returned by getNullValue()\");\n return false;\n }\n\n // Verify that NULL object has no value\n SMGEdgeHasValueFilterByObject filter =\n SMGEdgeHasValueFilter.objectFilter(SMGNullObject.INSTANCE);\n\n if (!pSmg.getHVEdges(filter).isEmpty()) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object has some value\");\n return false;\n }\n\n // Verify that the NULL object is invalid\n if (pSmg.isObjectValid(SMGNullObject.INSTANCE)) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object is not invalid\");\n return false;\n }\n\n // Verify that the size of the NULL object is zero\n if (SMGNullObject.INSTANCE.getSize() != 0) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object does not have zero size\");\n return false;\n }\n\n return true;\n }", "protected int checkAllCardsAppliedHaveZeroBalance() {\r\n boolean allCardsValuesAreZero = true;\r\n Iterator giftCardIterator = getGiftCardList().iterator();\r\n GiftCard tempGiftCard = null;\r\n int numBlankCards = 0;\r\n \r\n while (giftCardIterator.hasNext()) {\r\n tempGiftCard = (GiftCard) giftCardIterator.next();\r\n if (!tempGiftCard.getIsBlank() && tempGiftCard.getAmountAvailable() != 0.0d) {\r\n return NO_ERRORS;\r\n }\r\n if (tempGiftCard.getIsBlank()) {\r\n numBlankCards++;\r\n }\r\n }\r\n \r\n if (numBlankCards == getMaxNumGiftCards() || numBlankCards == getGiftCardList().size()) {\r\n return NO_ERRORS;\r\n }\r\n \r\n return ALL_CARDS_ARE_ZERO;\r\n }", "public boolean isNull() {\n return channel instanceof NullChannel;\n }", "public static boolean isNull()\r\n {\r\n return (page == null);\r\n }", "@Test\n public void testCardCanPlay_FALSE_VALUE() {\n System.out.println(\"cardCanPlay FALSE VALUE\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.THREE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(false, result);\n }", "@Override\r\n\tpublic void validate() {\n\t\tsuper.validate();\r\n\t\tif(nofck == null)\r\n\t\t\tnofck = false;\r\n\t}", "private boolean isBuildingNumberNull() {\n return (buildingNumber == null || buildingNumber.isEmpty());\n }", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "boolean getPredefinedValuesNull();", "public boolean isEmpty() {\n return cards.isEmpty();\n }", "public boolean isNone() {\n if (var == null)\n return (flags & (PRIMITIVE | ABSENT | UNKNOWN)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n else\n return (flags & (ABSENT | PRESENT_DATA | PRESENT_ACCESSOR)) == 0;\n }", "private boolean checkInput(String[] cred){\n\t\tfor(int i =0; i < cred.length;i++){\n\t\t\tif(cred[i].equals(\"\") || cred[i].equals(null)){\n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}", "public boolean isNonNull() {\n return true;\n }", "protected boolean skipBlankValues() {\n return true;\n }", "private boolean checkCastMemberInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"castMemberName\") != null && request.getParameter(\"castMemberName\").length() > 0\n && request.getParameter(\"castMemberSurname\") != null && request.getParameter(\"castMemberSurname\").length() > 0\n && request.getParameter(\"castMemberBirthDate\") != null && request.getParameter(\"castMemberBirthDate\").length() > 0\n && request.getParameter(\"gender\") != null && request.getParameter(\"gender\").length() > 0\n && request.getParameter(\"castMemberCountry\") != null && request.getParameter(\"castMemberCountry\").length() > 0\n && request.getParameter(\"castMemberImageURL\") != null && request.getParameter(\"castMemberImageURL\").length() > 0;\n }", "@Test\n\tvoid testCheckNulls4() {\n\t\tObject[] o = {2,5f,\"Test\",Duration.ZERO,new Station(0,0,\"Test\")};\n\t\tassertFalse(DataChecker.checkNulls(o));\n\t}", "private boolean isNull(Object anObject) {\n\t\tif(anObject == null) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isValid()\r\n {\r\n \treturn this.vp.data != null;\r\n }", "protected boolean skipNullValues() {\n return true;\n }", "public boolean cardsIsEmpty() {\r\n\t\treturn cards.isEmpty();\r\n\t}", "public boolean isEmpty() {\n\t\tif (player == ePlayer.none) return true;\n\t\treturn false;\n\t}", "private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }", "public final boolean getInputAllowNull() {\n\t\treturn wInputAllowNull;\n\t}", "static public boolean isNull(Object value) {\r\n\t\treturn value == null || value instanceof JSNull;\r\n\t}", "protected boolean isEmptyValue(final String parameter) {\n // String value = parameters.get(parameter);\n // return isEmptyString(value);\n return false;\n }", "private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }", "@Test\n void nullTest() {\n assertNull(sFloat1.toScrabbleInt());\n assertNull(sFloat1.and(sFloat2));\n assertNull(sFloat1.or(sFloat2));\n assertNull(sFloat1.toScrabbleBool());\n assertNull(sFloat1.toScrabbleBinary());\n assertNull(sFloat1.addToString(new ScrabbleString(\"Hello World\")));\n }", "public void resultIsNull(){\n if(alertDialog.isShowing()){\n return;\n }\n if(inActive){\n return;\n }\n }", "public static boolean isNull() {\r\n\t\tif(instance==null)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean isPresent() {\r\n\t\treturn value != null;\r\n\t}", "public boolean isNotNullFrontendMid() {\n return genClient.cacheValueIsNotNull(CacheKey.frontendMid);\n }", "public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}", "public boolean repOK(){\n if(passenger == null) return false;\n if(car == null) return false;\n return true;\n }", "public static void checkNull(Object value, String name) {\r\n if (value == null) {\r\n throw new IllegalArgumentException(\"The \" + name + \" is null.\");\r\n }\r\n }", "@Test\n @SmallTest\n public void tesUiccCartdInfoSanity() {\n assertEquals(0, mUicccard.getNumApplications());\n assertNull(mUicccard.getCardState());\n assertNull(mUicccard.getUniversalPinState());\n assertNull(mUicccard.getOperatorBrandOverride());\n /* CarrierPrivilegeRule equals null, return true */\n assertTrue(mUicccard.areCarrierPriviligeRulesLoaded());\n for (IccCardApplicationStatus.AppType mAppType :\n IccCardApplicationStatus.AppType.values()) {\n assertFalse(mUicccard.isApplicationOnIcc(mAppType));\n }\n }", "public boolean isNotNullPaymentProcessorName() {\n return genClient.cacheValueIsNotNull(CacheKey.paymentProcessorName);\n }", "public boolean isMaybePresentData() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & PRESENT_DATA) != 0;\n else\n return (flags & PRIMITIVE) != 0 || num != null || str != null || object_labels != null;\n }", "private static boolean nullOk(Schema schema) {\n if (Schema.Type.NULL == schema.getType()) {\n return true;\n } else if (Schema.Type.UNION == schema.getType()) {\n for (Schema possible : schema.getTypes()) {\n if (nullOk(possible)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isNotNullTid() {\n return genClient.cacheValueIsNotNull(CacheKey.tid);\n }", "public boolean deckIsEmpty(){\n return getSizeOfDeck() <= 0;\n }", "public boolean checkAllNull() {\n return (locationFilterCriteria == null || locationFilterCriteria.checkAllNull()) &&\n minPricePerM2 == null && maxPricePerM2 == null &&\n sizeInM2LowerBound == null &&\n sizeInM2UpperBound == null && roofed == null &&\n leasingTimeFrom == null && leasingTimeTo == null &&\n keywords == null && electricity == null && water == null &&\n high == null && glassHouse == null;\n }", "private static boolean isValidDeviceId(String deviceId){\n return deviceId != null;\n }", "@Override\n public boolean hasRentabilityValues() {\n return (pensionParameters.getRentRisk() != null &&\n pensionParameters.getRentCons() != null &&\n pensionParameters.getRentMod() != null);\n }", "public boolean isNotNullAcquiringBackEnd() {\n return genClient.cacheValueIsNotNull(CacheKey.acquiringBackEnd);\n }" ]
[ "0.675546", "0.6486021", "0.6403187", "0.6379194", "0.6340008", "0.63186705", "0.6302581", "0.6287348", "0.62436736", "0.62385494", "0.6224342", "0.6156084", "0.6154218", "0.61503553", "0.614487", "0.6090822", "0.60712713", "0.6050501", "0.6028847", "0.6028057", "0.60182124", "0.60099125", "0.5987016", "0.5986797", "0.59749705", "0.5970834", "0.59650445", "0.5957966", "0.5936764", "0.5934889", "0.59250724", "0.5918172", "0.5917843", "0.5906606", "0.5901844", "0.5893285", "0.58897066", "0.58871204", "0.5874796", "0.587387", "0.58561057", "0.584469", "0.58410555", "0.5833762", "0.58306646", "0.58129334", "0.58068794", "0.5799189", "0.5795252", "0.5790869", "0.5789495", "0.5780214", "0.578017", "0.57785165", "0.57626086", "0.5755188", "0.575245", "0.57500696", "0.5741062", "0.57334536", "0.5732519", "0.56999856", "0.56862855", "0.5677922", "0.567728", "0.56705886", "0.56698304", "0.5666633", "0.56588465", "0.56540394", "0.5647354", "0.56217015", "0.56177133", "0.56156117", "0.5610284", "0.5600866", "0.55897754", "0.55849916", "0.55761683", "0.5573822", "0.5571414", "0.5568105", "0.55678636", "0.5565972", "0.5560893", "0.55604607", "0.5551235", "0.5547878", "0.5544243", "0.5542757", "0.5541372", "0.5541061", "0.5537548", "0.5528735", "0.5524706", "0.55239546", "0.5522944", "0.5517771", "0.550938", "0.5507796", "0.5505733" ]
0.0
-1
TODO For sausege eyes only: Find last appearance line of i_ID, replace i_StringToReplace with i_StringToReplaceWith
public static void UpdateLineInFileByID(String i_FileName, String i_ID, StringBuilder i_StringToReplace, StringBuilder i_StringToReplaceWith) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String DoFindReplace(String line)\n {\n String newLine = line;\n\n for (String findKey : lineFindReplace.keySet())\n {\n String repValue = lineFindReplace.get(findKey).toString();\n\n Pattern findPattern = Pattern.compile(findKey);\n Matcher repMatcher = findPattern.matcher(newLine);\n\n newLine = repMatcher.replaceAll(repValue);\n }\n return(newLine);\n }", "private String findReplace(String str, String find, String replace)\n/* */ {\n/* 944 */ String des = new String();\n/* 945 */ while (str.indexOf(find) != -1) {\n/* 946 */ des = des + str.substring(0, str.indexOf(find));\n/* 947 */ des = des + replace;\n/* 948 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 950 */ des = des + str;\n/* 951 */ return des;\n/* */ }", "public String replaceIdentifiers(String str) {\n\t\t\n\t\t//If input is null, return null\n\t\tif(str == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//Map to store the identifiers and their first occurrence index\n\t\tMap<String, Integer> identifierMap = new HashMap<String, Integer>();\n\t\t\n\t\t//Other temporary variables\n\t\tStringBuilder finalOutput = new StringBuilder();\n\t\tStringBuilder currIdentifier = new StringBuilder();\t \n\t\tint identifierIndex = 0; \t\t\t//keeps a count of identifier index\n\t\tboolean isIdentifier = false;\t\t//a flag to track if current char is part of an identifier\n\t\t\n\t\t//Loop on input string\n\t\tfor(Character ch : str.toCharArray()) {\n\t\t\t\n\t\t\t//If current char is a letter, append char to currIdentifier, else process currIdentifier \n\t\t\tif(Character.isUpperCase(ch) || Character.isLowerCase(ch)) {\n\t\t\t\tcurrIdentifier.append(ch);\n\t\t\t\tisIdentifier = true;\n\t\t\t} else {\t\t\t\t\n\t\t\t\tif(isIdentifier) {\n\t\t\t\t\t//If new identifier, add to map; else get index\n\t\t\t\t\tif(!identifierMap.containsKey(currIdentifier.toString())) {\t\t\t\t\t\t\n\t\t\t\t\t\tidentifierMap.put(currIdentifier.toString(), identifierIndex);\n\t\t\t\t\t\tfinalOutput.append(currIdentifier);\t//first occurrence, so no $ sign\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tInteger existingIdentifierId = identifierMap.get(currIdentifier.toString());\n\t\t\t\t\t\tfinalOutput.append(\"$\" + existingIdentifierId); //$ sign for subsequent occurrences\n\t\t\t\t\t}\n\t\t\t\t\tidentifierIndex++;\n\t\t\t\t\tcurrIdentifier = new StringBuilder(); //start fresh for next identifier\n\t\t\t\t} \n\t\t\t\t//Append the current char, and set isIdentifier to false\n\t\t\t\tfinalOutput.append(ch);\n\t\t\t\tisIdentifier = false;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t/* This block of code handles the case, when the input string ends in a character. Alternatively, \n\t\t * we can add a unique non-alphabetic character at the end of the input string (just before \n\t\t * the for loop), and remove that char from the finalOutput, just before returning it to \n\t\t * the calling method. \n\t\t */\n\t\tif(isIdentifier) {\n\t\t\tif(!identifierMap.containsKey(currIdentifier.toString())) {\t\t\t\t\t\t\n\t\t\t\t//Adding this last identifier to the map, is not needed as we have already reached the end. \n\t\t\t\t//But in case, we want to use this map for future processing, it is needed.\n\t\t\t\tidentifierMap.put(currIdentifier.toString(), identifierIndex);\n\t\t\t\tfinalOutput.append(currIdentifier);\t\t\t\t\t\t\n\t\t\t} else {\n\t\t\t\tInteger existingWordId = identifierMap.get(currIdentifier.toString());\n\t\t\t\tfinalOutput.append(\"$\" + existingWordId);\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn finalOutput.toString();\n\t}", "private String findReplace(String str, String find, String replace)\n/* */ {\n/* 938 */ String des = new String();\n/* 939 */ while (str.indexOf(find) != -1) {\n/* 940 */ des = des + str.substring(0, str.indexOf(find));\n/* 941 */ des = des + replace;\n/* 942 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 944 */ des = des + str;\n/* 945 */ return des;\n/* */ }", "private String findReplace(String str, String find, String replace)\n/* */ {\n/* 935 */ String des = new String();\n/* 936 */ while (str.indexOf(find) != -1) {\n/* 937 */ des = des + str.substring(0, str.indexOf(find));\n/* 938 */ des = des + replace;\n/* 939 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 941 */ des = des + str;\n/* 942 */ return des;\n/* */ }", "String getReplacementString();", "String getReplaced();", "public void stringOverWrite (String stringToFind, String stringToOverWrite) throws IOException{\n if (stringToOverWrite==null){\n return;\n }\n StringBuilder text = new StringBuilder();\n String line;\n while ((line=fileRead.readLine())!= null){\n text.append(line.replace(stringToFind, stringToOverWrite)).append(\"\\r\\n\");\n }\n fileWrite = new BufferedWriter(new FileWriter(filePATH));\n\n fileWrite.write(text.toString());\n fileWrite.flush();\n }", "public static final String replace(String line, String oldString, String newString) {\r\n int i = 0;\r\n if ((i = line.indexOf(oldString, i)) >= 0) {\r\n char[] line2 = line.toCharArray();\r\n char[] newString2 = newString.toCharArray();\r\n int oLength = oldString.length();\r\n StringBuffer buf = new StringBuffer(line2.length);\r\n buf.append(line2, 0, i).append(newString2);\r\n i += oLength;\r\n int j = i;\r\n while ((i = line.indexOf(oldString, i)) > 0) {\r\n buf.append(line2, j, i - j).append(newString2);\r\n i += oLength;\r\n j = i;\r\n }\r\n buf.append(line2, j, line2.length - j);\r\n return buf.toString();\r\n }\r\n return line;\r\n }", "protected String replaceIthB(String s, int i) {\n\t\tint cur_b_count = -1;\n\t\tchar[] s_array = s.toCharArray();\n\t\t\n\t\tfor (int pos = 0;pos < s.length();pos++) {\n\t\t\tif (s.charAt(pos) == 'B') {\n\t\t\t\tcur_b_count++;\n\t\t\t\t\n\t\t\t\tif (cur_b_count == i-1) {\n\t\t\t\t\ts_array[pos] = 'A';\n\t\t\t\t\treturn new String(s_array);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "private String fixCapsedI(final String line) {\n String fixedLine = line;\n\n // I in a word, not first letter\n fixedLine = fixedLine.replaceAll(\"II\", \"ll\"); // except this one, but what word starts with II? Yeah, Roman numbers... sigh\n fixedLine = fixedLine.replaceAll(\"aI\", \"al\");\n fixedLine = fixedLine.replaceAll(\"bI\", \"bl\");\n fixedLine = fixedLine.replaceAll(\"cI\", \"cl\");\n fixedLine = fixedLine.replaceAll(\"dI\", \"dl\");\n fixedLine = fixedLine.replaceAll(\"eI\", \"el\");\n fixedLine = fixedLine.replaceAll(\"fI\", \"fl\");\n fixedLine = fixedLine.replaceAll(\"gI\", \"gl\");\n fixedLine = fixedLine.replaceAll(\"hI\", \"hl\");\n fixedLine = fixedLine.replaceAll(\"iI\", \"il\");\n fixedLine = fixedLine.replaceAll(\"jI\", \"jl\");\n fixedLine = fixedLine.replaceAll(\"kI\", \"kl\");\n fixedLine = fixedLine.replaceAll(\"mI\", \"ml\");\n fixedLine = fixedLine.replaceAll(\"nI\", \"nl\");\n fixedLine = fixedLine.replaceAll(\"oI\", \"ol\");\n fixedLine = fixedLine.replaceAll(\"pI\", \"pl\");\n fixedLine = fixedLine.replaceAll(\"qI\", \"ql\");\n fixedLine = fixedLine.replaceAll(\"rI\", \"rl\");\n fixedLine = fixedLine.replaceAll(\"sI\", \"sl\");\n fixedLine = fixedLine.replaceAll(\"tI\", \"tl\");\n fixedLine = fixedLine.replaceAll(\"uI\", \"ul\");\n fixedLine = fixedLine.replaceAll(\"vI\", \"vl\");\n fixedLine = fixedLine.replaceAll(\"wI\", \"wl\");\n fixedLine = fixedLine.replaceAll(\"xI\", \"xl\");\n fixedLine = fixedLine.replaceAll(\"yI\", \"yl\");\n fixedLine = fixedLine.replaceAll(\"zI\", \"zl\");\n\n // I in a word, could be [If|In|Is|It] so it breaks that, fix it later\n fixedLine = fixedLine.replaceAll(\"Ia\", \"la\");\n fixedLine = fixedLine.replaceAll(\"Ib\", \"lb\");\n fixedLine = fixedLine.replaceAll(\"Ic\", \"lc\");\n fixedLine = fixedLine.replaceAll(\"Id\", \"ld\");\n fixedLine = fixedLine.replaceAll(\"Ie\", \"le\");\n fixedLine = fixedLine.replaceAll(\"If\", \"lf\");\n fixedLine = fixedLine.replaceAll(\"Ig\", \"lg\");\n fixedLine = fixedLine.replaceAll(\"Ih\", \"lh\");\n fixedLine = fixedLine.replaceAll(\"Ii\", \"li\");\n fixedLine = fixedLine.replaceAll(\"Ij\", \"lj\");\n fixedLine = fixedLine.replaceAll(\"Ik\", \"lk\");\n fixedLine = fixedLine.replaceAll(\"Im\", \"lm\");\n fixedLine = fixedLine.replaceAll(\"In\", \"ln\");\n fixedLine = fixedLine.replaceAll(\"Io\", \"lo\");\n fixedLine = fixedLine.replaceAll(\"Ip\", \"lp\");\n fixedLine = fixedLine.replaceAll(\"Iq\", \"lq\");\n fixedLine = fixedLine.replaceAll(\"Ir\", \"lr\");\n fixedLine = fixedLine.replaceAll(\"Is\", \"ls\");\n fixedLine = fixedLine.replaceAll(\"It\", \"lt\");\n fixedLine = fixedLine.replaceAll(\"Iu\", \"lu\");\n fixedLine = fixedLine.replaceAll(\"Iv\", \"lv\");\n fixedLine = fixedLine.replaceAll(\"Iw\", \"lw\");\n fixedLine = fixedLine.replaceAll(\"Ix\", \"lx\");\n fixedLine = fixedLine.replaceAll(\"Iy\", \"ly\");\n fixedLine = fixedLine.replaceAll(\"Iz\", \"lz\");\n\n return fixedLine;\n }", "private String convertToID(String originalTree) {\n\tString result = new String(originalTree);\n\tfor (int i = 0; i < noTax; i++) {\n\t int indx = result.indexOf(taxa[i] + \")\");\n\t if (indx == -1) {\n\t\tindx = result.indexOf(taxa[i] + \",\");\n\t }\n\t try{\n\t\tresult = result.substring(0, indx) + i + \n\t\t result.substring(indx + taxa[i].length(), result.length());\n\t } catch (Exception e) {\n\t\tSystem.out.println(\"Error in replacing\\n\" + taxa[i] +\n\t\t\t\t \"\\n in \" + result);\n\t\tSystem.exit(-1);\n\t }\n\t}\n\treturn result;\n }", "public static interface DataReplace {\n\t\t/**\n\t\t * This method is used to alter the lines in the data array. Each line is parsed to this method, and whatever is returned will replace the current line.\n\t\t * \n\t\t * @param input\n\t\t * One line of the data array\n\t\t */\n\t\tpublic String replace(String input);\n\t}", "public void setStringID(int i, int iMax) {\r\n\t\t\tString id;\r\n\t\t\tif (i<10) {\r\n\t\t\t\tid = String.format(\"P00%d\", i);\r\n\t\t\t}\r\n\t\t\telse if (i < 100) {\r\n\t\t\t\tid = String.format(\"P0%d\", i);\r\n\t\t\t}\r\n\t\t\telse if (i <= iMax){\r\n\t\t\t\tid = String.format(\"P%d\", i);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tid = \"-1\";\r\n\t\t\t}\r\n\t\t\tthis.StringID = id;\r\n\t\t\t}", "private String replace(String s) {\n return s.replaceAll(\"C#\", \"1\")\n .replace(\"D#\", \"2\")\n .replace(\"F#\", \"3\")\n .replace(\"G#\", \"4\")\n .replace(\"A#\", \"5\");\n }", "public static String replaceByIndexes(String string, int replaceStart, int replaceEnd, String replacement) {\n return new StringBuilder(string.substring(0, replaceStart)).append(replacement)\n .append(string.substring(replaceEnd)).toString();\n }", "public void replace(int idIndex, String inputFilePath) {\n\t\tString url = IP + String.valueOf(PORT) + \"/replace\";\n\t\thelper(url, idIndex, inputFilePath);\n\t}", "public void replace(String oldID, String replacementID)\r\n throws BeanBagIDNotRecognisedException, IllegalIDException {\n int counter = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the ID in the stockList matches the replacement ID.\r\n if ((((BeanBag) stockList.get(i)).getID()).equals(replacementID)) {\r\n // Throw IllegalIdException as the new ID matches the old ID.\r\n throw new IllegalIDException(\"This ID already exists.\");\r\n }\r\n // Run the \"validID\" function in the \"Check\" class to see if the format is correct.\r\n Check.validID(replacementID);\r\n // If the ID in the stockList matches the old ID.\r\n if ((((BeanBag) stockList.get(i)).getID()).equals(oldID)) {\r\n // Set the ID in the stockList to the replacement ID.\r\n ((BeanBag) stockList.get(i)).setID(replacementID);\r\n }\r\n // Increment the \"counter\" integer by 1.\r\n counter++;\r\n }\r\n // If the counter is less than 1.\r\n if (counter < 1) {\r\n // Throw BeanBagIDNotRecognisedException as counter should never be less than 1.\r\n throw new BeanBagIDNotRecognisedException(\"No BeanBag with this ID.\");\r\n }\r\n }", "private static String replace(String text, String repl, String with, int max) {\n\t\tif (text == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tStringBuffer buf = new StringBuffer(text.length());\n\t\tint start = 0;\n\t\tint end = text.indexOf(repl, start);\n\t\twhile (end != -1) {\n\t\t\tbuf.append(text.substring(start, end)).append(with);\n\t\t\tstart = end + repl.length();\n\n\t\t\tif (--max == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tend = text.indexOf(repl, start);\n\t\t}\n\t\tbuf.append(text.substring(start));\n\t\treturn buf.toString();\n\t}", "private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}", "@Override\r\n public void replaceIdentifierReferences( String oldId, String newId ) {\n for( GlobalStateDataControl globalStateDataControl : globalStatesDataControlList )\r\n globalStateDataControl.replaceIdentifierReferences( oldId, newId );\r\n }", "public void replace() {\n\t\tArrayList<Point> points = nullPoint();\n\t\twhile(0 < points.size()) {\n\t\t\tPoint p = points.get(0); //only get the first one \n\t\t\tif(p.x==0) { //if p is in first column\n\t\t\t\tset(p,_colorFileNames.get(_rand.nextInt(_colorFileNames.size()))); //set a new string\n\t\t\t}\n\t\t\telse { \n\t\t\t\texchange(p, new Point(p.x-1,p.y)); //exchange with the string above\n\t\t\t}\n\t\t\tpoints = nullPoint(); //renew the arraylist, will exclude the fist point\n\t\t} //end loop when there are is no null point\n\t}", "public static final String replace(String line, String oldString, String newString,\r\n Integer count) {\r\n if (line == null) {\r\n return null;\r\n }\r\n int i = 0;\r\n if ((i = line.indexOf(oldString, i)) >= 0) {\r\n int counter = 0;\r\n counter++;\r\n char[] line2 = line.toCharArray();\r\n char[] newString2 = newString.toCharArray();\r\n int oLength = oldString.length();\r\n StringBuffer buf = new StringBuffer(line2.length);\r\n buf.append(line2, 0, i).append(newString2);\r\n i += oLength;\r\n int j = i;\r\n while ((i = line.indexOf(oldString, i)) > 0) {\r\n counter++;\r\n buf.append(line2, j, i - j).append(newString2);\r\n i += oLength;\r\n j = i;\r\n }\r\n buf.append(line2, j, line2.length - j);\r\n count = new Integer(counter);\r\n return buf.toString();\r\n }\r\n return line;\r\n }", "public static String replaceFirst(String in, String find, String replace) {\n\n\t\tStringBuffer ret = new StringBuffer();\n\n\t\tint start = in.indexOf(find);\n\t\tif (start != -1) {\n\t\t\tret.append(in.substring(0, start));\n\t\t\tret.append(replace);\n\t\t\tret.append(in.substring(start + find.length()));\n\t\t}\n\n\t\treturn ret.toString();\n\t}", "public DATATYPE replace(DataReplace dataReplace) {\n\t\tif (size() > 0) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\t\n\t\t\tfor (int i=0; i < mLines.length; i++) {\n\t\t\t\tlist.add( dataReplace.replace(mLines[i]) );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn (DATATYPE) this;\n\t}", "public static String replaceLast(String string, String toReplace, String replacement) {\n int pos = string.lastIndexOf(toReplace);\n if (pos > -1) {\n return new StringBuilder(string.substring(0, pos)).append(replacement)\n .append(string.substring(pos + toReplace.length())).toString();\n } else {\n return string;\n }\n }", "public static String stringReplace(String aValue, String aReplace, String aNew) {\r\n int start = aValue.indexOf(aReplace);\r\n StringBuffer replace;\r\n while (start >= 0) {\r\n replace = new StringBuffer(aValue);\r\n replace.replace(start, start + aReplace.length(), aNew);\r\n aValue = replace.toString();\r\n start = aValue.indexOf(aReplace, start);\r\n }\r\n return aValue;\r\n }", "public void WriteLineByField(Context oContext, String SearchStr, int FieldIndex, int WriteFieldIndex, String WriteFieldValue){\n\t\tArrayList <String> Lines = ReadLines(oContext);\n\t\tint LineCount = Lines.size();\n\t\tint iCtr ;\n\t\tString newLine = null; \n\t\tfor ( iCtr =0; iCtr < LineCount; iCtr++)\n\t\t{ \n\t\t\tString subValues[] = Lines.get(iCtr).split(\"~\");\n\t\t\t//Id check\n\t\t\tif(SearchStr.compareTo(subValues[FieldIndex]) == 0){\n\t\t\t\tfor(int jCtr = 0; jCtr < subValues.length; jCtr ++){\n\t\t\t\t\tsubValues[WriteFieldIndex] = subValues[WriteFieldIndex].replace(subValues[WriteFieldIndex],WriteFieldValue);\n\t\t\t\t}\n\t\t\t\tnewLine = subValues[0] + \"~\" + subValues[1] + \"~\" + subValues[2] + \"~\" + subValues[3] + \"~\" +subValues[4];\n\t\t\t\tLines.set(iCtr, newLine);\n\t\t\t}\t\t\n\t\t}\n\t\tSystem.out.println(Lines.toString());\n\t\tWriteLines(Lines, oContext);\n\t}", "public NewReferenceValueStrategy replaceIdOnly() {\n return update -> {\n String[] parts = update.uriParts();\n parts[parts.length - 1] = update.newResourceId();\n return String.join(\"/\", parts);\n };\n }", "private static void idReplace() {\n\t\tList<String> list = FileUtil.FileToList(\"C:/Users/强胜/Desktop/dataCrawler/申请方/翻译后的/去掉过时的/过时的program取代表1013.txt\");\n\t\tMap<String,Integer> map = new HashMap<String,Integer>();\n\t\tfor(String xx : list)\n\t\t\tmap.put(xx.split(\"\\t\")[0], Integer.parseInt(xx.split(\"\\t\")[1]));\n\t\t\n\t\tString url = \"123.57.250.189\";\n\t\tint port = 27017;\n\t\tString dbName = \"dulishuo\";\n\t\tDB db = MongoUtil.getConnection(url, port, dbName);\n\t\t\n\t\tDBCollection offer = db.getCollection(\"offer\"); \n\t DBCursor find = offer.find();\n\t \n\t while(find.hasNext()){\n\t \tSystem.out.println(\"process_____\"+count++);\n\t \tDBObject obj = find.next();\n\t \tif(obj.containsField(\"program_id\")){\n\t \t\tString id = obj.get(\"program_id\").toString();\n\t\t \tif(map.containsKey(id)){\n\t\t \t\ttry{\n\t\t\t \t\t\n\t\t\t \t\tBasicDBObject newDocument = new BasicDBObject(); \n\t\t\t\t\t\tnewDocument.append(\"$set\", new BasicDBObject().append(\"program_id\", map.get(id))); \n\t\t\t\t\t\toffer.update(obj, newDocument);\n\t\t\t \t\t\n\t\t\t \t}catch(Exception e){\n\t\t\t \t\t\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\t }\n\t System.out.println(\"______________---End---------------\");\n\t}", "@Override\n\tpublic String strreplace(String str, int start, int end, String with) {\n\t\treturn null;\n\t}", "public void markPlmnIdReplace() throws JNCException {\n markLeafReplace(\"plmnId\");\n }", "@Handler\n private void replace( ReceivePrivmsg event )\n {\n String text = event.getText();\n Matcher sedMatcher = replacePattern.matcher( text );\n\n String nick = event.getSender();\n\n if ( sedMatcher.matches() )\n {\n String correction = \"Correction: \";\n\n /**\n * If the last group of the regex captures a non-null string, the user is fixing another user's message.\n */\n if ( sedMatcher.group( 5 ) != null )\n {\n nick = sedMatcher.group( 5 );\n correction = nick + \", ftfy: \";\n }\n\n if ( lastMessageMapByNick.containsKey( nick ) )\n {\n String regexp = sedMatcher.group( 2 );\n String replacement = sedMatcher.group( 3 );\n String endFlag = sedMatcher.group( 4 );\n\n synchronized ( lastMessageMapByNickMutex )\n {\n String lastMessage = lastMessageMapByNick.get( nick );\n\n if ( !lastMessage.contains( regexp ) )\n {\n event.reply( \"Wow. Seriously? Try subbing out a string that actually occurred. Do you even sed, bro?\" );\n }\n else\n {\n String replacedMsg;\n String replacedMsgWHL;\n\n String replacementWHL = Colors.bold( replacement );\n\n // TODO: Probably can be simplified via method reference in Java 8\n if ( \"g\".equals( endFlag ) )\n {\n replacedMsg = lastMessage.replaceAll( regexp, replacement );\n replacedMsgWHL = lastMessage.replaceAll( regexp, replacementWHL );\n }\n else\n {\n replacedMsg = lastMessage.replaceFirst( regexp, replacement );\n replacedMsgWHL = lastMessage.replaceFirst( regexp, replacementWHL );\n }\n\n event.reply( correction + replacedMsgWHL );\n lastMessageMapByNick.put( nick, replacedMsg );\n }\n }\n }\n }\n else\n {\n synchronized ( lastMessageMapByNickMutex )\n {\n lastMessageMapByNick.put( nick, text );\n }\n }\n }", "public native String replaceItem(String newItem, Number index);", "public static String replace(String text, String searchString, String replacement, int max) {\r\n if (isEmpty(text) || isEmpty(searchString) || replacement == null || max == 0) {\r\n return text;\r\n }\r\n int start = 0;\r\n int end = text.indexOf(searchString, start);\r\n if (end == -1) {\r\n return text;\r\n }\r\n int replLength = searchString.length();\r\n int increase = replacement.length() - replLength;\r\n increase = (increase < 0 ? 0 : increase);\r\n increase *= (max < 0 ? 16 : (max > 64 ? 64 : max));\r\n StringBuffer buf = new StringBuffer(text.length() + increase);\r\n while (end != -1) {\r\n buf.append(text.substring(start, end)).append(replacement);\r\n start = end + replLength;\r\n if (--max == 0) {\r\n break;\r\n }\r\n end = text.indexOf(searchString, start);\r\n }\r\n buf.append(text.substring(start));\r\n return buf.toString();\r\n }", "protected abstract boolean replace(String string, Writer w, Status status) throws IOException;", "private static void encodeStringForAuditFieldReplaceString(StringBuilder sb, String oldString, String newString) {\n\n\t\tint index = sb.indexOf(oldString);\n\t\twhile (index >= 0) {\n\t\t\tsb.delete(index, index + oldString.length());\n\t\t\tsb.insert(index, newString);\n\t\t\tindex = sb.indexOf(oldString, index + newString.length());\n\t\t}\n\n\t}", "@DISPID(1611006080) //= 0x60060080. The runtime will prefer the VTID if present\n @VTID(155)\n boolean replaceOnlyAfterCurrent();", "public static String replaceString(String mainString, String oldString, String newString) {\n if (mainString == null) {\n return null;\n }\n if (UtilValidate.isEmpty(oldString)) {\n return mainString;\n }\n if (newString == null) {\n newString = \"\";\n }\n\n int i = mainString.lastIndexOf(oldString);\n\n if (i < 0) {\n return mainString;\n }\n\n StringBuilder mainSb = new StringBuilder(mainString);\n\n while (i >= 0) {\n mainSb.replace(i, i + oldString.length(), newString);\n i = mainString.lastIndexOf(oldString, i - 1);\n }\n return mainSb.toString();\n }", "private void reverseLookupAD_Org_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverese Look up AD_Org ID From JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"AD_Org_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Org_Value\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET AD_Org_ID=(SELECT AD_Org_ID FROM AD_org p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value=p.Value AND (p.AD_Client_ID=i.AD_Client_ID or p.AD_Client_ID=0) ) \")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t\t//Invalid JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Invalid\")+Msg.getElement(getCtx(), \"JP_Org_Value\");\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP \")\r\n\t\t\t.append(\"SET I_ErrorMsg='\"+ msg + \"'\")\r\n\t\t\t.append(\" WHERE AD_Org_ID = 0 AND JP_Org_Value IS NOT NULL AND JP_Org_Value <> '0' \")\r\n\t\t\t.append(\" AND I_IsImported<>'Y'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg +\" : \" + sql );\r\n\t\t}\r\n\r\n\t\tif(no > 0)\r\n\t\t{\r\n\t\t\tcommitEx();\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg );\r\n\t\t}\r\n\r\n\t}", "public String substituteSrc(String workString, String oldStr, String newStr) {\n int oldStrLen = oldStr.length();\n int newStrLen = newStr.length();\n String tempString = \"\";\n \n int i = 0, j = 0;\n while (j > -1) {\n j = workString.indexOf(oldStr, i);\n if (j > -1) {\n tempString = workString.substring(0, j) + newStr + workString.substring(j+oldStrLen);\n workString = tempString;\n i = j + newStrLen;\n }\n }\n \n return workString;\n }", "private String replace(String persistentId) {\n\t\tlog.info(\"calling replace() ...\");\n\t\tif (persistentId.contains(\"/\") || persistentId.contains(\"+\")\n\t\t\t\t|| persistentId.contains(\"=\")) {\n\t\t\tString aepst;\n\t\t\tif (persistentId.contains(\"/\")) {\n\t\t\t\taepst = persistentId.replaceAll(\"/\", \"_\");\n\t\t\t\tpersistentId = aepst;\n\t\t\t}\n\n\t\t\tif (persistentId.contains(\"+\")) {\n\t\t\t\taepst = persistentId.replaceAll(\"\\\\+\", \"-\");\n\t\t\t\tpersistentId = aepst;\n\t\t\t}\n\n\t\t\tif (persistentId.contains(\"=\")) {\n\t\t\t\taepst = persistentId.replaceAll(\"=\", \"\");\n\t\t\t\tpersistentId = aepst;\n\t\t\t}\n\t\t}\n\n\t\treturn persistentId;\n\t}", "public int doReplace(String find, String replace, boolean caseSensitive) {\n int nextPosn = 0;\n int posn;\n // Will perform a \"find\" and return, unless positioned at the end of\n // a selected \"find\" result.\n if (find == null || !find.equals(sourceCode.getSelectedText()) ||\n sourceCode.getSelectionEnd() != sourceCode.getCaretPosition()) {\n return doFindText(find, caseSensitive);\n }\n // We are positioned at end of selected \"find\". Rreplace and find next.\n nextPosn = sourceCode.getSelectionStart();\n sourceCode.grabFocus();\n sourceCode.setSelectionStart(nextPosn); // posn cursor at word start\n sourceCode.setSelectionEnd(nextPosn + find.length()); //select found text\n isCompoundEdit = true;\n compoundEdit = new CompoundEdit();\n sourceCode.replaceSelection(replace);\n compoundEdit.end();\n undoManager.addEdit(compoundEdit);\n editPane.updateUndoAndRedoState();\n isCompoundEdit = false;\n sourceCode.setCaretPosition(nextPosn + replace.length());\n if (doFindText(find, caseSensitive) == TEXT_NOT_FOUND) {\n return TEXT_REPLACED_NOT_FOUND_NEXT;\n } else {\n return TEXT_REPLACED_FOUND_NEXT;\n }\n }", "public void setIDTF(String newID) {\n\t\tidTF.setText(newID);\n\t}", "void replaceNext() {\n if (mte.getJtext().getSelectionStart() == mte.getJtext().getSelectionEnd()) {\n findNextWithSelection();\n return;\n }\n String searchText = findWhat.getText();\n String temp = mte.getJtext().getSelectedText(); //get selected text\n\n//check if the selected text matches the search text then do replacement\n if ((matchCase.isSelected() && temp.equals(searchText))\n || (!matchCase.isSelected() && temp.equalsIgnoreCase(searchText))) {\n mte.getJtext().replaceSelection(replaceWith.getText());\n }\n\n findNextWithSelection();\n }", "public void markEnodebIdReplace() throws JNCException {\n markLeafReplace(\"enodebId\");\n }", "public String replace(String input);", "public static String stringSearchAndReplace(String stringToSearch, String searchString, String replacementString)\n\t{\n\t\tint pos = stringToSearch.indexOf(searchString);\n\n\t\twhile (pos >= 0)\n\t\t{\n\t\t\tstringToSearch = stringToSearch.substring(0, pos) + replacementString + stringToSearch.substring(pos + searchString.length());\n\t\t\tpos = stringToSearch.indexOf(searchString, pos + replacementString.length());\n\t\t}\n\n\t\treturn stringToSearch;\n\t}", "private CharSequence replacewithZawgyi(String zawgyi, String myString1) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(zawgyi);\n int max_loop = rule_array.length();\n \n myString1 = myString1.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString1 = myString1.replaceAll(from, to);\n myString1 = myString1.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString1 = myString1.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString1;\n \n\t}", "public StrColumn getReplacedEntryId() {\n return delegate.getColumn(\"replaced_entry_id\", DelegatingStrColumn::new);\n }", "public static final String replace(String line, String oldString,\r\n String newString, int[] count) {\r\n if (line == null) {\r\n return null;\r\n }\r\n int i = 0;\r\n if ((i = line.indexOf(oldString, i)) >= 0) {\r\n int counter = 0;\r\n counter++;\r\n char[] line2 = line.toCharArray();\r\n char[] newString2 = newString.toCharArray();\r\n int oLength = oldString.length();\r\n StringBuffer buf = new StringBuffer(line2.length);\r\n buf.append(line2, 0, i).append(newString2);\r\n i += oLength;\r\n int j = i;\r\n while ((i = line.indexOf(oldString, i)) > 0) {\r\n counter++;\r\n buf.append(line2, j, i - j).append(newString2);\r\n i += oLength;\r\n j = i;\r\n }\r\n buf.append(line2, j, line2.length - j);\r\n count[0] = counter;\r\n return buf.toString();\r\n }\r\n return line;\r\n }", "private CharSequence replacewithUni(String uni1, String myString2) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "public void replace(String text) {\n\t\tlogger.info(\"REPLACE TODO\");\n\t}", "protected String getReplaceReferenceApplyToString(BioPortalReferenceData bpRefData, EntityData oldValue) {\n return UIUtil.getAppliedToTransactionString(\"Replaced reference for \" + getEntity().getBrowserText() +\n \" New reference: \" + bpRefData.getPreferredName() + \", code: \" + bpRefData.getConceptId(),\n getEntity().getName());\n }", "public static String replace(String from, String text, int nth) {\r\n\t\t// YOUR CODE HERE\r\n\t\treturn \"\"; // Dummy return\r\n\t}", "protected void addPositionBeforeBeaId(File srcFile,File destFile) throws IOException {\n FileReader fileReader=null;\n BufferedReader bufferedReader=null;\n FileWriter fileWriter1=null;\n\n try {\n fileReader=new FileReader(srcFile);\n bufferedReader=new BufferedReader(fileReader);\n fileWriter1=new FileWriter(destFile);\n\n String lastBeaid = \"\";\n String lastPosition = \"\";\n String line = bufferedReader.readLine();\n while (line != null && line.length()>0) {\n StringTokenizer stringTokenizer = new StringTokenizer(line, \";\");\n String newBeaId = stringTokenizer.nextToken();\n if (!lastBeaid.equals(newBeaId)) {\n lastBeaid = newBeaId;\n lastPosition = stringTokenizer.nextToken();\n }\n fileWriter1.write(lastPosition);\n fileWriter1.write(\";\");\n fileWriter1.write(line);\n fileWriter1.write(\"\\n\");\n line = bufferedReader.readLine();\n }\n } finally {\n CloseUtil.close(fileWriter1);\n CloseUtil.close(bufferedReader);\n }\n\n }", "@Override\n\tpublic void elementReplaced(int anIndex, Object aNewValue) {\n\t\tListEditObserved.newCase(OperationName.REPLACE, anIndex, aNewValue,\n\t\t\t\tApplicationTags.EDITOR, this);\n\t\tdisplayOutput();\n\t\tListEditDisplayed.newCase(OperationName.REPLACE, anIndex, aNewValue,\n\t\t\t\tApplicationTags.EDITOR, this);\n\t}", "public static String getStringFromInputStream(InputStream is, String oldId, String newId) {\n\n\t\t\tBufferedReader br = null;\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\tString line;\n\t\t\ttry {\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"http://www.ftn.uns.ac.rs/naucni_rad/\"+oldId)){\n\t\t\t\t\t\tline=line.replace(oldId, newId);\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(line);\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (br != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbr.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn sb.toString();\n\n\t\t}", "private CharSequence replacewithXUi(String Xuni, String myUi) {\n \ttry {\n JSONArray rule_array = new JSONArray(Xuni);\n int max_loop = rule_array.length();\n myUi = myUi.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myUi = myUi.replaceAll(from, to);\n myUi = myUi.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n \tmyUi = myUi.replace(\"\\uFFFF\\uFFFF\", \"null\");\n \n return myUi;\n\t\t\n\t}", "public void replace(int offset, String str, AttributeSet attr) \r\n throws BadLocationException{\n String strFinal=str;\r\n if (notRepeat != null){\r\n String txt= super.getText(0, super.getLength());\r\n JOptionPane.showMessageDialog(null, txt);\r\n if ((txt.contains(notRepeat)) && (str.contains(notRepeat))){\r\n strFinal= str.replaceAll(\"[\"+notRepeat+\"]\", \"\");\r\n }\r\n }\r\n super.insertString(offset, strFinal.replaceAll(teclas, \"\"), attr);\r\n }", "private final String _strReplace(String str, String token, String repl) {\n StringBuffer sb = new StringBuffer(str);\n int idx = sb.indexOf(token);\n while (idx > -1) {\n sb.replace(idx, idx + token.length(), repl);\n idx = sb.indexOf(token);\n }\n return sb.toString();\n }", "void replace(int offset, int length, String text) throws BadLocationException;", "public static String replace(String s, String searchFor, String replaceWith) {\n\t\tint i;\n\t\twhile((i = s.indexOf(searchFor)) > -1)\n\t\t\ts = (i == 0) ? replaceWith + s.substring(i + searchFor.length()) : s.substring(0, i) + replaceWith + s.substring(i + searchFor.length());\n\t\treturn s;\n\t}", "private String fixLineStart(final String line, final String... possibleValues) {\n for (final String possibleValue : possibleValues) {\n for (final String lineStarter : LINE_STARTS) {\n if (line.startsWith(lineStarter + possibleValue)) {\n return line.replaceFirst(\"l\", \"I\");\n }\n }\n }\n return line;\n }", "private StringBuffer replace(StringBuffer b,String oldPattern,String newPattern) {\r\n int i = 0;\r\n while((i=b.indexOf(oldPattern,i))!=-1) {\r\n b.replace(i,i+oldPattern.length(),newPattern);\r\n i = i+oldPattern.length();\r\n }\r\n return b;\r\n }", "public static void replaceAll(File file, String substitute, String substituteReplacement) throws IOException {\r\n log.debug(\"Replace \" + substitute + \" by \" + substituteReplacement);\r\n\r\n Pattern pattern = Pattern.compile(substitute);\r\n\r\n // Open the file and then get a channel from the stream\r\n FileInputStream fis = new FileInputStream(file);\r\n FileChannel fc = fis.getChannel();\r\n\r\n // Get the file's size and then map it into memory\r\n int sz = (int)fc.size();\r\n MappedByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, sz);\r\n\r\n // Decode the file into a char buffer\r\n // Charset and decoder for ISO-8859-15\r\n Charset charset = Charset.forName(\"ISO-8859-15\");\r\n CharsetDecoder decoder = charset.newDecoder();\r\n CharBuffer cb = decoder.decode(bb);\r\n\r\n Matcher matcher = pattern.matcher(cb);\r\n String outString = matcher.replaceAll(substituteReplacement);\r\n log.debug(outString);\r\n\r\n\r\n FileOutputStream fos = new FileOutputStream(file.getAbsolutePath());\r\n PrintStream ps =new PrintStream(fos);\r\n ps.print(outString);\r\n ps.close();\r\n fos.close();\r\n }", "private void makeReplacementText() throws IOException {\n valueBuf.clear();\n Token t = new Token();\n int start = currentTokenStart + 1;\n final int end = bufStart - 1;\n try {\n for (;;) {\n\tint tok;\n\tint nextStart;\n\ttry {\n\t tok = Tokenizer.tokenizeEntityValue(buf, start, end, t);\n\t nextStart = t.getTokenEnd();\n\t}\n\tcatch (ExtensibleTokenException e) {\n\t tok = e.getTokenType();\n\t nextStart = end;\n\t}\n\thandleEntityValueToken(valueBuf, tok, start, nextStart, t);\n\tstart = nextStart;\n }\n }\n catch (PartialTokenException e) {\n currentTokenStart = end;\n fatal(\"NOT_WELL_FORMED\");\n }\n catch (InvalidTokenException e) {\n currentTokenStart = e.getOffset();\n reportInvalidToken(e);\n }\n catch (EmptyTokenException e) { }\n }", "public static String replaceAllOccurrences(String saInput, String saMatchPattern, String saReplaceString) {\r\n\t\tif ( (null == saInput) || (saInput.indexOf(saMatchPattern) == AppConstants.NEG_ONE) || (null == saMatchPattern) || (saMatchPattern.length() <= 0)) {\r\n\t\t\treturn saInput;\r\n\t\t}\r\n\r\n\t\tString slInput = saInput;\r\n\r\n\t\t// StringBuffer sblTemp = new StringBuffer();\r\n\r\n\t\t// int ilIndex = slInput.indexOf(saMatchPattern);\r\n\r\n\t\tStringBuffer sblTemp = new StringBuffer(slInput);\r\n\t\tint ilIndex = sblTemp.toString().indexOf(saMatchPattern);\r\n\r\n\t\twhile (ilIndex >= 0) {\r\n\t\t\tsblTemp = sblTemp.delete(ilIndex, saMatchPattern.length() + ilIndex);\r\n\t\t\tsblTemp = sblTemp.insert(ilIndex, saReplaceString);\r\n\r\n\t\t\tilIndex = sblTemp.toString().indexOf(saMatchPattern);\r\n\t\t}\r\n\r\n\t\treturn sblTemp.toString();\r\n\t}", "private static String translateReplaceString(String replaceStr) {\n int pos = 0;\n while (0 <= (pos = replaceStr.indexOf(\"\\\\\", pos))) {\n if (replaceStr.charAt(pos + 1) == '$') {\n replaceStr = replaceStr.substring(0, pos) + \"$\" + replaceStr.substring(++pos);\n } else {\n replaceStr = replaceStr.substring(0, pos) + replaceStr.substring(++pos);\n }\n }\n return replaceStr;\n }", "public void readReplace(String fname, String oldPattern, String replPattern) {\n\t\tString line;\n\n\t\tStringBuffer sb = new StringBuffer();\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(fname);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tfis));\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tMatcher matcher = Pattern.compile(oldPattern).matcher(line);\n\t\t\t\tif (matcher.find()){\n\t\t\t\t\tmatcher = Pattern.compile(oldPattern).matcher(line);\n\t\t\t\t\tline = matcher.replaceAll(replPattern);\n\t\t\t\t}\n\t\t\t\tsb.append(line + Constants.RETURN);\n\t\t\t}\n\t\t\treader.close();\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(fname));\n\t\t\tout.write(sb.toString());\n\t\t\tout.close();\n\t\t\t// logger.debug(\"Fichero remplazado con exito \" + fname);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(LOG, e);\n\t\t}\n\t}", "private String replaceDefaultValues(String line) {\r\n\r\n String result = line;\r\n\r\n while (result.indexOf(\"${\") >= 0) { //$NON-NLS-1$\r\n result = result.replace(attribute(PROPERTY_GLOBAL_JOB_NUMBER), fixBackslashes(JOB_NUMBER));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_OBJECT_NAME), fixBackslashes(OBJECT_NAME));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_LICENSED_PROGRAM), fixBackslashes(LICENSED_PROGRAM));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_OS_RELEASE), fixBackslashes(OS_RELEASE));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_SPACES), fixBackslashes(SPACES));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_TIMEZONE), fixBackslashes(TIMEZONE));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_SYSTEM_NAME), fixBackslashes(SYSTEM_NAME));\r\n result = result.replace(attribute(PROPERTY_GLOBAL_STMT), fixBackslashes(STMT));\r\n\r\n result = result.replace(attribute(PROPERTY_PAGE_NUMBER_LABEL), fixBackslashes(PAGE_NUMBER_LABEL));\r\n result = result.replace(attribute(PROPERTY_PAGE_NUMBER_VALUE), fixBackslashes(PAGE_NUMBER_VALUE));\r\n result = result.replace(attribute(PROPERTY_PAGE_DATE), fixBackslashes(PAGE_DATE));\r\n result = result.replace(attribute(PROPERTY_PAGE_TIME), fixBackslashes(PAGE_TIME));\r\n\r\n result = result.replace(attribute(PROPERTY_HEADER_ATTRIBUTE_NAME), fixBackslashes(HEADER_ATTRIBUTE_NAME));\r\n result = result.replace(attribute(PROPERTY_HEADER_ATTRIBUTE_VALUE), fixBackslashes(HEADER_ATTRIBUTE_VALUE));\r\n\r\n result = result.replace(attribute(PROPERTY_MESSAGE_ID), fixBackslashes(MESSAGE_ID));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_TYPE), fixBackslashes(MESSAGE_TYPE));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_SEVERITY), fixBackslashes(MESSAGE_SEVERITY));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_DATE), fixBackslashes(MESSAGE_DATE));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_TIME), fixBackslashes(MESSAGE_TIME));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_CONTINUATION_LINE_INDENTION), fixBackslashes(MESSAGE_CONTINUATION_LINE_INDENTION));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_ATTRIBUTE_NAME), fixBackslashes(MESSAGE_ATTRIBUTE_NAME));\r\n result = result.replace(attribute(PROPERTY_MESSAGE_ATTRIBUTE_VALUE), fixBackslashes(MESSAGE_ATTRIBUTE_VALUE));\r\n\r\n result = result.replace(attribute(PROPERTY_REGEX_START_OF_PAGE), fixBackslashes(regex_startOfPage));\r\n result = result.replace(attribute(PROPERTY_REGEX_HEADER_ATTRIBUTE), fixBackslashes(regex_headerAttribute));\r\n result = result.replace(attribute(PROPERTY_REGEX_MESSAGE_FIRST_LINE), fixBackslashes(regex_messageFirstLine));\r\n result = result.replace(attribute(PROPERTY_REGEX_MESSAGE_CONTINUATION_LINE), fixBackslashes(regex_messageContinuationLine));\r\n }\r\n\r\n return result;\r\n }", "public static void markString(String customAbbreviation) {\n\t\tint selectedIndex = allStringsList.getSelectedIndex();\n\t\tString selectedString = allStringsList.getSelectedValue();\n\t\tString newString = null;\n\t\tif (selectedString.startsWith(\"#\")) {\n\t\t\t//update the string\n\t\t\tnewString = \" \" + foundStringsIndexList.size() + \" \" + currentSaveAbbreviation() + \" \" + selectedString;\n\t\t\tfoundStringsIndexList.add(selectedIndex);\n\t\t} else {\n\t\t\tsaveAndTextTextField.setText(\"\");\n\t\t\tif (produceSaveAndText(\"Select a new index\", true, true)) {\n\t\t\t\tint oldIndex = Integer.parseInt(selectedString.substring(4, selectedString.indexOf(' ', 4)));\n\t\t\t\t//if we didn't input an index, just use the old index\n\t\t\t\tint newIndex = saveAndTextText.length() == 0 ? oldIndex : Integer.parseInt(saveAndTextText);\n\t\t\t\tint cappedIndex;\n\t\t\t\tint diff;\n\t\t\t\t//if we're removing it, put it past the end instead\n\t\t\t\t//this way, everything gets shifted backwards properly\n\t\t\t\tif (newIndex < 0)\n\t\t\t\t\tnewIndex = foundStringsIndexList.size();\n\t\t\t\tif (newIndex > oldIndex) {\n\t\t\t\t\tcappedIndex = Math.min(foundStringsIndexList.size() - 1, newIndex);\n\t\t\t\t\tdiff = 1;\n\t\t\t\t} else {\n\t\t\t\t\tcappedIndex = Math.max(0, newIndex);\n\t\t\t\t\tdiff = -1;\n\t\t\t\t}\n\t\t\t\t//reorder and edit the other strings\n\t\t\t\tfor (int toIndex = oldIndex; toIndex != cappedIndex;) {\n\t\t\t\t\t//this is where we will be getting the string+index from\n\t\t\t\t\t//we will then move it to oldIndex\n\t\t\t\t\tint fromIndex = toIndex + diff;\n\t\t\t\t\t//move the index\n\t\t\t\t\tint stringIndex = foundStringsIndexList.get(fromIndex);\n\t\t\t\t\tfoundStringsIndexList.set(toIndex, stringIndex);\n\t\t\t\t\t//update the string\n\t\t\t\t\tString movedString = allStringsListModel.get(stringIndex)\n\t\t\t\t\t\t.replace(String.valueOf(fromIndex), String.valueOf(toIndex));\n\t\t\t\t\tallStringsListModel.set(stringIndex, movedString);\n\t\t\t\t\tsearchableStrings[stringIndex] = movedString.toLowerCase().toCharArray();\n\t\t\t\t\t//and finally, update the index\n\t\t\t\t\ttoIndex = fromIndex;\n\t\t\t\t}\n\t\t\t\t//if our index was in the bounds, insert it\n\t\t\t\tif (newIndex == cappedIndex) {\n\t\t\t\t\tfoundStringsIndexList.set(newIndex, selectedIndex);\n\t\t\t\t\t//replace the index of the string\n\t\t\t\t\tnewString = selectedString.replace(String.valueOf(oldIndex), String.valueOf(newIndex));\n\t\t\t\t\t//always replace the abbreviation in the string with the one in the save\n\t\t\t\t\tint abbreviationIndex = newString.indexOf(' ', 5) + 4;\n\t\t\t\t\tnewString = newString.replace(\n\t\t\t\t\t\tnewString.substring(abbreviationIndex, newString.indexOf(' ', abbreviationIndex)),\n\t\t\t\t\t\tcurrentSaveAbbreviation());\n\t\t\t\t//otherwise, strip it of its index\n\t\t\t\t//we made sure to shift everything backwards, so the last element is dead\n\t\t\t\t} else {\n\t\t\t\t\tfoundStringsIndexList.remove(foundStringsIndexList.size() - 1);\n\t\t\t\t\tnewString = selectedString.substring(selectedString.indexOf('#'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//if we want to replace our string, replace it in the display list and the search list\n\t\tif (newString != null) {\n\t\t\tallStringsListModel.set(selectedIndex, newString);\n\t\t\tsearchableStrings[selectedIndex] = newString.toLowerCase().toCharArray();\n\t\t\tneedsSaving = true;\n\t\t}\n\t}", "public static void main(String[] args) {\nScanner s1 = new Scanner(System.in);\r\nSystem.out.println(\"Enter the string \");\r\nString str1 = s1.nextLine();\r\n//s1.close();\r\n\r\n//Scanner s2 = new Scanner(System.in);\r\nSystem.out.println(\"enter part to be replaced\");\r\n\r\nString str2 = s1.nextLine();\r\n//s2.close();\r\n\r\n\r\nSystem.out.println(\"replace with\");\r\n//Scanner s3 = new Scanner(System.in);\r\nString str3 = s1.nextLine();\r\n//s3.close();\r\n\r\n\r\nstr1 = str1.replace(str2,str3);\r\nSystem.out.println(str1);\r\n\t}", "private String modifyValue(String id) {\n\n String[] split = id.split(\"\\\"\");\n return split[1];\n }", "private static String replace(String str, int i, char c) {\n char[] chs = str.toCharArray();\n chs[i] = c;\n return new String(chs);\n }", "SearchResult replace(SearchResult result, String replacement);", "public void replaceAtCursor(String s) {\n lines.set(cursor, s);\n }", "public void replaceFakeId(String oldId, String newId) {\n\n // Should be overridden by subclasses\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}", "public void replaceCurrentInterpolationTerm(String replacement) {\n\t\tMessageInterpolationToken token = new MessageInterpolationToken( replacement );\n\t\ttoken.terminate();\n\t\ttokenList.set( currentPosition - 1, token );\n\t}", "private static String modifyID(final String fifteenid) {\n String eightid = fifteenid.substring(0, 6);\n eightid = eightid + \"19\";\n eightid = eightid + fifteenid.substring(6, 15);\n eightid = eightid + getVerify(eightid);\n return eightid;\n }", "@Override\n\tpublic String strreplace(String str, String oldstr, String newstr) {\n\t\treturn null;\n\t}", "public String replaceLine(String line) {\n int length = line.length();\n StringBuilder outputString = new StringBuilder();\n matcher = pattern.matcher(line);\n int start = 0;\n int end = 0;\n int range = 0;\n\n while (matcher.find()) {\n start = matcher.start();\n if (start > end) {\n //append characters which do not match\n outputString.append(line.substring(end, start));\n }\n end = matcher.end();\n // calculate the total of searched characters and then apply rules to replace\n range = end - start;\n if (range == 1) {\n //apply RULE 1: single-character\n outputString.append(FIRST_SIGN_CHARACTER);\n } else {\n //apply RULE 2: multi-character\n outputString.append(SEARCH_CHARACTER);\n for (int i = 0; i < range - 1; i++) {\n outputString.append(SECOND_SIGN_CHARACTER);\n }\n }\n }\n if (end < length) {\n outputString.append(line.substring(end, length));\n }\n return outputString.toString();\n }", "@Override\n\tpublic void replaceWord(String s) {\n\t\tfinder.replace(s);\n\t}", "public void setID(String newID)\r\n {\r\n id=newID;\r\n }", "public String replaceString(String s, String one, String another) {\n if (s.equals(\"\")) return \"\";\n String res = \"\";\n int i = s.indexOf(one,0);\n int lastpos = 0;\n while (i != -1) {\n res += s.substring(lastpos,i) + another;\n lastpos = i + one.length();\n i = s.indexOf(one,lastpos);\n }\n res += s.substring(lastpos); // the rest\n return res;\n }", "public static void main(String[] args) {\n\tString str1=\"Java is fun Programming language\";\n\tString str=str1.replace('a', 'e');\n\tSystem.out.println(str1);\n\tSystem.out.println(str);\n\t\n\t//replace(old str, new str): replace all the old str values with the given new str values\n\t//in the string and returns it as a New value\n\tString str2=\"Today is gonna be a great day to learn Java\";\n String str0=str2.replace(\"Today\", \"Tomorrow\");\t\n\tSystem.out.println(str2);\n\tSystem.out.println(str0);\n\tSystem.out.println(str2.replace(\"Java\", \"\")); \n\t\n\t// replaceFirst(old str, new str): it replaces first occured old str with the new str\n\t//in the String and returns it as a New String value\n\tString s1=\"Java is fun, Java is good\";\n\tString s0=s1.replaceFirst(\"Java\", \"Python\");//only first \"Java\" has replaced\n\tSystem.out.println(s1);\n System.out.println(s0);\t\n}", "public static String replace(String text, String searchString, String replacement) {\r\n return replace(text, searchString, replacement, -1);\r\n }", "public void setID(String iD) {\n\t\tID = iD;\n\t}", "private void SolveTranslation(){\n\n int Cursor=0;\n Pattern pt = Pattern.compile(\"\\\"(.*?)\\\"\");\n Matcher matcher = pt.matcher(Input);\n while(matcher.find()){\n this.Undone[Cursor++] = matcher.group();\n //System.out.println(Undone[Cursor-1]);\n }\n Input = matcher.replaceAll(\"CCC\");\n }", "public void setID(String iD) {\r\n\t\tID = iD;\r\n\t}", "private String replaceTags(String line) {\nDate d = new Date();\nDateFormat df = DateFormat.getDateTimeInstance();\nline = line.replaceAll(\"<cs371date>\", df.format(d));\nline = line.replaceAll(\"<cs371server>\", serverName);\n \nreturn line;\n}", "private void mapID(final int column, final IdMapper id_mapper) {\n\t\t\n\t\t/*\n\t\t * To keep the original values of the preview table.\n\t\t */\n\t\tif (orig_values_list == null ) {\n\t\t\tprepareOrginalValiesTable();\n\t\t}\n\t\t\n\t\t/*\n\t\t * Getting source and target for id type. \n\t\t * Source and target species are the same (for now).\n\t\t * \n\t\t */\n\t\tfinal String target_type = (String) getIdmapTarget();\n\t\tfinal String source_type = (String) getIdmapSource();\n\t\tfinal String species = (String) getIdmapSpecies();\n\t\t\n\t\t/*\n\t\t * Name for the new column\n\t\t * TODO should give user ability to make own name, via UI.\n\t\t */\n\t\tfinal String new_name = target_type + \"->\" + source_type;\n\n\t\t/*\n\t\t * This performs the actual mapping.\n\t\t * Mapping results are stored in map \"res\".\n\t\t */\n final Map<String, IdMapping> res = id_mapper.map(\n\t\t\t\torig_values_list.get(column), source_type, target_type,\n\t\t\t\tspecies, species);\n\n if (DEBUG) {\n\t\t for (int row = 0; row < previewTable.getRowCount(); ++row) {\n\t\t\t System.out.print(row + \" :\");\n\t\t\t System.out.println((String) previewTable.getValueAt(row, column));\n\t\t }\n }\n\n /*\n * This parses the id mapping result\n */\n\t\tif (res != null && !res.isEmpty()) {\n\t\t\tfinal int orig_row_count = previewTable.getRowCount();\n\n\t\t\tfinal String[] new_column = new String[orig_row_count ];\n\t\t\tfor (int row = 0; row < orig_row_count; ++row) {\n\t\t\t\t\n\t\t\t\tfinal String source_id = orig_values_list.get(column).get(row);\n\t\t\t\tfinal IdMapping id_mapping = res.get(source_id);\n\t\t\t\tif (id_mapping != null) {\n\t\t\t\t\tif (id_mapping.getTargetIds() != null && !id_mapping.getTargetIds().isEmpty()) {\n\t\t\t\t\t\tfinal StringBuilder ids_str= new StringBuilder();\n\t\t\t\t\t\tfinal Set<String> target_ids = id_mapping.getTargetIds();\n\t\t\t\t\t\tfor (final String target_id : target_ids) {\n\t\t\t\t\t\t\tids_str.append( target_id);\n\t\t\t\t\t\t\tids_str.append( \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnew_column[row] = ids_str.toString();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tnew_column[row] = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnew_column[row] = \"\";\n\t\t\t\t}\n\t\t\t\tif ( DEBUG) {\n System.out.println(source_id + \"->\" + new_column[row]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t\t/*\n\t\t\t * From here, the problems start.\n\t\t\t * It does NOT properly add a new table column...\n\t\t\t * TODO\n\t\t\t * FIXME\n\t\t\t */\n\t\t\tfinal TableColumn new_tablecolumn = new TableColumn();\n\n\t\t\tnew_tablecolumn.setHeaderValue(new_name);\n\t\t\tpreviewTable.addColumn(new_tablecolumn);\n\t\t\t\n\t\t\tfinal PreviewTableModel pt_model = (PreviewTableModel) previewTable\n\t\t\t\t\t.getModel();\n\t\t\t\n\t\t for (int row = 0; row < new_column.length; ++row) {\n pt_model.setValueAt(new_column[row], row, 1);\n \t// col 1 is just used as test!\n }\n\t\t}\n\n\t}", "public static void editID(char[] types, String typeName) {\n //Get the ID\n String oldID = getExistingID(typeName, types);\n //If it was entered correctly keep going\n if (oldID != null) {\n String[] options = {oldID.substring(0, 1)};\n String[] idInfo = getValidID(typeName, options);\n if (idInfo == null) {\n return;\n }\n String newID = idInfo[0] + idInfo[1];\n //Replace the ID\n inv.replaceID(oldID, newID);\n } else System.out.println(Utilities.INFORMATION_MESSAGE + \"Incorrect ID, nothing was changed.\");\n\n }", "private String replaceStr(String src, String oldPattern, \n String newPattern) {\n\n String dst = \"\"; // the new bult up string based on src\n int i; // index of found token\n int last = 0; // last valid non token string data for concat \n boolean done = false; // determines if we're done.\n\n if (src != null) {\n // while we'er not done, try finding and replacing\n while (!done) {\n // search for the pattern...\n i = src.indexOf(oldPattern, last);\n // if it's not found from our last point in the src string....\n if (i == -1) {\n // we're done.\n done = true;\n // if our last point, happens to be before the end of the string\n if (last < src.length()) {\n // concat the rest of the string to our dst string\n dst = dst.concat(src.substring(last, (src.length())));\n }\n } else {\n // we found the pattern\n if (i != last) {\n // if the pattern's not at the very first char of our searching point....\n // we need to concat the text up to that point..\n dst = dst.concat(src.substring(last, i));\n }\n // update our last var to our current found pattern, plus the lenght of the pattern\n last = i + oldPattern.length();\n // concat the new pattern to the dst string\n dst = dst.concat(newPattern);\n }\n }\n } else {\n dst = src;\n }\n // finally, return the new string\n return dst;\n }", "public static boolean editEntry(String tableName, String newData, int id){\n try{\n File table = new File(tableName+\"Data.csv\");\n Scanner tableReader = new Scanner(table);\n String fileContent = tableReader.nextLine()+\"\\n\";\n boolean lineFound = false;\n while (tableReader.hasNextLine()){\n String currentLine = tableReader.nextLine();\n int lineId = Integer.parseInt(currentLine.split(\",\")[0]);\n if(lineId != id){\n fileContent += currentLine+\"\\n\";\n }else{\n lineFound = true;\n }\n }\n tableReader.close();\n if(lineFound){\n fileContent += id+\",\"+newData+\"\\n\";\n FileWriter tableWriter = new FileWriter(table);\n String[] fileLines = fileContent.split(\"\\n\");\n for(String l : fileLines){\n tableWriter.write(l+\"\\n\");\n }\n tableWriter.close();\n return true;\n }else{\n System.out.println(\"No se encontró una entrada con el id: \"+id);\n return false;\n }\n\n }catch(IOException e){\n e.printStackTrace();\n return false;\n }\n }", "private void replaceToken(String customerId, String token, String tokenToReplace) {\n // TODO replace the token\n }", "private String changeContent(String soapMessage) {\n soapMessage = soapMessage.replaceAll(\"getReportUsedToServerResponse\", \"getReportUsedToClientResponse\");\n System.out.println(\"-------------------------------------------\");\n System.out.println(\"After outgoing message is \" + soapMessage);\n System.out.println(\"-------------------------------------------\");\n return soapMessage;\n }", "protected String handleDataFieldInRow(Component item, Object obj, String row, int index, String originalId) {\r\n if (!(item instanceof DataField)) {\r\n return row;\r\n }\r\n\r\n String currentValue = ObjectPropertyUtils.getPropertyValueAsText(obj, ((DataField) item).getPropertyName());\r\n\r\n if (currentValue == null) {\r\n currentValue = \"\";\r\n }\r\n\r\n //for readOnly DataFields replace the value marked with the value on the current object\r\n row = row.replaceAll(VALUE_TOKEN + originalId + VALUE_TOKEN, currentValue);\r\n currentColumnValue = currentValue;\r\n\r\n Inquiry dataFieldInquiry = ((DataField) item).getInquiry();\r\n if (dataFieldInquiry != null && dataFieldInquiry.getInquiryParameters() != null\r\n && dataFieldInquiry.getInquiryLink() != null) {\r\n\r\n String inquiryLinkId = dataFieldInquiry.getInquiryLink().getId().replace(ID_TOKEN, \"\")\r\n + UifConstants.IdSuffixes.LINE + index;\r\n\r\n // process each Inquiry link parameter by replacing each in the inquiry url with their current value\r\n for (String key : dataFieldInquiry.getInquiryParameters().keySet()) {\r\n String name = dataFieldInquiry.getInquiryParameters().get(key);\r\n\r\n //omit the binding prefix from the key to get the path relative to the current object\r\n key = key.replace(((DataField) item).getBindingInfo().getBindByNamePrefix() + \".\", \"\");\r\n\r\n if (ObjectPropertyUtils.isReadableProperty(obj, key)) {\r\n String value = ObjectPropertyUtils.getPropertyValueAsText(obj, key);\r\n row = row.replaceFirst(\"(\" + inquiryLinkId + \"(.|\\\\s)*?\" + name + \")=.*?([&|\\\"])\",\r\n \"$1=\" + value + \"$3\");\r\n }\r\n }\r\n }\r\n\r\n return row;\r\n }", "public static void replaceAll0(){\n System.out.println(\">>>>>>>>>>>>\");\n String class0 = \"this is an example\";\n String ret0 = class0.replaceAll(\"is\", \"IS\");\n assert(ret0.equals(\"thIS IS an example\"));\n System.out.println(ret0);\n }" ]
[ "0.65134263", "0.6059125", "0.59857637", "0.59440035", "0.5867424", "0.586659", "0.5715201", "0.55728453", "0.5552139", "0.5524138", "0.5511941", "0.53955233", "0.53549355", "0.53487146", "0.5337421", "0.53093785", "0.53032523", "0.52610654", "0.5232069", "0.5215547", "0.5214277", "0.5209197", "0.5202466", "0.51940906", "0.5185932", "0.518111", "0.51804817", "0.517913", "0.51749855", "0.51728994", "0.5167914", "0.51580745", "0.515344", "0.5148443", "0.51356715", "0.5134726", "0.5126242", "0.51106536", "0.507978", "0.50567013", "0.50553405", "0.5026724", "0.502502", "0.5020382", "0.50034845", "0.5003411", "0.5001211", "0.4996289", "0.49897316", "0.49766105", "0.49677002", "0.49649173", "0.49521214", "0.49518728", "0.49341574", "0.49216297", "0.4912612", "0.48994002", "0.4886438", "0.48800933", "0.48656005", "0.48577213", "0.48549953", "0.48492873", "0.48467082", "0.48455662", "0.4839041", "0.48317826", "0.48233303", "0.48190996", "0.48091102", "0.48079908", "0.47809693", "0.47802272", "0.47706836", "0.47678432", "0.47667485", "0.4757711", "0.47576067", "0.47568348", "0.4753064", "0.47507352", "0.4750025", "0.472895", "0.47216523", "0.4703508", "0.46980885", "0.4697231", "0.4697003", "0.46879143", "0.46869576", "0.4676191", "0.46733302", "0.46699974", "0.46623516", "0.46437368", "0.4643571", "0.46422836", "0.46356195", "0.46330994" ]
0.73303795
0
Constructs a new material with diffuse and specular properties.
private Material(float[] diffuse, float[] specular, float shininess) { this.diffuse = diffuse; this.specular = specular; this.shininess = shininess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Material create();", "public Material() {}", "public Material copy()\r\n\t{\r\n\t\tMaterial other = new Material();\r\n\r\n\t\tother.setAmbient(ambient.x, ambient.y, ambient.z);\r\n\t\tother.setDiffuse(diffuse.x, diffuse.y, diffuse.z);\r\n\t\tother.setSpecular(specular.x, specular.y, specular.z);\r\n\r\n\t\tother.setTexture(texture);\r\n\r\n\t\treturn other;\r\n\t}", "void createMaterial(Material material) throws CreateException;", "public static TMaterial createEntity(EntityManager em) {\n TMaterial tMaterial = new TMaterial()\n .qty(DEFAULT_QTY)\n .hargaBeli(DEFAULT_HARGA_BELI)\n .hargaTotal(DEFAULT_HARGA_TOTAL)\n .inout(DEFAULT_INOUT);\n return tMaterial;\n }", "public Shape(String name, Material material) {\n this.name = name;\n this.material = material;\n }", "public void defineRawMaterial(String name,\r\n\t\t\t\t\t\t\t\t\t double calories,\r\n\t\t\t\t\t\t\t\t\t double proteins,\r\n\t\t\t\t\t\t\t\t\t double carbs,\r\n\t\t\t\t\t\t\t\t\t double fat){\r\n\t\trawMats.add(new Material(name,calories,proteins,carbs,fat,true));\r\n\t}", "public interface MaterialCreator {\n\n\t/**\n\t * Creates the material and returns it.\n\t * @return the material\n\t */\n\tpublic Material create();\n\n\t/**\n\t * Sets the material parameters which define the actual appearance of the final material.\n\t * \n\t * @param mp the material parameters\n\t */\n\tpublic void setParameters(MaterialParams mp);\n\t\n}", "public void setAsMaterial(Material mat) throws IOException {\n assert (mat.getMaterialDef().getAssetName() != null);\n setName(\"MyMaterial\");\n setMatDefName(mat.getMaterialDef().getAssetName());\n createBaseMaterialFile();\n materialParameters.clear();\n Collection<MatParam> params = mat.getParams();\n for (Iterator<MatParam> it = params.iterator(); it.hasNext();) {\n MatParam matParam = it.next();\n materialParameters.put(matParam.getName(), new MaterialProperty(matParam));\n }\n additionalRenderStates.put(\"Wireframe\", new MaterialProperty(\"OnOff\", \"Wireframe\", mat.getAdditionalRenderState().isWireframe() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"DepthWrite\", new MaterialProperty(\"OnOff\", \"DepthWrite\", mat.getAdditionalRenderState().isDepthWrite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"DepthTest\", new MaterialProperty(\"OnOff\", \"DepthTest\", mat.getAdditionalRenderState().isDepthTest() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"ColorWrite\", new MaterialProperty(\"OnOff\", \"ColorWrite\", mat.getAdditionalRenderState().isColorWrite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"PointSprite\", new MaterialProperty(\"OnOff\", \"PointSprite\", mat.getAdditionalRenderState().isPointSprite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"FaceCull\", new MaterialProperty(\"FaceCullMode\", \"FaceCull\", mat.getAdditionalRenderState().getFaceCullMode().name()));\n additionalRenderStates.put(\"Blend\", new MaterialProperty(\"BlendMode\", \"Blend\", mat.getAdditionalRenderState().getBlendMode().name()));\n additionalRenderStates.put(\"AlphaTestFalloff\", new MaterialProperty(\"Float\", \"AlphaTestFalloff\", mat.getAdditionalRenderState().getAlphaFallOff() + \"\"));\n additionalRenderStates.put(\"PolyOffset\", new MaterialProperty(\"Float,Float\", \"PolyOffset\", mat.getAdditionalRenderState().getPolyOffsetUnits() + \" \" + mat.getAdditionalRenderState().getPolyOffsetFactor()));\n checkWithMatDef();\n setAsText(getUpdatedContent());\n }", "ExpMaterial createExpMaterial(Container container, Lsid lsid);", "private void initMaterials()\r\n {\r\n get_availableMaterials().add(\r\n new Material( \"Wood\", EnvSettings.WOOD_COLOR, EnvSettings.WOOD_SPECIFIC_HEAT,\r\n EnvSettings.WOOD_TRANSPARENCY, EnvSettings.WOOD_THERMAL_CONDUCTIVITY,\r\n EnvSettings.WOOD_FLAME_POINT, EnvSettings.WOOD_DURABILITY, true, EnvSettings.WOOD_SMOKE_CAPACITY ) );\r\n get_availableMaterials().add(\r\n new Material( \"Air\", Scene3D.setBlue( _worldInitTemp ), EnvSettings.AIR_SPECIFIC_HEAT,\r\n EnvSettings.AIR_TRANSPARENCY, EnvSettings.AIR_THERMAL_CONDUCTIVITY,\r\n EnvSettings.VAPOR_FLAME_POINT, (int)( EnvSettings.INFINITIVE ), false , EnvSettings.AIR_SMOKE_CAPACITY) );\r\n get_availableMaterials().add(\r\n new Material( \"Metal\", EnvSettings.METAL_COLOR, EnvSettings.METAL_SPECIFIC_HEAT,\r\n EnvSettings.METAL_TRANSPARENCY, EnvSettings.METAL_THERMAL_CONDUCTIVITY,\r\n EnvSettings.INFINITIVE, (int)( EnvSettings.INFINITIVE ), false, EnvSettings.METAL_SMOKE_CAPACITY ) );\r\n }", "OurIfcMaterial createOurIfcMaterial();", "public PhongMaterial(final Texture diffuseTexture, final Texture specularTexture, final int exponent) {\n\t\tif (diffuseTexture == null || specularTexture == null) {\n\t\t\tthrow new IllegalArgumentException(\"The parameters must not be null.\");\n\t\t}\n\t\tif (exponent < 0 || Double.MAX_EXPONENT < exponent) {\n\t\t\tthrow new IllegalArgumentException(\"The parameter 'exponent' must be a positive int value below 1024.\");\n\t\t}\n\t\tthis.diffuseTexture = diffuseTexture;\n\t\tthis.specularTexture = specularTexture;\n\t\tthis.exponent = exponent;\n\t}", "public void setMaterial(String material) {\n this.material = material;\n }", "public Material(String nameResource, String locationResource, String descriptionResource, String stateResource,\n\t\t\tfloat volumeResource, int quantityResource, float priceResource,int eventId) {\n\t\tsuper(nameResource, locationResource, descriptionResource, stateResource, volumeResource, quantityResource,\n\t\t\t\tpriceResource, eventId);\n\t\t// TODO Auto-generated constructor stub\n\t}", "public String getMaterial() {\n return material;\n }", "public String getMaterial() {\n return material;\n }", "public void createMaterialUniform(String uniformName) {\n createUniform(uniformName + \".color\");\n createUniform(uniformName + \".hasTexture\");\n createUniform(uniformName + \".reflectance\");\n }", "@Element \n public void setMaterial(String material) {\n this.material = material;\n }", "private void materialSetup(GL gl)\n {\n\tfloat white[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n\tfloat black[] = { 0.0f, 0.0f, 0.0f, 1.0f };\n\tfloat dim[] = { 0.1f, 0.1f, 0.1f, 1.0f };\n\t\n\t// Set up material and light\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT, dim, 0);\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_DIFFUSE, white, 0);\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_SPECULAR, dim, 0);\n\tgl.glMaterialf(GL.GL_FRONT_AND_BACK, GL.GL_SHININESS, 5);\n\n\t// Set light color\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, dim, 0);\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, white, 0);\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_SPECULAR, black, 0);\n\n\t// Turn on light and lighting\n\tgl.glEnable(GL.GL_LIGHT0);\n\tgl.glEnable(GL.GL_LIGHTING);\n\n\t// Allow glColor() to affect current diffuse material\n\tgl.glColorMaterial(GL.GL_FRONT_AND_BACK, GL.GL_DIFFUSE);\n\tgl.glEnable(GL.GL_COLOR_MATERIAL);\n }", "public ItemBuilder setMaterial(Material material) {\r\n\t\tthis.material = material;\r\n\t\treturn this;\r\n\t}", "@NonNull\n public Builder material(@IntRange(from = 0) int index, @NonNull MaterialInstance material) {\n nBuilderMaterial(mNativeBuilder, index, material.getNativeObject());\n return this;\n }", "public void setMaterial(java.lang.String material) {\r\n this.material = material;\r\n }", "public void read() {\n prepareAdditionalStates();\n materialParameters.clear();\n int level = 0;\n boolean params = false;\n boolean states = false;\n try {\n //scan material text\n for (String line : material.asLines()) {\n //trim line incl comments\n line = trimLine(line);\n //find and load matdef file\n if (line.startsWith(\"Material \") || line.startsWith(\"Material\\t\") && level == 0) {\n parseMaterialProperties(line);\n }\n //start parsing material parameters\n if (line.startsWith(\"MaterialParameters \") || line.startsWith(\"MaterialParameters\\t\") || line.startsWith(\"MaterialParameters{\") && level == 1) {\n params = true;\n }\n //start parsing renderstates\n if (line.startsWith(\"AdditionalRenderState \") || line.startsWith(\"AdditionalRenderState\\t\") || line.startsWith(\"AdditionalRenderState{\") && level == 1) {\n states = true;\n }\n //up a level\n if (line.indexOf(\"{\") != -1) {\n level++;\n }\n //down a level, stop processing parameters/states\n if (line.indexOf(\"}\") != -1) {\n level--;\n if (params) {\n params = false;\n }\n if (states) {\n states = false;\n }\n }\n //try reading parameter\n if (level == 2 && params) {\n int colonIdx = line.indexOf(\":\");\n if (colonIdx != -1) {\n String[] lines = line.split(\":\");\n MaterialProperty prop = new MaterialProperty();\n prop.setName(lines[0].trim());\n if (lines.length > 1) {\n prop.setValue(lines[lines.length - 1].trim());\n }\n materialParameters.put(prop.getName(), prop);\n }\n }\n //try reading state\n if (level == 2 && states) {\n String[] lines = null;\n int colonIdx = line.indexOf(\" \");\n if (colonIdx != -1) {\n lines = line.split(\" \");\n }\n colonIdx = line.indexOf(\"\\t\");\n if (colonIdx != -1) {\n lines = line.split(\"\\t\");\n }\n if (lines != null) {\n MaterialProperty prop = new MaterialProperty();\n String name = lines[0].trim();\n prop.setName(name);\n if (additionalRenderStates.get(name) != null) {\n\n prop.setType(additionalRenderStates.get(name).getType());\n if (lines.length > 1) {\n String value = \"\";\n for (int i = 1; i < lines.length; i++) {\n value += \" \" + lines[i];\n }\n prop.setValue(value.trim());\n } \n additionalRenderStates.put(prop.getName(), prop);\n }\n }\n }\n }\n checkWithMatDef();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }", "@Override\n public String toString() {\n return material;\n }", "String getMaterial();", "@Element \n public String getMaterial() {\n return material;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Material [kd=\" + kd + \", ks=\" + ks + \", kr=\" + kr + \", kt=\" + kt + \", nShininess=\" + nShininess + \"]\";\n\t}", "public Material(double _kD, double _kS, int _nShininess) {\n this._kD = _kD;\n this._kS = _kS;\n this._nShininess = _nShininess;\n }", "public java.lang.String getMaterial() {\r\n return material;\r\n }", "public static PhongMaterial makeSpecialMaterial(Image texture) {\n PhongMaterial material = new PhongMaterial();\n material.setDiffuseColor(Color.BLACK);\n material.setSpecularColor(Color.BLACK);\n material.setDiffuseMap(texture);\n material.setSelfIlluminationMap(texture);\n return material;\n }", "public void\nsetSpecularElt( SbColor color )\n//\n{\n this.coinstate.specular.copyFrom(color);\n}", "public static List<Material> parseMTL(File f, Model m)\n\t{\n\t\tList<Material> mats = new ArrayList<Material>();\n\t\tint matNum = -1;\n\n\t\ttry{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\t\t\tMaterial mtl = null;\n\t\t\tString line;\n\n\t\t\twhile((line = reader.readLine())!=null)\n\t\t\t{\t\n\t\t\t\t//Declaring a new material\n\t\t\t\tif(line.startsWith(\"newmtl \"))\n\t\t\t\t{\n\t\t\t\t\t//If this is not the first material,\n\t\t\t\t\t//Add the current material to the mats list\n\t\t\t\t\t//before creating a new one\n\t\t\t\t\tif(mtl != null)\n\t\t\t\t\t\tmats.add(mtl);\n\n\t\t\t\t\t//Make mtl a new material and set name and id\n\t\t\t\t\tmtl = new Material();\n\t\t\t\t\tmtl.name = line.split(\" \")[1];\n\t\t\t\t\tmtl.id = -1;\n\t\t\t\t}\n\t\t\t\t//Specifying ambient color of material\n\t\t\t\telse if(line.startsWith(\"Ka \"))\n\t\t\t\t{\n\t\t\t\t\t//Just split line up and set the ambient\n\t\t\t\t\tmtl.ambient = new Vector3f(\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3])\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t//Specifying diffuse color of material\n\t\t\t\telse if(line.startsWith(\"Kd \"))\n\t\t\t\t{\n\t\t\t\t\tmtl.diffuse = new Vector3f(\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3])\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t//Specifying specular color of material\n\t\t\t\telse if(line.startsWith(\"Ks \"))\n\t\t\t\t{\n\t\t\t\t\tmtl.specular = new Vector3f(\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2]),\n\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3])\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t//Specifying coefficiant of specular color\n\t\t\t\t//TODO add support for specular coefficiants\n\t\t\t\telse if(line.startsWith(\"Ns \"))\n\t\t\t\t{\n\n\t\t\t\t}\n\t\t\t\t//Specifying ambient texture map\n\t\t\t\t//TODO add support for ambient texture map\n\t\t\t\telse if(line.startsWith(\"map_Ka \"))\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\t//Specifying diffuse texture map\n\t\t\t\telse if(line.startsWith(\"map_Kd \"))\n\t\t\t\t{\n\t\t\t\t\tmatNum++;\n\t\t\t\t\t//Set the material's texture to specified texture\n\t\t\t\t\tmtl.texture = MyTextureLoader.getTexture(f.getParentFile() + File.separator + line.split(\" \")[1]);\n\t\t\t\t\tm.textures.add(mtl.texture);\n\t\t\t\t\t//m.texture = mtl.texture;\n\t\t\t\t\tmtl.id = matNum;\n\t\t\t\t}\n\t\t\t\t//Specifying specular texture map\n\t\t\t\t//TODO add support for specular texture map\n\t\t\t\telse if(line.startsWith(\"map_Ks \"))\n\t\t\t\t{\n\n\t\t\t\t}\n\t\t\t\t//Specifying highlight component map\n\t\t\t\t//TODO add support for highlight component map\n\t\t\t\telse if(line.startsWith(\"map_Ns \"))\n\t\t\t\t{\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\tmats.add(mtl);\n\t\t}\n\t\tcatch(FileNotFoundException e){e.printStackTrace();} \n\t\tcatch (IOException e) {e.printStackTrace();}\n\n\t\treturn mats;\n\t}", "public Material getMaterial() {\n\t\treturn material;\n\t}", "@Override\n\tpublic String getMaterial() {\n\t\treturn null;\n\t}", "public void setParameters(MaterialParams mp);", "public CubeMaterial asMaterial() {\n if(mat != null) return mat;\n \n mat = new CubeMaterial();\n mat.setTexture(this);\n return mat;\n }", "public NuevoMaterial() {\n initComponents();\n }", "public ItemSwordAndShield(Item.ToolMaterial mat)\n/* 21: */ {\n/* 22:20 */ super(mat, \"\");\n/* 23:21 */ if (mat == Item.ToolMaterial.IRON) {\n/* 24:22 */ this.isIron = true;\n/* 25: */ } else {\n/* 26:24 */ this.isIron = false;\n/* 27: */ }\n/* 28: */ }", "private void configureMaterials() {\n quadMaterial = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n quadMaterial.setColor(\"Color\", ColorRGBA.Green.clone());\n RenderState ars = quadMaterial.getAdditionalRenderState();\n ars.setWireframe(true);\n }", "public void defineProduct(String name,\r\n\t\t\t\t\t\t\t\t double calories,\r\n\t\t\t\t\t\t\t\t double proteins,\r\n\t\t\t\t\t\t\t\t double carbs,\r\n\t\t\t\t\t\t\t\t double fat){\r\n\t\tproducts.add(new Material(name,calories,proteins,carbs,fat,false));\r\n\t}", "public SceneLight(String name, int light_number, \n\t\t\tColor4f ambient, Color4f diffuse, Color4f specular, \n\t\t\tdouble posx,double posy,double posz,\n\t\t\tdouble directionx,double directiony,double directionz,\n\t\t\tfloat spot_Cutoff,float intensity, \n\t\t\tfloat constant_attenuation_constant,float linear_attenuation_constant,\n\t\t\tfloat quad_attenuation_constant){\n\t\t\n\t\tthis.name=name;\n\t\tthis.light_number=light_number;\n\t\tposition=new Vector3d(posx,posy,posz);\n\t\tdirection=new Vector3d(directionx,directiony,directionz);\n\t\tthis.ambient=ambient;\n\t\tthis.diffuse=diffuse;\n\t\tthis.specular=specular;\n\t\tthis.spot_Cutoff=spot_Cutoff;\n\t\tthis.intensity=intensity;\n\t\tthis.constant_attenuation_constant=constant_attenuation_constant;\n\t\tthis.linear_attenuation_constant=linear_attenuation_constant;\n\t\tthis.quad_attenuation_constant=quad_attenuation_constant;\n\t}", "public void setMaterial(Material mat)\r\n\t{\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, mat.ambient);\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, mat.diffuse);\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, mat.specular);\r\n\t\tgl.glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 0.8F);\r\n\t\tgl.glColor3f(mat.diffuse[0],mat.diffuse[1],mat.diffuse[2]);\r\n\t}", "public java.lang.String getMATERIAL() {\r\n return MATERIAL;\r\n }", "public Building(int yearOfCreation, double cost, double landSpace, String material) {\n super(yearOfCreation, cost);\n this.landSpace = landSpace;\n this.material = material;\n }", "public ConsultaMaterial() {\n initComponents();\n }", "public Builder clearMaterials() {\n materials_ = com.google.protobuf.LazyStringArrayList.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n ;\n onChanged();\n return this;\n }", "public Cylinder (double radius, double length, double thickness, String metalType)\r\n {\r\n this.radius = radius;\r\n this.length = length;\r\n this.thickness = thickness;\r\n this.metalType = metalType;\r\n \r\n \r\n /* Check what kind of metaltype to be used*/\r\n if (metalType.equals(\"iron\"))\r\n {\r\n \tthis.density = IRON;\r\n }//End check iron\r\n if (metalType.equals(\"aluminium\"))\r\n {\r\n \tthis.density = ALUMINIUM;\r\n }//End check aluminium\r\n if (metalType.equals(\"tin\"))\r\n {\r\n \tthis.density = TIN;\r\n }//End check tin\r\n if (metalType.equals(\"copper\"))\r\n {\r\n \tthis.density = COPPER;\r\n }//End copper\r\n }", "public void setMaterialIndex(int index) { materialIndex = index; }", "@Override\r\n\tMaterial get(String material) {\n\t\treturn null;\r\n\t}", "public static GrupoMaterial createEntity(EntityManager em) {\n GrupoMaterial grupoMaterial = new GrupoMaterial();\n grupoMaterial.setDescricao(DEFAULT_DESCRICAO);\n return grupoMaterial;\n }", "Material findMaterial(String name) throws ReadException;", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "public void updateMaterial() {\n this.material = world.getRecipeManager().getFirstMatch(RecipeTypes.MATERIAL, this, world).orElse(null);\n }", "public IfcMaterial getMaterial() {\n return material;\n\n }", "protected final void addSpecular(SoftwareMaterial kMaterial,\r\n SoftwareVertexProperty kVertexProperty,\r\n Vector3f kDirection, float fDdN) {\r\n\r\n Color3f kSpecular = kVertexProperty.getSpecular();\r\n if (null == kSpecular) {\r\n kSpecular = kMaterial.specular;\r\n }\r\n\r\n m_kReflect.scaleAdd( -2.0f * fDdN, m_kNormal, kDirection);\r\n float fRdU = m_kReflect.dot(m_kView);\r\n if (fRdU < 0.0f) {\r\n fRdU = (float) Math.pow( -fRdU, kMaterial.shininess);\r\n float fSpecAmpl = m_fAttenuate * m_fSpot * fRdU; //Correct method ?\r\n //float fSpecAmpl = 2 * kMaterial.shininess * m_fAttenuate * m_fSpot * fRdU;\r\n m_kColor.x += fSpecAmpl * specular.x * kSpecular.x;\r\n m_kColor.y += fSpecAmpl * specular.y * kSpecular.y;\r\n m_kColor.z += fSpecAmpl * specular.z * kSpecular.z;\r\n }\r\n }", "OurIfcMaterialLayerSetUsage createOurIfcMaterialLayerSetUsage();", "public OreStack(String mat)\r\n/* 15: */ {\r\n/* 16:13 */ this.material = mat;\r\n/* 17:14 */ this.quantity = 1;\r\n/* 18: */ }", "public Sphere (final Material material) {\n super(material);\n\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public void setMATERIAL(java.lang.String MATERIAL) {\r\n this.MATERIAL = MATERIAL;\r\n }", "public MaterialData getContents() {\n/* 57 */ switch (getData()) {\n/* */ case 1:\n/* 59 */ return new MaterialData(Material.RED_ROSE);\n/* */ case 2:\n/* 61 */ return new MaterialData(Material.YELLOW_FLOWER);\n/* */ case 3:\n/* 63 */ return new Tree(TreeSpecies.GENERIC);\n/* */ case 4:\n/* 65 */ return new Tree(TreeSpecies.REDWOOD);\n/* */ case 5:\n/* 67 */ return new Tree(TreeSpecies.BIRCH);\n/* */ case 6:\n/* 69 */ return new Tree(TreeSpecies.JUNGLE);\n/* */ case 7:\n/* 71 */ return new MaterialData(Material.RED_MUSHROOM);\n/* */ case 8:\n/* 73 */ return new MaterialData(Material.BROWN_MUSHROOM);\n/* */ case 9:\n/* 75 */ return new MaterialData(Material.CACTUS);\n/* */ case 10:\n/* 77 */ return new MaterialData(Material.DEAD_BUSH);\n/* */ case 11:\n/* 79 */ return new LongGrass(GrassSpecies.FERN_LIKE);\n/* */ } \n/* 81 */ return null;\n/* */ }", "public void ApplyMaterial(TF3D_Material mat)\n\t{\n\t\tif (mat.typ == F3D.MAT_TYPE_TEXTURE)\n\t\t{\n\n\t\t\tthis.ResetMaterial();\n\t\t\t\n\t\t\tif (mat.bAlphaTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_ALPHA_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_ALPHA_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bDepthTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_DEPTH_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_DEPTH_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bFaceCulling)\n\t\t\t{\n\t\t\t\tglEnable(GL_CULL_FACE);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_CULL_FACE);\n\t\t\t}\n\n\t\t\tif (F3D.Config.use_gl_light)\n\t\t\t{\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_AMBIENT, F3D.GetBuffer.Float(mat.colors.ambient));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE, F3D.GetBuffer.Float(mat.colors.diffuse));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_SPECULAR, F3D.GetBuffer.Float(mat.colors.specular));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_EMISSION, F3D.GetBuffer.Float(mat.colors.emissive));\n\t\t\t\tglMaterialf(GL_FRONT, GL_SHININESS, mat.colors.shinisess);\n\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglColor4f(mat.colors.diffuse[0], mat.colors.diffuse[1], mat.colors.diffuse[2], mat.colors.diffuse[3]);\n\t\t\t}\n\n\t\t\tfor (int u = 0; u < F3D.MAX_TMU; u++)\n\t\t\t{\n\t\t\t\tif (mat.texture_unit[u].bEvent)\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.Apply(u, mat.texture_unit[u].event_id);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.ResetEvent(u);\n\t\t\t\t}\n\n\t\t\t\tif (mat.texture_unit[u].bTexture)\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.ActivateLayer(u);\n\t\t\t\t\tF3D.Textures.Bind(mat.texture_unit[u].texture_id);\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.DeactivateLayer(u);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t// SHADER\n\t\tif (mat.typ == F3D.MAT_TYPE_SHADER)\n\t\t{\n\n\t\t\tif (mat.bAlphaTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_ALPHA_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_ALPHA_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bDepthTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_DEPTH_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_DEPTH_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bFaceCulling)\n\t\t\t{\n\t\t\t\tglEnable(GL_CULL_FACE);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_CULL_FACE);\n\t\t\t}\n\n\t\t\t\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_AMBIENT, F3D.GetBuffer.Float(mat.colors.ambient));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE, F3D.GetBuffer.Float(mat.colors.diffuse));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_SPECULAR, F3D.GetBuffer.Float(mat.colors.specular));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_EMISSION, F3D.GetBuffer.Float(mat.colors.emissive));\n\t\t\t\tglMaterialf(GL_FRONT, GL_SHININESS, mat.colors.shinisess);\n\n\t\t\t\n\n\t\t\tif (mat.use_shader)\n\t\t\t{\n\t\t\t\tF3D.Shaders.UseProgram(mat.shader_id);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int u = 0; u < F3D.MAX_TMU; u++)\n\t\t\t{\n\t\t\t\tif (mat.texture_unit[u].bEvent)\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.Apply(u, mat.texture_unit[u].event_id);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.ResetEvent(u);\n\t\t\t\t}\n\n\t\t\t\tif (mat.texture_unit[u].bTexture)\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.ActivateLayer(u);\n\t\t\t\t\tF3D.Textures.Bind(mat.texture_unit[u].texture_id);\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.DeactivateLayer(u);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic Material material() {\n\t\treturn Material.REDSTONE;\r\n\t}", "@Test\n\tpublic static void testConstructorAndGetters() {\n\t\tMetalDTO m = new MetalDTO(1, 2, 3, 4.0, \"Name\", 3.7, 8.4);\n\t\tassertEquals(m.getAtomicMass(), 4.0, 0.01);\n\t\tassertEquals(m.getAtomicNumber(), 2);\n\t\tassertEquals(m.getDissolvedBy(), 3);\n\t\tassertEquals(m.getID(), 1);\n\t\tassertEquals(m.getName(), \"Name\");\n\t\tassertEquals(m.getMoles(), 3.7, 0.01);\n\t\tassertEquals(m.getMolesOfAcidToDissolve(), 8.4, 0.01);\n\t}", "@Override\n\tpublic Material getMaterial() {\n\t\treturn this.m_material;\n\t}", "public static GrupoMaterial createUpdatedEntity(EntityManager em) {\n GrupoMaterial grupoMaterial = new GrupoMaterial();\n grupoMaterial.setDescricao(UPDATED_DESCRICAO);\n return grupoMaterial;\n }", "public void setType(Material type) {\n this.type = type;\n }", "private void parseMaterialProperties(String line) {\n int colonIdx = line.indexOf(\":\");\n //find matdef file\n if (colonIdx != -1) {\n line = line.replaceFirst(\"Material\", \"\");\n line = line.replace(\"{\", \"\");\n String[] lines = line.split(\":\");\n setName(lines[0].trim());\n setMatDefName(lines[1].trim());\n }\n }", "public TelaMaterialReparo() {\n initComponents();\n readJTable();\n }", "public Mountaineering() {\n super(\"Mountaineering\", \"Enchanting Tables are crafted with emeralds instead of diamonds.\");\n\n emeraldEnch = new ShapedRecipe(ENCHANT_TABLE).shape(\" B \", \"EOE\", \"OOO\")\n .setIngredient('B', Material.BOOK)\n .setIngredient('E', Material.EMERALD)\n .setIngredient('O', Material.OBSIDIAN\n );\n\n diamondEnch = new ShapedRecipe(ENCHANT_TABLE).shape(\" B \", \"DOD\", \"OOO\")\n .setIngredient('B', Material.BOOK)\n .setIngredient('D', Material.DIAMOND)\n .setIngredient('O', Material.OBSIDIAN\n );\n }", "public void setMaterial(String material) {\n this.material = material == null ? null : material.trim();\n }", "private static RenderMaterial loadMaterialInner(Identifier idIn) {\n\t\tif (RenderMaterial.MATERIAL_STANDARD.equals(idIn)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tfinal Identifier id = new Identifier(idIn.getNamespace(), \"materials/\" + idIn.getPath() + \".json\");\n\n\t\tRenderMaterial result = null;\n\t\tfinal ResourceManager rm = MinecraftClient.getInstance().getResourceManager();\n\n\t\ttry (Resource res = rm.getResource(id)) {\n\t\t\tresult = MaterialDeserializer.deserialize(readJsonObject(res));\n\t\t} catch (final Exception e) {\n\t\t\t// TODO: make error suppression configurable\n\t\t\tif (CAUGHT.add(idIn)) {\n\t\t\t\tFrex.LOG.info(\"Unable to load render material \" + idIn.toString() + \" due to exception \" + e.toString());\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static Material getMaterial(String name) {\r\n\t\treturn materialMap.get(name);\r\n\t}", "public Room (Float temperature, Float humidity, Float illumination) {\n this.temperature = temperature;\n this.humidity = humidity;\n this.illumination = illumination;\n }", "OurIfcRelAssociatesMaterial createOurIfcRelAssociatesMaterial();", "private void checkWithMatDef() {\n //load matdef\n matDefEntries.clear();\n boolean params = false;\n int level = 0;\n if (matDef != null && matDef.isValid()) {\n try {\n for (String defLine : matDef.asLines()) {\n defLine = trimLine(defLine.trim());\n if (defLine.startsWith(\"MaterialParameters \") || defLine.startsWith(\"MaterialParameters\\t\") || defLine.startsWith(\"MaterialParameters{\") && level == 1) {\n params = true;\n }\n if (defLine.indexOf(\"{\") != -1) {\n level++;\n }\n if (defLine.indexOf(\"}\") != -1) {\n level--;\n if (params) {\n params = false;\n }\n }\n //read variable types\n if (level == 2 && params) {\n for (int i = 0; i < variableTypes.length; i++) {\n String string = variableTypes[i];\n if (defLine.startsWith(string)) {\n String name = trimName(defLine.replaceFirst(string, \"\"));\n matDefEntries.add(name);\n MaterialProperty prop = materialParameters.get(name);\n if (prop == null) {\n prop = new MaterialProperty();\n prop.setName(name);\n prop.setValue(\"\");\n materialParameters.put(prop.getName(), prop);\n }\n prop.setType(string);\n }\n }\n }\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n } else {\n Logger.getLogger(EditableMaterialFile.class.getName()).log(Level.WARNING, \"Could not read MaterialDef!\");\n }\n for (Iterator<Map.Entry<String, MaterialProperty>> it = materialParameters.entrySet().iterator(); it.hasNext();) {\n Map.Entry<String, MaterialProperty> entry = it.next();\n if (!matDefEntries.contains(entry.getKey())) {\n it.remove();\n }\n }\n }", "WorldMaterialMap getMaterialMap();", "public static void addMaterial(String name, Material material) {\r\n\t\tmaterialMap.put(name, material);\r\n\t}", "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}", "public void setContents(MaterialData materialData) {\n/* 91 */ Material mat = materialData.getItemType();\n/* */ \n/* 93 */ if (mat == Material.RED_ROSE) {\n/* 94 */ setData((byte)1);\n/* 95 */ } else if (mat == Material.YELLOW_FLOWER) {\n/* 96 */ setData((byte)2);\n/* 97 */ } else if (mat == Material.RED_MUSHROOM) {\n/* 98 */ setData((byte)7);\n/* 99 */ } else if (mat == Material.BROWN_MUSHROOM) {\n/* 100 */ setData((byte)8);\n/* 101 */ } else if (mat == Material.CACTUS) {\n/* 102 */ setData((byte)9);\n/* 103 */ } else if (mat == Material.DEAD_BUSH) {\n/* 104 */ setData((byte)10);\n/* 105 */ } else if (mat == Material.SAPLING) {\n/* 106 */ TreeSpecies species = ((Tree)materialData).getSpecies();\n/* */ \n/* 108 */ if (species == TreeSpecies.GENERIC) {\n/* 109 */ setData((byte)3);\n/* 110 */ } else if (species == TreeSpecies.REDWOOD) {\n/* 111 */ setData((byte)4);\n/* 112 */ } else if (species == TreeSpecies.BIRCH) {\n/* 113 */ setData((byte)5);\n/* */ } else {\n/* 115 */ setData((byte)6);\n/* */ } \n/* 117 */ } else if (mat == Material.LONG_GRASS) {\n/* 118 */ GrassSpecies species = ((LongGrass)materialData).getSpecies();\n/* */ \n/* 120 */ if (species == GrassSpecies.FERN_LIKE) {\n/* 121 */ setData((byte)11);\n/* */ }\n/* */ } \n/* */ }", "public interface LocalMaterialData\n{\n\n /**\n * Gets the name of this material. If a {@link #toDefaultMaterial()\n * DefaultMaterial is available,} that name is used, otherwise it's up to\n * the mod that provided this block to name it. Block data is appended to\n * the name, separated with a colon, like \"WOOL:2\".\n * \n * @return The name of this material.\n */\n String getName();\n\n /**\n * Same as {@link #getName()}.\n * \n * @return The name of this material.\n */\n @Override\n String toString();\n\n /**\n * Gets the internal block id. At the moment, all of Minecraft's vanilla\n * materials have a static id, but this can change in the future. Mods\n * already have dynamic ids.\n * \n * @return The internal block id.\n */\n int getBlockId();\n\n /**\n * Gets the internal block data. Block data represents things like growth\n * stage and rotation.\n * \n * @return The internal block data.\n */\n byte getBlockData();\n\n /**\n * Gets whether this material is a liquid, like water or lava.\n * \n * @return True if this material is a liquid, false otherwise.\n */\n boolean isLiquid();\n\n /**\n * Gets whether this material is solid. If there is a\n * {@link #toDefaultMaterial() DefaultMaterial available}, this property is\n * defined by {@link DefaultMaterial#isSolid()}. Otherwise, it's up to the\n * mod that provided this block to say whether it's solid or not.\n * \n * @return True if this material is solid, false otherwise.\n */\n boolean isSolid();\n\n /**\n * Gets whether this material is air. This is functionally equivalent to\n * {@code isMaterial(DefaultMaterial.AIR)}, but may yield better\n * performance.\n * @return True if this material is air, false otherwise.\n */\n boolean isAir();\n\n /**\n * Gets the default material belonging to this material. The block data will\n * be lost. If the material is not one of the vanilla Minecraft materials,\n * {@link DefaultMaterial#UNKNOWN_BLOCK} is returned.\n * \n * @return The default material.\n */\n DefaultMaterial toDefaultMaterial();\n\n /**\n * Gets whether snow can fall on this block.\n * \n * @return True if snow can fall on this block, false otherwise.\n */\n boolean canSnowFallOn();\n\n /**\n * Gets whether the block is of the given material. Block data is ignored,\n * as {@link DefaultMaterial} doesn't include block data.\n * \n * @param material\n * The material to check.\n * @return True if this block is of the given material, false otherwise.\n */\n boolean isMaterial(DefaultMaterial material);\n\n /**\n * Gets an instance with the same material as this object, but with the\n * given block data. This instance is not modified.\n *\n * @param newData\n * The new block data.\n * @return An instance with the given block data.\n */\n LocalMaterialData withBlockData(int newData);\n\n /**\n * Gets an instance with the same material as this object, but the default\n * block data of the material. This instance is not modified.\n *\n * @return An instance with the default block data.\n */\n LocalMaterialData withDefaultBlockData();\n\n /**\n * Gets whether this material equals another material. The block data is\n * taken into account.\n * \n * @param other\n * The other material.\n * @return True if the materials are equal, false otherwise.\n */\n @Override\n boolean equals(Object other);\n\n /**\n * Gets the hashCode of the material, based on the block id and block data.\n * The hashCode must be unique, which is possible considering that there are\n * only 4096 * 16 possible materials.\n * \n * @return The unique hashCode.\n */\n @Override\n int hashCode();\n\n /**\n * Gets the hashCode of the material, based on only the block id. No\n * hashCode returned by this method may be the same as any hashCode returned\n * by {@link #hashCode()}.\n * \n * @return The unique hashCode.\n */\n int hashCodeWithoutBlockData();\n\n /**\n * Gets a new material that is rotated 90 degrees. North -> west -> south ->\n * east. If this material cannot be rotated, the material itself is\n * returned.\n * \n * @return The rotated material.\n */\n LocalMaterialData rotate();\n\n /**\n * Gets whether this material falls down when no other block supports this\n * block, like gravel and sand do.\n * @return True if this material can fall, false otherwise.\n */\n boolean canFall();\n\n}", "@Override\n\tpublic FactNonPrintedMaterial create(long factNonPrintedMaterialId) {\n\t\tFactNonPrintedMaterial factNonPrintedMaterial = new FactNonPrintedMaterialImpl();\n\n\t\tfactNonPrintedMaterial.setNew(true);\n\t\tfactNonPrintedMaterial.setPrimaryKey(factNonPrintedMaterialId);\n\n\t\treturn factNonPrintedMaterial;\n\t}", "public void setMaterial(String name, int meta) {\n if(name!=null && Block.blockRegistry.getObject(name)!=null) {\n this.materialName = name;\n this.materialMeta = meta;\n }\n }", "public PreludePlacedMaterials(String alias) {\n\t\tthis(alias, PRELUDE_PLACED_MATERIALS);\n\t}", "public MaterialAdd() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public static PhongMaterial makeSpecialMaterial(Color color) {\n return makeSpecialMaterial(colorImageCacheMap.computeIfAbsent(color, key -> {\n BufferedImage colorImage = new BufferedImage(5, 5, BufferedImage.TYPE_INT_ARGB);\n Graphics2D graphics = colorImage.createGraphics();\n graphics.setColor(new java.awt.Color(toRGB(key)));\n graphics.fillRect(0, 0, colorImage.getWidth(), colorImage.getHeight());\n graphics.dispose();\n return toFXImage(colorImage, true);\n }));\n }", "public String getMaterial () {\r\n return getItemStack().getTypeId()+ \":\" + getItemStack().getDurability(); \r\n\t}", "public Builder addMaterials(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMaterialsIsMutable();\n materials_.add(value);\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "public void setMaterials(List<Material> materials)\n {\n this.materials = materials;\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public Material getType() {\n return type;\n }", "@Test\n public void testDefaultConstructor() throws URISyntaxException\n {\n final GeometryInstance instance = new GeometryInstance(new URI(\"foo\"));\n final MaterialBinding binding = new MaterialBinding(instance);\n assertEquals(0, binding.getParams().size());\n assertNotNull(binding.getCommonTechnique());\n }", "public Material getMaterial(int materialId) {\n\t\treturn null;\n\t}", "public String getEntityType() {\r\n return \"Material\";\r\n }", "protected void initMaterial(Node node) {\n Renderer renderer = DisplaySystem.getDisplaySystem().getRenderer();\n MaterialState nodeMaterial = renderer.createMaterialState();\n nodeMaterial.setAmbient(CONNECTOR_LINE_COLOR);\n nodeMaterial.setDiffuse(CONNECTOR_LINE_COLOR);\n nodeMaterial.setSpecular(new ColorRGBA(0.1f, 0.1f, 0.1f, 1.0f));\n nodeMaterial.setShininess(0.4f);\n node.setRenderState(nodeMaterial);\n }", "protected CylinderShade(String name) {\n\tsuper(name);\n }", "public PreludePlacedMaterials() {\n\t\tthis(\"prelude_placed_materials\", null);\n\t}", "public ManpowerEntity createNewManpower(String mrole, Integer mintnumber, Boolean standard, Long propertyId) {\n return manpowerBeanLocal.addManpower(mrole, mintnumber, standard, propertyId);\r\n }", "public String getUpdatedContent() {\n boolean params = false;\n boolean states = false;\n boolean addedstates = false;\n int level = 0;\n try {\n List<String> matLines = material.asLines();\n StringWriter out = new StringWriter();\n List<String> setValues = new LinkedList<String>();\n List<String> setStates = new LinkedList<String>();\n //goes through the lines of the material file and replaces the values it finds\n for (String line : matLines) {\n String newLine = line;\n line = trimLine(line);\n //write material header\n if (line.startsWith(\"Material \") || line.startsWith(\"Material\\t\") && level == 0) {\n String suffix = \"\";\n if (line.indexOf(\"{\") > -1) {\n suffix = \"{\";\n }\n newLine = \"Material \" + getName() + \" : \" + matDefName + \" \" + suffix;\n }\n //start parameters\n if (line.startsWith(\"MaterialParameters \") || line.startsWith(\"MaterialParameters\\t\") || line.startsWith(\"MaterialParameters{\") && level == 1) {\n params = true;\n }\n //start states\n if (line.startsWith(\"AdditionalRenderState \") || line.startsWith(\"AdditionalRenderState\\t\") || line.startsWith(\"AdditionalRenderState{\") && level == 1) {\n states = true;\n addedstates = true;\n }\n //up a level\n if (line.indexOf(\"{\") != -1) {\n level++;\n }\n //down a level, stop processing states and check if all parameters and states have been written\n if (line.indexOf(\"}\") != -1) {\n level--;\n //find and write parameters we did not replace yet at end of parameters section\n if (params) {\n for (Iterator<Map.Entry<String, MaterialProperty>> it = materialParameters.entrySet().iterator(); it.hasNext();) {\n Map.Entry<String, MaterialProperty> entry = it.next();\n if (!setValues.contains(entry.getKey()) && matDefEntries.contains(entry.getKey())) {\n MaterialProperty prop = entry.getValue();\n if (prop.getValue() != null && prop.getValue().length() > 0) {\n String myLine = \" \" + prop.getName() + \" : \" + prop.getValue() + \"\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n params = false;\n }\n //find and write states we did not replace yet at end of states section\n if (states) {\n for (Iterator<Map.Entry<String, MaterialProperty>> it = additionalRenderStates.entrySet().iterator(); it.hasNext();) {\n Map.Entry<String, MaterialProperty> entry = it.next();\n if (!setStates.contains(entry.getKey())) {\n MaterialProperty prop = entry.getValue();\n if (prop.getValue() != null && prop.getValue().length() > 0) {\n String myLine = \" \" + prop.getName() + \" \" + prop.getValue() + \"\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n states = false;\n }\n //add renderstates if they havent been in the file yet\n if (level == 0) {\n if (!addedstates) {\n String myLine = \" AdditionalRenderState {\\n\";\n out.write(myLine, 0, myLine.length());\n for (Iterator<Map.Entry<String, MaterialProperty>> it = additionalRenderStates.entrySet().iterator(); it.hasNext();) {\n Map.Entry<String, MaterialProperty> entry = it.next();\n if (!setStates.contains(entry.getKey())) {\n MaterialProperty prop = entry.getValue();\n if (prop.getValue() != null && prop.getValue().length() > 0) {\n myLine = \" \" + prop.getName() + \" \" + prop.getValue() + \"\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n myLine = \" }\\n\";\n out.write(myLine, 0, myLine.length());\n }\n }\n }\n //try replacing value of parameter line with new value\n if (level == 2 && params) {\n int colonIdx = newLine.indexOf(\":\");\n if (colonIdx != -1) {\n String[] lines = newLine.split(\":\");\n String myName = lines[0].trim();\n if (materialParameters.containsKey(myName)) {\n setValues.add(myName);\n MaterialProperty prop = materialParameters.get(myName);\n if (prop.getValue() != null && prop.getValue().length() > 0 && prop.getType() != null) {\n newLine = lines[0] + \": \" + prop.getValue();\n } else {\n newLine = null;\n }\n } else if (!matDefEntries.contains(myName)) {\n newLine = null;\n }\n }\n }\n //try replacing value of state line with new value\n if (level == 2 && states) {\n String cutLine = newLine.trim();\n String[] lines = null;\n int colonIdx = cutLine.indexOf(\" \");\n if (colonIdx != -1) {\n lines = cutLine.split(\" \");\n }\n colonIdx = cutLine.indexOf(\"\\t\");\n if (colonIdx != -1) {\n lines = cutLine.split(\"\\t\");\n }\n if (lines != null) {\n String myName = lines[0].trim();\n if (additionalRenderStates.containsKey(myName)) {\n setStates.add(myName);\n MaterialProperty prop = additionalRenderStates.get(myName);\n if (prop.getValue() != null && prop.getValue().length() > 0 && prop.getType() != null) {\n newLine = \" \" + lines[0] + \" \" + prop.getValue();\n } else {\n newLine = null;\n }\n }\n }\n }\n if (newLine != null) {\n out.write(newLine + \"\\n\", 0, newLine.length() + 1);\n }\n }\n out.close();\n return out.toString();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n return \"\";\n }" ]
[ "0.7457223", "0.713478", "0.69869536", "0.66696143", "0.6493754", "0.6382235", "0.63618886", "0.62421805", "0.6193584", "0.6138117", "0.60870147", "0.6060037", "0.60379016", "0.60137993", "0.60004157", "0.59626085", "0.59626085", "0.592764", "0.5918768", "0.58647394", "0.58506864", "0.5837598", "0.5823578", "0.58126533", "0.5788354", "0.57850695", "0.57555", "0.571582", "0.5683659", "0.5677744", "0.56681794", "0.5664924", "0.5650579", "0.5625027", "0.5613476", "0.5579541", "0.55741155", "0.5555623", "0.5545389", "0.5542636", "0.55107164", "0.54990286", "0.5496513", "0.54919845", "0.5486974", "0.54643124", "0.5436014", "0.5421351", "0.53857005", "0.53784055", "0.5371755", "0.53705466", "0.53579533", "0.53577924", "0.5353614", "0.5345081", "0.53363013", "0.5324334", "0.53184766", "0.5310352", "0.53100586", "0.53081745", "0.53017324", "0.5292706", "0.52725315", "0.52623063", "0.5245596", "0.5243631", "0.5226473", "0.52232844", "0.52139693", "0.519065", "0.518795", "0.5158126", "0.5150609", "0.51432604", "0.51235193", "0.5122518", "0.51109445", "0.5110398", "0.5107014", "0.51029587", "0.51012105", "0.5096096", "0.50943816", "0.5092404", "0.5087949", "0.5073413", "0.50627416", "0.50611204", "0.50593704", "0.50575626", "0.5053119", "0.50506175", "0.50474757", "0.5040115", "0.50278246", "0.50035155", "0.50022554" ]
0.8104131
1
/ Startup stuff here.
@PostConstruct public void init() { System.out.println("\n \n \n \n \n \n \n"); System.out.println("I AM THE SERVER STARTING BE WAARE :::::::"); System.out.println("\n \n \n \n \n \n \n"); boolean updateMatches = true; if (updateMatches) { System.out.println("Updating local database..."); try { System.out.println("====================================="); String authTokenRaw = requestToornamentAuthToken(); String requestURL = "https://api.toornament.com/v1/tournaments" + "?name=" + URLEncoder.encode(tournamentName, "UTF-8"); String tournamentInfoRaw = getTournamentInfo(authTokenRaw, requestURL); String matchesRaw = getTournamentMatches(authTokenRaw, tournamentInfoRaw); insertTournamentMatchesToDB(matchesRaw); } catch (JSONException | MalformedJsonException | JsonSyntaxException | UnsupportedEncodingException ex) { Logger.getLogger(SocketServer.class.getName()).log(Level.SEVERE, null, ex); ex.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startup();", "void startup();", "public void startup(){}", "public abstract void startup();", "@Override\n public void startup() {\n }", "public void startup() {\n\t\tstart();\n }", "public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }", "public void doMyStartupStuff() {\n System.out.println(\"init method\");\n }", "public void doMyStartupStuff() {\r\n\t\tSystem.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n\t}", "public void startup()\n\t{\n\t\t; // do nothing\n\t}", "private void start() {\n\n\t}", "@Override\n protected void startUp() {\n }", "public StartupHandler(){\r\n\t\tloadGameFiles();\r\n\t\tnew Engine();\r\n\t}", "public void startUp() {\n\t\t/* Language of App */\n\t\t\n\t\t/* Init Icons */\n\t\tPaintShop.initIcons(display);\n\t\t/* Init all components */\n\t\tinitComponents();\n\t\t\n\t\t\n\t}", "@PostConstruct // bcoz of java 9 and higher version i need to download jar file\r\n\tpublic void doMyStartupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStrtupStuff()\");\r\n\t}", "@Override\n\tpublic void earlyStartup() {\n\t}", "public void startApp()\r\n\t{\n\t}", "public void startup() {\n neutral();\n }", "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "public void doMyStartupStuff(){\r\n System.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n }", "private void initializeStartup()\n {\n /* Turn off Limelight LED when first started up so it doesn't blind drive team. */\n m_limelight.turnOffLED();\n\n /* Start ultrasonics. */\n m_chamber.startUltrasonics();\n }", "private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }", "public void start() {}", "public void start() {}", "void launch();", "void launch();", "void launch();", "public void start() {\n\t\t\n\t}", "public void start() {\n\t\t\n\t}", "public void starting();", "private void initialize() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Starting Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // start\n try {\n\t\t\t\tBootstrap.main(commandLineArgs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }", "@PostConstruct\n\tpublic void doMyStartupStfff() {\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStartupStuff\");\n\t}", "public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }", "protected void start() {\n }", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "@Override\n protected void appStart() {\n }", "private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }", "public void start() {\n\n\t}", "@Override\n public void run() {\n startup();\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "void start() {\n }", "private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}", "public static void main(String[] args) {\n Startup.main(args);\n }", "public MainEntryPoint() {\r\n\r\n }", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "public void start() {\n }", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "public void initialize() {\n\n getStartUp();\n }", "void start ();", "public void start() {\n\n }", "public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}", "public static void main(String[] args) {\n init();\n\n }", "public void start()\n {\n uploadDataFromFile();\n menu.home();\n home();\n }", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "private void startSkeletons() {\n if (this.skeletons_started) return;\n\n this.add_registration_api();\n this.registration_skeleton.start();\n this.add_service_api();\n this.service_skeleton.start();\n\n this.skeletons_started = true;\n }", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "public void start()\n {}", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n startupTime = DateUtil.getCurrentTimeSeconds();\n\n try {\n LoggingConfiguration.checkLoggingConfig();\n\n ServerConfiguration.load(\"server.ini\");\n GameConfiguration.load(\"game.ini\");\n\n log = LoggerFactory.getLogger(Kepler.class);\n ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED);\n\n // TODO: The \"Standard\" ASCII from\n // http://patorjk.com/software/taag/#p=display&f=Standard&t=Kepler\n // On a grey background with white ASCII text\n // ASCII logo on the left side, contributors and other credits/info on the right side\n // TODO: also a way to disable the fancy headers, as in production it would only fill the logs\n log.info(\"Kepler - Habbo Hotel V21 Emulation\");\n\n if (!Storage.connect()) {\n return;\n }\n\n log.info(\"Setting up game\");\n\n WalkwaysManager.getInstance();\n ItemManager.getInstance();\n CatalogueManager.getInstance();\n RoomModelManager.getInstance();\n RoomManager.getInstance();\n PlayerManager.getInstance();\n FuserightsManager.getInstance();\n NavigatorManager.getInstance();\n GameScheduler.getInstance();\n CommandManager.getInstance();\n MessageHandler.getInstance();\n TextsManager.getInstance();\n\n // Get the server variables for the socket to listen on\n serverIP = ServerConfiguration.getString(\"server.bind\");\n serverPort = ServerConfiguration.getInteger(\"server.port\");\n\n // Get an InetAddressValidator\n InetAddressValidator validator = InetAddressValidator.getInstance();\n\n // Validate an IPv4 or IPv6 address\n if (!validator.isValid(serverIP)) {\n log.error(\"%s is not a valid IP\", serverIP);\n return;\n }\n\n // getByName parses IPv6, IPv4 and DNS all in one go\n serverIP = InetAddress.getByName(serverIP).getHostAddress();\n\n // Create the server instance\n // TODO: listen on both IPv4 and IPv6 if serverIP is 0.0.0.0 or localhost\n server = new NettyServer(serverIP, serverPort);\n server.createSocket();\n server.bind();\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> dispose()));\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }", "public static void main(String[] args) {\n DatabaseController.login();\r\n\r\n //Log in to email\r\n Email.login();\r\n\r\n //Update local database - in real deployment this would run twice per day, not every startup\r\n SyncMain.main(new String[]{});\r\n\r\n //Load cached data\r\n CSVController.loadFiles();\r\n\r\n //Start GUI\r\n launch(args);\r\n\r\n }", "public void start()\n {\n }", "@Override\n\tpublic void start() {\n\t}", "@Override\n\tpublic void start() {\n\t}", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "public void start(){\n }", "@Override\n\tpublic void start() {\n\n\t}", "private static void startup( String path )\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tStandardizerServerSettings.initializeSettings();\r\n\r\n\t\t\tStandardizerServerConfig.read( path );\r\n\r\n\t\t\tStandardizerServerLogger.initialize();\r\n\r\n\t\t\tStandardizerServerSessionImpl.initialize();\r\n\r\n\t\t\tStandardizerServerBootstrap bootstrap =\r\n\t\t\t\tnew StandardizerServerBootstrapImpl();\r\n\r\n\t\t\tRegistry registry =\r\n\t\t\t\tLocateRegistry.createRegistry\r\n\t\t\t\t(\r\n\t\t\t\t\tStandardizerServerConfig.getRmiRegistryPort()\r\n\t\t\t\t);\r\n\r\n\t\t\tregistry.rebind( \"SpellingStandardizer\" , bootstrap );\r\n\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Standardizerserverstarted\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Standardizerserverstartupfailure\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tSystem.exit( 1 );\r\n\t\t}\r\n\t}", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();" ]
[ "0.8057985", "0.8057985", "0.79921347", "0.79692066", "0.77106047", "0.7648241", "0.73378164", "0.7054671", "0.70492816", "0.70171714", "0.6976069", "0.69599503", "0.6923899", "0.691363", "0.6887366", "0.68403804", "0.6809404", "0.67727226", "0.67542756", "0.675107", "0.6751066", "0.6704786", "0.66937214", "0.66937214", "0.66435957", "0.66435957", "0.66435957", "0.66234946", "0.66234946", "0.6577422", "0.6564076", "0.6562517", "0.6548323", "0.6544237", "0.65392476", "0.65380394", "0.65374863", "0.6524188", "0.6508475", "0.64489126", "0.64489126", "0.64489126", "0.64291507", "0.64084065", "0.6392278", "0.6381919", "0.6371962", "0.6371962", "0.6371962", "0.6371962", "0.6353345", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6339558", "0.6329237", "0.6321095", "0.63197917", "0.6319577", "0.630866", "0.6292646", "0.6291623", "0.62878484", "0.6274941", "0.62742496", "0.6272284", "0.62679595", "0.62596667", "0.62422633", "0.62368953", "0.6233438", "0.6233438", "0.62305397", "0.62305397", "0.62305397", "0.6229261", "0.62244254", "0.6209658", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647", "0.6208647" ]
0.0
-1
cant deal with null information >>>>>
public void insertTournamentMatchesToDB(String res) throws JSONException { Matches match = new Matches(); System.out.println("calling from socketServer ..."); //convert res json Array JSONArray jsonArray = new JSONArray(res); //iterate JSONobj in the array inserting the to DB.. for (int i = 0; i < jsonArray.length(); i++) { //System.out.println("from for loop the OBJECT"); JsonParser parser = new JsonParser(); JsonElement json = parser.parse(jsonArray.get(i).toString()); JsonObject object = json.getAsJsonObject(); object.toString(); match.setId(object.get("id").getAsString()); match.setType(object.get("type").getAsString()); match.setDiscipline(object.get("discipline").getAsString()); match.setStatus(object.get("status").getAsString()); match.setTournamentId(object.get("tournament_id").getAsString()); match.setNumber(object.get("number").getAsInt()); match.setStageNumber(object.get("stage_number").getAsInt()); match.setGroupNumber(object.get("group_number").getAsInt()); match.setRoundNumber(object.get("round_number").getAsInt()); match.setTimezone("FI"); match.setMatchFormat("knockout"); match.setOpponents(object.get("opponents").toString()); dbs.insert(match); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void flagNull() {\n\t\t\n\t}", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "public boolean canProcessNull() {\n return false;\n }", "public String method_211() {\r\n return null;\r\n }", "@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}", "void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }", "@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}", "public void visitACONST_NULL(ACONST_NULL o){\n\t\t// Nothing needs to be done here.\n\t}", "private static String null2unknown(String in) {\r\n\t\tif (in == null || in.length() == 0) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn in;\r\n\t\t}\r\n\t}", "private void serializeNull(final StringBuffer buffer)\n {\n buffer.append(\"N;\");\n }", "private String parseNull () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n char chr=next();//get next character\r\n assert chr=='n';//assert correct first character\r\n skip(3);//skip to end of null token\r\n \r\n return \"null\";//return string representation of null\r\n \r\n }", "@Override\n public void setNull() {\n\n }", "private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}", "public class_1562 method_207() {\r\n return null;\r\n }", "protected Object calcRightNullRow()\n {\n return null;\n }", "private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n }\r\n }", "void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }", "@Test\n void nullTest() {\n assertNull(sFloat1.toScrabbleInt());\n assertNull(sFloat1.and(sFloat2));\n assertNull(sFloat1.or(sFloat2));\n assertNull(sFloat1.toScrabbleBool());\n assertNull(sFloat1.toScrabbleBinary());\n assertNull(sFloat1.addToString(new ScrabbleString(\"Hello World\")));\n }", "@Override\n\tprotected Serializable parseDataCursor(Cursor cursor) {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }", "private static void checkForNullKey(String key) {\n if ( key == null ) {\n throw new NullPointerException();\n }\n }", "@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}", "@Override\n\tpublic boolean getIncludesNull() {\n\t\treturn false;\n\t}", "@Override\n public String getData()\n {\n return null;\n }", "@Override\n\tprotected Object doGetValue(Object source) {\n\t\treturn null;\n\t}", "@Override\n public boolean isNull(){\n return (this.nativeHandle == 0L); \n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.renderValue((Object) null);\n assertEquals(\"null\", string0);\n }", "@Override\n\tpublic Object visit(SimpleNode node, Object data) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "@Override\n public String visit(MemberValuePair n, Object arg) {\n return null;\n }", "public void checkRep() {\n\t\tif (parent == null || child == null || l == null) {\n\t\t\tthrow new RuntimeException(\"Edge values can never be null.\");\n\t\t}\n\t}", "@Test\n\tvoid testCheckNulls4() {\n\t\tObject[] o = {2,5f,\"Test\",Duration.ZERO,new Station(0,0,\"Test\")};\n\t\tassertFalse(DataChecker.checkNulls(o));\n\t}", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "private boolean m16125a(Object obj) {\n return obj == null || obj.toString().equals(\"\") || obj.toString().trim().equals(\"null\");\n }", "private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}", "private void writeNullCommitMetaData() {\n writer.println(\"commit_NULL:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"author:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"modified:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"removed:\");\n }", "@Override\r\n\tpublic Value interpret() {\n\t\treturn null;\r\n\t}", "public void testNormalPutNullValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkPutNullValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}", "@Test(timeout = 4000)\n public void test069() 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 }", "@Test\n\tvoid testCheckNulls2() {\n\t\tObject[] o = {2,5f,\"Test\",null,\"Test2\"};\n\t\tassertTrue(DataChecker.checkNulls(o));\n\t}", "protected Sampler nextIsNull() throws NextIsNullException {\n reInitialize();\n return null;\n }", "private void checkNull(T x) throws NullPointerException\n\t{\n\t\tif (x == null)\n\t\t{\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "@Test\n\tpublic void takingNullWayTest()\n\t{\n\t\ttry\n\t\t{\n\t\t\tOsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter(new MapObjectsIdFinderFake());\n\t\t\tconverter.takeWay(null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException ex)\n\t\t{\n\t\t\t// ok\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test368() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.map((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n\tvoid testCheckNull3() {\n\t\tassertTrue(DataChecker.checkNull((Object)null));\n\t}", "@Override\n public String visit(UnknownType n, Object arg) {\n return null;\n }", "public ChatUserInfo method_212(String var1) {\r\n return null;\r\n }", "@Override\n public String visit(EmptyStmt n, Object arg) {\n return null;\n }", "private void putOwnerAndNull() {\n\n visitInsn(DUP2_X1);\n\n //Stack = valueHigh, valueLow, owner, valueHigh, valueLow\n\n visitInsn(POP2);\n\n //Stack = valueHigh, valueLow, owner\n\n visitInsn(DUP_X2);\n\n //Stack = owner, valueHigh, valueLow, owner\n\n visitInsn(Opcodes.ACONST_NULL);\n }", "@Test\n void nullProblem() {\n var x = (Void) null;\n var z = (String) null;\n System.out.println(x + \", \" + z);\n }", "@Override\n\tpublic String display() {\n\t\treturn \"null\";\n\t}", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "private Retorno( )\r\n {\r\n val = null;\r\n izq = null;\r\n der = null;\r\n\r\n }", "boolean getActiveNull();", "@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }", "boolean checkNull();", "@Test(enabled = true, dependsOnMethods = {\"remove\"}, expectedExceptions = NullPointerException.class)\n\tpublic void getNullOnNull() {\n\t\tassert stack.getLast().getNext() == node5;\n\t}", "public String limpiar()\r\n/* 509: */ {\r\n/* 510:529 */ return null;\r\n/* 511: */ }", "private void assertNullHandling(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLMessageArgument)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((Object)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLSymbol)null));\r\n\t}", "public void testObtenerPalabrasClave() {\n \tString prueba = null; \n \t\tassertNull(prueba);\n }", "public String toString() {\n/* 106 */ return \"m= \" + this.b + \", n= \" + this.a + \", skipMSBP= \" + this.c + \", data.length= \" + ((this.d != null) ? (\"\" + this.d.length) : \"(null)\");\n/* */ }", "@Override\n public String visit(VoidType n, Object arg) {\n return null;\n }", "public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n String string0 = JSONObject.valueToString((Object) null);\n assertEquals(\"null\", string0);\n }", "@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion4(){\n MonetaryConversions.getConversion((String)null, ConversionContext.of());\n }", "@Override\n public S trySplit(){\n return null;\n }", "@Override\n public String visit(UnparsableStmt n, Object arg) {\n return null;\n }", "private static void checkForNullValue(String value) {\n if ( value == null ) {\n throw new NullPointerException();\n }\n }", "@Test(timeout = 4000)\n public void test014() throws Throwable {\n String string0 = JSONObject.valueToString((Object) null, (-732), (-732));\n assertEquals(\"null\", string0);\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.putOpt((String) null, (Object) null);\n Object object0 = JSONObject.NULL;\n assertNotNull(object0);\n }", "@Test\n\tpublic void takingNullNodeTest()\n\t{\n\t\ttry\n\t\t{\n\t\t\tOsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter(new MapObjectsIdFinderFake());\n\t\t\tconverter.takeNode(null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException ex)\n\t\t{\n\t\t\t// ok\n\t\t}\n\t}", "@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion2(){\n MonetaryConversions.getConversion((String)null);\n }", "public void nullstill();", "public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}", "@Test public void nullCoorinate(){\n body.setBodyCoordinate(null);\n assertEquals(\"testing to see if its empty\", body.getBodyCoordinate(), null);\n }", "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "private String getNullValueText() {\n return getNull();\n }", "@Override\n public String visit(UnionType n, Object arg) {\n return null;\n }", "protected abstract Object convertNonNull(Object o);", "@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }", "@Test(expected = NullPointerException.class)\n public void formatBytesNullInputsTest() {\n Long longObject = null;\n Format.formatBytes(longObject);\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[3];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, (String) null, false, stringArray0);\n String string0 = SQLUtil.ownerDotComponent(dBUniqueConstraint0);\n assertEquals(\"null.null\", string0);\n }", "public Parcelable mo5381n() {\n throw null;\n }", "public String visit(SpilledArg n, Object argu)\r\n\t {\r\n\t\t return null;\r\n\t }", "public void mo5385r() {\n throw null;\n }", "private final void m29255a(zzazo zzazo) {\n if (zzazo != null) {\n this.zzdps = zzazo;\n return;\n }\n throw new NullPointerException();\n }", "public Unsafe method_4123() {\n return null;\n }", "@Impure\n public abstract void encodeNull(int typeCode) throws DatabaseException;", "private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }", "private void setNulls() {\n mEnum = null;\n mString = null;\n mCharSequence = null;\n //mBoolean = true;\n mBoolByte = BooleanDataType.NULL;\n mChar = CharDataType.NULL;\n mDateTime = DateTimeDataType.NULL;\n mTimeOfDay = TimeOfDayDataType.NULL;\n\n mByte = IntegerDataType.INT8_NULL;\n mShort = IntegerDataType.INT16_NULL;\n mInt = IntegerDataType.INT32_NULL;\n mInt48 = IntegerDataType.INT48_NULL;\n mLong = IntegerDataType.INT64_NULL;\n mFloat = FloatDataType.IEEE32_NULL;\n mDouble = FloatDataType.IEEE64_NULL;\n //mDouble2 = FloatDataType.IEEE64_NULL;\n mPUINT30 = IntegerDataType.PUINT30_NULL;\n mPUINT61 = IntegerDataType.PUINT61_NULL;\n mPIneterval = IntegerDataType.PINTERVAL_NULL;\n mSCALE_AUTO = FloatDataType.DECIMAL_NULL;\n mSCALE4 = FloatDataType.DECIMAL_NULL;\n }", "public void testSun13AccuracyNull_Shallow() throws Exception {\n assertEquals(\"null memory size not correct\", 4,\n test.getShallowMemoryUsage(null).getUsedMemory());\n }", "default V getOrThrow() {\n return getOrThrow(\"null\");\n }", "@Test(timeout = 4000)\n public void test323() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.base((CharSequence) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void test101() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try {\n Component component0 = xmlEntityRef0.cite((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n String string0 = SQLUtil.typeAndName((DBObject) null);\n assertNull(string0);\n }", "@Override\n public String visit(IntersectionType n, Object arg) {\n return null;\n }", "public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}" ]
[ "0.6618551", "0.65335256", "0.63450074", "0.6320838", "0.6245618", "0.624162", "0.6219781", "0.6211434", "0.6193198", "0.6184322", "0.61086404", "0.6074246", "0.6052251", "0.605182", "0.60211766", "0.5998598", "0.5965311", "0.59550196", "0.5953172", "0.5931801", "0.5892389", "0.589007", "0.5888039", "0.58776206", "0.5876871", "0.5876494", "0.58531165", "0.5847576", "0.58473355", "0.5836645", "0.58346653", "0.5832245", "0.5828623", "0.5828461", "0.5826692", "0.58248544", "0.58111626", "0.5809421", "0.57978284", "0.5797369", "0.57801455", "0.5775704", "0.57594854", "0.5754648", "0.5748559", "0.5734778", "0.5729042", "0.57289743", "0.57272625", "0.5725371", "0.5723317", "0.5722562", "0.57179344", "0.57116586", "0.57046247", "0.57013214", "0.5699429", "0.56979734", "0.56893283", "0.56830907", "0.5677296", "0.566855", "0.56638765", "0.5652076", "0.5648473", "0.5646349", "0.56450725", "0.56397206", "0.5639382", "0.56375337", "0.5636714", "0.56312037", "0.5625494", "0.5621252", "0.56196046", "0.56189996", "0.5611901", "0.560906", "0.56060624", "0.5605953", "0.5604633", "0.5604102", "0.56002605", "0.55776346", "0.5573366", "0.55710036", "0.5567011", "0.5566938", "0.55643654", "0.55639696", "0.5556557", "0.5555249", "0.555261", "0.55472296", "0.55420095", "0.55416834", "0.5540218", "0.5539445", "0.5536303", "0.55341285", "0.55337554" ]
0.0
-1
Mainmethode, die lediglich ein GamePanel generiert
public static void main(String[] args){ new GamePanel(790,630); //Sonst grauer Streifen an den Rändern rechts und unten }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createMainGame() {\n\t\tpanelIntro.setVisible(false);\n\t\tintroButtonPanel.setVisible(false);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\t\n\t\tcon.add(panelMain);\n\t\t\n\t\tplayerPanel = new JPanel();\n\t\tplayerPanel.setBounds(50, 25, 924, 50);\n\t\tplayerPanel.setBackground(Color.DARK_GRAY);\n\t\tplayerPanel.setLayout(new GridLayout(1,4));\n\t\tpanelMain.add(playerPanel);\n\t\tcon.add(playerPanel);\n\t\t\n\t\tenergyLabel = new JLabel(\" Energie: \");\n\t\tenergyLabel.setFont(playerInfo);\n\t\tenergyLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabel);\n\t\t\n\t\tenergyLabelNumber = new JLabel();\n\t\tenergyLabelNumber.setFont(playerInfo);\n\t\tenergyLabelNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabelNumber);\n\t\t\n\t\tdoubtLevelLabel = new JLabel(\"Misstrauen: \");\n\t\tdoubtLevelLabel.setFont(playerInfo);\n\t\tdoubtLevelLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(doubtLevelLabel);\n\t\t\n\t\tdLLNumber = new JLabel();\n\t\tdLLNumber.setFont(playerInfo);\n\t\tdLLNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(dLLNumber);\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\t\n\t\tbirdText = new JTextArea();\n\t\tbirdText.setBackground(Color.BLACK);\n\t\tbirdText.setFont(dialogueText);\n\t\tbirdText.setForeground(Color.white);\n\t\tbirdText.setLineWrap(true);\n\t\tbirdText.setWrapStyleWord(true);\n\t\tbirdText.setBounds(354, 200, 250, 150);\n\t\tbirdText.setVisible(false);\n\t\tcon.add(birdText);\n\t\t\n\t\tbirdPanel = new JPanel();\n\t\tbirdPanel.setBounds(354, 387, 60, 82);\n\t\tbirdPanel.setBackground(Color.BLACK);\n\t\tbirdPanel.addMouseListener(new birdListener());\n\t\ttry {\n\t\t\tBufferedImage birdPicture = ImageIO.read(new File(\".//res//bird_kleiner.jpg\"));\n\t\t\tJLabel birdLabel = new JLabel(new ImageIcon(birdPicture));\n\t\t\tbirdPanel.add(birdLabel);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcon.add(birdPanel);\n\t\t\n\t\thereComesTheText = new JTextArea();\n\t\thereComesTheText.setBounds(55, 100, 285, 370);\n\t\thereComesTheText.setBackground(Color.BLACK);\n\t\thereComesTheText.setForeground(Color.LIGHT_GRAY);\n\t\thereComesTheText.setFont(dialogueText);\n\t\thereComesTheText.setLineWrap(true);\n\t\thereComesTheText.setWrapStyleWord(true);\n\t\tpanelMain.add(hereComesTheText);\n\t\tcon.add(hereComesTheText);\n\t\t\n\t\timagePanel.setBounds(427, 95, 546, 375);\n\t\timagePanel.setBackground(Color.black);\n\t\tpanelMain.add(imagePanel);\n\t\tcon.add(panelMain);\n\t\t\n\t\timagePanel.add(imageLabel);\n\t\t\n\t\tcon.add(imagePanel);\n\t\t\n\t\tpanelButtons = new JPanel();\n\t\tpanelButtons.setBounds(50, 510, 924, 200);\n\t\tpanelButtons.setBackground(Color.black);\n\t\tpanelButtons.setLayout(new GridLayout(2, 2));\n\t\tcon.add(panelButtons);\n\t\t\n\t\tfor(int i=1; i<5; i++) {\n\t\t\tbuttons.get(i).setBackground(Color.black);\n\t\t\tbuttons.get(i).setForeground(Color.LIGHT_GRAY);\n\t\t\tbuttons.get(i).setFont(runningText);\n\t\t\tbuttons.get(i).setFocusPainted(false);\n\t\t\tpanelButtons.add(buttons.get(i));\n\t\t}\n\t}", "public Game() {\n super(\"Project 6 Game\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n gamePanel = new GamePanel();\n setContentPane(gamePanel);\n pack();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "private void createUIComponents() {\n JFrame frame = new JFrame(\"labyrinth\");\n myFrame = frame;\n //myLayout = new CardLayout();\n mainPanel = new JPanel(new CardLayout());\n\n\n menuPanel = new JPanel();\n startGamePanel = new JPanel();\n optionsPanel = new JPanel();\n helpPanel = new JPanel();\n generatorPanel = new JPanel();\n simpleGamePanel = new JPanel();\n classicGamePanel = new JPanel();\n\n\n //mainPanel.add(menuPanel,\"menu\");\n //mainPanel.add(startGamePanel,\"startgame\");\n //mainPanel.add(optionsPanel,\"options\");\n //mainPanel.add(generatorPanel,\"generate\");\n //mainPanel.add(simpleGamePanel,\"game\");\n\n //simpleGameMapPanel = new MapPanel(myFrame, mainPanel);\n simpleGameMapPanel = new SimpleGamePanel(myFrame, simpleGamePanel);\n classicGameMapPanel = new ClassicGamePanel(myFrame, classicGamePanel);\n generateMapPanel = new MapPanel(myFrame, generateMapPanel);\n\n\n\n classicGameMapPanel.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n if(SwingUtilities.isRightMouseButton(e)){\n if(myMode == MainWindowMode.CLASSICGAME) {\n ((ClassicGamePanel) classicGameMapPanel).stopDragMiniMap();\n return;\n }\n }\n if(SwingUtilities.isLeftMouseButton(e)) {\n if(myMode == MainWindowMode.CLASSICGAME){\n ClassicGamePanel classicGamePanel = (ClassicGamePanel) classicGameMapPanel;\n if(classicGamePanel.isDragMiniMap()){\n Point point = e.getPoint();\n classicGamePanel.tryAddMiniMap(point);\n }\n }\n }\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n mouseClicked(e);\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n\n\n frame.setFocusable( true );\n frame.addKeyListener(new KeyAdapter() {\n @Override\n public void keyPressed(KeyEvent e) {\n //System.out.println(e.getKeyCode());\n if(myMode == MainWindowMode.SIMPLEGAME) {\n ((MapPanelBase) simpleGameMapPanel).keyPressed(e);\n } else if(myMode == MainWindowMode.CLASSICGAME){\n ((MapPanelBase) classicGameMapPanel).keyPressed(e);\n }\n }\n });\n\n URL labyrinthFile = getClass().getResource(\"/labyrinth.png\");\n try {\n final Image image = ImageIO.read(labyrinthFile);\n helpLabyrinthPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n }\n };\n helpLabyrinthPanel.setPreferredSize(new Dimension(-1, image.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpLabyrinthPanel = new JPanel();\n }\n\n URL mainScreenFile = getClass().getResource(\"/main_screen.png\");\n try {\n final Image image = ImageIO.read(mainScreenFile);\n helpMainScreenPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n }\n };\n helpMainScreenPanel.setPreferredSize(new Dimension(-1, image.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpMainScreenPanel = new JPanel();\n }\n\n\n URL minotaurFile = getClass().getResource(\"/minotaur.png\");\n try {\n final Image image = ImageIO.read(minotaurFile);\n helpObjectsPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n int imageWidth = image.getWidth(null);\n int imageHeight = image.getHeight(null);\n g.setColor(Color.BLACK);\n Graphics2D g2d = (Graphics2D) g;\n FontMetrics fm = g2d.getFontMetrics();\n String text = \"minotaurs are guards of labyrinth, they will kill you if you will step on them. After that you will lose all your equipment and respawn into the hospital\";\n g2d.drawString(text, 3*imageWidth/2, fm.getAscent());\n\n g.setColor(Color.BLUE);\n text = \"A\";\n g2d.drawString(text, imageWidth/2, imageHeight + fm.getAscent());\n g.setColor(Color.BLACK);\n text = \"you can take new bullets in the arsenal. It is guaranted, that you can find a way from hospital to arsenal without minotaurs\";\n g2d.drawString(text, 3*imageWidth/2, imageHeight + fm.getAscent());\n g.setColor(Color.RED);\n int hlength = imageWidth*3/4;\n int hwidth = imageWidth*1/4;\n g2d.fillRect(imageWidth/2 - hlength/2, 5*imageHeight/2 - hwidth/2 , hlength, hwidth);\n g2d.fillRect(imageWidth/2 - hwidth/2, 5*imageHeight/2 - hlength/2 , hwidth, hlength);\n g.setColor(Color.BLACK);\n text = \"you will respawn in the hospital after every accident\";\n g2d.drawString(text, 3*imageWidth/2, 2*imageHeight + fm.getAscent());\n\n int radius = imageWidth/3;\n g2d.fill(new Ellipse2D.Double(imageWidth/2 - radius, 7*imageHeight/2 - radius, 2*radius, 2*radius));\n text = \"portal will teleport you to another determined portal somwhere in the labyrinth. All portals are connected into the cycle\";\n g2d.drawString(text, 3*imageWidth/2, 3*imageHeight + fm.getAscent());\n }\n };\n helpObjectsPanel.setPreferredSize(new Dimension(-1, image.getHeight(null)*4 + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpObjectsPanel = new JPanel();\n }\n\n URL pickFile = getClass().getResource(\"/pick_mini_map.png\");\n URL putFile = getClass().getResource(\"/put_mini_map.png\");\n try {\n final Image pickImage = ImageIO.read(pickFile);\n final Image putImage = ImageIO.read(putFile);\n helpCollectMapPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(pickImage, 0, 0, null);\n g.drawImage(putImage, this.getWidth()/2, 0, null);\n }\n };\n helpCollectMapPanel.setPreferredSize(new Dimension(-1, pickImage.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpCollectMapPanel = new JPanel();\n }\n }", "protected void initGameWindow(){\r\n \r\n // Erstellt das GameGrid\r\n this.gg_grid = new GameGrid();\r\n this.gg_grid.setBounds(this.xCoordGrid, this.yCoordGrid, this.widthGrid, this.heightGrid);\r\n this.gg_grid.addMouseListener(this);\r\n //Add game logic\r\n this.gg_logic = new GameLogic(gg_grid);\r\n this.gg_logic.drawLogic();\r\n // Erstellt das Steuerungs-Panel\r\n this.gg_panel = new JPanel();\r\n this.gg_panel.setBounds(this.xCoordPanel, this.yCoordPanel, this.widthPanel, this.heightPanel); \r\n // Erstellt die anderen Komponenten\r\n // Buttons + ActionListener\r\n this.gg_start = new JButton(\"Start\");\r\n this.gg_start.addActionListener(this);\r\n \r\n this.gg_stop = new JButton(\"Stop\");\r\n this.gg_stop.addActionListener(this);\r\n \r\n this.gg_reset = new JButton(\"Reset\");\r\n this.gg_reset.addActionListener(this);\r\n \r\n // Sliders + SliderDesign + ChangeListener\r\n this.gg_velocity = new JSlider(JSlider.HORIZONTAL, 0, 2, 1);\r\n this.gg_velocity.setMajorTickSpacing(1);\r\n this.gg_velocity.setPaintTicks(true);\r\n this.gg_velocity.addChangeListener(this);\r\n \r\n this.gg_groesse = new JSlider(JSlider.HORIZONTAL, 0, 2, 1);\r\n this.gg_groesse.setMajorTickSpacing(1);\r\n this.gg_groesse.setPaintTicks(true);\r\n this.gg_groesse.addChangeListener(this);\r\n \r\n // Fügt die Komponenten dem JPanel hinzu\r\n this.gg_panel.add(new JLabel(\"Langsam\"));\r\n this.gg_panel.add(gg_velocity);\r\n this.gg_panel.add(new JLabel(\"Schnell\"));\r\n this.gg_panel.add(gg_start);\r\n this.gg_panel.add(gg_stop);\r\n this.gg_panel.add(gg_reset);\r\n this.gg_panel.add(new JLabel(\"Klein\"));\r\n this.gg_panel.add(gg_groesse);\r\n this.gg_panel.add(new JLabel(\"Groß\"));\r\n \r\n // Fügt JCanvas+JPanel dem JFrame hinzu\r\n this.getContentPane().add(gg_grid);\r\n this.getContentPane().add(gg_panel);\r\n \r\n this.gg_grid.fillCell(5, 5);\r\n \r\n this.pack();\r\n }", "@Override\n public void run(){\n Settings.setGameSettings(new Player(0,Color.RED,1800, \"Player 1\",true),\n new Player(1,Color.BLUE,1800, \"Player 2\",false),1800,25);\n MenuFrame menuFrame = new MenuFrame();\n }", "public ViewMain()\n\t{\n\t\tview = new View();\n\t\t\n\t\tcolors = new Color[20][10];\n\t\tfor(int i=0; i < 20; ++i)\n\t\t\tfor(int j=0; j < 10; ++j)\n\t\t\t\tcolors[i][j] = Color.DARK_GRAY;\n\t\t\n\t\tpanel = new BoardGamePanel(colors);\n\t\tpanel.setVisible(true);\n\t\t\n\t\tgameInfo = new GameInfo();\n\t\t\n\t\tactionListenner();\n\t\t\n\t}", "public Main(String title) {\n\t\tsuper(title);\n\t\tsetBounds(100, 100, 800, 600);\n\t setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t \n\t cardPanel = new JPanel();\n\t CardLayout cl = new CardLayout();\n\t cardPanel.setLayout(cl);\n\t \n\t game = new DrawingSurface(this);\n\t game.init();\n\t menu = new OptionPanel(this); \n\t customize = new CustomizePanel(this);\n\t end = new EndPanel(this);\n\t settings = new SettingsPanel(this);\n\t \n\t cardPanel.add(menu, \"1\");\n\t cardPanel.add(game, \"2\");\n\t cardPanel.add(customize, \"3\");\n\t cardPanel.add(end, \"4\");\n\t cardPanel.add(settings, \"5\");\n\t add(cardPanel);\n\t addKeyListener(game);\n\t \n\t setVisible(true);\n\t}", "public GamesPanel() {\n initComponents();\n }", "public GameGUI( RiskGameEngine gameEngine )\n\t{\t\n\t\t//this.setPreferredSize( new java.awt.Dimension( 1000, 800 ) );\n\t\tthis.gameEngine = gameEngine;\n\t\t// START SCREEN INIT\n\t\tthis.startScreenHandler = new StartScreenHandler( gameEngine );\n\t\tthis.startScreen = new StartScreenPanel( startScreenHandler );\n\n\t\t// CREATE PLAYERS SCREEN INIT\n\t\tthis.createPlayersScreenHandler = new CreatePlayersScreenHandler(\n\t\t\t\tthis.gameEngine );\n\t\tthis.createPlayersScreen = new CreatePlayersScreenPanel(\n\t\t\t\tthis.createPlayersScreenHandler );\n\t\t\n\t\t//MAIN MAP SCREEN \n\t\tmapScreenHandler = new MapScreenHandler( gameEngine );\n\t\tmapScreen = new MapScreenPanelTest( mapScreenHandler );\n\t\t\n\t\t/* all panels below are internal frames to the main map screen */\n\t\t//CARD SCREEN \n\t\tcardHandler = new CardScreenHandler( gameEngine );\n\t\tcardScreen = new CardScreenPanel( cardHandler );\n\t\tmapScreen.setCardScreenPanel( cardScreen );\n\t\t\n\t\t//ATTACK SCREEN \n\t\tattackHandler = new AttackScreenHandler( gameEngine );\n\t\tattackScreen = new AttackScreenPanel( attackHandler );\n\t\tmapScreen.setAttackScreenPanel( attackScreen );\n\t\t\n\t\t//FORTIFY SCREEN \n\t\tmoveTroopsHandler = new MoveTroopsScreenHandler( gameEngine );\n\t\tmoveTroopsScreen = new MoveTroopsScreenPanel( moveTroopsHandler );\n\t\tmapScreen.setMoveTroopsScreenPanel( moveTroopsScreen );\n\t\t\n\t\tthis.currentPanel = this.startScreen;\t\n\t\tthis.getContentPane().add( currentPanel );\n\t\tthis.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n\t\t\n\t}", "public GamePanel() {\n this.setLayout(null);\n\n initializeStateLabel();\n\n initializePileLabel();\n\n initializeSetColorButton();\n\n initializeDrawButton();\n initializeHideButton();\n\n this.setVisible(true);\n }", "public void onModuleLoad() {\n\t\t//create our main panel\n\t\tfinal DeckPanel panels = new DeckPanel(); \n\t\tRootPanel.get(\"panel\").add(panels);\n\t\t//create our stage panels\n\t\tfinal LoginPanel login = new LoginPanel(panels,wwwordzService);\n\t\tfinal GamePanel game = new GamePanel(panels,wwwordzService); \n\t\tfinal RankingPanel ranking = new RankingPanel(panels,wwwordzService);\n\t\t//add stage panels to main panel\n\t\tpanels.add(login);\n\t\tpanels.add(game);\n\t\tpanels.add(ranking);\n\t\tpanels.showWidget(0);\n\t\t\n\n\t}", "@Override\n public void run() {\n try {\n int n = 3;\n GamePanel gamePanel = new GamePanel(n);\n gamePanel.setVisible(true);\n }catch (Exception e) {\n System.out.println(\"Somethings Wrong\");\n }\n }", "public GameLostPanel() {\n initComponents();\n }", "private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}", "public GameOverStandalone() {\n initComponents();\n \n ranks = new LinkedList<String>();\n \n FadingEffect fader = new FadingEffect();\n fader.Fade(this);\n \n// mainActivity=this;\n// \n// Thread fading = new Thread(new Runnable() {\n// @Override\n// public void run() {\n// while (true) {\n// int x=java.awt.MouseInfo.getPointerInfo().getLocation().x;\n// int y=java.awt.MouseInfo.getPointerInfo().getLocation().y;\n// if (x>mainActivity.getX()&&x<(mainActivity.getX()+mainActivity.getWidth())&&y>mainActivity.getY()&&y<(mainActivity.getY()+mainActivity.getHeight())) {\n// mainActivity.setOpacity(1.0f);\n// }\n// else {\n// mainActivity.setOpacity(0.75f);\n// }\n// try {\n// Thread.sleep(100);\n// } catch (Exception e) {\n// \n// }\n// }\n// }\n// });\n// fading.start();\n }", "public void init(){\n \tgamePanel = new GamePanel(this);\n getContentPane().add(gamePanel, BorderLayout.CENTER);\n \n gamePanel.addMouseListener(this);\n gamePanel.addMouseMotionListener(this);\n \n \tgamePanel.game.init();\n }", "public void runGame()\r\n\t{\r\n\t\tmainFrame.runGame();\r\n\t}", "public void initGameMode() {\n\n for (JPanel p : attached) {\n mainPanel.remove(p);\n }\n mainPanel.setLayout(null);\n initNavigationBar();\n\n marketFrame = new MarketFrame(gui);\n productionDeckFrame = new ProductionDeckFrame(gui);\n reserveFrame = new ReserveFrame();\n\n gameboardPanel = new GameboardPanel(gui);\n gameboardPanel.setBounds(0, 0, 800, 572);\n mainPanel.add(gameboardPanel);\n serverMessagePanel = new ServerMessagePanel();\n serverMessagePanel.setBounds(800, 0, 380, 275);\n mainPanel.add(serverMessagePanel);\n leaderCardsPanel = new LeaderCardsPanel(gui);\n leaderCardsPanel.setBounds(805, 280, leaderWidth, leaderHeight);\n mainPanel.add(leaderCardsPanel);\n\n\n this.setVisible(false);\n }", "public RunningGame() {\n initComponents();\n }", "public Game() {\r\n \r\n level = 1;\r\n \r\n enemyCount = 15;\r\n \r\n // world\r\n world = new Level1();\r\n \r\n world.populate(this);\r\n \r\n // view\r\n view = new MyView(world, this, 1000, 650);\r\n\r\n view.setGridResolution(1);\r\n\r\n // mouse controls\r\n view.addMouseListener(new MouseHandler(view, world.getPlayer()));\r\n \r\n\r\n // display the view in a frame\r\n JFrame frame = new JFrame(\"Multi-Level game\");\r\n\r\n // quit the application when the game window is closed\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationByPlatform(true);\r\n // display the world in the window\r\n frame.add(view);\r\n controlPanel = new ControlPanel(world, this);\r\n frame.add(controlPanel, BorderLayout.WEST);\r\n // don't let the game window be resized\r\n frame.setResizable(false);\r\n // size the game window to fit the world view\r\n frame.pack();\r\n // make the window visible\r\n frame.setVisible(true);\r\n \r\n keyHandler = new KeyHandler(world.getPlayer());\r\n // key controls\r\n frame.addKeyListener(keyHandler);\r\n \r\n // give keyboard focus to the frame whenever the mouse enters the view\r\n view.addMouseListener(new GiveFocus(frame));\r\n \r\n // Invincibility\r\n if(world.getPlayer().getInivincibility() == true) {\r\n world.getPlayer().removeAllCollisionListeners();\r\n } \r\n\r\n // Debugging view\r\n // JFrame debugView = new DebugViewer(gameWorld, 1000, 650);\r\n \r\n // background sound\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel1Sound();\r\n levelMusic.loop();\r\n \r\n // start!\r\n world.start();\r\n \r\n }", "public void makeGUI()\n\t{\n\t\tbuttonPanel = new ButtonPanel(this,ship,planet);\n\t\tgamePanel = new GamePanel(this,ship,planet);\n\n\t\tJMenuBar menubar = new JMenuBar();\n\t\tJMenu menuHelp = new JMenu(\"Help\");\n\t\thelpItem = new JMenuItem(\"Help\");\n\t\tmenuHelp.add(helpItem);\n\t\tmenubar.add(menuHelp);\n\t\tsetJMenuBar(menubar);\n\n\t\tsounds = new AudioClip[2];\n\n\t\ttry\n\t\t{\n\t\t\turl = new URL(getCodeBase() + \"/thrust.au\");\n\t\t\tsounds[0] = Applet.newAudioClip(url);\n\t\t\turl = new URL(getCodeBase() + \"/crash.au\");\n\t\t\tsounds[1] = Applet.newAudioClip(url);\n\t\t}\n\t\tcatch(Exception e){}\n\n\t\thelpItem.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tif(e.getSource() == helpItem)\n\t\t\t\t{\n\t\t\t\t\tString helpMessage = \"The goal of the game is to land\\nthe ship on the red lines (pads).\\nThe ship must be completely contained\\nwithin the bounds of the red pad.\\nThere are 10 levels total\\nand you will have a certain amount\\nof time to complete each level.\\nGood Landing: velocities must be <10\\nOK Landing: velocities must be <20\\nThe ship's bottom must be facing the ground.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(lander, helpMessage, \"Help Display\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tgetContentPane().add(gamePanel, BorderLayout.PAGE_START);\n\t\tgetContentPane().add(buttonPanel, BorderLayout.PAGE_END);\n\t\tsetVisible(true);\n\t}", "public void startGame() \n\t{\n\t\tgamePanel.startGame();\n\t}", "public GameView() {\n initComponents();\n gameView(30, 30);\n }", "public GamePanel() {//initializer for the GamePanel class\n\t\taddMouseListener(this);//add the listeners\n\t\taddMouseMotionListener(this);\n\t\taddKeyListener(this);\n\t\t\n\t\tkeys = new boolean[KeyEvent.KEY_LAST+1];//make the keys list \n\t\t\n\t\t//GameImage slider = null;\n\t\t\n\t\tblocks = new ArrayList<Block>();//stores the blocks.\n\t\t//image = null;\n\t\t\n\t\t//load pause button \n\t\ttry {\n\t\t\tpauseButton = new GameImage(ImageIO.read(new File(\"src/pause.png\")), 0,0);\n\t\t\tpauseButton.resize(40, 40);//resize to be smaller\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\ttry {//load the slider\n\t\t\tslider = new GameImage(ImageIO.read(new File(\"src/2dplatform.png\")), 0, 0);//get the slider image and create a new GameImage instance\n\t\t\toriginalSliderWidth = 100;//store the original dimensions and resize accordingly\n\t\t\toriginalSliderHeight = 20;\n\t\t\tslider.resize(originalSliderWidth, originalSliderHeight);//resize and position image\n\t\t\tslider.setX(GamePlay.getMiddleX() - slider.getWidth()/2);//set the appropriate x and y\n\t\t\tslider.setY(GamePlay.getScreenHeight() - 100);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//load the logo\n\t\ttry {\n\t\t\tlogo = new GameImage(ImageIO.read(new File(\"src/gameLogo.png\")),0,0);\n\t\t\tlogo.resize(200, 50);//resize \n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {//load the background. Resize.\n\t\t\tbackground = new GameImage(ImageIO.read(new File(\"src/b.jpg\")), 0, 0);\n\t\t\tbackground.resize(GamePlay.getScreenWidth(), GamePlay.getScreenHeight());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {//load and resize ball.\n\t\t\tball = new GameImage(ImageIO.read(new File(\"src/ball.png\")), 0, 0);\n\t\t\tball.resize(20, 20);\n\t\t\tball.setX(slider.getX() + slider.getWidth()/2 - ball.getWidth()/2);\n\t\t\tball.setY(slider.getY()-ball.getHeight()-5);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t//load health powerup image\n\t\ttry {\n\t\t\thealthPowerUp = new GameImage(ImageIO.read(new File(\"src/healthPowerUp.png\")),0,0);\n\t\t\thealthPowerUp.resize(10, 10);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//load long powerup image\n\t\ttry {\n\t\t\tlongPowerUp = new GameImage(ImageIO.read(new File(\"src/longPowerUp.png\")), 0, 0);\n\t\t\tlongPowerUp.resize(10, 10);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//load the bonus points\n\t\ttry {\n\t\t\tbonusPointsPowerUp = new GameImage(ImageIO.read(new File(\"src/bonusPointsPowerUp.png\")), 0,0);\n\t\t\tbonusPointsPowerUp.resize(10, 10);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t//music\n\t\tbackgroundMusic.loop();\n\t\t\n\t\t\n\t\t\n\t\tmakeBricks(12,8);//make 12 rows of bricks, 8 columns of bricks\n\t}", "public void startGame(){\r\n mainPanel.removeAll();\r\n panelDraw.Startlevel();\r\n mainPanel.add(panelDraw, BorderLayout.CENTER);\r\n mainPanel.add(panelInforound, BorderLayout.WEST);\r\n \r\n repaint();\r\n revalidate();\r\n }", "public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}", "public static void main(String[] args) {\n new GameJFrame();\n // new DigitalWatch();\n }", "public MainScreen(Game game) {\n\t\tthis.game = game;\n\t\tcreate();\n\t}", "public void createGUI() {\n\n\t\tcontents = getContentPane();\n\t\tcontents.setLayout(new GridLayout(size, size));\n\n\t\t// Set Up Menu Bar\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tsetJMenuBar(menuBar);\n\n\t\tJMenu game = new JMenu(\"Game\");\n\t\tmenuBar.add(game);\n\t\tJMenuItem clearBoard = new JMenuItem(\"New Game\");\n\t\tgame.add(clearBoard);\n\t\tJMenuItem boardSize = new JMenuItem(\"Change Size\");\n\t\tgame.add(boardSize);\n\t\tJMenuItem exit = new JMenuItem(\"Exit\");\n\t\tgame.add(exit);\n\n\t\tJMenu help = new JMenu(\"Help\");\n\t\tmenuBar.add(help);\n\t\tJMenuItem rules = new JMenuItem(\"How to Play\");\n\t\thelp.add(rules);\n\t\tJMenuItem about = new JMenuItem(\"About\");\n\t\thelp.add(about);\n\n\t\tJMenu playerSelect = new JMenu(\"Players: \" + players);\n\t\tmenuBar.add(playerSelect);\n\t\tJMenuItem players2 = new JMenuItem(\"2 Player Game\");\n\t\tplayerSelect.add(players2);\n\t\tJMenuItem players3 = new JMenuItem(\"3 Player Game\");\n\t\tplayerSelect.add(players3);\n\t\tJMenuItem players4 = new JMenuItem(\"4 Player Game\");\n\t\tplayerSelect.add(players4);\n\n\t\tmenuBar.add(Box.createHorizontalGlue());\n\n\t\tplayerTurnLbl.setFont(new Font(\"Lucida Grande\", Font.BOLD, 12)); // Player 1's Turn\n\t\tmenuBar.add(playerTurnLbl);\n\t\tplayerTurnLbl.setVisible(true);\n\n\t\tinvalidMoveLbl.setFont(new Font(\"Lucida Grande\", Font.BOLD, 12)); // Invalid Move Alert\n\t\tinvalidMoveLbl.setForeground(Color.RED);\n\t\tmenuBar.add(invalidMoveLbl);\n\t\tinvalidMoveLbl.setVisible(false);\n\n\t\t// Exit Button Action\n\t\texit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\t// Board Size Button Action\n\t\tboardSize.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\trestartGame();\n\t\t\t}\n\t\t});\n\n\t\t// Reset Board Button Action\n\t\tclearBoard.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// Rules Button Action\n\t\trules.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"1. Players take turns moving up, down, left, or right to generate a self-avoiding walk.\\n\\tClick on a square to make your move.\\n\\n2. A player who makes a self-intersecting move loses the game. \\n\\n3. A player can win the game by making a self-intersecting move that creates a self-avoiding polygon.\\n\\tThis is only valid after at least 4 moves.\",\n\t\t\t\t\t\t\"Self-Avoiding Walk Game Rules\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}\n\t\t});\n\n\t\t// About Button Action\n\t\tabout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Self-Avoiding Walk Multiplayer Game\\nDeveloped by Adam Binder\\nCopyright 2019\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t});\n\n\t\t// 2 Player Button Action\n\t\tplayers2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 2;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// 3 Player Button Action\n\t\tplayers3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 3;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// 4 Player Button Action\n\t\tplayers4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 4;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// Create event handlers:\n\t\tButtonHandler buttonHandler = new ButtonHandler();\n\n\t\t// Create and add board components:\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tsquares[i][j] = new JButton();\n\t\t\t\tsquares[i][j].setBorder(null);\n\t\t\t\tsquares[i][j].setOpaque(true);\n\t\t\t\tsquares[i][j].setBorderPainted(false);\n\t\t\t\tif ((i + j) % 2 != 0) {\n\t\t\t\t\tsquares[i][j].setBackground(colorGray);\n\t\t\t\t\tsquares[i][j].setBorder(null);\n\t\t\t\t\tsquares[i][j].setOpaque(true);\n\t\t\t\t}\n\t\t\t\tcontents.add(squares[i][j]);\n\t\t\t\tsquares[i][j].addActionListener(buttonHandler);\n\t\t\t}\n\t\t}\n\t}", "public MainPanel()\n\t{\n\t\tsuper();\n\t\t\n\t\tthis.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); \n\t\t_brickbackground = new ImageIcon(\"brickbackground.jpg\").getImage();\n\t\t\n \n\t\t_paddle2 = new PaddleShape();\n\t\t_paddle1 = new PaddleShape();\n \n\t\n\t\t \n\t\t\n\t\t\n\t\tHolder _holder = new Holder(BrickPanel);\n\t\t\n\t\tBrickPanel = new BrickPanel(_holder, _paddle1, _paddle2, controlPanel, this);\n\t\t\n\t\tMainMenu = new MainMenu(this);\n\t\tMainMenu.setLayout(new BoxLayout(MainMenu, BoxLayout.Y_AXIS));\n\t\tMainMenu.setPreferredSize(new Dimension(800, 450));\n\t\tMainMenu.setMaximumSize(new Dimension(800, 450));\n\t\t\n\t\tcontrolPanel = new ControlPanel(BrickPanel, this, _holder, _paddle1, _paddle2, MainMenu);\n\t\tcontrolPanel.setLayout(new GridLayout(1,5));\n\t\tcontrolPanel.setPreferredSize(new Dimension(800, 65));\n\t\tcontrolPanel.setMaximumSize(new Dimension(800, 65));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tthis.add(BrickPanel); \n\t\tthis.add(controlPanel); \n\t\tthis.add(MainMenu);\n\t\t\n\t\tcontrolPanel.setVisible(false);\n\t\tBrickPanel.setVisible(false);\n\t\tMainMenu.setVisible(true);\n\t\tMyClickListener listener = new MyClickListener(this, BrickPanel, _holder);\n\t\tthis.addMouseListener(listener);\n this.addMouseMotionListener(listener);\n this.addKeyListener(listener);\n\t\tthis.setFocusable(true);\n\t\t\n\t\t//create a button instead of the play rectangle !!!!!!!!!!!!!!!!\n\t\t\n\t\t\n\t\t\n\t}", "public MainMenuController()\n {\n ArrayList<JButton> menuList = new ArrayList();\n \n //Setup default colors\n player1Color = Color.RED;\n player2Color = Color.BLUE;\n \n //Setup the start button\n startButton = new JButton(\"Start\");\n startButton.setBackground(Color.GREEN);\n menuList.add(startButton);\n \n startButton.addActionListener((ActionEvent ae) -> {\n uControll = new UltimateController();\n uControll.start(player1Color, player2Color);\n this.setupGameWindow();\n menuPanel.close();\n });\n \n //Setup multiplayer button\n JButton multiButton = new JButton(\"Network Play\");\n multiButton.setBackground(new Color(0,255,200));\n menuList.add(multiButton);\n multiButton.addActionListener((ActionEvent ae) -> {\n View.Multiplayer mp = new View.Multiplayer();\n mp.setParentWindow(menuPanel);\n mp.launchWindow();\n menuPanel.close();\n });\n \n //Setup the settings button\n JButton settingButton = new JButton(\"Settings\");\n settingButton.setBackground(Color.orange);\n menuList.add(settingButton);\n settingButton.addActionListener((ActionEvent ae) -> {\n setGUI = new View.SettingGUI(player1Color, player2Color);\n setupSettingWindow();\n });\n \n //Setup the how to play button\n howToButton = new JButton(\"How to Play\");\n howToButton.setBackground(Color.LIGHT_GRAY);\n menuList.add(howToButton);\n howToButton.addActionListener((ActionEvent ae) -> {\n //Create a frame\n JFrame newWindow = new JFrame(\"How to Play\"); \n View.HowToPlayPanel hPlay = new View.HowToPlayPanel();\n newWindow.add(hPlay);\n newWindow.setSize(1200,550);\n \n //Make the return button work\n hPlay.getReturnBtn().addActionListener((ActionEvent ae2) -> {\n newWindow.dispose();\n });\n \n newWindow.setVisible(true);\n newWindow.requestFocus();\n });\n \n //Setup the Quit button\n quitButton = new JButton(\"Quit\");\n quitButton.setBackground(Color.RED);\n menuList.add(quitButton);\n \n quitButton.addActionListener((ActionEvent ae) -> {\n System.out.println(\"Quit the program\");\n System.exit(0);\n });\n \n startButton.setBounds(570, 300, 120, 45);\n howToButton.setBounds(570, 375, 120, 45);\n quitButton.setBounds(570, 450, 120, 45);\n \n menuPanel = new MenuPanel(menuList);\n }", "public ControlPanel(Game game) {\n\n saveGame = new SaveGame(game);\n isMute = false;\n\n /**\n * Stop the simulation\n */\n pauseButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n game.pauseGame();\n }\n });\n /**\n * Run the simulation\n */\n continueButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n game.startGame();\n }\n });\n\n /**\n * Controls background sound\n */\n muteUnmuteButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (!isMute) {//if music is on stop it when click\n //if is off play it on click according to level specifications\n game.getGameLevel().getLevelSound().stop();\n isMute = true;\n } else {\n if (game.getGameLevel() instanceof Level2) {\n game.getGameLevel().getLevelSound().play();\n } else {\n game.getGameLevel().getLevelSound().loop();\n isMute = false;\n }\n }\n }\n });\n\n /**\n * Start the game form level 1\n */\n restartGameButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n loadLevel(game, -1);\n }\n });\n /**\n * Quit the game\n */\n quitGameButton.addActionListener(new ActionListener() {\n @Override\n\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n\n }\n });\n /**\n * Reset and go to Level 1\n */\n level1Button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n loadLevel(game, -1);\n }\n });\n /**\n * Reset and go ot level 2\n */\n level2Button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n loadLevel(game, 0);\n }\n });\n /**\n * Reset and go ot level 3\n */\n level3Button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n loadLevel(game, 1);\n }\n });\n /**\n * Reset and go ot level 4\n */\n level4Button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n loadLevel(game, 2);\n }\n });\n /**\n * If player is registered saves the game at current state and position\n */\n saveAndQuitButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n try {//if user doesn't play with Trial profile save the game to file\n if (!comboBox1.getSelectedItem().equals(\"Trial\")) {\n saveGame.getGameState(currentUser);\n System.exit(0);\n\n } else {\n warningMessage(\"Please register.\");\n }\n } catch (IOException ex) {\n System.out.println(ex);\n }\n\n }\n });\n /**\n * In case of existing saving according to the user\n * particular Level and state will be loaded\n */\n resumeGameButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n try {//if user has saving then load it and continue game\n if (saveGame.setGameState(currentUser) == 0) {\n game.getGameLevel().getLevelSound().stop();\n saveGame.setGameState(currentUser);\n game.resetGameLevels();\n game.buildGameLevelsArray();\n saveGame.continueGame();\n } else {\n defaultMessage(\"There is no available records for this profile!\");\n }\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }\n });\n\n /**\n * If user doesn't exist - add it to the file with users\n */\n addUserButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n int flag = 0;\n //dont add empty text to the ComboBox\n if (textPane1.getText().trim().length() != 0) {\n //Check If the given name exist in the list\n for (int i = 0; i < comboBox1.getItemCount(); i++) {\n if (comboBox1.getItemAt(i).equals(textPane1.getText())) {\n flag++;//if this profile exist-flag = 1\n defaultMessage(\"Username '\" + textPane1.getText() + \"' already exist!\\n Please Choose different name.\");\n }\n }\n // if given name doesnt exist in the list then add it to it\n if (flag == 0) {\n comboBox1.addItem(textPane1.getText());\n defaultMessage(\"Welcome \" + textPane1.getText());\n try {\n fileWriter = new FileWriter(\"data/textFiles/gameState.txt\", true);\n {\n fileWriter.write(textPane1.getText() + \",\\n\");\n fileWriter.close();\n }\n } catch (IOException ex) {\n System.out.println(ex);\n } finally {\n try {\n if (fileWriter != null) {\n fileWriter.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n //clean the textPane\n textPane1.setText(\"\");\n }\n }\n }\n });\n /**\n * If user exist and is different than \"Trial\" - delete it\n */\n deleteUserButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {//if desired user is not \"Trial\"\n if (!textPane1.getText().equals(\"Trial\")) {\n //if this user existed and it was deleted\n if(saveGame.deleteGameState(textPane1.getText())){\n //Send message that user is deleted\n defaultMessage(textPane1.getText() + \" is deleted.\");\n //set the boolean userExisted back to false so next time deleteGameState\n //will change it to true if user exists\n saveGame.setUserExisted(false);\n //reset combobox according to the new state\n setCombobox();\n }else{\n warningMessage(\"There is not such a profile\\n in the records\");\n }\n\n } else {//if somebody try to delete \"Trial\" sent this message\n warningMessage(\"User Trial Can Not Be Deleted.\");\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }//clear writing area\n textPane1.setText(\"\");\n }\n });\n /**\n * TextPanel area.\n * Listener is needed in order to control input text\n */\n textPane1.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n super.componentResized(e);\n }\n });\n /**\n * Drop down list displaying all available users recorded in the file\n */\n comboBox1.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //get selected item from the list and assigne currentUser to it\n currentUser = (String) comboBox1.getSelectedItem();\n try {\n saveGame.setGameState(currentUser);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }\n });\n }", "public static void main(String[] args){\n\t\t EventQueue.invokeLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t // create our game and set it to visible\n\t \tSnakeGame game = new SnakeGame();\n\t }\n\t });\n\t}", "public Game()\n\t{\n\t\tsetSize(Main.FRAMEWIDTH, Main.FRAMEHEIGHT);\n\t\taddMouseListener(mouse);\n\t\taddMouseMotionListener(mouse);\n\t\taddKeyListener(key);\n\t\taddMouseWheelListener(mouse);\n\t\tsetFocusable(true);\n\t\t//setVisible(false);\n\t\t\n\t\tengine.start();\n\t}", "public static void newGame(){\n\t\tsetUp.buildBoard(8,8);\n\t\tfor(int i = 0; i < boardBoundsRow * boardBoundsColumn; i++){\n\t\t\tJPanel selectedTile = (JPanel) userInterface.boardButtons.getComponent(i);\n\t\t\tselectedTile.removeAll();\n\t\t\tselectedTile.revalidate();\n\t\t}\n\t\tuserInterface.addBlackPiece();\n\t\tuserInterface.addWhitePiece();\n\t\tuserInterface.check.setText(\"You are not in check\");\n\t\tking.blackKingCheck = false;\n\t\tking.whiteKingCheck = false;\n\t\tturn = \"white\";\n\t\tString playerTurn = \"Player turn: \";\n\t\tuserInterface.turn.setText(playerTurn.concat(turn));\n\t\tundoMoveClass.clearStacks();\n\t}", "public void createGui(){\n\t\twindow = this.getContentPane(); \n\t\twindow.setLayout(new FlowLayout());\n\n\t\t//\tAdd \"panel\" to be used for drawing \n\t\t_panel = new ResizableImagePanel();\n\t\tDimension d= new Dimension(1433,642);\n\t\t_panel.setPreferredSize(d);\t\t \n\t\twindow.add(_panel);\n\n\t\t// A menu-bar contains menus. A menu contains menu-items (or sub-Menu)\n\t\tJMenuBar menuBar; // the menu-bar\n\t\tJMenu menu; // each menu in the menu-bar\n\n\t\tmenuBar = new JMenuBar();\n\t\t// First Menu\n\t\tmenu = new JMenu(\"Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A); // alt short-cut key\n\t\tmenuBar.add(menu); // the menu-bar adds this menu\n\n\t\tmenuItem1 = new JMenuItem(\"Fruit\", KeyEvent.VK_F);\n\t\tmenu.add(menuItem1); // the menu adds this item\n\n\t\tmenuItem2 = new JMenuItem(\"Pacman\", KeyEvent.VK_S);\n\t\tmenu.add(menuItem2); // the menu adds this item\n\t\tmenuItem3 = new JMenuItem(\"Run\");\n\t\tmenu.add(menuItem3); // the menu adds this item \n\t\tmenuItem4 = new JMenuItem(\"Save Game\");\n\t\tmenu.add(menuItem4); // the menu adds this item\n\n\t\tmenuItem5 = new JMenuItem(\"Open Game\");\n\t\tmenu.add(menuItem5); // the menu adds this item\n\t\tmenuItem6 = new JMenuItem(\"Clear Game\");\n\t\tmenu.add(menuItem6); // the menu adds this item\n\t\tmenuItem1.addActionListener(this);\n\t\tmenuItem2.addActionListener(this);\n\t\tmenuItem3.addActionListener(this);\n\t\tmenuItem4.addActionListener(this);\n\t\tmenuItem5.addActionListener(this);\n\t\tmenuItem6.addActionListener(this);\n\n\t\tsetJMenuBar(menuBar); // \"this\" JFrame sets its menu-bar\n\t\t// panel (source) fires the MouseEvent.\n\t\t//\tpanel adds \"this\" object as a MouseEvent listener.\n\t\t_panel.addMouseListener(this);\n\t}", "public DrawPanel( String [ ] args ) \n {\n super();\n // Create the objects you want to display using awt graphical\n // objects. For now, use the wheels-like \"wrapper\" classes,\n // Rectangle, Ellipse, and Line. The Rectangle and Ellipse wrapper\n // classes are minor variations of SmartRectangle and SmartEllipse\n // from the Sanders and van Dam text.\n //\n // References to the objects you create need to be saved in instance\n // variables\n \n rect1 = new Rectangle( Color.BLUE );\n rect1.setLocation( 100, 100 );\n rect1.setSize( 40, 40 );\n \n rect2 = new Rectangle( Color.RED );\n rect2.setLocation( 200, 200 );\n rect2.setSize( 20, 60 );\n \n line1 = new Line();\n line1.setColor( Color.BLACK );\n line1.setPoints( 120, 120, 210, 230 );\n \n ell1 = new Ellipse( Color.CYAN );\n ell1.setLocation( 10, 400 );\n ell1.setSize( 40, 10 );\n \n ell2 = new Ellipse( Color.MAGENTA );\n ell2.setLocation( 400, 400 );\n ell2.setSize( 30, 30 );\n \n line2 = new Line();\n line2.setColor( Color.BLACK );\n line2.setPoints( 25, 405, 415, 415 ); \n \n buggy1 = new Buggy( Color.RED );\n buggy1.setLocation( 450, 300 );\n buggy2 = new Buggy( Color.CYAN);\n buggy2.setLocation( 400, 20 );\n \n recordplayer1 = new RecordPlayer( Color.BLUE );\n recordplayer1.setLocation( 300, 300 );\n \n recordplayer2 = new RecordPlayer( Color.GREEN );\n recordplayer2.setLocation( 200, 300 );\n \n }", "public GamePanel() {\n setBackground(new Color(0, 200, 0));\n deck = new Deck();\n mainPiles = new Pile[7];\n suitPiles = new Pile[4];\n setInitialLayout(deck);\n deckPile = new Pile(deck.getX() + Card.WIDTH + GamePanel.HORI_DISPL, deck.getY(), Pile.DECK_PILE);\n selectedPile = null;\n CardListener listener = new CardListener(this);\n this.addMouseListener(listener);\n this.addMouseMotionListener(listener);\n this.setFocusable(true);\n }", "public GamePanel(Context context) {\n super(context);\n\n getHolder().addCallback(this); //adds callback to surfaceholder to intercept events\n\n thread = new MainThread(getHolder(), this); //initialise main thread\n\n setFocusable(true); //set game panel to focusable\n }", "public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}", "public static void main(String[] args){\n\t\t\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGameLauncher gameLauncher = new GameLauncher();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "public static void main(String arg[]){\r\n GameContainer gc = new GameContainer(new GameManager());\r\n\r\n gc.setWidth(400);\r\n gc.setHeight(300);\r\n gc.setScale(2);\r\n\r\n gc.setClearScreen(true);\r\n gc.setLightEnable(true);\r\n gc.setDynamicLights(true);\r\n gc.start();\r\n }", "public static void main(String[] args) {\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twindow = new Window(750, 700);\r\n\t\t\t\tgame = new Game(window);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "public GameView(ClientWindow window) {\n super(\"game\", window);\n initComponents();\n \n \n this.gamePanel = new GamePanel(this);\n add(gamePanel, BorderLayout.CENTER);\n \n this.chatPanel = new ChatPanel(this);\n add(chatPanel, BorderLayout.SOUTH);\n \n this.scoreboardPanel = new ScoreboardPanel();\n add(scoreboardPanel, BorderLayout.WEST);\n }", "private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}", "public AnimationPanel() {\n initComponents();\n // create a new game board\n game = new GameOfLife(gridSize);\n }", "public Main(){\n \tsetSize(new Dimension(1024, 768));\n \t\n \t//setUndecorated(true); // borderless (fullscreen) window\n \tsetExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); // maximize window\n \t\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setTitle(\"Game\");\n setLocationRelativeTo(null); // center on screen\n\n \tContentLoader.LoadContent();\n init();\n start();\n }", "@Override\n public void gameWindow() {\n gameBoard = guiGame.getPanel();\n boardArea = guiGame.getBoardArea();\n inputArea = guiGame.getInputArea();\n JButton sendMessageButton = guiGame.getSendButton();\n JButton skipTurnButton = guiGame.getSkipTurnButton();\n JButton swapPiece = guiGame.getSwapPieceButton();\n messagesArea = guiGame.getMessagesArea();\n JButton forfeitButton = guiGame.getForfeitButton();\n JLabel usernameLabel = guiGame.getUsernameLabel();\n usernameLabel.setText(username);\n JButton movePieceButton = guiGame.getMovePieceButton();\n JButton leaveButton = guiGame.getLeaveButton();\n JButton hintButton = guiGame.getHintButton();\n\n boardArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));\n boardArea.setEditable(false);\n\n messagesArea.setEditable(false);\n inventoryArea.setEditable(false);\n\n forfeitButton.addActionListener(e -> {\n connectedServer.writeMessage(client.leave());\n frame.setContentPane(gameList);\n });\n\n JPanel piecePanel = new JPanel();\n piecePanel.add(new JLabel(\"Piece number:\"));\n JTextField pieceNumber = new JTextField(1);\n piecePanel.add(pieceNumber);\n piecePanel.add(Box.createHorizontalStrut(15));\n piecePanel.add(new JLabel(\"Index on board:\"));\n JTextField indexOnBoard = new JTextField(2);\n piecePanel.add(indexOnBoard);\n piecePanel.add(Box.createHorizontalStrut(15));\n piecePanel.add(new JLabel(\"Rotation 1 or 2 (0 for default)\"));\n JTextField rotationField = new JTextField(1);\n rotationField.setText(\"0\");\n piecePanel.add(rotationField);\n\n\n\n movePieceButton.addActionListener(e -> {\n int result = JOptionPane.showConfirmDialog(frame, piecePanel, \"Move piece\", JOptionPane.OK_CANCEL_OPTION);\n if(result == JOptionPane.OK_OPTION) {\n int pieceNum = Integer.parseInt(pieceNumber.getText());\n int i = Integer.parseInt(indexOnBoard.getText());\n int rotation = Integer.parseInt(rotationField.getText());\n if(!Board.isLegal(i)) {\n JOptionPane.showMessageDialog(frame, \"Invalid board index\", \"Ilegal board index\", JOptionPane.ERROR_MESSAGE);\n } else if(pieceNum > client.getGame().getPlayer(username).getInventory().size()) {\n JOptionPane.showMessageDialog(frame, \"Invalid piece number\", \"Ilegal piece\", JOptionPane.ERROR_MESSAGE);\n } else {\n Tile t = client.getGame().getPlayer(username).getInventory().get(pieceNum - 1);\n t.rotate(rotation);\n connectedServer.writeMessage(client.move(t, i));\n }\n }\n });\n\n skipTurnButton.addActionListener(e -> {\n connectedServer.writeMessage(client.skip());\n });\n\n hintButton.addActionListener(e -> {\n giveHint(client.getHint());\n });\n\n swapPiece.addActionListener(e -> {\n String[] options = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"};\n String result = (String) JOptionPane.showInputDialog(frame, \"Piece number:\", \"Swap piece\", JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n int resultInt = Integer.parseInt(result);\n if(resultInt > client.getGame().getPlayer(username).getInventory().size()) {\n JOptionPane.showMessageDialog(frame, \"Invalid piece number\", \"Ilegal piece\", JOptionPane.ERROR_MESSAGE);\n } else {\n connectedServer.writeMessage(client.swap(client.getGame().getPlayer(username).getInventory().get(resultInt)));\n }\n });\n\n sendMessageButton.addActionListener(e -> {\n executeCommand();\n });\n\n leaveButton.addActionListener(e -> {\n forfeit();\n });\n\n //an action for when someone presses enter in the inputArea\n Action pressedEnter = new AbstractAction() {\n public void actionPerformed(ActionEvent e) {\n executeCommand();\n }\n };\n\n inputArea.getInputMap().put(KeyStroke.getKeyStroke(\"ENTER\"),\n pressedEnter);\n\n frame.setContentPane(gameBoard);\n frame.revalidate();\n\n forfeitButton.addActionListener(e -> {\n forfeit();\n });\n\n client.setGame(connectedGamePlayerCount);\n client.getGame().addPlayer(client.getPlayer());\n\n tui = new TUI();\n messagesArea.append(tui.HELP);\n\n boardArea.append(tui.getBoard());\n }", "public void setUpHUDPanel() {\n\n\t\t//Criando e configurando painel que apresenta botoes de acoes\n\t\tthis.playerOptionPanel = new JPanel(null);\n\t\tthis.playerOptionPanel.setBounds(730, 315, 275, 235);\n\t\tthis.playerOptionPanel.setOpaque(false);\n\n\t\t//Criando e configurando botao para jogar/manipular dado\n\t\tthis.moveButton = new JButton(\"JOGAR O DADO\");\n\t\tthis.moveButton.setBounds(45, 25, 175, 45);\n\t\tthis.moveButton.setActionCommand(\"MOVE\");\n\t\tthis.moveButton.setMnemonic(KeyEvent.VK_M);\n\t\tthis.moveButton.setToolTipText(\"Cique aqui para jogar o dado e realizar o movimento\");\n\n\t\t//Adicionando tratador de evento para clique no botao\n\t\tthis.moveButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tmanipulaDice();\n\t\t\t}\n\t\t});\n\n\t\t//Criando e configurando botao para realizar palpite\n\t\tthis.suggestButton = new JButton(\"REALIZAR PALPITE\");\n\t\tthis.suggestButton.setBounds(45, 90, 175, 45);\n\t\tthis.suggestButton.setActionCommand(\"SUGGEST\");\n\t\tthis.suggestButton.setMnemonic(KeyEvent.VK_S);\n\t\tthis.suggestButton.setEnabled(false);\n\t\tthis.suggestButton.setToolTipText(\"Clique aqui para realizar sugestão\");\n\n\t\t//Criando e configurando botao para realizar acusacao\n\t\tthis.accuseButton = new JButton(\"ACUSAR\");\n\t\tthis.accuseButton.setBounds(45, 160, 175, 45);\n\t\tthis.accuseButton.setActionCommand(\"ACCUSE\");\n\t\tthis.accuseButton.setMnemonic(KeyEvent.VK_A);\n\t\tthis.accuseButton.setToolTipText(\"Clique para fazer acusacao. OBS: Acusacao incorreta poderá te eliminar do jogo.\");\n\n\t\t//Adicionando os botoes corretamente no painel\n\t\tthis.playerOptionPanel.add(this.moveButton);\n\t\tthis.playerOptionPanel.add(this.suggestButton);\n\t\tthis.playerOptionPanel.add(this.accuseButton);\n\n\t\t//Incluindo painel em painel maior\n\t\tthis.add(this.playerOptionPanel);\n\t}", "public GameMain()\n {\n allenBad = new AllenSucks(this);\n }", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n new Window(new Game()).setVisible(true);\n }\n });\n }", "public void newGame();", "public void newGame();", "public void newGame();", "public static void main( String[] args ) {\n for( int i = 0; i < 8; i++ ){\n for( int i1 = 0; i1 < 8; i1++ ){\n gamepieces[i][i1] = BACKGROUND_COLOR;\n }\n }\n //setup initial center game pieces\n gamepieces[3][3] = Color.WHITE;\n gamepieces[4][4] = Color.WHITE;\n gamepieces[3][4] = Color.BLACK;\n gamepieces[4][3] = Color.BLACK;\n gameFrame.setTitle( \"Othello\" );\n //make sure the process exits when window is closed\n gameFrame.setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE );\n //make a pane to display everything in\n JPanel pane = new JPanel(){\n @Override\n protected void paintComponent( Graphics g ){\n super.paintComponent(g);\n //draw the game board\n drawGameboard( g );\n //draw individual game pieces\n g.setColor( Color.BLACK );\n for( int row = 0; row < 8; row++){\n for( int column = 0; column < 8; column ++ ){\n if (gamepieces[ row ][ column ] == BACKGROUND_COLOR && isMoveValid(row, column)) {\n //show available moves\n drawGamePiece( g, row, column, Color.BLUE );\n }else {\n drawGamePiece(g, row, column, gamepieces[row][column]);\n }\n }\n }\n }\n };\n\n pane.addMouseListener( new MouseListener(){\n final ActionListener aiMove = new ActionListener(){\n public void actionPerformed(ActionEvent e) {\n //we don't need to do this more than once in a row; stop the timer\n timer.stop();\n //get all the available moves\n ArrayList<Point> possibleMoves = getCurrentlyValidMoves();\n canLastPlayerMove = false;\n try {\n //check if we can move\n if( possibleMoves.size() == 0 ){\n return;\n }\n //make an array to store the best moves available\n ArrayList<Point> bestMoves = new ArrayList<Point>();\n //the lower the level, the higher priority is assigned to the move\n //a move of level 10 is the absolute lowest\n //this heuristic follows the strategy I use, omitting situation-specific content\n int level = 10;\n for (Point p : possibleMoves) {\n int x = (int) p.getX();\n int y = (int) p.getY();\n if ((x == 0 || x == 7) && (y == 0 || y == 7)) {\n if (level > 0) {\n bestMoves.clear();\n level = 0;\n }\n bestMoves.add( p );\n } else if (level >= 1 && (x == 0 || y == 0 || x == 7 || y == 7)) {\n if (level > 1) {\n bestMoves.clear();\n level = 1;\n }\n bestMoves.add( p );\n } else if (level >= 2 && (x > 2 && x < 6 && y > 2 && y < 6)) {\n if ( level > 2) {\n bestMoves.clear();\n level = 2;\n }\n bestMoves.add( p );\n } else if (level >= 3 && x != 1 && x != 6 && y != 1 && y != 6) {\n if (level > 3) {\n bestMoves.clear();\n level = 3;\n }\n bestMoves.add(p);\n } else if (level >= 4) {\n bestMoves.add(p);\n }\n }\n //for debugging purposes, output the level of move chosen by the ai\n System.out.println(level);\n //select a random move from the pool of best moves\n Point move = bestMoves.get((int) (Math.random() * bestMoves.size()));\n int aix = (int) move.getX();\n int aiy = (int) move.getY();\n //move there\n attemptMove(aix, aiy);\n gamepieces[aix][aiy] = currentPlayer;\n //the ai moved, so this is true\n canLastPlayerMove = true;\n } finally { //if the ai moved or if it didn't\n //change the player\n currentPlayer = Color.WHITE;\n gameFrame.repaint();\n //if the human player has no moves left\n if( getCurrentlyValidMoves().size() == 0 ){\n if( canLastPlayerMove ){ //... and the ai could move\n //switch players, enable the ai to move again in 1 second\n currentPlayer = Color.BLACK;\n timer.start();\n }else{ //... and the ai couldn't move\n gameOver();\n }\n }\n }\n }\n };\n //timer allows the ai to move 1 second after the player\n private final Timer timer = new Timer( 1000, aiMove );\n\n public void mouseClicked(MouseEvent e) {\n\n }\n\n //mousePressed is used to avoid clicks not registering if the mouse is moving\n public void mousePressed(MouseEvent e) {\n //transpose the coordinates to the gameboard (each tile is 100x100 px)\n int x = (int)(e.getX() * 0.01 );\n int y = (int)(e.getY() * 0.01 );\n //if the ai isn't moving and the move is valid\n if( !timer.isRunning() && attemptMove( x, y ) ) {\n //move there\n gamepieces[x][y] = currentPlayer;\n gameFrame.repaint();\n //switch to the ai\n currentPlayer = Color.BLACK;\n timer.start();\n //the player could move\n canLastPlayerMove = true;\n }\n }\n\n public void mouseReleased(MouseEvent e) {\n\n }\n\n public void mouseEntered(MouseEvent e) {\n\n }\n\n public void mouseExited(MouseEvent e) {\n\n }\n });\n //add the pane to the frame and set size\n gameFrame.add( pane );\n gameFrame.setSize( WINDOW_BOUNDS, WINDOW_BOUNDS );\n gameFrame.setVisible( true );\n //the insets take up room, so we have to account for them\n //this includes the draggable edges of the window, and the title bar\n Insets insets = gameFrame.getInsets();\n gameFrame.setSize( WINDOW_BOUNDS + insets.right + insets.left, WINDOW_BOUNDS + insets.top + insets.bottom );\n }", "public static void main(String[] args) {\n\n\t\t// Aus diese Schleife sorgt dafür, das man ohne großen aufwand immer neu spielen kann\n\t\t// hier wird auch das spiel raus gestartet\n\t\twhile (true){\n\n\t\tboard = new Board(); //erstellt das Fenster des Spielfeldes\n\t\tgui = new GUI();\t//erstellt das Fenster des Einstellungs/Start fensters\n\t\tgui.checkBtnPlay(); //wird von hier aufgerufen damit gui nicht = null ist und objekt erstellung abgeschlossen wird\n\t\t\t\t\t\t\t//in dieser Funktion wird auch das spiel gestartet\n\n\t\t//Wenn man hier angekommen ist ist das Aktuelle spiel zuende\n\t\tboard.dispose();\n\n\n\n\t\t//Zurück setzen der der Richtung\n\t\t// 4 heißt keine Bewegung\n\t\tGame.p1direction = 4;\n\t\tGame.p2direction = 4;\n\t}\n\n\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tConnectFourGame frame = new ConnectFourGame(\"Connect Four\");\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tframe.setLocation(dim.width/2-frame.getSize().width/2, dim.height/2-frame.getSize().height/2);\n\t\t\n\t\t// Other Window for starting the game (New Game) & (Game Level)\n\t\tConnectFourGame window = new ConnectFourGame(\"Connect Four\");\n\t\twindow.setLocation(dim.width/2-frame.getSize().width/2, dim.height/2-frame.getSize().height/2);\n\t\t\n\n\t\t// Setup level selection\n\t\tInteger[] levels = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\n\t\tJComboBox<Integer> chooseLevel = new JComboBox<Integer>(levels);\n\t\tchooseLevel.setSelectedIndex(0);\n\t\tchooseLevel.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJComboBox<Integer> lvl = (JComboBox<Integer>) e.getSource();\n\t\t\t\tInteger chosen = (Integer) lvl.getSelectedItem();\n\t\t\t\tupdateLevel(chosen);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tchooseLevel.setBounds(321,550,80,25);\n\n\t\t// Setup new game \n\t\tJButton btn = new JButton(\"New Game\");\n\t\tbtn.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t// Open the board game with selected level\n\t\t\tpublic void mouseClicked(MouseEvent me) {\n\t\t\t\tSystem.out.println(level);\n\t\t\t\tBoard gameBoard = new Board(frame, level);\n\t\t\t\tframe.add(gameBoard.getGameBoard());\n\t\t\t\twindow.setVisible(false);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtn.setBounds(300,500,125,35);\n\t\t\n\t\t\n\t\tMenuDisplay display = new MenuDisplay(btn, chooseLevel);\n window.add(display);\n window.setVisible(true); \n\t\tframe.setVisible(false);\n\t}", "public abstract void createContents(Panel mainPanel);", "private void createGameMode() {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n Rectangle fullScreenBounds = ge.getDefaultScreenDevice().getDefaultConfiguration().getBounds();\n boolean fs = ge.getDefaultScreenDevice().isFullScreenSupported();\n \n setTitle(gameName);\n setName(gameName);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n \n map = new UAVMap(this, UAVModes.GAME, fs);\n \n if (fs) {\n fullScreen = new Window(this);\n fullScreen.add(map.getCanvas());\n ge.getDefaultScreenDevice().setFullScreenWindow(fullScreen);\n } else {\n this.setSize((int)(.9 * fullScreenBounds.width), (int)(.9 * fullScreenBounds.height));\n this.setLocation(fullScreenBounds.x + (int) (.05 * fullScreenBounds.width), \n fullScreenBounds.y + (int) (.05 * fullScreenBounds.height));\n Container content = getContentPane();\n content.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 1;\n content.add(map.getCanvas(), c);\n setVisible(true);\n }\n map.initializeGame();\n map.startTimer(); \n }", "@Override\n public void actionPerformed(ActionEvent evt) {\n\t\t\t\tv = new SpaceShip(180, 525, 50, 50,1);\t// Create Player1\n\t\t\t\tv2 = new SpaceShip(180, 525, 50, 50,2); // Create Player2\n\t\t\t\tgp = new GamePanel();\n\t\t\t\t//New Game Single mode\n\t\t\t\tengine = new GameEngine(gp, v, v2,1);\n\n\n\t\t\t\t//Remove button's panel from Main frame\n\t\t\t\tframe.getContentPane().remove(buttonPanel);\n\n\t\t\t\t//add KeyListener and GamePanel to Main frame\n\t\t\t\tframe.addKeyListener(engine);\n\t\t\t\tframe.getContentPane().add(gp,BorderLayout.CENTER);\n\n\t\t\t\t//Start timmer\n\t\t\t\tengine.start();\n\n\t\t\t\t//Setting MainFrame and re-panting\n\t\t\t\tframe.validate();\n\t\t\t\tframe.repaint();\n\n\t\t\t\t//Eable KeyListener\n\t\t\t\tframe.requestFocus();\n }", "public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}", "public GameWindow() {\n\t\tif (!ENABLED) {\n\t\t\t// Don't touch anything that could cause an X11 call, since this\n\t\t\t// might mess up a test being run over SSH.\n\t\t\tframe = null;\n\t\t\twhoseTurnLabel = null;\n\t\t\tboardPanel = null;\n\t\t} else {\n\t\t\tframe = new JFrame();\n\t\t\tframe.setTitle(\"Fox and Geese\");\n\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\n\t\t\tJPanel content = new JPanel();\n\t\t\tcontent.setLayout(new BorderLayout());\n\t\t\tframe.setContentPane(content);\n\t\n\t\t\tboardPanel = new BoardPanel();\n\t\t\tcontent.add(boardPanel, BorderLayout.CENTER);\n\t\n\t\t\t// Make a row of status labels along the bottom of the window.\n\t\t\tBox status = new Box(BoxLayout.X_AXIS);\n\t\t\tcontent.add(status, BorderLayout.SOUTH);\n\t\n\t\t\twhoseTurnLabel = new JLabel();\n\t\t\twhoseTurnLabel.setBorder(\n\t\t\t\t\tBorderFactory.createEmptyBorder(2, 2, 2, 2));\n\t\t\tstatus.add(whoseTurnLabel);\n\t\n\t\t\t// Determine frame size based on subcomponents.\n\t\t\tframe.pack();\n\t\t}\n\t\t\n\t\tsynchronized (INSTANCES) {\n\t\t\tINSTANCES.add(this);\n\t\t}\n\t}", "public void initPanel() {\n\n puzzlePanel.setVisible(false);\n puzzlePanel = new PuzzlePanel(panelSize);\n\n getContentPane().add(puzzlePanel, BorderLayout.CENTER);\n getContentPane().add(controlPanel, BorderLayout.SOUTH);\n puzzlePanel.setVisible(true);\n\n isWin = false;\n puzzlePanel.setMoveCount(0);\n\n lblMove.setText(\"Jumlah Gerakan: 0\");\n lblTime.setText(\"Waktu: 0 detik\");\n startTime = System.currentTimeMillis();\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n while (!isWin) {\n try {\n currentTime = System.currentTimeMillis();\n lblTime.setText(\"Waktu terpakai: \" + ((currentTime - startTime) / 1000)\n + \" detik\");\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n t.start();\n }", "public void createGame();", "public Start() {\n super();\n setTitle(\"Monopoly\");\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout());\n _gameWindow = new GameWindow();\n _welcome = new WelcomeWindow();\n _gameLoop = new PlayersLoop();\n\n changeGameState(GameState.START_STATE);\n\n setContentPane(mainPanel);\n\n pack();\n setVisible(true);\n setSize(new Dimension(800, 600));\n }", "public static void main(String[] args) {\n\n ConsoleChessGui gui = new ConsoleChessGui();\n GameController gameController = new GameController(gui);\n gameController.run();\n\n\n\n\n }", "public MyFrame() throws IOException {\n\t\tsetResizable(false);\n\t\tsetSize(650, 725);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Dragon Game\");\n\t\t\n\t\tgetContentPane().setFocusTraversalPolicyProvider(true);\n\t\tgetContentPane().setBounds(new Rectangle(0, 0, 650, 450));\n\t\tgetContentPane().setSize(650,450);\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\tbottomPanel = new JPanel();\n\t\tbottomPanel.setBounds(0, 675, 650, 25);\n\t\tgetContentPane().add(bottomPanel);\n\t\tbottomPanel.setLayout(null);\n\t\t\n\t\tbtnExit = new JButton(\"Exit\");\n\t\tbtnExit.setBounds(429, 0, 221, 25);\n\t\tbottomPanel.add(btnExit);\n\t\tbtnExit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint exit = JOptionPane.showConfirmDialog(rootPane, \"Are you sure you want to exit the Game?\");\n\t\t\t\tif( exit == JOptionPane.YES_OPTION )\n\t\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnOptions = new JButton(\"Options\");\n\t\tbtnOptions.setBounds(0, 0, 215, 25);\n\t\tbottomPanel.add(btnOptions);\n\t\tbtnOptions.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\toptionPanel = new OptionsPanel(gamePanel);\n\t\t\t\toptionPanel.setLocationRelativeTo(null);\n\t\t\t\toptionPanel.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnHelp = new JButton(\"Help\");\n\t\tbtnHelp.setBounds(214, 0, 215, 25);\n\t\tbottomPanel.add(btnHelp);\n\t\tbtnHelp.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\thelpPanel = new HelpPanel(gamePanel);\n\t\t\t\thelpPanel.setLocationRelativeTo(null);\n\t\t\t\thelpPanel.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\ttopPanel = new JPanel();\n\t\ttopPanel.setBounds(0, 0, 650, 25);\n\t\tgetContentPane().add(topPanel);\n\t\ttopPanel.setLayout(null);\n\t\t\n\t\t\n\t\tJButton btnNewGame = new JButton(\"New Game\");\n\t\tbtnNewGame.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif(btnCreate.getText().equals(\"Path Done\") || btnCreate.getText().equals(\"Finalize Maze\")){\n\t\t\t\t\t\tbtnCreate.setText(\"Build New Maze\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tgamePanel.start();\n\t\t\t\t\tbuild.setVisible(false);\n\t\t\t\t\tgamePanel.setVisible(true);\n\t\t\t\t} catch (NumberFormatException | IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewGame.setBounds(50, 0, 400, 25);\n\t\ttopPanel.add(btnNewGame);\n\t\t\n\t\tbtnCreate = new JButton(\"Build New Maze\");\n\t\tbtnCreate.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(btnCreate.getText().equals(\"Build New Maze\")){\n\t\t\t\t\tbuild = new BuildPanel(true);\t\t\t\t\n\t\t\t\t\tbuild.setVisible(true);\n\t\t\t\t\tbuild.setBounds(0, 25, 650, 650);\n\t\t\t\t\tgetContentPane().add(build);\n\t\t\t\t\tbuild.setLayout(null);\n\t\t\t\t\tgamePanel.setVisible(false);\n\t\t\t\t\tbtnCreate.setText(\"Path Done\");\n\t\t\t\t\tbuild.draw_Maze();\n\t\t\t\t}\n\t\t\t\telse if(btnCreate.getText().equals(\"Path Done\")){\n\t\t\t\t\tif(build.check_maze()){\n\t\t\t\t\t\tbtnCreate.setText(\"Finalize Maze\");\n\t\t\t\t\t\tbuild.setState(\"ELEMENTS\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(build.check_maze())\n\t\t\t\t\t{\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif(JOptionPane.showConfirmDialog(rootPane, \"Do you want to start new game with this maze?\",null,JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION)\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\tgamePanel.start(build.getN_drag(),build.get_Size(),build.getMatrix());\n\t\t\t\t\t\t\t\tbuild.setVisible(false);\n\t\t\t\t\t\t\t\tbtnCreate.setText(\"Build New Maze\");\n\t\t\t\t\t\t\t\tgamePanel.setVisible(true);\n\t\t\t\t\t\t\t\tgamePanel.doSomeMagic();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (NumberFormatException | IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnCreate.setBounds(450, 0, 200, 25);\n\t\ttopPanel.add(btnCreate);\n\t\t\n\t\tJButton home = new JButton(\"\");\n\t\thome.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgamePanel.myGame.setGameRunning(false);\n\t\t\t\tgamePanel.repaint();\n\t\t\t\t//gamePanel.repaint(false);\n\t\t\t\tbuild.setVisible(false);\n\t\t\t\tgamePanel.setVisible(true);\n\t\t\t\t\n\t\t\t\tbtnCreate.setText(\"Build New Maze\");\n\t\t\t\t/*build = new BuildPanel(false);\t\t\t\t\n\t\t\t\tbuild.setVisible(true);\n\t\t\t\tbuild.setBounds(0, 25, 650, 650);\n\t\t\t\tgetContentPane().add(build);\n\t\t\t\tbuild.setLayout(null);*/\n\t\t\t}\n\t\t});\n\t\thome.setIcon(new ImageIcon(\"imgs/homeSymb.png\"));\n\t\thome.setBounds(0, 0, 50, 25);\n\t\ttopPanel.add(home);\n\t\t\n\t\tgamePanel = new GameBoard(level, size, num_dragons);\n\t\t\n\t\tgamePanel.setBounds(0, 25, 650, 650);\n\t\tgetContentPane().add(gamePanel);\n\t\tgamePanel.setLayout(null);\t\t\n\t\t\n\t\tbuild = new BuildPanel(false);\n\t\tbuild.setVisible(false);\n\t\t\n\t}", "@Override\n public void newGame() {\n //TODO Implement this method\n }", "public void run() {\n gf = addGameFrame(\"Pacman\", displayW, displayH);\n }", "public static void main (String[] args) throws IOException, UnsupportedAudioFileException {\n GamePanel gp = new GamePanel ();\r\n //Make game panel get the focus whenever frame is activated.\r\n gp.requestFocusInWindow();\r\n\r\n SwingUtilities.invokeLater (() -> {\r\n \r\n JFrame gameFrame = new JFrame ();\r\n \r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n \r\n gameFrame.setSize(screenSize);\r\n gameFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);\r\n gameFrame.getContentPane().add(gp);\r\n gameFrame.setVisible(true);\r\n gameFrame.removeNotify();\r\n gameFrame.setUndecorated(true);\r\n gameFrame.addNotify();\r\n gameFrame.setResizable(false);\r\n });\t\r\n }", "private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }", "public static void main(String[] args) {\n\t\t// System.out.println(Tile.class.getName());\n\t\tAppGameContainer app = null;\n\t\ttry {\n\t\t\tapp = new AppGameContainer(new GameStart());\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\t// app.setMinimumLogicUpdateInterval(TICK_TIME);\n\t\t\t// app.setMaximumLogicUpdateInterval(TICK_TIME);\n\t\t\tapp.setDisplayMode(WINDOW_WIDTH, WINDOW_HEIGHT, false);\n\t\t\tapp.start();\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public GameBoard() {\n\t\t\n\t\t// Initiate LoginScreen\n\t\tloginScreen();\n\t}", "public JPanelGameState() {\n initComponents();\n initLabelsArray();\n }", "public void drawBoard() {\n\n\t\t// Create Observable variable\n\t\tgameObserver = new GameObservable(0);\n\n\t\t// Add panel with buttons Start/Stop, Pause/Resume, Undo and Replay\n\t\tJPanel buttonPanel = new JPanel();\n\n\t\tstartStopButton = new JButton();\n\t\tstartStopButton.setText(\"Start\");\n\t\tstartStopButton.addMouseListener(new customMouseListener());\n\t\tstartStopButton.setFocusable(false);\n\n\t\tpauseResumeButton = new JButton();\n\t\tpauseResumeButton.setText(\"Pause\");\n\t\tpauseResumeButton.addMouseListener(new customMouseListener());\n\t\tpauseResumeButton.setFocusable(false);\n\t\tpauseResumeButton.setEnabled(false);\n\n\t\tundoButton = new JButton();\n\t\tundoButton.setText(\"Undo\");\n\t\tundoButton.addMouseListener(new customMouseListener());\n\t\tundoButton.setFocusable(false);\n\t\tundoButton.setEnabled(false);\n\n\t\treplayButton = new JButton();\n\t\treplayButton.setText(\"Replay\");\n\t\treplayButton.addMouseListener(new customMouseListener());\n\t\treplayButton.setFocusable(false);\n\t\treplayButton.setEnabled(false);\n\n\t\t// Add buttons to the panel\n\t\tbuttonPanel.add(startStopButton);\n\t\tbuttonPanel.add(pauseResumeButton);\n\t\tbuttonPanel.add(undoButton);\n\t\tbuttonPanel.add(replayButton);\n\n\t\t// Add Panels\n\t\tsetLayout(new BorderLayout());\n\t\tclock = new Clock(gameObserver);\n\t\tadd(clock, BorderLayout.NORTH);\n\t\tadd(buttonPanel, BorderLayout.SOUTH);\n\t\tboard = new Board(gameObserver);\n\t\tboard.setBackground(Color.white);\n\t\tadd(board);\n\n\t\t// Register to observer\n\t\tgameObserver.addObserver(board);\n\t\tgameObserver.addObserver(clock);\n\n\t\t// JFrame Properties\n\t\tsetTitle(\"Breakout\");\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tsetSize(Constants.WIDTH, Constants.HEIGTH);\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\n\t}", "public Breakthrough()\n {\n //determines which players start first\n turn = Math.random() < 0.5;\n \n //defines icons \n black = new ImageIcon(\"black.jpg\");\n white = new ImageIcon(\"white.jpg\");\n blank = new ImageIcon(\"blank.jpg\"); \n \n //JMenuBar objects\n jmb = new JMenuBar(); \n jmFile = new JMenu(\"File\");\n jmHelp = new JMenu(\"Help\");\n jmiStart = new JMenuItem(\"Start game\");\n jmiRestart = new JMenuItem(\"Restart game\");\n jmiRestart.setEnabled(false);\n jmiExit = new JMenuItem(\"Exit\");\n jmiAbout = new JMenuItem(\"About\");\n jmiRule = new JMenuItem(\"Rules\");\n \n //adding JMenuBar objects to the JFrame\n jmFile.add(jmiStart); \n jmFile.add(jmiRestart);\n jmFile.add(jmiExit); \n jmHelp.add(jmiAbout); \n jmHelp.add(jmiRule); \n jmb.add(jmFile); \n jmb.add(jmHelp); \n setJMenuBar(jmb);\n \n //Mnemonic objects\n jmFile.setMnemonic(KeyEvent.VK_F);\n jmHelp.setMnemonic(KeyEvent.VK_H);\n jmiExit.setMnemonic(KeyEvent.VK_X);\n jmiAbout.setMnemonic(KeyEvent.VK_A);\n jmiRule.setMnemonic(KeyEvent.VK_R);\n jmiStart.setMnemonic(KeyEvent.VK_S);\n jmiRestart.setMnemonic(KeyEvent.VK_T);\n \n //Adding ActionListener\n jmiStart.addActionListener(this);\n jmiRestart.addActionListener(this);\n jmiExit.addActionListener(this); \n jmiAbout.addActionListener(this);\n jmiRule.addActionListener(this);\n \n \n //creates grid\n grid = new JPanel();\n grid.setLayout(new GridLayout(8,8));\n grid.setSize(700,700);\n \n \n //creates grid squares\n gridUnits = new JButton[8][8];\n \n //creates 64 grid square buttons\n for(int rows = 0; rows< gridUnits.length;rows++)\n {\n for(int cols = 0; cols< gridUnits.length; cols++)\n { \n gridUnits[rows][cols] = new JButton();\n }\n \n } \n \n \n //adds 64 buttons to the grid and sets them to the blank.jpg\n for (int rows = 0; rows < gridUnits.length; rows++)\n {\n \n for(int cols = 0; cols < gridUnits.length; cols++)\n {\n grid.add(gridUnits[rows][cols]);\n gridUnits[rows][cols].setIcon(blank);\n \n }\n \n }\n \n //adds the grid to the JFrame\n add(grid);\n \n }", "public Game(){\n new Window(800, 800, \"Survival Game\", this);\n handler = new Handler();\n camera = new Camera(0,0);\n this.addKeyListener(new KeyInput(handler));\n\n //create the map\n map = new Map(handler);\n map.generateMap();\n map.drawWorld();\n\n player = new Player(100, 100, ID.Player, handler);\n handler.addObject(player);\n handler.addObject(new Bear(600, 600, ID.Bear, player));\n handler.addObject(new Deer(400, 400, ID.Deer, player));\n\n start();\n }", "public GUI() {\n this.game = new Game();\n String[] levels = {\"assets/TxtTestLevel.txt\", \"assets/TxtTestLevel2.txt\", \"assets/TxtTestLevel4.txt\", \"assets/TxtTestLevel5.txt\"};\n this.gameLevels = Level.getListOfLevels(levels);\n this.game.loadLevel(gameLevels.get(0));\n this.bottomMenu = new BottomMenu(this);\n this.topMenu = new TopMenu(this);\n this.sidePanel = new SidePanel(this);\n this.keyListener = new KeyboardListener(this);\n this.msgWindow = new PopUpWindow();\n }", "public GameFrame() {\n initComponents();\n setTitle(\"Ultra Generic Tower Defence by Jorzi\");\n }", "public void actionListenner()\n\t{\n\t\t// Add action Listener to each JButton.\n\t\t// WelcomePanel\n\t\tview.getFrame().add(view.getWelcomePanel().getWelcomePanel());\t\n\t\tview.getFrame().setVisible(true);\n\t\t\n\t\t// welcomeButton\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().remove(view.getWelcomePanel().getWelcomePanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().pack());\n\n\t\t// MainPanel\n\t\t// playgameButton\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\t\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().add(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//leaderboardButton\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.add(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//quit\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().add(view.getQuitPanel().getQuitPane()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// PlayerPanel\n\t\t// createButton\n\t\tview.getPlayerPanel().getCreateButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tString input = view.getPlayerPanel().getInputBox().getText();\n\t\t\t\tSystem.out.println(input);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean validname = gameInfo.getModel().getLeaderboard().isValidNewPlayers(input);\n\t\t\t\tSystem.out.println(validname);\n\t\t\t\t\n\t\t\t\tif(validname)\n\t\t\t\t{\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().addNewPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getGameRule().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(input);\n\t\t\t\t\tview.getInGamePanel().setLabelName(input);\t\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setPlayerName(input);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(1));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(0));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(0);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\n\t\t\t\t\tview.getFrame().add(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().setFocusable(true);\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().requestFocusInWindow();\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tview.getFrame().setSize(800, 890);\n\t\t\t\t\tview.getFrame().repaint();\t\t\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!validname)\n\t\t\t\t{\n\t\t\t\t\tview.getPlayerPanel().getInputBox().setText(\"INVALID NAME\");\n\t\t\t\t\tview.getPlayerPanel().getInputBox().addMouseListener(new MouseAdapter(){\n\t\t\t @Override\n\t\t\t public void mouseClicked(MouseEvent e){\n\t\t\t \tview.getPlayerPanel().getInputBox().setText(\"\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t// loadPlayer\n\t\tint numberOfLoadPlayer = view.getPlayerPanel().getExistPlayerButton().length;\n\t\tfor(int i = 0; i < numberOfLoadPlayer; i++)\n\t\t{\n\t\t\tview.getPlayerPanel().getExistPlayerButton()[i].addMouseListener(new MouseAdapter()\n\t\t\t{\n\t\t\t\tpublic void mousePressed(MouseEvent e)\n\t\t\t\t{\n\t\t\t\t\tObject o = e.getSource();\n\t\t\t\t\tJButton pressedButton = (JButton) o;\n\t\t\t\t\tString text = pressedButton.getText();\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(text);\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(gameInfo.getModel().getGameRule().getScores()));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(gameInfo.getModel().getGameRule().getScores());\n\t\t\t\t\tview.getInGamePanel().setLabelName(text);\n\t\t\t\t\t\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(text);\n\t\t\t\t\t\n\t\t\t\t\tview.getPlayerPanel().setLoadPlayer(gameInfo.getModel().getLeaderboard().loadPlayer(text));\t\t\t\n\t\t\t\t\tview.setSelectLevelPanel();\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\t\t\n\t\t\t\t\tview.getFrame().add(view.getSelectLevelPanel().getSelectLevelPanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\t//view.getFrame().pack();\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\t// InGamePanel\n\t\t\t\t\t//case select level unlock\n\t\t\t\t\tfor(int i = 1; i <= 5; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(gameInfo.getModel().getLeaderboard().loadPlayer(text).isLevelUnlocked(i) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString selectLevel = Integer.toString(i);\n\t\t\t\t\t\t\tint level = i;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setPlayerName(gameInfo.getModel().getLeaderboard().loadPlayer(text).getName()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(gameInfo.getModel().getGameRule().getLevel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> gameInfo.getModel().getGameRule().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setLevelLabel(selectLevel));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().remove(view.getSelectLevelPanel().getSelectLevelPanel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setSize(800, 890));\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().requestFocusInWindow());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().setFocusable(true));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().repaint());\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setVisible(true));\t\n\t\t\t\t\t\t\t\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\t\n\t\t}\n\t\t\n\t\t// back\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// LeaderboardPanel\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// QuitPanel\n\t\t// no\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().remove(view.getQuitPanel().getQuitPane()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().repaint());\t\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// yes\n\t\tview.getQuitPanel().getYes().addActionListener(event -> view.getFrame().dispatchEvent(new WindowEvent(view.getFrame(), WindowEvent.WINDOW_CLOSING)));\n\t\t\n\t\t\n\t\t// InGamePanel\n\t\tview.getInGamePanel().getInGamePanel().addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyTyped(KeyEvent e) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tswitch (e.getKeyCode()) {\n\n\t\t\t\t// Case press esc to pause the game\n\t\t\t\tcase KeyEvent.VK_ESCAPE:\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\tview.getFrame().remove(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getFrame().add(view.getPausePanel().getPausePanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_LEFT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_RIGHT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_Z:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.ROTATE_LEFT);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_SPACE:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.FASTER);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tif(lost)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(false);\n\t\t\t\t\t\tlost = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.RESTART);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(winLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setWinLevel(false);\n\t\t\t\t\t\twinLevel = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEXTLEVEL);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void keyReleased(KeyEvent e) {}\n\t\t});\n\t\t\n\t\t// PausePanel\n\t\t// back\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().setSize(800, 890));\t\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\n\t\t// LeaderBoardInPausePanel\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().add(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// ControlsPanel\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().add(view.getControlsPanel().getControlsPanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\tview.getPausePanel().getReturnToMainManuButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\t\t\t\t\n\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEWGAME);\n\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\n\t\t\t\tview.getFrame().remove(view.getPausePanel().getPausePanel());\n\t\t\t\tview.getFrame().add(view.getMainPanel().getMainPanel());\t\n\t\t\t\tview.getFrame().pack();\n\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\n\t\t\t\t//viewAllPanels.getFrame().pack();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// LeaderboardInGame\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(Event -> view.getFrame().remove(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\t// ControlPanel\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().remove(view.getControlsPanel().getControlsPanel()));\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t}", "public void init(MainPanel mainPanel);", "public interface GamePanelListener {}", "private void runGame() {\n\t\t\n\t\t//Initialize Window\n\t\tDimension gameSize = new Dimension(boardWidth, boardHeight);\n\t\tgameWindow = new JFrame(gameName);\n\t\tgameWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tgameWindow.setSize(gameSize);\n\t\tgameWindow.setResizable(false);\n\t\tgameWindow.setVisible(true);\n\t\tgameWindow.setSize(gameSize);\n\t\tgameWindow.setMinimumSize(gameSize);\n\t\tgameWindow.setMaximumSize(gameSize);\n\t\tgameWindow.setPreferredSize(gameSize);\n\t\tgameWindow.setLocationRelativeTo(null);\n\t\tgameWindow.add(new Board());\n\t\t\n\t\t//Display the window\n\t\tgameWindow.pack();\n\t\tgameWindow.setVisible(true);\n\t\t\n\t}", "public SudokuGameApp(String name) {\n super(name);\n this.model = new SudokuGame();\n this.view = new SudokuGamePanel();\n\n getContentPane().add(this.view);\n setSize(1000, 550);\n setResizable(false);\n\n // Fill Difficulty Selector\n for (Difficulty diff : Difficulty.values()) {\n view.getHomePanel().getLevelSelectionModel().addElement(diff);\n }\n\n // Window Action Listeners\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n Object[] options = {\"Exit Sudoku\", \"Cancel\"};\n int result = JOptionPane.showOptionDialog(getParent(), \"Are you sure you want to exit the application?\\nActive games will not be saved.\", \"Exit?\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n if (result == JOptionPane.YES_OPTION) {\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n } else {\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n }\n }\n });\n\n // Action Listeners on Welcome Panel\n this.view.getWelcomePanel().getSignUpPanel().getSigninButton().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n }\n });\n this.view.getWelcomePanel().getSignUpPanel().getSignupButton().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n signUpEvt();\n }\n });\n this.view.getWelcomePanel().getSignInPanel().getSignupButton().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n }\n });\n this.view.getWelcomePanel().getSignInPanel().getSigninButton().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n signInEvt();\n }\n });\n\n // Action Listeners on Home Panel\n this.view.getHomePanel().getNewGameBtn().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n // Get Level for the Game\n Difficulty level = Difficulty.valueOf(view.getHomePanel().getLevelSelector().getSelectedItem().toString().toUpperCase());\n\n // Generate New Game\n Generator puzzle = new Generator();\n puzzle.generateGrid(level);\n model.setPuzzle(puzzle.getGrid());\n\n // Configure View\n view.getGamePanel().setViewCellList(model.getPuzzle().getCellList());\n view.getGamePanel().getLevelTitle().setText(String.valueOf(level));\n update();\n\n // Switch to Game Panel\n view.getCardLayoutManager().show(view.getContent(), \"game\");\n\n // Set up Game Timer & Start\n long start = Calendar.getInstance().getTimeInMillis() / 1000;\n model.setTimer(new Timer(1000, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n long secondsSinceInit = ((Calendar.getInstance().getTimeInMillis() / 1000) - start);\n view.getGamePanel().getTimeLabel().setText(String.format(\"%02d:%02d\", secondsSinceInit / 60 % 60, secondsSinceInit % 60));\n }\n }));\n model.getTimer().setInitialDelay(0);\n model.getTimer().start();\n }\n });\n this.view.getHomePanel().getViewRulesBtn().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n rulesCaller = \"home\"; // -> Rules was called from the 'home' panel, so return to it when done\n view.getCardLayoutManager().show(view.getContent(), \"rules\");\n }\n });\n this.view.getHomePanel().getSignoutBtn().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n Object[] options = {\"Yes, sign out\", \"No way!\"};\n int result = JOptionPane.showOptionDialog(getParent(), \"Are you sure you want to sign out?\", \"Leaving Already?\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n if (result == 0) {\n view.getCardLayoutManager().show(view.getContent(), \"welcome\");\n model.setPlayer(null);\n model.setPuzzle(null);\n model.setHintsUsed(0);\n model.setTimer(null);\n view.getGamePanel().getHintBtn().setEnabled(true);\n view.getHomePanel().getLevelSelector().setSelectedIndex(0);\n }\n }\n });\n\n // Actions Listeners on Game & Rules Panel\n this.view.getGamePanel().getHintBtn().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n // User wants a hint, check if game has unused hints\n if (model.getHintsUsed() < model.getPuzzle().getDifficulty().getMaxHints()) {\n model.getPuzzle().hint(false);\n model.setHintsUsed(model.getHintsUsed() + 1);\n update();\n System.err.println(\"HINT USED: \" + model.getStringHintsUsed());\n if (model.getHintsUsed() == model.getPuzzle().getDifficulty().getMaxHints()) {\n view.getGamePanel().getHintBtn().setEnabled(false);\n JOptionPane.showOptionDialog(getParent(), \"Let's not make it too easy!\\nThat was the last hint for this game.\\n\\nDid you Know?\\nSudokus can likely prevent Alzheimer's disease\\nand Dementia, so don't make it too easy.\", \"Out of Hints\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, null);\n }\n checkGridCompletion();\n }\n }\n });\n this.view.getGamePanel().getViewRulesBtn().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n // Show Rules Panel\n rulesCaller = \"game\"; // -> Rules was called from the 'game' panel, so return to it when done\n view.getCardLayoutManager().show(view.getContent(), \"rules\");\n }\n });\n this.view.getRulesPanel().getBackBtn().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n view.getCardLayoutManager().show(view.getContent(), rulesCaller); // -> Return to caller panel\n }\n });\n this.view.getGamePanel().getEndGameBtn().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n Object[] options = {\"That's it\", \"Cancel\"};\n int result = JOptionPane.showOptionDialog(getParent(), \"Are you sure you want to end the game?\\n\\nThis Sudoku is best played in one sitting,\\nand can't be continued later.\", \"Exit?\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\n if (result == 0) {\n view.getCardLayoutManager().show(view.getContent(), \"home\");\n destroyGameInstance();\n }\n }\n });\n\n // Cell Listener Adapters\n this.cellKeyListener = new KeyAdapter() {\n /**\n * Validates the user input for the cell\n *\n * @param evt the key event trigger\n */\n @Override\n public void keyTyped(KeyEvent evt) {\n Cell cell = (Cell) evt.getSource();\n // Disregard entry if not 1-9 or text already exists\n if (!String.valueOf(evt.getKeyChar()).matches(\"^[1-9]$\") || cell.getText().length() == 1) {\n System.out.println(\"Input: \" + evt.getKeyChar() + \" was rejected.\");\n evt.consume();\n } else {\n // Check if input meets contraints\n if (!model.getPuzzle().meetsConstraints(cell, Integer.valueOf(String.valueOf(evt.getKeyChar()).trim()))) {\n System.err.println(\"VALUE \" + evt.getKeyChar() + \" AT \" + cell.getPosition() + \" DOES NOT MEET SUDOKU CONTRAINTS\");\n cell.setText(\"\");\n cell.setUserValue(0);\n evt.consume();\n } else {\n cell.setUserValue(Integer.valueOf(String.valueOf(evt.getKeyChar()).trim()));\n }\n checkGridCompletion();\n }\n }\n\n };\n this.cellMouseListener = new MouseAdapter() {\n // Cell Hover Attribute\n private Color preActionColor;\n\n /**\n * Event Handler for mouse button press\n *\n * @param evt the event trigger\n */\n @Override\n public void mousePressed(MouseEvent evt) {\n Cell cell = (Cell) evt.getSource();\n\n // On Right-Click, clear cell\n if (evt.getButton() == MouseEvent.BUTTON3) {\n cell.setText(\"\");\n cell.setUserValue(0);\n }\n\n cell.selectAll();\n }\n\n /**\n * Highlights game constraints for the hovered cell\n *\n * @param evt the cell being hovered\n */\n @Override\n public void mouseEntered(MouseEvent evt) {\n Cell cell = (Cell) evt.getSource();\n preActionColor = cell.getBackground();\n\n // Highlight Valid Cells\n for (Cell aCell : view.getGamePanel().getViewCellList()) {\n if (cell.getPosition().getRow() == aCell.getPosition().getRow()) {\n aCell.setBackground(APP_GREEN.darker().darker());\n }\n if (cell.getPosition().getColumn() == aCell.getPosition().getColumn()) {\n aCell.setBackground(APP_GREEN.darker().darker());\n }\n if (cell.getPosition().getSubgrid() == aCell.getPosition().getSubgrid()) {\n aCell.setBackground(APP_GREEN.darker().darker());\n }\n }\n\n cell.setBackground(APP_GREEN);\n }\n\n /**\n * Restores hover colors from hover event\n *\n * @param evt the hovered cell being exited from\n */\n @Override\n public void mouseExited(MouseEvent evt) {\n Cell cell = (Cell) evt.getSource();\n\n // Restore Color\n for (Cell aCell : view.getGamePanel().getViewCellList()) {\n if (aCell.isLocked()) {\n aCell.setBackground(BKGD_DARK_GRAY);\n } else {\n aCell.setBackground(BKGD_LIGHT_GRAY);\n }\n }\n\n cell.setBackground(preActionColor);\n }\n\n };\n }", "public Game()\r\n { \r\n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\r\n super(800, 600, 1);\r\n \r\n // add grill obj on left\r\n grill = new Grill();\r\n addObject(grill, 200, 400);\r\n \r\n // add table on right\r\n prepTable = new PrepTable();\r\n addObject(prepTable, 600, 400);\r\n \r\n // add all the table buttons\r\n addTableButtons();\r\n \r\n // add timer text\r\n timerText = new Text(\"2:00\");\r\n addObject(timerText, 60, 30);\r\n \r\n // setup the timer\r\n frameRate = 60;\r\n timeLeft = frameRate * 2;\r\n \r\n // setup the points\r\n score = 0;\r\n scoreText = new Text(\"$0\");\r\n addObject(scoreText, 50, 80);\r\n \r\n // setup orders\r\n orders = new ArrayList<Order>();\r\n orderTimer = frameRate * 4; // start with a 4 sec delay before the first order\r\n \r\n // the game is still updating\r\n stillRunning = true;\r\n \r\n // fix layering order\r\n setPaintOrder(Text.class, Topping.class, Button.class, Patty.class, Order.class);\r\n \r\n // set order variance\r\n orderVariance = 2 * frameRate;\r\n \r\n // init seconds counter\r\n totalSecondsElapsed = 0;\r\n }", "private Game (String[] args) {\n numTotalPlayers = Integer.valueOf(args[2]); \n try {\n numComputerPlayers = Integer.parseInt(args[3]);\n } catch (ArrayIndexOutOfBoundsException e) {\n numComputerPlayers = 0;\n System.out.println(\"No computer players enabled.\");\n }\n numHumanPlayers = numTotalPlayers - numComputerPlayers;\n board = Board.getInstance(args[0], args[1]);\n view = View.getInstance();\n }", "public GameWindow(){\n setSize(1012,785);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n setLayout(null);\n\n JLabel sun = new JLabel(\"SUN\");\n sun.setLocation(37,80);\n sun.setSize(60,20);\n\n GamePanel gp = new GamePanel(sun);\n gp.setLocation(0,0);\n getLayeredPane().add(gp,new Integer(0));\n \n PlantCard sunflower = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_sunflower.png\")).getImage());\n sunflower.setLocation(110,8);\n sunflower.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Sunflower;\n });\n getLayeredPane().add(sunflower,new Integer(3));\n\n PlantCard peashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_peashooter.png\")).getImage());\n peashooter.setLocation(175,8);\n peashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Peashooter;\n });\n getLayeredPane().add(peashooter,new Integer(3));\n\n PlantCard freezepeashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_freezepeashooter.png\")).getImage());\n freezepeashooter.setLocation(240,8);\n freezepeashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.FreezePeashooter;\n });\n getLayeredPane().add(freezepeashooter,new Integer(3));\n\n\n\n getLayeredPane().add(sun,new Integer(2));\n setResizable(false);\n setVisible(true);\n }", "public JPanelStartMafiaGame() {\n initComponents();\n\n }", "public void fillGamePanel() {\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n gridPanel.add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n }", "@Override\n public void actionPerformed(ActionEvent evt) {\n\t\t\t\tv = new SpaceShip(120, 525, 50, 50,1);\t// Create Player1\n\t\t\t\tv2 = new SpaceShip(230, 525, 50, 50,2); // Create Player2\n\t\t\t\tgp = new GamePanel();\n\t\t\t\t//New Game 2 players mode\n\t\t\t\tengine = new GameEngine(gp, v, v2,2);\n\n\t\t\t\t//Remove button's panel from Main frame\n\t\t\t\tframe.getContentPane().remove(buttonPanel);\n\n\t\t\t\t//add KeyListener and GamePanel to Main frame\n\t\t\t\tframe.addKeyListener(engine);\n\t\t\t\tframe.getContentPane().add(gp,BorderLayout.CENTER);\n\n\t\t\t\t//Start timmer\n\t\t\t\tengine.start();\n\n\t\t\t\t//Setting MainFrame and re-panting\n\t\t\t\tframe.validate();\n\t\t\t\tframe.repaint();\n\n\t\t\t\t//Eable KeyListener\n\t\t\t\tframe.requestFocus();\n }", "public GameFrame() {\n\t\tsuper(\"Treasure Hunt - Game\");\n\t\tthis.setSize(1800,1000);\n\t\t\n\t\tthis.setVisible(true);\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(1775,850));\n\t\tthis.setLocationRelativeTo(null);\n\t\t\n\t\tthis.controller = new Controller(this);\n\t\t\n\t\t// Main container\n\t\tContainer main = this.getContentPane();\n\t\tmain.setLayout(new BorderLayout());\n\t\t\n\t\t// Buttons pane\n\t\tGameButtonsPanel buttonsPane = new GameButtonsPanel(controller);\n\t\tmain.add(buttonsPane,\"North\");\n\t\tthis.buttonsPanel = buttonsPane;\n\t\t\n\t\t// Game pane\n\t\tthis.gamePanel = new GamePanel(this);\n\t\tmain.add(gamePanel);\n\t\t\n\t\t\n\t\t// Menu bar\n\t\tthis.menuBar = new GameMenuBar(controller);\n\t\tthis.setJMenuBar(this.menuBar);\n\t\t\n\t\t\n\t\tthis.revalidate();\n\t\n\t}", "public void playGame() {\r\n\r\n\t\tisPlaying = true;\r\n\r\n\t\tif(isClicked == false && isPlaying == true) {\r\n\r\n\t\t\tframe.getContentPane().remove(leftSection);\r\n\t\t\tframe.getContentPane().remove(middleSection);\r\n\t\t\tframe.getContentPane().remove(rightSection);\r\n\r\n\t\t\tJPanel leftPanel = new JPanel();\r\n\r\n\t\t\tGridLayout grid = new GridLayout(2, 5);\r\n\t\t\tGridLayout gameStructure = new GridLayout(1, 3);\r\n\r\n\t\t\tframe.setLayout(gameStructure);\r\n\r\n\t\t\tleftPanel.setLayout(grid);\r\n\t\t\tleftPanel.setSize(333, 500);\r\n\r\n\r\n\t\t\tJPanel [] gameSquares = new JPanel[10];\r\n\r\n\t\t\t//Loop for generating and formatting the 10 game squares as well as containing event handling \r\n\t\t\tfor(int index = 0; index < gameSquares.length; index++) {\r\n\t\t\t\tfinal int squareIndex = index;\r\n\r\n\t\t\t\tgameSquares[index] = new JPanel();\r\n\t\t\t\tleftPanel.add(gameSquares[index]);\r\n\t\t\t\tgameSquares[index].setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\tgameSquares[index].setBackground(Color.BLUE);\r\n\r\n\t\t\t\tJPanel clickedSquare = new JPanel();\r\n\t\t\t\tclickedSquare.setBackground(Color.YELLOW);\r\n\t\t\t\tclickedSquare.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\r\n\t\t\t\tgameSquares[index].addMouseListener(new MouseAdapter(){\r\n\r\n\t\t\t\t\tJPanel bomb = gameSquares[hideBomb()];\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\tif(e.getSource() == gameSquares[squareIndex] && isPlaying == true && gameSquares[squareIndex].getBackground() == Color.BLUE) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tgameSquares[squareIndex].setBackground(Color.YELLOW);\r\n\t\t\t\t\t\t\tplayerScore++;\r\n\t\t\t\t\t\t\tscoreLabel.setText(\"Your score is: \" + playerScore);\r\n\t\t\t\t\t\t\tscoreLabel.setBackground(Color.BLACK);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(levelEasy == true && playerScore >= 5) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tisPlaying = false; \r\n\t\t\t\t\t\t\t\tscoreLabel.setText(\"You win! You got \" + playerScore + \" points.\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(levelIntermediate == true && playerScore >= 7) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tisPlaying = false;\r\n\t\t\t\t\t\t\t\tscoreLabel.setText(\"You win! You got \" + playerScore + \" points.\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(levelHard == true && playerScore >= 9 ) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tisPlaying = false;\r\n\t\t\t\t\t\t\t\tscoreLabel.setText(\"You win! You got \" + playerScore + \" points.\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(e.getSource() == bomb && isPlaying == true) {\r\n\r\n\t\t\t\t\t\t\t\tisPlaying = false;\r\n\t\t\t\t\t\t\t\tbomb.setBackground(Color.RED);\r\n\t\t\t\t\t\t\t\tplayerScore--;\r\n\r\n\t\t\t\t\t\t\t\tif(playerScore == 1) {\r\n\r\n\t\t\t\t\t\t\t\t\tscoreLabel.setText(\"You lose! You got \" + playerScore + \" point.\");\r\n\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t\t\tscoreLabel.setText(\"You lose! You got \" + playerScore + \" points.\");\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\tisClicked = true;\r\n\r\n\t\t\t\tframe.add(leftPanel);\r\n\t\t\t\tframe.add(middleSection);\r\n\t\t\t\tframe.add(rightSection);\r\n\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run() {\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}", "public void newGame()\n\t{\n\t\tplanet.setLevel(0);\n\t\tship.resetScore();\n\t\tstopThreads();\n\t\tplanet = new Planet(750,600);\n\t\tship = new Ship(20.0,750,600,planet);\n\t\tbuttonPanel.update(ship,planet);\n\t\tgamePanel.update(ship,planet);\n\n\t\trestartThreads();\n\t}", "public TicTacToePanel(){\n\t\tsetSize(DIMENSIONS_SIZE, DIMENSIONS_SIZE);\n\t\tgameArray = new int[DIVISIONS][DIVISIONS];//Stores the value of the current game\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tfor (int j = 0; j<DIVISIONS; j++){\n\t\t\t\tgameArray[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tgameWon = false;//Initialize the first game.\n\t\tgameTie = false;\n\t\twinningPlayer = NEITHER;\n\t\tcurrentPlayer = USER;\n\t\taddMouseListener(new MouseHandler(this));\n\t\taiWins = 0;\n\t\tplayerWins = 0;\n\t\ttieGames = 0;\n\t}", "public Board(String gameName) {\n\n super(gameName);\n \n gameBoard = this;\n squares = new Square[Chess.CHESS][Chess.CHESS];\n moveListener = new MoveListener(this);\n this.setLayout(new GridLayout(Chess.CHESS, Chess.CHESS));\n \n JMenuBar menuBar = new JMenuBar();\n setJMenuBar(menuBar);\n \n // Define and add menu items.\n JMenu fileMenu = new JMenu(\"File\");\n menuBar.add(fileMenu);\n \n // Add the same and load actions.\n JMenuItem saveAction = new JMenuItem(\"Save Game\");\n JMenuItem loadAction = new JMenuItem(\"Load Game\");\n fileMenu.add(saveAction);\n fileMenu.add(loadAction);\n \n initBoard();\n \n initMenu(gameBoard);\n \n setup();\n \n p1 = new Player(Color.RED, true);\n p2 = new Player(Color.BLACK, false);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.pack();\n this.centre();\n this.setVisible(true); \n }", "public Game(){\n\t\tDimension size = new Dimension(width * scale, height * scale);\n\t\tsetPreferredSize(size);\n\t\t\n\t\tscreen = new Screen(width, height);//instantiated the new screen\n\t\t\n\t\tframe = new JFrame();\n\t\t\n\t}", "public MainMenu(Game game) {\r\n\t\tsuper(game);\r\n\t}", "public GameWindow() {\n\t\tthis.initWindow();\n\t}", "public static void main(String[] arguments){\r\n TicTac frame = new TicTac(); //runs the screen layout class.\r\n }" ]
[ "0.74955153", "0.7169723", "0.6980497", "0.6917746", "0.6907306", "0.68376553", "0.68111306", "0.68084157", "0.680244", "0.67729217", "0.6768342", "0.6739564", "0.6737473", "0.67373896", "0.67295367", "0.6715045", "0.6707362", "0.6691983", "0.66855955", "0.6684536", "0.6676031", "0.66570985", "0.665166", "0.6646961", "0.66396713", "0.6625456", "0.66209596", "0.66123617", "0.66057754", "0.65955853", "0.6584537", "0.6584461", "0.65796363", "0.6579599", "0.6544285", "0.6537877", "0.6537193", "0.6526594", "0.6519002", "0.65124017", "0.64718556", "0.64646506", "0.6450911", "0.6447079", "0.64465517", "0.6443817", "0.6441947", "0.64403325", "0.6426498", "0.64227396", "0.64216167", "0.64194137", "0.64194137", "0.64194137", "0.6418849", "0.6415071", "0.64081407", "0.64074874", "0.6404949", "0.6404644", "0.63975495", "0.63949025", "0.63926435", "0.63924766", "0.63867694", "0.6385749", "0.6383395", "0.6383105", "0.6381185", "0.6380099", "0.63768065", "0.6376733", "0.63722473", "0.63706374", "0.63687783", "0.63626146", "0.63612926", "0.63571143", "0.6354473", "0.6353871", "0.63505197", "0.63480276", "0.634219", "0.6341405", "0.63365453", "0.6322753", "0.6320105", "0.6313061", "0.6311402", "0.6309845", "0.63090986", "0.6308281", "0.6304463", "0.63026226", "0.62918425", "0.6288043", "0.6287727", "0.6283493", "0.6282372", "0.6274945" ]
0.74902666
1
In der doInitializationsMethode werden grundlegende Objekte zum Spielstart instanziert Insbesondere werden die Spieler und Gegner generiert, die Karte geladen etc.
public void doInitializations(JFrame menu){ up = false; down = false; left = false; right = false; //sonst läuft Spieler nach Neustart einfach los attack = false; attack2 = false; level = 1; room = 1; last = System.nanoTime(); gameover = 0; actors = new CopyOnWriteArrayList<Sprite>(); attacks = new CopyOnWriteArrayList<Object>(); lib = SpriteLib.getInstance(); soundlib = new SoundLib(); soundlib.loadSound("Hintergrund", "sound/Greensleeves.wav"); soundlib.loadSound("Angriff", "sound/Angriff.wav"); soundlib.loadSound("Zauber", "sound/Zauber.wav"); if(sound_running == true){ soundlib.loopSound("Hintergrund"); } ////1 = Coins, 2 = Mana, 3 = Shop, 4 = Rüstung, 5 = Waffe, 6 = NPC player = new Player(lib.getSprite("resources/pics/player.gif", 12, 1), 50, 50, 100, this); enemy = new Enemy(lib.getSprite("resources/pics/enemy.gif", 4, 1), 100, 500, 10, 100, this); enemy3 = new IceEnemy(lib.getSprite("resources/pics/Eisgegner.gif", 4, 1), 500, 50, 10, 100, this); enemy4 = new FireEnemy(lib.getSprite("resources/pics/Feuergegner.gif", 4, 1), 600, 50, 10, 100, this); enemy2 = new Enemy(lib.getSprite("resources/pics/enemy.gif", 4, 1), 300, 200, 10, 100, this); coin = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 700, 400, 1, 100, this); coin2 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 670, 400, 1, 100, this); coin3 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 640, 400, 1, 100, this); coin4 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 610, 400, 1, 100, this); coin5 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 580, 400, 1, 100, this); coin6 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 100, 50, 1, 100, this); coin7 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 140, 50, 1, 100, this); coin8 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 180, 50, 1, 100, this); coin9 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 220, 50, 1, 100, this); coin10 = new Item(lib.getSprite("resources/pics/coin.gif", 1, 1), 260, 50, 1, 100, this); mana = new Item(lib.getSprite("resources/pics/mana.gif", 1, 1), 470, 500, 2, 100, this); shop = new Item(lib.getSprite("resources/pics/shop.gif", 1, 1), 400, 500, 3, 100, this); npc = new Item(lib.getSprite("resources/pics/npc.gif", 1, 1), 100, 100, 6, 100, this); schildeis = new Item(lib.getSprite("resources/pics/IceArmour.gif", 1, 1), 100, 200, 4, 100, this); schildfeuer = new Item(lib.getSprite("resources/pics/FireArmour.gif", 1, 1), 150, 200, 9, 100, this); schwerteis = new Item(lib.getSprite("resources/pics/IceSword.gif", 1, 1), 100, 150, 5, 100, this); schwertfeuer = new Item(lib.getSprite("resources/pics/FireSword.gif", 1, 1), 150, 150, 10, 100, this); healthpack = new Item(lib.getSprite("resources/pics/healthpack.gif", 1, 1), 500, 100, 7, 100, this); quest = new Quest(lib.getSprite("resources/pics/quest.gif", 1, 1), 500, 200, 2, 100, this); //Münz-Quest quest2 = new Quest(lib.getSprite("resources/pics/quest.gif", 1, 1), 100, 250, 1, 100, this); //Mathe-Münz-Quest actors.add(enemy); actors.add(enemy2); actors.add(enemy3); actors.add(enemy4); actors.add(coin); actors.add(coin2); actors.add(coin3); actors.add(coin4); actors.add(coin5); actors.add(coin6); actors.add(coin7); actors.add(coin8); actors.add(coin9); actors.add(coin10); actors.add(mana); actors.add(shop); actors.add(npc); actors.add(schwerteis); actors.add(schildeis); actors.add(schwertfeuer); actors.add(schildfeuer); actors.add(healthpack); actors.add(quest); actors.add(quest2); actors.add(player); checkpointx = 50; checkpointy = 50; player.setOldCoins(100); player.setOldXP(0); player.setOldMana(0); player.setOldWeapon(0); player.setOldArmour(0); player.setCoins(100); player.setXP(0); player.setOldMaxhealth(100); player.setSkillHealth1(false); player.setSkillHealth2(false); player.setSkillStrength1(false); player.setSkillStrength2(false); player.setOldSkillHealth1(false); player.setOldSkillHealth2(false); player.setOldSkillStrength1(false); player.setOldSkillStrength2(false); skillsOnce = false; //Erstellen der Karte, wobei die ersten 3 Parameter für die Eingabedateien stehen, die erste Zahl für die Anzahl der Spalten im TileSet, die zweite für die Anzahl der Zeilen map = new MapDisplay("resources/level/TileMap_1_1.txt", "resources/pics/tiles_1.gif", "resources/pics/shadow.png", 5, 1, this); initSkills(); menu.dispose(); setStarted(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n protected void init() {\n direccionRegionalList = new ArrayList<InstitucionRequerida>();\n direccionRegionalList = institucionRequeridaServicio.getDireccionRegionalList();\n gadList = new ArrayList<InstitucionRequerida>();\n gadList = institucionRequeridaServicio.getGADList();\n registroMixtoList = new ArrayList<InstitucionRequerida>();\n registroMixtoList = institucionRequeridaServicio.getRegistroMixtoList();\n }", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"[email protected]\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "@PostConstruct\n\tprivate void init() {\n\t\tEntrada entr = new Entrada(\n\t\t\t\tnew Persona(\"Manuel\",\"Jimenex\",\"52422\",\"100000\",\"Cra 340\"),\n\t\t\t\t(new PreFactura(1l,new Date())), itemsService.lista());\n\t\t\n\t\tlistaEntrada.add(entr);\n\t}", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}", "public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}", "private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }", "public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "protected void _init(){}", "private synchronized void init(){\n _2_zum_vorbereiten.addAll(spielzeilenRepo.find_B_ZurVorbereitung());\n _3_vorbereitet.addAll(spielzeilenRepo.find_C_Vorbereitet());\n _4_spielend.addAll(spielzeilenRepo.find_D_Spielend());\n }", "protected void init() {\n\t}", "protected void init() {\n\t}", "protected void init() {\n }", "public void initiate() {\n\t\tallDepartments.put(HRDepartment.class.getSimpleName(), HRDepartment.getInstance());\n\t\tallDepartments.put(ProductionDepartment.class.getSimpleName(), ProductionDepartment.getInstance());\n\t\tallDepartments.put(WarehousingDepartment.class.getSimpleName(), WarehousingDepartment.getInstance());\n\t\tallDepartments.put(FinanceDepartment.class.getSimpleName(), FinanceDepartment.getInstance());\n\t\tallDepartments.put(MarketingDepartment.class.getSimpleName(), MarketingDepartment.getInstance());\n\t\tallDepartments.put(LogisticsDepartment.class.getSimpleName(), LogisticsDepartment.getInstance());\n\t\tallDepartments.put(ProcurementDepartment.class.getSimpleName(), ProcurementDepartment.getInstance());\n\t\tallDepartments.put(ResearchAndDevelopmentDepartment.class.getSimpleName(), ResearchAndDevelopmentDepartment.getInstance());\n\t\tallDepartments.put(SalesDepartment.class.getSimpleName(), SalesDepartment.getInstance());\n\n\t\tcustomerSatisfaction = CustomerSatisfaction.getInstance();\n\t\tcustomerDemand = CustomerDemand.getInstance();\n\t\texternalEvents = ExternalEvents.getInstance();\n\t\tcompanyEcoIndex = CompanyEcoIndex.getInstance();\n\t\tinternalFleet = InternalFleet.getInstance();\n\t\tbankingSystem = BankingSystem.getInstance();\n\t\tproductSupport = ProductSupport.getInstance();\n\t\temployeeGenerator = EmployeeGenerator.getInstance();\n\t\temployeeGenerator.setDepartment((HRDepartment) allDepartments.get(HRDepartment.class.getSimpleName()));\n\t}", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private void Initialize()\n {\n \tEcran = new Rectangle(Framework.gauche, Framework.haut, Framework.frameWidth\n\t\t\t\t- Framework.droite - Framework.gauche, Framework.frameHeight - Framework.bas\n\t\t\t\t- Framework.haut);\n\t\tCentreEcranX = (int)(Ecran.getWidth()/2);\n\t\tCentreEcranY = (int)(Ecran.getHeight()/2);\n\t\twidth = Ecran.getWidth();\n\t\theight = Ecran.getHeight();\t\t\n\t\tpH=height/768;\t\t\n\t\tpW=width/1366;\n\t\tObjets = new ArrayList<Objet>(); // Créer la liste chainée en mémoire\n\t\tMissiles = new ArrayList<Missile>(); // Créer la liste chainée en mémoire\n\t\tStations = new ArrayList<Station>(); // Créer la liste chainée en mémoire\n\t\tJoueurs = new ArrayList<Joueur>();\n\t\tlastTrajectoires = new ArrayList<Trajectoire>();\n\n\t\tDisposeAstres(Framework.niveauChoisi);\n\t\tstationCourante = Stations.get(0);\n\n\t\tetat = ETAT.PREPARATION;\n\t\tmouseClicked = mousePressed = mouseReleased = false;\n\t}", "protected void init(){\n }", "@PostConstruct\n void init() {\n try {\n parameter = 0;\n inmuebleEntityObj = new InmuebleEntity();\n tipoInmuebleEntityObj = new TipoInmuebleEntity();\n localidadEntityObj = new LocalidadEntity();\n propiedadEntityObj = new PropiedadEntity();\n tipoInmuebleEntityList = selectOptions.cbxTipoInmueble();\n propiedadEntityList = selectOptions.cbxPropiedad(true);\n localidadEntityObj = new LocalidadEntity();\n municipioEntityObj = new MunicipioEntity();\n departamentoEntityObj = new DepartamentoEntity();\n provinciaEntityObj = new ProvinciaEntity();\n tipoInmuebleEntityList = selectOptions.cbxTipoInmueble();\n propiedadEntityList = selectOptions.cbxPropiedad(true);\n departamentoEntityList = selectOptions.cbxDepartamento();\n setEstadoProvincia(true);\n setEstadoMunicipio(true);\n setEstadoLocalidad(true);\n validateParameter = beanApplicationContext.getMapValidateParameters();\n miscParameter = beanApplicationContext.getMapMiscellaneousParameters();\n mapaPropiedades = new MapaGoole(miscParameter.get(EnumParametros.LATITUD_CENTER_MAPA.toString()) + \",\" + miscParameter.get(EnumParametros.LONGITUD_CENTER_MAPA.toString()),\n miscParameter.get(EnumParametros.ZOOM_MAPA.toString()),\n miscParameter.get(EnumParametros.TIPO_MAPA.toString()));\n } catch (Exception e) {\n logger.error(\"[init] Fallo en el init.\", e);\n }\n }", "public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}", "@Override\n protected void init() {\n }", "private void initializeObjects() {\n\n showActionBarAndCalendar();\n\t\t\n\t\tmAverageHeartRate = (DashboardItemHeartRate) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_HEART_RATE);\n\t\tmStepsMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_STEPS);\n\t\tmDistanceMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_DISTANCE);\n\t\tmCalorieMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_CALORIES);\n\t\tmSleepMetric = (DashboardItemSleep) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_SLEEP);\n\t\tmWorkoutInfo = (DashboardItemWorkout) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_WORKOUT);\n\t\tmActigraphy = (DashboardItemActigraphy) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_ACTIGRAPHY);\n\t\tmLightExposure = (DashboardItemLightExposure) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_LIGHT_EXPOSURE);\n\t\t\n\t\tarrangeDashboardItems();\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void init() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "public void init() {\n\t\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "@PostConstruct\n\tpublic void init() {\n\t\twarningWindowCounter = WARNINGWINDOWTIME;\n\t\tsessionTimeoutCounter = TIMEOUTAFTERWARNING;\n\t\tanzeigeSessionTimeoutCounter = false;\n\t\tsessionGone = false;\n\t\tautosaveFrequency = AUTOSAVEPERIOD;\n\t\tautoSaveController.setValidSessionId(selection.getSessionId());\n\t\tMainEntry entry = selection.getEntry();\n\t\tnavigationList = entrySteuerung.getEntryList(selection.getThema());\n\t\tif (null != navigationList && entry != null) {\n\t\t\t//int entryIndex = navigationList.indexOf(entry);\n\t\t\tentryIterator = navigationList.listIterator();\n\t\t\twhile (entry.getId() != entryIterator.next().getId()) {\n\t\t\t}\n\t\t}\n\t\treferenzArt = true;\n\t\tlabelReferenz = \"Buch\";\n\t\tlabelUReferenz = \"Seite\";\n\t\tquRes = entrySteuerung.findReferences();\n\t\taBeschreibungen = entrySteuerung.findBeschreibungen(selection.getThema());\n\t\tbearbeiten = false;\n\t\tif (null == entry) {\n\t\t\treferenzen = new ArrayList<>();\n\t\t\tabfragen = new ArrayList<>();\n\t\t\tneu = true;\n\t\t\tmainEntry = new MainEntry();\n\t\t} else {\n\t\t\tkBeschreibung = entry.getKurzEintrag();\n\t\t\tlBeschreibung = entry.getLangEintrag();\n\t\t\treferenzen = entry.getReferenzen();\n\t\t\tbeispiel = entry.getBeispiel();\n\t\t\tabfragen = entry.getAbfragen();\n\t\t\tneu = false;\n\t\t\tmainEntry = entry;\n\t\t}\n\t}", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n public void init() {\n this.shapes = new DatabaseShape();\n }", "@Before\n\tpublic void init() {\n\t\tprofesseurServiceEmp = new ProfesseurServiceEmp();\n\t}", "public void init() {\r\n\r\n\t}", "protected void init() {\n // to override and use this method\n }", "@Override\r\n\tpublic void init() {}", "public void init() {\n \n }", "@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "private void init() {\n filmCollection = new FilmCollection();\n cameraCollection = new CameraCollection();\n }", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "private void init() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public static void init()\n {\n\n addShapeless();\n\n addShaped();\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "public void init() {\n\ttsp.init();\n }", "public void init(){\n \n }", "public void init() {\n\t\t \r\n\t\t }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\tfecha = new Date();\r\n\t\t\r\n\t\tlistaBancos = new ArrayList<SelectItem>();\r\n\t\tlistaRegiones = new ArrayList<SelectItem>();\r\n\t\tlistaCiudades = new ArrayList<SelectItem>();\r\n\t\tlistaComunas = new ArrayList<SelectItem>();\r\n\t\t\r\n\t\tfor(EmpresaDTO empresa : configJProcessService.selectEmpresasByOrganizacion(1))\r\n\t\t\tlistaBancos.add(new SelectItem(empresa.getId(), empresa.getNombre()));\r\n\t}", "private void _init() {\n }", "public void init() {\n\t\t\n\t}", "public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}", "@Override\n public void init() {\n }", "@PostConstruct\n\tprotected void init() {\n\t\tLOGGER.info(\"GalleryModel init Start\");\n\t\tcharacterList.clear();\n\t\ttry {\n\t\t\tif (resource != null && !resource.getPath().contains(\"conf\")) {\n\t\t\t\t\tresolver = resource.getResourceResolver();\n\t\t\t\t\thomePagePath=TrainingHelper.getHomePagePath(resource);\n\t\t\t\t\tif(homePagePath!=null){\n\t\t\t\t\tlandinggridPath = homePagePath;\n\t\t\t\t\tif (!linkNavigationCheck) {\n\t\t\t\t\t\tlinkNavOption = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tcheckLandingGridPath();\n\t\t\t\t\tif (!\"products\".equals(galleryFor)) {\n\t\t\t\t\t\tcharacterList = tileGalleryAndLandingService.getAllTiles(landinggridPath, galleryFor, \"landing\",\n\t\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Exception Occured\", e);\n\t\t}\n\t\tLOGGER.info(\"GalleryModel init End\");\n\t}", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "@BeforeEach\n void init() {\n carte = new Carte();\n planning = new Planning(carte);\n }", "@PostConstruct\n\tpublic void init()\n\t{\n\t\tlogModule.info(TaskGenerator.class, \"初始化 Task generator...\");\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "private void init() {\n\n\n\n }", "public void init() {\n }", "public void init() {\n }" ]
[ "0.6847046", "0.67422837", "0.65469885", "0.6486256", "0.6458809", "0.64559984", "0.6391482", "0.63802475", "0.63346547", "0.6319042", "0.62635386", "0.6250057", "0.62361556", "0.62361556", "0.622506", "0.6215358", "0.62098086", "0.6209628", "0.6209628", "0.6209628", "0.6185021", "0.6183971", "0.6181819", "0.61697096", "0.61691624", "0.616428", "0.6153644", "0.6149621", "0.6147322", "0.61405843", "0.61385876", "0.61384803", "0.6135324", "0.6135324", "0.6135324", "0.6135324", "0.6131277", "0.6129358", "0.6119934", "0.6114389", "0.61095434", "0.610949", "0.61039305", "0.61021316", "0.60997146", "0.6088372", "0.6088017", "0.6087558", "0.608617", "0.60800904", "0.6074936", "0.60739386", "0.6070509", "0.60692275", "0.60692275", "0.60692275", "0.6067024", "0.6064135", "0.6053862", "0.6049675", "0.60414314", "0.6034314", "0.6034314", "0.6034314", "0.60335994", "0.60335964", "0.60335964", "0.60335964", "0.60331905", "0.6033018", "0.6028505", "0.6024946", "0.60220116", "0.60089314", "0.6006993", "0.6006993", "0.6006993", "0.6003157", "0.60000074", "0.5999558", "0.5997056", "0.5996929", "0.5990748", "0.59846973", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.59832144", "0.5981229", "0.59765124", "0.5975111", "0.59725857", "0.59681886", "0.59681886" ]
0.0
-1
Hier werden die multiplayerspezifischen Initialisierungen vorgenommen: zwei Spieler werden initialisiert, die entsprechende Karte geladen und das Spiel auf "gestartet" gesetzt
public void doInitializationsMulti(JFrame f){ //TODO: Hier wird nix gemalt, solange Server und Client aktiv sind -> Zwei parallel Threads? Wie implementieren? f.dispose(); chat(); System.out.println("Netzwerk-Fenster verstecken"); System.out.println("doInitializationsMulti ausführen"); up = false; down = false; left = false; right = false; //sonst läuft Spieler nach Neustart einfach los attack = false; attack2 = false; level = 1; room = 1; last = System.nanoTime(); gameover = 0; actors = new CopyOnWriteArrayList<Sprite>(); attacks = new CopyOnWriteArrayList<Object>(); lib = SpriteLib.getInstance(); soundlib = new SoundLib(); soundlib.loadSound("Hintergrund", "sound/Greensleeves.wav"); soundlib.loadSound("Angriff", "sound/Angriff.wav"); soundlib.loadSound("Zauber", "sound/Zauber.wav"); if(sound_running == true){ soundlib.loopSound("Hintergrund"); } if(serverMode){ player = new Player(lib.getSprite("resources/pics/player.gif", 12, 1), 50, 50, 100, this); //player immer eigener Spieler, player 2 der andere player2 = new Player(lib.getSprite("resources/pics/player2.gif", 12, 1), 650, 50, 100, this); player2.setRemote(true); actors.add(player); actors.add(player2); }else{ player = new Player(lib.getSprite("resources/pics/player2.gif", 12, 1), 650, 50, 100, this); player2 = new Player(lib.getSprite("resources/pics/player.gif", 12, 1), 50, 50, 100, this); player2.setRemote(true); actors.add(player2); actors.add(player); } schwerteis = new Item(lib.getSprite("resources/pics/IceSword.gif", 1, 1), 100, 500, 5, 100, this); schwertfeuer = new Item(lib.getSprite("resources/pics/FireSword.gif", 1, 1), 600, 500, 10, 100, this); // Item xp1 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 50, 530, 11, 100, this); // Item xp2 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 100, 530, 11, 100, this); // Item xp3 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 150, 530, 11, 100, this); // Item xp4 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 200, 530, 11, 100, this); // Item xp5 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 250, 530, 11, 100, this); // Item xp6 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 300, 530, 11, 100, this); // Item xp7 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 350, 530, 11, 100, this); // Item xp8 = new Item(lib.getSprite("resources/pics/Doughnut.gif", 1, 1), 400, 530, 11, 100, this); actors.add(schwerteis); actors.add(schwertfeuer); // actors.add(xp1); // actors.add(xp2); // actors.add(xp3); // actors.add(xp4); // actors.add(xp5); // actors.add(xp6); // actors.add(xp7); // actors.add(xp8); map = new MapDisplay("resources/level/MultiTileMap_1_1.txt", "resources/pics/tiles_2.gif", "resources/pics/shadow.png", 5, 1, this); frame.add(this); initSkills(); setStarted(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}", "@Before\n\tpublic void initial() {\n\t\tmodele = new FractaleModele();\n\t\tcontroleur = new FractaleControler(modele);\n\t}", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "public Monopoly() {\n\t\tsuper();\n\t\tthis.spieler = new Spielerverwaltung();\n\t\tthis.logik = new Spielverwaltung(spieler,this);\n\t\tpmLaden = new PersistenzLaden();\n\t\tpmSpeichern = new PersistenzSpeichern();\n\t}", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "public void init(){\n\t\t\n\t\t// Definition general de la fenetre\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t/*********** PARTIE HAUTE *************/\n\t\t\n\t\t// JPanel qui va contenir l'interface de controle\n\t\tJPanel panH=new JPanel();\n\t\t\n\t\t// Ajout de la zone de saisie du mot binaire\n\t\tpanH.add(new JLabel(\"Mot binaire:\"));\n\t\tentree=new JTextField(\"1100110101\",10);\n\t\tpanH.add(entree);\n\t\t\n\t\t// Ajout de la liste de selection du codage\n\t\tcodage=new JComboBox();\n\t\tcodage.addItem(\"NRZ\");\n\t\tcodage.addItem(\"NRZI\");\n\t\tcodage.addItem(\"Manchester\");\n\t\tcodage.addItem(\"Manchester differentiel\");\n\t\tcodage.addItem(\"Miller\");\n\t\t\n\t\tpanH.add(codage);\n\t\t\n\t\t\n\t\t// Ajout du bouton d'execution du codage\n\t\tconvertir=new JButton(\"Convertir\");\n\t\tconvertir.addActionListener(new EcouteurBouton());\n\t\tpanH.add(convertir);\n\t\t\n\t\t\n\t\tadd(panH,BorderLayout.NORTH);\n\t\t\n\t\t\n\t\t/*********** PARTIE CENTRALE *************/\n\t\t\n\t\t// Ajout de la zone d'affichage de la solution\n\t\tzoneGraph=new Dessin();\n\t\tadd(zoneGraph);\n\t}", "public void GameInit() {\n ufot = new ArrayList();\n kuti = new Kuti();\n pelaaja = new Pelaaja();\n ufokuti = new UfoKuti();\n ufokuti.setVisible(false);\n kuti.setVisible(false);\n grafiikka = new Grafiikka(this);\n grafiikka.asetaKuvaRajahdykselle();\n grafiikka.asetaKuvaPelaajalle(grafiikka.pelaajaIcon(pelaaja), pelaaja);\n asetaUfotRiveihin();\n ufokutiInit();\n }", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "@PostConstruct\n\tpublic void init() {\n\t\twarningWindowCounter = WARNINGWINDOWTIME;\n\t\tsessionTimeoutCounter = TIMEOUTAFTERWARNING;\n\t\tanzeigeSessionTimeoutCounter = false;\n\t\tsessionGone = false;\n\t\tautosaveFrequency = AUTOSAVEPERIOD;\n\t\tautoSaveController.setValidSessionId(selection.getSessionId());\n\t\tMainEntry entry = selection.getEntry();\n\t\tnavigationList = entrySteuerung.getEntryList(selection.getThema());\n\t\tif (null != navigationList && entry != null) {\n\t\t\t//int entryIndex = navigationList.indexOf(entry);\n\t\t\tentryIterator = navigationList.listIterator();\n\t\t\twhile (entry.getId() != entryIterator.next().getId()) {\n\t\t\t}\n\t\t}\n\t\treferenzArt = true;\n\t\tlabelReferenz = \"Buch\";\n\t\tlabelUReferenz = \"Seite\";\n\t\tquRes = entrySteuerung.findReferences();\n\t\taBeschreibungen = entrySteuerung.findBeschreibungen(selection.getThema());\n\t\tbearbeiten = false;\n\t\tif (null == entry) {\n\t\t\treferenzen = new ArrayList<>();\n\t\t\tabfragen = new ArrayList<>();\n\t\t\tneu = true;\n\t\t\tmainEntry = new MainEntry();\n\t\t} else {\n\t\t\tkBeschreibung = entry.getKurzEintrag();\n\t\t\tlBeschreibung = entry.getLangEintrag();\n\t\t\treferenzen = entry.getReferenzen();\n\t\t\tbeispiel = entry.getBeispiel();\n\t\t\tabfragen = entry.getAbfragen();\n\t\t\tneu = false;\n\t\t\tmainEntry = entry;\n\t\t}\n\t}", "@Override\n\tpublic void init() {\n\t\tcurrentBoard= new DeskTopNote( _SysConfig.getDeskTopFile(), this );\n\t\tif( currentBoard == null ){\n\t\t\tSystem.exit( 201 );\n\t\t}\n\t\tboardStack.add( currentBoard );\n\t}", "private void Initialize()\n {\n \tEcran = new Rectangle(Framework.gauche, Framework.haut, Framework.frameWidth\n\t\t\t\t- Framework.droite - Framework.gauche, Framework.frameHeight - Framework.bas\n\t\t\t\t- Framework.haut);\n\t\tCentreEcranX = (int)(Ecran.getWidth()/2);\n\t\tCentreEcranY = (int)(Ecran.getHeight()/2);\n\t\twidth = Ecran.getWidth();\n\t\theight = Ecran.getHeight();\t\t\n\t\tpH=height/768;\t\t\n\t\tpW=width/1366;\n\t\tObjets = new ArrayList<Objet>(); // Créer la liste chainée en mémoire\n\t\tMissiles = new ArrayList<Missile>(); // Créer la liste chainée en mémoire\n\t\tStations = new ArrayList<Station>(); // Créer la liste chainée en mémoire\n\t\tJoueurs = new ArrayList<Joueur>();\n\t\tlastTrajectoires = new ArrayList<Trajectoire>();\n\n\t\tDisposeAstres(Framework.niveauChoisi);\n\t\tstationCourante = Stations.get(0);\n\n\t\tetat = ETAT.PREPARATION;\n\t\tmouseClicked = mousePressed = mouseReleased = false;\n\t}", "private void setUp() {\n move = new MoveSlidingTiles(2, 5, 3, 1);\n }", "@Before\r\n\tpublic void init() {\n\t\tfinal List<Integer> container3 = createContainer((int) Math.pow(3, 2));\r\n\t\tcontainer3.set(container3.size() - 1, null);\r\n\t\tgoal3 = new BoardListImpl<>(3, container3);\r\n\r\n\t\t// 4 x 4 board\r\n\t\tfinal List<Integer> container4 = createContainer((int) Math.pow(4, 2));\r\n\t\tcontainer4.set(container4.size() - 1, null);\r\n\t\tgoal4 = new BoardListImpl<>(4, container4);\r\n\t}", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}", "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"[email protected]\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "private void initComposants() {\r\n\t\tselectionMatierePanel = new SelectionMatierePanel(1);\r\n\t\ttableauPanel = new TableauPanel(1);\r\n\t\tadd(selectionMatierePanel, BorderLayout.NORTH);\r\n\t\tadd(tableauPanel, BorderLayout.SOUTH);\r\n\t\t\r\n\t}", "private void initPlayers() {\n this.playerOne = new Player(1, 5, 6);\n this.playerTwo = new Player(2, 0, 1);\n this.currentPlayer = playerOne;\n\n }", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "public void initialiseBoard() {\n\t\tPlayer1Mancala = new MancalaPit(this.player1Name, 0, null);\n\t\tPit player1_Pit6 = new Pit(this.player1Name, 6, 1, Player1Mancala);\n\t\tPit player1_Pit5 = new Pit(this.player1Name, 5, 1, player1_Pit6);\n\t\tPit player1_Pit4 = new Pit(this.player1Name, 4, 1, player1_Pit5);\n\t\tPit player1_Pit3 = new Pit(this.player1Name, 3, 1, player1_Pit4);\n\t\tPit player1_Pit2 = new Pit(this.player1Name, 2, 1, player1_Pit3);\n\t\tPit player1_Pit1 = new Pit(this.player1Name, 1, 1, player1_Pit2);\n\n\t\t// Define Player2 Pits in descending order \n\t\tPlayer2Mancala = new MancalaPit(this.player2Name, 0, null);\n\t\tPit player2_Pit6 = new Pit(this.player2Name, 6, 1, Player2Mancala);\n\t\tPit player2_Pit5 = new Pit(this.player2Name, 5, 1, player2_Pit6);\n\t\tPit player2_Pit4 = new Pit(this.player2Name, 4, 1, player2_Pit5);\n\t\tPit player2_Pit3 = new Pit(this.player2Name, 3, 1, player2_Pit4);\n\t\tPit player2_Pit2 = new Pit(this.player2Name, 2, 1, player2_Pit3);\n\t\tPit player2_Pit1 = new Pit(this.player2Name, 1, 1, player2_Pit2);\n\n\t\t// Complete the board by connecting mancala with player pits\n\t\tPlayer1Mancala.setNextPit(player2_Pit1);\n\t\tPlayer2Mancala.setNextPit(player1_Pit1);\n\n\t\t//Initialize the Player1 board \n\t\tthis.Player1Pits[0] = player1_Pit1;\n\t\tthis.Player1Pits[1] = player1_Pit2;\n\t\tthis.Player1Pits[2] = player1_Pit3;\n\t\tthis.Player1Pits[3] = player1_Pit4;\n\t\tthis.Player1Pits[4] = player1_Pit5;\n\t\tthis.Player1Pits[5] = player1_Pit6;\n\n\t\t// Initialize the Player2 board \n\t\tthis.Player2Pits[0] = player2_Pit1;\n\t\tthis.Player2Pits[1] = player2_Pit2;\n\t\tthis.Player2Pits[2] = player2_Pit3;\n\t\tthis.Player2Pits[3] = player2_Pit4;\n\t\tthis.Player2Pits[4] = player2_Pit5;\n\t\tthis.Player2Pits[5] = player2_Pit6;\n\t}", "public final void init() {\r\n GroundItemManager.create(this);\r\n SPAWNS.add(this);\r\n }", "private void init() {\n\t\n\t\tthis.setSize(DEFAULT_W, DEFAULT_H);\n\t\tthis.setLocation(DEFAULT_X, DEFAULT_X);\n\t\tthis.setTitle(DEFAULT_TITLE);\n\n\t}", "public void setUp()\r\n {\r\n board = new MineSweeperBoard(4, 4, 1);\r\n }", "@PostConstruct\n\tprivate void init() {\n\t\tEntrada entr = new Entrada(\n\t\t\t\tnew Persona(\"Manuel\",\"Jimenex\",\"52422\",\"100000\",\"Cra 340\"),\n\t\t\t\t(new PreFactura(1l,new Date())), itemsService.lista());\n\t\t\n\t\tlistaEntrada.add(entr);\n\t}", "public SlanjePoruke() {\n }", "private void init() {\n filmCollection = new FilmCollection();\n cameraCollection = new CameraCollection();\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void init() {\n\n\t}", "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "private void prepare_3_warten_auf_start() {\n if (stopBecause_wartenAufStart() ) {\n this.zeitgeber.stopGame(\"spielzeit des vorbereitenden ist abgelaufen\");\n }\n \n // zeit wieder starten, falls vorbereiten leer ist oder eine zeile mit start in der zukunft hat, falls evnet auf pause ist\n if (jetzt.isUnterbruch() && ! stopBecause_zumVorbereiten()) {\n if (this._3_vorbereitet.isEmpty() || jetzt.getSpielZeit().isBefore(new DateTime(_3_vorbereitet.get(0).getStart()))) {\n this.zeitgeber.startGame(0, \"liste mit vorbereiteten ist wieder leer\");\n }\n }\n }", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "public Waschbecken() {\n this(0, 0);\n }", "private void initialisiereKomponenten() {\r\n\t\tthis.southP = new Panel();\r\n\t\tthis.southP.setBackground(new Color(250, 240, 230));\r\n\r\n\t\tthis.centerP = new Panel();\r\n\t\tthis.centerP.setBackground(new Color(250, 240, 230));\r\n\r\n\t\tthis.northP = new Panel();\r\n\t\tthis.northP.setBackground(new Color(250, 240, 230));\r\n\r\n\t\tthis.farbe = new Color[] { Color.BLACK, Color.RED, Color.YELLOW, Color.BLUE, Color.WHITE, Color.GREEN };\r\n\r\n\t\tthis.eins = new JButton(\" \");\r\n\t\tthis.zwei = new JButton(\" \");\r\n\t\tthis.drei = new JButton(\" \");\r\n\t\tthis.vier = new JButton(\" \");\r\n\t\tthis.bestätigen = new JButton(\"Bestätigen\");\r\n\r\n\t\tthis.farbListener = new FarbListener();\r\n\t\tthis.bestätigenListener = new BestätigenListener();\r\n\r\n\t\tthis.sliderFarbe = this.erstelleSchieberegler(1, 6);\r\n\t\tthis.sliderButton = this.erstelleSchieberegler(1, 4);\r\n\r\n\t\tthis.buttonsammler = new JButton[] { eins, zwei, drei, vier };\r\n\r\n\t\tthis.aktivität = new String[] { \"Bitte gebe eine 1 in die Console ein.\",\r\n\t\t\t\t\"Bitte drücke den 'Vergleichen' Button.\", \"Codierer, bitte bestätige deine Farbfolge.\" };\r\n\t\tthis.rundeAnzeigeText = new String[] { \"Aktuelle Runde: 1\", \"Aktuelle Runde: 2\", \"Aktuelle Runde: 3\",\r\n\t\t\t\t\"Aktuelle Runde: 4\", \"Aktuelle Runde: 5\", \"Aktuelle Runde: 6\", \"Aktuelle Runde: 7\",\r\n\t\t\t\t\"Aktuelle Runde: 8\" };\r\n\r\n\t\tthis.rundeAnzeige = new JLabel(this.rundeAnzeigeText[0]);\r\n\t\tthis.labelAktivität = new JLabel(this.aktivität[2]);\r\n\t\tthis.labelSliderButton = new JLabel(\"Button-Slider\");\r\n\t\tthis.labelSliderFarbe = new JLabel(\"Farbe-Slider\");\r\n\r\n\t\tthis.counter = 0;\r\n\t}", "public Echec() {\n initComponents();\n chargerImages();\n IAAbstraite ia = choixModeJeu();\n String config = chargerConfiguration();\n \n if(config == null)\n {\n this.partie = new Partie(ia);\n }\n else\n {\n try\n {\n this.partie = new Partie(config, ia);\n }\n catch(Exception e)\n {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Impossible de charger la configuration : \" + e.getMessage(), \"Erreur de lecture de la configuration\", JOptionPane.ERROR_MESSAGE);\n this.partie = new Partie(ia);\n }\n }\n \n updatePlateau();\n }", "private void initialize()\n {\n for(int i=0;i<4;i++)\n {\n foundationPile[i]= new Pile(Rank.ACE);\n foundationPile[i].setRules(true, false, false, false, true,false, true);\n } \n for(int i=0;i<7;i++)\n {\n tableauHidden[i] = new Pile();\n tableauVisible[i] = new Pile(Rank.KING);\n tableauVisible[i].setRules(false, true, false, false, false,false, true);\n } \n deck.shuffle();\n deck.shuffle();\n dealGame();\n }", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "public void init() {\n\ttsp.init();\n }", "public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }", "public void init() {\r\n\r\n\t}", "public Player(){\n default_init();\n }", "public void initialise()\r\n {\n Deck d = new Deck();\r\n d.shuffle();\r\n //Deal cards to players\r\n Iterator<Card> it = d.iterator();\r\n int count = 0;\r\n while (it.hasNext())\r\n {\r\n players[count % nosPlayers].addCard(it.next());\r\n it.remove();\r\n ++count;\r\n }\r\n //Initialise Discards\r\n discards = new Hand();\r\n //Chose first player\r\n currentPlayer = 0;\r\n currentBid = new Bid();\r\n currentBid.setRank(Card.Rank.TWO);\r\n }", "@Override\r\n\tpublic void init() {}", "public void init()\r\n\t{\n\t\tsetSize(300,300);\r\n\t\taddKeyListener(this); //ajout d'ecouteur de clavier\r\n\t\t\r\n\t}", "public void init() {\n \n }", "public static void init()\n {\n\n addShapeless();\n\n addShaped();\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public Wiese() \n {\n // Erzeugt eine neue Welt\n super(WORLD_WIDTH, WORLD_HEIGHT, CELL_SIZE);\n\n setPaintOrder(Kara.class, Tree.class, Mushroom.class, Leaf.class);\n Greenfoot.setSpeed(15);\n\n // Erzeuge die Anfangs-Objekte fuer die Welt.\n prepare();\n }", "public Pasien() {\r\n }", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "private void init() {\r\n\r\n\t\tPlanetLayoutGenerator gen = new PlanetLayoutGenerator();\r\n\t\tint planetCount = 15;\r\n\t\tint width = 5, height = 5, depth = 5;\r\n\t\tint[][][] layout = gen.generate(width, height, depth, planetCount);\r\n\t\tfinal float minSize = 4, maxSize = 10;\r\n\t\tfinal float gap = (C.World.PlanetBoxSize - maxSize*width)/(width-1);\r\n\r\n\t\tTextureRegion textures[] = new TextureRegion[] {\r\n\t\t\tassets.planetNeptune,\r\n\t\t\tassets.planetSaturn,\r\n\t\t\tassets.planetEarth,\r\n\t\t};\r\n\t\tfloat x = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\t\tfloat y = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\t\tfloat z = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\r\n\t\tfor (int ix = 0; ix < width; ++ix) {\r\n\t\t\tfor (int iy = 0; iy < height; ++iy) {\r\n\t\t\t\tfor (int iz = 0; iz < depth; ++iz) {\r\n\t\t\t\t\tif (layout[ix][iy][iz] == 1) {\r\n\t\t\t\t\t\tTextureRegion tex = textures[(ix+iy+iz)%3];\r\n\t\t\t\t\t\tfloat size = MathUtils.random(minSize, maxSize);\r\n\r\n\t\t\t\t\t\tfactory.createPlanet(x+ix*(maxSize+gap), y+iy*(maxSize+gap), z+iz*(maxSize+gap), size, 0, tex);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tEntity player = factory.createPlayerShip(0, 0, 5);\r\n\t\tplayerSystem.setPlayer(player);\r\n\r\n\t\tcollisions.relations.connectGroups(CollisionGroups.PLAYER_2D, CollisionGroups.PLANETS_2D);\r\n\t}", "public void init(){\n \n }", "public void init() {\n\t\tfor(int i = 0; i < roamingAliens; ++i) {\n\t\t\tAlien alien = new Alien(ColorUtil.MAGENTA, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) alien); \n\t\t}\n\t\tfor(int i = 0; i < roamingAstronauts; ++i) {\n\t\t\tAstronaut astronaut = new Astronaut(ColorUtil.GREEN, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) astronaut);\n\t\t}\n\t\tgameObject.add((Spaceship.getSpaceship()));\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t\tthis.clearChanged();\n\t}", "private void init() {\r\n setLayout(new BorderLayout(140, 20));\r\n setBackground(hintergrund);\r\n \r\n // Button ActionListener\r\n ActionListener wechselListener = new SeitenwechselListener(parent);\r\n spielen.addActionListener(wechselListener);\r\n spielen.setActionCommand(spielen.getText());\r\n spielLaden.addActionListener(wechselListener);\r\n spielLaden.setActionCommand(spielLaden.getText());\r\n einstellungen.addActionListener(wechselListener);\r\n einstellungen.setActionCommand(einstellungen.getText());\r\n statistiken.addActionListener(wechselListener);\r\n statistiken.setActionCommand(statistiken.getText());\r\n highscore.addActionListener(wechselListener);\r\n highscore.setActionCommand(highscore.getText());\r\n \r\n //North\r\n Container cNorth = new JPanel();\r\n cNorth.setLayout(new FlowLayout());\r\n menue.setFont(new Font(\"Arial\", Font.BOLD, 20));\r\n cNorth.add(menue);\r\n cNorth.setBackground(hintergrund);\r\n add(cNorth, BorderLayout.NORTH);\r\n \r\n // Center\r\n Container cCenter = new JPanel();\r\n cCenter.setBackground(hintergrund);\r\n cCenter.setLayout(new GridLayout(0, 1, 0, 40));\r\n spielen.setBackground(buttonFarbe);\r\n spielLaden.setBackground(buttonFarbe);\r\n // Wenn es kein zu ladendes Spiel gibt\r\n if (parent.getSpieleListe().isEmpty()) {\r\n spielLaden.setEnabled(false);\r\n spielLaden.setToolTipText(\"Keine gespeicherten Spiele vorhanden!\");\r\n }\r\n einstellungen.setBackground(buttonFarbe);\r\n highscore.setBackground(buttonFarbe);\r\n statistiken.setBackground(buttonFarbe);\r\n cCenter.add(spielen);\r\n cCenter.add(spielLaden);\r\n cCenter.add(einstellungen);\r\n cCenter.add(highscore);\r\n cCenter.add(statistiken);\r\n\r\n add(cCenter, BorderLayout.CENTER);\r\n \r\n // East \r\n JLabel platzhalter = new JLabel();\r\n add(platzhalter, BorderLayout.EAST);\r\n \r\n // West \r\n JLabel platzhalter2 = new JLabel();\r\n add(platzhalter2, BorderLayout.WEST);\r\n }", "public void init() {\n\t\t\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "protected void _init(){}", "@Override\r\n\tpublic void init() \r\n\t{\r\n\t\tthis.board = new GameBoard();\r\n\t}", "private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }", "public void init() {\n\t\t \r\n\t\t }", "private void setUpCorrect() {\n List<Tile> tiles = makeTiles();\n Board board = new Board(tiles, 4, 4);\n boardManager = new BoardManager(board);\n }", "public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }", "@BeforeEach\n void init() {\n carte = new Carte();\n planning = new Planning(carte);\n }", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "private void startingSetup(boolean shelter) {\r\n\t\tArrayList<Card> startDeck = new ArrayList<Card>();\r\n\t\twhile(startDeck.size() < 7) {\r\n\t\t\tstartDeck.add(new Copper());\r\n\t\t}\r\n\t\tif(shelter) {\r\n\t\t\tstartDeck.add(new OvergrownEstate());\r\n\t\t\tstartDeck.add(new Hovel());\r\n\t\t\tstartDeck.add(new Necropolis());\r\n\t\t}\r\n\t\telse {\r\n\t\t\twhile(startDeck.size() < 10) {\r\n\t\t\t\tstartDeck.add(new Estate());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\tdeck = new Deck(access.random, startDeck, access, this);\r\n\t\tdeck.cleanUp();\r\n\t\tactions = 1;\r\n\t\tbuys = 1;\r\n\t\ttreasure = 0;\r\n\t\tpotion = 0;\r\n\t}", "private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }", "public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }", "public Planet()\n {\n super(30, 30, zellenGroesse);\n setBackground(\"images/boden.png\");\n setPaintOrder(String.class, Rover.class, Marke.class, Gestein.class, Huegel.class);\n Greenfoot.setSpeed(20); \n\n prepare();\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "public SPIEL( int breite , int hoehe , boolean punkteLinks , boolean punkteRechts , boolean maus ) \n {\n //Zaehler fuer Tick, Tack, ...\n zaehler = 0;\n anzeige = new AnzeigeE( breite , hoehe );\n //animationsManager = AnimationsManager.getAnimationsManager();\n \n //Punkteanzeige\n anzeige.punkteLinksSichtbarSetzen( punkteLinks );\n anzeige.punkteRechtsSichtbarSetzen( punkteRechts );\n \n //Maus ggf. aktivieren\n if ( maus ) \n {\n anzeige.klickReagierbarAnmelden( this , true );\n }\n \n //Tastatur\n anzeige.tastenReagierbarAnmelden( this );\n \n //Ticker\n //Alle 500 Millisekunden (=Jede halbe Sekunde) ein Tick\n //anzeige.tickerAnmelden(this, 500); \n }", "public void einlesenUndInitialisieren() {\n\t\t\n\t\t// Willkommenstext\n\t\tSystem.out.println(\"Willkommen zur Caesar-Kodierung!\\nMoechten Sie einen Text chiffrieren oder dechiffrieren?\");\n\t\tboolean chiffrieren = getModus();\n\t\t\n\t\t// Schluessel-Eingabe\n\t\tif(chiffrieren) {\n\t\t\tSystem.out.println(\"Bitte geben sie jetzt den Schluessel ein, der zum Chiffrieren verwendet werden soll. Entscheiden Sie sich\\ndabei fuer eine Ganzzahl zwischen 1 und 25.\\nMoechten sie einen zufaelligen Schluessel, geben sie bitte '88' ein.\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Wenn sie den fuer die Dechiffrierung benoetigten Schluessel kennen, geben sie ihn jetzt bitte ein. Sollten\\nSie ihn nicht kennen, geben sie bitte die '88' ein.\");\n\t\t}\n\t\tbyte schluessel = getSchluessel();\n\t\t\n\t\t// Als naechstes die Datei-Namen\n\t\tboolean erfolgreichEingelesen = false;\n\t\tdo {\n\t\t\n\t\t\tString[] namen = getDateiNamen();\n\t\t\tString eingabeDatei = namen[0];\n\t\t\tString ausgabeDatei = namen[1];\n\t\t\n\t\t\t// Nun haben wir alles und leiten die Initialisierung ein\n\t\t\n\t\t\tthis.streamKoordinierung = new StreamKoordinierung(chiffrieren, schluessel, eingabeDatei, ausgabeDatei );\n\t\t\terfolgreichEingelesen = this.streamKoordinierung.liesStarttextAusDatei();\n\t\t\tif(!erfolgreichEingelesen) {\n\t\t\t\tSystem.out.println(\"\\n\\nBeim Lesen der Datei trat ein Fehler auf, bitte geben sie erneut die DateiNamen an!\\n\");\n\t\t\t}\n\t\t}\n\t\twhile(!erfolgreichEingelesen);\n\t\t\n\t\tSystem.out.println(\"\\nDie Eingabe lief erfolgreich ab, wir beginnen nun mit der De-/Chiffrierung.\");\n\t}", "public void init() {\n\t\t}", "public MiniatuurWeergaven() {\n initComponents();\n }", "public void init(){\r\n\t\t\r\n\t}", "public HandKarten(){\n this.listKartenInhand = new ArrayList<Karte>();\n }", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "private void init() {\n\n\t\tthis.setResizable(false);\n\t\tthis.setSize(575, 155);\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\n\t\tJPanel panNom = addPannelName();\n\t\tJPanel panPass = addPannelPassword();\n\t\tJPanel panTopic = addPannelTopic();\n\n\t\tJPanel content = new JPanel();\n\t\tcontent.add(panNom);\n\t\tcontent.add(panPass);\n\t\tcontent.add(panTopic);\n\n\t\tJPanel control = new JPanel();\n\n\t\tJButton okButton = addOKButtonTopic();\n\t\tJButton cancelButton = addCancelButton();\n\n\t\tcontrol.add(okButton);\n\t\tcontrol.add(cancelButton);\n\n\t\tthis.getContentPane().add(content, BorderLayout.NORTH);\n\t\tthis.getContentPane().add(control, BorderLayout.SOUTH);\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }", "public TmKabupaten() {\n\t}" ]
[ "0.64580804", "0.6335596", "0.6312667", "0.63042957", "0.62449944", "0.62102664", "0.6181273", "0.61076254", "0.6072492", "0.6047848", "0.60252625", "0.6024082", "0.6023324", "0.60036206", "0.59962404", "0.59927905", "0.59716755", "0.5956694", "0.5956382", "0.59341925", "0.5921798", "0.5909116", "0.5906726", "0.59006476", "0.58687174", "0.5865079", "0.5864693", "0.5848616", "0.5848616", "0.5848616", "0.5847407", "0.58452034", "0.58450186", "0.58441263", "0.5843683", "0.5843397", "0.58374417", "0.5825164", "0.58240616", "0.5822419", "0.5821815", "0.5813346", "0.5802454", "0.57995605", "0.5799082", "0.57937825", "0.5782449", "0.5780782", "0.57807344", "0.57776016", "0.57765824", "0.57738364", "0.57731616", "0.5773131", "0.57641524", "0.57636297", "0.57600373", "0.5756718", "0.5756473", "0.5752888", "0.5750798", "0.5750798", "0.5750798", "0.5748211", "0.57466346", "0.5746605", "0.5743851", "0.57410216", "0.5737346", "0.57362866", "0.5734135", "0.57338506", "0.5732566", "0.5728453", "0.57283264", "0.57281417", "0.5720827", "0.5720827", "0.5720827", "0.57191217", "0.5715871", "0.57090306", "0.570578", "0.57029694", "0.5702692", "0.5702494", "0.5699125", "0.56979156", "0.5697378", "0.56931543", "0.5693121", "0.5693121", "0.5693121", "0.5693121", "0.5693121", "0.56914175", "0.56914175", "0.56914175", "0.56914175", "0.5690927", "0.5690912" ]
0.0
-1
Zeichnet das NetzwerkMenue: Der Spieler kann auswaehlen, ob er Server oder Client ist und wartet auf eine eingehende Verbindung. Hier werden Server bzw. Client erzeugt, die als separate Threads fuer die Entgegennahme von Nachrichten verantwortlich sind und dementsprechend den nicht lokalen Spieler 2 bewegen usw..
private void paintNetworkMenu(){ frame3.dispose(); frame4 = new JFrame("Netzwerk"); frame4.setLocation(650,300); frame4.setSize(100, 100); JButton b1 = new JButton("Server"); JButton b2 = new JButton("Client"); JButton b3 = new JButton("Zurück"); frame4.add(BorderLayout.NORTH, b1); frame4.add(BorderLayout.CENTER, b2); frame4.add(BorderLayout.SOUTH, b3); frame4.pack(); frame4.setVisible(true); b1.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0){ serverMode = true; server = new Server(4711, p); server.start(); //Client starten; Auf gar keinen Fall mit run starten! } }); b2.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ clientMode = true; client = new Client("127.0.0.1", p); client.start(); //Thread starten; Auf gar keinen Fall mit run starten! } }); b3.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ spiel_status=3; paintMenu(); frame4.setVisible(false); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n // Methode run die bei Aufruf des Threads gestartet wird\n public void run() {\n //Endlosschleife zum abhören was der Server sedent. Neuen InputStream erzeugen und in Anzeigefenster ausgeben\n while(schleife == 1){\n \n try {\n // Methode online gibt die Nutzernamen der online-verfügabaren Usern zurück vom Server. Die eigene Methode schriebt diese in die UserListe. \n online(remote.online());\n in = new DataInputStream(s.getInputStream());\n\n String lesen = in.readUTF();\n \n\n // Trennt den Einkommenden String am \":\" um Username von der Nachricht zu trennen\n String [] nachrichten = lesen.split(\":\");\n \n //Überprüfen ob ein Header namens VERBINDUNG geschickt wird um entsprechend zu reagieren\n if(nachrichten[0].equals(\"VERBINDUNG\")){\n //Aufruf einer MessageBox, dass Verbindung aufgenommen werden möchte.\n int eingabe = JOptionPane.showConfirmDialog(null,\n \"Wollen sie eine Verbindung mit \" + nachrichten[1] +\" aufbauen?\",\n \"Verbindungsanfrage\",\n JOptionPane.YES_NO_CANCEL_OPTION);\n //Überprüfen der Eingabe in die Messagebox\n //Wenn 'Ja' gedrückt wurde\n if(eingabe == 0){\n //UserListe sperren\n UserListe.setEnabled(false);\n //Verbinden mit User- Button auf trennen stellen\n UserVerbinden.setText(\"Trennen von User\");\n //Offline Anzeigen um weitere Anfragen zu unterbinden\n remote.zeigeOff(UserName.getText());\n //Rückantwort,dass Verbindung aufgebaut werden soll!\n remote.verbindenUser(\"VERBINDEN\", UserName.getText(), nachrichten[1]);\n //Übergabe des Namens des Chat-Partners in die globale Variable \n ZielUser= nachrichten[1];\n \n }else{\n remote.verbindenUser(\"TRENNEN\", UserName.getText() ,nachrichten[1] );\n \n } \n //Wenn die Nachricht den Header 'TRENNEN' enthält, entweder bei beendigung oder bei ablehnen der Verbindung\n }else if(nachrichten[0].equals(\"TRENNEN\")){\n //Nachricht ausgeben, dass getrennt wird bzw. abgelehnt wurde\n Anzeigefeld.append(\"Verbindung von \"+ nachrichten[1]+ \" wurde getrennt/abgelehnt! \\n\");\n //UserListe entsperren\n UserListe.setEnabled(true);\n //Verbinden mit User- Button auf Verbinden stellen\n UserVerbinden.setText(\"Verbinden mit User\");\n //wieder als online Anzeigen \n remote.verbinden(UserName.getText());\n \n //wird aufgerufen wenn VERBINDEN als Header mitgegeben wird\n }else if(nachrichten[0].equals(\"VERBINDEN\")){\n //Ausgabe dass Schlüsselaustausch stattfinden kann\n Anzeigefeld.append(\"Schlüssel wird an \"+nachrichten[1]+ \" gesendet \\n\");\n\n //Den eigenen AES Schlüssel mit öffentlichem Schlüssel des Gegenübers verschlüsseln\n EncryptAES(nachrichten[1]);\n \n //Aufruf der Methode zum Schlüsselaustausch. Überträgt byte[] des Schlüssels\n AESanServer(nachrichten[1]); \n \n //wird aufgerufen wenn der Header KEY mitgegeben wird.\n }else if(nachrichten[0].equals(\"KEY\")){\n \n // Aufruf der Methode Decrypt AES mit der Methode vom Server holeAES\n DecryptAES(remote.schluesselTausch(UserName.getText(), nachrichten[1]));\n \n //Senden-Button freigeben\n Senden.setEnabled(true);\n \n // Anzeigen, das Schlüssel erhalten wurde und Kommunikation starten kann\n Anzeigefeld.append(\"Key von \"+ nachrichten[1] +\" erhalten. Kommunikation kann starten! \\n\");\n \n \n\n \n }\n \n \n // Gibt die Nachricht die verschlüsselt vom Server kommt, entschlüsselt aus!\n Anzeigefeld.append(nachrichten[0] + \": \"+ aes.entschlüsseln(aes.SchlüsselAusDatei(), nachrichten[1])+ \"\\n\");\n\n } catch (IOException ex) {\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\t//creamos un server socket que se conecte al puerto 9999\r\n\t\t\tServerSocket servidor = new ServerSocket(9999);\r\n\t\t\t//instanciamos variables y un array list\r\n\t\t\tString nick, ip, mensaje;\r\n\t\t\t\r\n\t\t\tArrayList<String> listaIp = new ArrayList<String>();\r\n\t\t//y la clase paquete envio\r\n\t\t\tPaqueteEnvio paquete_recibido;\r\n\t\t\t\r\n\t\t\t//creamos un bucle infinito para que siempre este a la escucha\r\n\t\t\twhile(true) {\r\n\t\t\t\t//aceptamos la conexion\r\n\t\t\tSocket misocket = servidor.accept();\r\n\t\t\t//creamos una object inputstream para desmigar el paquete que nos viene del cliente\r\n\t\t\tObjectInputStream paquete_datos = new ObjectInputStream(misocket.getInputStream());\r\n\t\t\t//lo leemos\r\n\t\t\tpaquete_recibido = (PaqueteEnvio) paquete_datos.readObject();\r\n\t\t\t//lo desmigamos en variables con los metodos get\r\n\t\t\tnick = paquete_recibido.getNick();\r\n\t\t\t\r\n\t\t\tip = paquete_recibido.getIp();\r\n\t\t\t\r\n\t\t\tmensaje = paquete_recibido.getMensaje();\r\n\t\t\t\r\n\t\t\t//DataInputStream flujo_entrada = new DataInputStream(misocket.getInputStream());\r\n\t\t\t\r\n\t\t\t//String mensaje_texto = flujo_entrada.readUTF();\r\n\t\t\t\r\n\t\t\t//areatexto.append(\"\\n\"+mensaje_texto);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// diferenciamos los mensaje si es dimerente de \" online\" el mensaje\r\n\t\t\t if(!mensaje.equals(\" online\")) {\r\n\t\t\t\t //y si el id es diferente de \"Grupo\"\r\n\t\t\t\t if(!ip.equals(\"Grupo\")) {\r\n\t\t\t\t\t// mostramos el texto\r\n\t\t\t\t\t areatexto.append(\"\\n\"+ nick +\": \"+mensaje+\" para \"+ip);\r\n\t\t\t\t//creamos el socket con la ip recivida para enviar el mensaje\r\n\t\t\t\t\t Socket enviaDestinatario = new Socket(ip, 9090);\r\n\t\t\t\t//creamos el object stream \r\n\t\t\t\t\t ObjectOutputStream paqueteReenvio = new ObjectOutputStream(enviaDestinatario.getOutputStream());\r\n\t\t\t\t//escribimos en el\r\n\t\t\t\t\t paqueteReenvio.writeObject(paquete_recibido);\r\n\t\t\t\t//cerramos todo\r\n\t\t\t\t\t paqueteReenvio.close();\r\n\t\t\t\t\r\n\t\t\t\t\t enviaDestinatario.close();\r\n\t\t\t\t\r\n\t\t\t\t\t misocket.close();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t else {//en caso de ser \"Grupo\" hacemos exactamente lo mismo que antes menos por una cosa, primero mostramos texto\r\n\t\t\t\t\t areatexto.append(\"\\n Grupo-->\"+ nick +\": \"+mensaje+\" para grupo\");\r\n\t\t\t\t\t //creamos un bucle foreach en el que enviamos a cada ip del array el mensaje\r\n\t\t\t\t\t for(String z:listaIp) {\r\n\t\t\t\t\t\t //el socket lo creamos con z \r\n\t\t\t\t\t\t \tSocket enviaDestinatario = new Socket(z, 9090);\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tnick = \"Grupo--->\"+nick;\r\n\t\t\t\t\t\t \t//le decimos que concatene el nick con el texto grupo para que el cliente sepa de donde viene el mensaje y que njo es algro privado\r\n\t\t\t\t\t\t \tpaquete_recibido.setNick(nick);\r\n\t\t\t\t\t\t\t//objetos de salida\r\n\t\t\t\t\t\t\tObjectOutputStream paqueteReenvio = new ObjectOutputStream(enviaDestinatario.getOutputStream());\r\n\t\t\t\t\t\t\t//escribimos\r\n\t\t\t\t\t\t\tpaqueteReenvio.writeObject(paquete_recibido);\r\n\t\t\t\t\t\t\t//cerramos todo\r\n\t\t\t\t\t\t\tpaqueteReenvio.close();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tenviaDestinatario.close();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tmisocket.close();\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t\t\t \t\r\n\t\t\t\t \t\r\n\t\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {// si el texto recibido seria \" online\" seria una peticion de conexion\r\n\t\t\t\t\r\n\t\t\t\t//-----------------DETECTA ONLINE--------------------\r\n\t\t\t\t//cojemos la ip de el mensajero\r\n\t\t\t\tInetAddress localizacion =misocket.getInetAddress();\r\n\t\t\t\t//la almacenamos\r\n\t\t\t\tString IpRemota = localizacion.getHostAddress();\r\n\t\t\t\t\r\n\t\t\t\t//System.out.println(\"Online \"+IpRemota);\r\n\t\t\t\t//la a�adimos al array list\r\n\t\t\t\tlistaIp.add(IpRemota);\r\n\t\t\t\t//escribimos en el objeto con el metodo setIps\r\n\t\t\t\tpaquete_recibido.setIps(listaIp);\r\n\t\t\t\t//creamos el bucle foreach\r\n\t\t\t\tfor(String z:listaIp) {\r\n\t\t\t\t\t//mostramos los usuarios conectados en el array\r\n\t\t\t\t\tareatexto.append(\"\\n Usuario conectado: \"+z);\r\n\t\t\t\t\t//creamos el socket para cada destinatario y enviamos la informacion\r\n\t\t\t\t\tSocket enviaDestinatario = new Socket(z, 9090);\r\n\t\t\t\t\t\r\n\t\t\t\t\tObjectOutputStream paqueteReenvio = new ObjectOutputStream(enviaDestinatario.getOutputStream());\r\n\t\t\t\t\t\r\n\t\t\t\t\tpaqueteReenvio.writeObject(paquete_recibido);\r\n\t\t\t\t\t\r\n\t\t\t\t\tpaqueteReenvio.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tenviaDestinatario.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tmisocket.close();\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//---------------------------------------------------\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void run(){\n\t\t/*\n\t\ttry {\t\n\t\t\tclient_ip=parentIp;\n\t\t\tpingskt = new Socket(parentIp,TCP_Port);\n\t\t\tin = new BufferedReader(new InputStreamReader(pingskt.getInputStream()));\n\t\t\tout = new PrintWriter(pingskt.getOutputStream(),true);\n\t\t}catch(Exception e){ \n\t\t\tSystem.out.println(\"Error in Catch TCPSender.java line no 96 \");\t\n\t\t}\n\t\t(bufferReaderThread=new Thread(){\n \tpublic void run(){\n\t\t\t\tsynchronized(in){\n \twhile(!tcpsend_Flag){\n try{\n\t\t\t\t String str=\"\";\n if((str=in.readLine())!=null) {\n\t\t\t\t\t\t\t\tif((str!=null) && (!str.equals(\"\"))) {\n\t\t\t\t\t\t\t\t\tif(str.startsWith(\"BackupTreeCource_id\")){\n\t\t\t\t\t\t\t\t\t\tstr=str.replaceAll(\"BackupTreeCource_id\",\"\");\t\t\n\t\t\t\t\t\t\t\t\t\tString str1[]=str.split(\"@\");\n\t\t\t\t\t\t\t\t\t\tlog.setString(\"str1[1] TCPClient \"+str1[1]);\n\t\t\t\t\t\t\t\t\t\tTCPUtil.getController().getString(str1[0],str1[1]);\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else if(str.startsWith(\"SetUserList=\")){\n\t\t\t\t\t\t\t\t\t\tString courseid=str.replaceAll(\"SetUserList=\",\"\");\n\t\t\t\t\t\t\t\t\t}else if(str.startsWith(\"UserList=\")){\n\t\t\t\t\t\t\t\t\t\tString courseid_data=str.replaceAll(\"UserList=\",\"\");\n\t\t\t\t\t\t\t\t\t\tString data[]=courseid_data.split(\"#\");\n\t\t\t\t\t\t\t\t\t\tUserListUtil.getContriller().addDataForVector(data[0],data[1]);\t\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\tint temp=str.indexOf(\",\",0);\n\t\t\t\t\t\t\t\t\tString courseid=str.substring(0,temp);\n\t\t\t\t\t\t\t\t\ttemp=temp+1;\n \t\t\tstr=str.substring(temp,str.length());\n\t\t\t\t\t\t\t\t\tMyHashTable temp_ht=RuntimeDataObject.getController().getMyHashTable();\n\t\t\t\t\t\t\t\t\tif(temp_ht.getStatus(courseid)) {\n BufferMgt te=temp_ht.getValues(courseid);\n //te.putByte(str,client_ip,\"ch_wb\");\n } else if(!temp_ht.getStatus(courseid)) {\n BufferMgt bm= new BufferMgt();\n temp_ht.setValues(courseid,bm);\n //bm.putByte(str,client_ip,\"ch_wb\");\n }\n\t\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\tbufferReaderThread.yield();\n \tbufferReaderThread.sleep(100);\n }catch(Exception e){\n\t\t\t\t\t\t\tcleancourseID();\n\t\t\t\t\t\t\tfor (int l=0;l<course_id.size();l++) {\n\t\t\t\t\t\t\t\tString courseid=course_id.get(l).toString();\n\t\t\t\t\t\t\t\tTCPClient.getController().setcourseID(courseid);\n\t\t\t\t\t\t\t\tMyHashTable tempht=RuntimeDataObject.getController().getUserListMyHashTable();\n\t\t\t\t\t\t\t\tVectorClass vectorclass=tempht.getCourseIdUserListVector(courseid);\n\t\t\t\t\t\t\t\tVector v=vectorclass.getBackupTreeValue();\n \t\t\tlog.setString(\"Backup Tree value-------------\"+v.toString())\n; \t\t\tif((v.get(0).toString()).equals(\"#GParent\")){\n \t\t\tString str=v.get(0).toString();\n str=str.replaceAll(\"#GParent\",\"\");\n\t\t\t\t\t\t\t\t\tsetparentIp(str);\n }\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.gc();\t\t\t\n TCPClient.getController().start();\n\t\t\t\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\tlog.setString(\" inputStream \"+e.getMessage());\n\t\t\t\t\t\t\tlog.setString(\" TCPClient in inputStream \"+e.getMessage());\n\t\t\t\t\t\t\ttcpsend_Flag=true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tprintWriterThread.interrupt();\n \t printWriterThread.stop();\n\t\t\t\t\t\t\tbufferReaderThread.interrupt();\n bufferReaderThread.stop();\n\t \t \ttry { \n\t\t\t\t\t\t\t\tpingskt.close();\n\t\t\t\t\t\t\t\tpingskt=null;\n\t \t\t\t\t\t}catch(Exception ex ){\n\t\t\t\t\t\t\t\tlog.setString(\"Error in to catch in TCPClient!! \"+ex.getMessage());\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tSystem.gc(); \t \n\t\t\t\t\t\t\tprintWriterThread=null;\n\t\t\t\t\t\t\tbufferReaderThread=null;\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}).start();\n\t\t\n\t\t(printWriterThread =new Thread(){\n \tpublic void run(){\n\t\t\t\tsynchronized(out){\n\t \twhile(!tcpsend_Flag){\n \t \ttry{\n\t\t\t\t\t\t\tif(ipnumber != course_id.size()){\n\t\t\t\t\t\t\t\tipnumber=course_id.size();\n\t\t\t\t\t\t\t\tout.println(\"Cource_id\"+course_id.get(ipnumber-1));\t\n\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tMyHashTable temp_ht=RuntimeDataObject.getController().getMyHashTable();\n\t\t\t\t\t\t\t\tfor(int i=0;i<course_id.size();i++) {\n\t\t\t\t\t\t\t\t\tTCPUtil.getController().getString(course_id.get(i).toString(),\"#Parent\"+client_ip);\n\t\t\t\t\t\t\t\t\tif(temp_ht.getStatus(course_id.get(i).toString())) {\n \t\tBufferMgt buffer_mgt=temp_ht.getValues(course_id.get(i).toString());\n \t \t\t\t\t\tString str=(buffer_mgt.sendData(client_ip,\"ch_wb\")).toString();\n \t \t\tif(str !=null ){\n\t\t\t\t\t\t\t\t\t\t\tstr=course_id.get(i)+\",\"+str;\n\t\t\t\t \t\tout.println(str);\n \t \t\t\tout.flush();\n \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\tcountint++;\n \t\tout.flush();\t\n\t\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t\t\tprintWriterThread.yield();\n \t printWriterThread.sleep(100);\n\t\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\t\tSystem.gc();\t\n\t\t\t\t\t\t\tlog.setString(\"Error in TCPClient class in outputStream \");\n\t\t\t\t\t\t}\n \t\t}\n\t\t\t\t}\n \t}\n\t\t}).start();*/\n\t}", "public void start() {\n try {\n Socket socket = new Socket(conf.getServerIp(), conf.getServerPort());\n\n java.io.InputStream is = socket.getInputStream();\n BufferedReader reader = new BufferedReader(new java.io.InputStreamReader(is));\n\n readerThread = new MessageReader(reader);\n new Thread(readerThread).start();\n\n java.io.OutputStream os = socket.getOutputStream();\n PrintWriter writer = new PrintWriter(os);\n writerThread = new MessageWriter(writer);\n new Thread(writerThread).start();\n\n while (serverMessages.empty()) {\n //Do nothing\n }\n\n ServerMessage serverMessage = serverMessages.pop();\n if (!serverMessage.getMessageType().equals(ServerMessage.MessageType.HELO)) {\n System.out.println(\"Expecting a HELO message but received: \" + serverMessage.toString());\n } else {\n System.out.println(\"Please fill in your username: \");\n Scanner scanner = new Scanner(System.in);\n String username = scanner.nextLine();\n\n\n ClientMessage heloMessage = new ClientMessage(ClientMessage.MessageType.HELO, username);\n clientMessages.push(heloMessage);\n\n while (serverMessages.empty()) {\n }\n\n\n isConnected = validateServerMessage(heloMessage, serverMessages.pop());\n if (!isConnected) {\n System.out.println(\"Error logging into server\");\n } else {\n System.out.println(\"Successfully connected to server.\");\n System.out.println(\"(Type '/quit' to close connection and stop application.)\");\n System.out.println(\"Type a broadcast message: \");\n nonblockReader = new NonblockingBufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));\n\n\n while (isConnected) {\n String line = nonblockReader.readLine();\n if (line != null) {\n ClientMessage clientMessage;\n if (line.equals(\"/quit\")) {\n clientMessage = new ClientMessage(ClientMessage.MessageType.QUIT, username + \" left the server\");\n isConnected = false;\n\n Thread.sleep(500L);\n } else if (line.startsWith(\"/msg\") && line.split(\" \").length > 1) {\n //Split the message first\n String[] splittedline = line.split(\" \");\n String senderUsername = splittedline[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n line = line.replace(\"/msg \" + splittedline[1] + \" \", \"\");\n\n //Check if we have an encryptionsession with the user or not\n if (encryptionSessionHashMap.containsKey(senderUsername)) {\n //We have an encryptionsession, so we can just send the message\n String encryptedLine = encryptionSessionHashMap.get(senderUsername).encryptMessage(line);\n clientMessage = new ClientMessage(ClientMessage.MessageType.ENCR, senderUsername + \" \" + encryptedLine);\n System.out.println(\"(You -> \" + senderUsername + \"): \" + line);\n } else {\n //We don't have an encryptionsession yet, so we create one\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(senderUsername, encryptionSession);\n clientMessage = new ClientMessage(ClientMessage.MessageType.KEYS, senderUsername + \" \" + encryptionSession.getPublicKey());\n savedMessage.put(senderUsername, line);\n }\n } else {\n System.out.println(\"You cannot send a message to yourself\");\n clientMessage = null;\n }\n } else if (line.startsWith(\"/file\") && line.split(\" \").length == 3) {\n //Split the message first\n String[] splitLine = line.split(\" \");\n String senderUsername = splitLine[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n String fileBase64String = new FileTransfer(splitLine[2], senderUsername).sendFile();\n clientMessage = new ClientMessage(ClientMessage.MessageType.FILE, fileBase64String);\n System.out.println(\"You have send \" + splitLine[2] + \" to \" + senderUsername);\n } else {\n System.out.println(\"You cannot send a file to yourself\");\n clientMessage = null;\n }\n\n } else {\n clientMessage = new ClientMessage(ClientMessage.MessageType.BCST, line);\n System.out.println(line);\n }\n\n if (clientMessage != null) {\n clientMessages.push(clientMessage);\n }\n }\n if (!serverMessages.empty()) {\n ServerMessage received = serverMessages.pop();\n\n\n if (received.getMessageType().equals(ServerMessage.MessageType.BCST)) {\n System.out.println(received.getPayload());\n }\n\n //Check if we received an encrypted message\n else if (received.getMessageType().equals(ServerMessage.MessageType.ENCR)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedMessage = splitMessage[1];\n\n //If we have a session with this user, we can decrypt the message\n if (encryptionSessionHashMap.containsKey(sender)) {\n System.out.println(\"(\" + sender + \" -> You): \" + encryptionSessionHashMap.get(sender).decryptMessage(encryptedMessage));\n }\n }\n\n //If this is the first time, we have to share keys\n else if (received.getMessageType().equals(ServerMessage.MessageType.KEYS)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedKey = splitMessage[1];\n\n //Check if we send the first message or not\n if (encryptionSessionHashMap.containsKey(sender)) {\n encryptionSessionHashMap.get(sender).decryptKey(encryptedKey);\n\n //After saving the aes key, we have to resend our first message\n String msg = savedMessage.get(sender);\n if (msg != null) {\n String encryptedLine = encryptionSessionHashMap.get(sender).encryptMessage(msg);\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.ENCR, sender + \" \" + encryptedLine);\n clientMessages.push(responseMessage);\n System.out.println(\"(You -> \" + sender + \"): \" + msg);\n savedMessage.remove(sender);\n }\n }\n\n //We send our aes key when we didn't send the message first\n else {\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(sender, encryptionSession);\n String aesKey = encryptionSession.encryptKey(encryptedKey);\n\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.KEYS, sender + \" \" + aesKey);\n clientMessages.push(responseMessage);\n }\n }\n\n //Check if the message is a file\n else if (received.getMessageType().equals(ServerMessage.MessageType.FILE)) {\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String base64String = splitMessage[2];\n\n new FileTransfer(base64String, splitMessage[0], true).readFile();\n System.out.println(\"You have received \" + splitMessage[1] + \" from \" + sender);\n }\n }\n }\n }\n\n disconnect();\n System.out.println(\"Client disconnected!\");\n }\n } catch (IOException e) {\n System.out.println(\"Ouch! Could not connect to server!\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n listClients = new javax.swing.JList();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n txtAreaOutput = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btnInitServer = new javax.swing.JButton();\n lblStatus = new javax.swing.JLabel();\n btnStopServer = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Servidor com MultiThreads\");\n\n jScrollPane1.setViewportView(listClients);\n\n jLabel1.setText(\"Clientes\");\n\n txtAreaOutput.setEditable(false);\n txtAreaOutput.setColumns(20);\n txtAreaOutput.setRows(5);\n jScrollPane2.setViewportView(txtAreaOutput);\n\n jLabel2.setText(\"Mensagens de log\");\n\n jLabel3.setText(\"Status:\");\n\n btnInitServer.setText(\"Iniciar servidor\");\n btnInitServer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnInitServerActionPerformed(evt);\n }\n });\n\n lblStatus.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblStatus.setForeground(new java.awt.Color(255, 0, 51));\n lblStatus.setText(\"Servidor não inicializado\");\n\n btnStopServer.setText(\"Parar servidor\");\n btnStopServer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnStopServerActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane2)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnInitServer)\n .addGap(18, 18, 18)\n .addComponent(btnStopServer))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(lblStatus)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 191, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(22, 22, 22))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnInitServer)\n .addComponent(btnStopServer))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(lblStatus))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2)))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-692)/2, (screenSize.height-377)/2, 692, 377);\n }", "@Override\n\tpublic void run() {\n\t\tInetSocketAddress remoteAddr = (InetSocketAddress) socket.getRemoteSocketAddress();\n\t\tChatServer.log(\"[server] connected by client[\" + remoteAddr.getAddress().getHostAddress() + \":\" + remoteAddr.getPort());\n\t\t\n\t\ttry {\n\t\t\t//2. 스트림 얻기\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\n\t\t PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream() ,\"utf-8\"),true);\n\t\t \n\t\t while(true) {\n\t\t \tString request = reader.readLine();\n\t\t \tSystem.out.println(request);\n\t\t \tif(request == null) {\n\t\t \t\tChatServer.log(\"클라이언트로 부터 연결 끊김\");\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \tString[] tokens = request.split(\":\");\n\t\t \t// Join:둘리 일때 - 0은 Join 1은 둘리\n\t\t \tif(\"join\".equals(tokens[0])) {\n\t\t \t\tnickname = tokens[1]; \n\t\t \t\tdoJoin(nickname + \"님이 입장하였습니다.\", writer);\n\t\t \t}else if(\"message\".equals(tokens[0])) {\n\t\t \t\t\n\t\t \t\tdoMessage(nickname + \":\" + tokens[1] );\n\t\t \t}else if(\"quit\".equals(tokens[0])) {\n\t\t \t\tdoQuit(nickname + \"님이 퇴장하였습니다.\", writer);\n\t\t \t}else {\n\t\t \t\tChatServer.log(\"에러: 알수 없는 요청(\" + tokens[0] + \")\");\n\t\t \t}\n\t\t }\n\t\t\n\t\t} catch (SocketException e) {\n\t\t\tChatServer.log(nickname);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t//让改线程可以接受到客户端的信息;\n\t\t\ttry {\n//\t\t\t\tThread.sleep(2000);\n\t\t\tObjectInputStream ois=new ObjectInputStream(s.getInputStream());\n\t\t\tMessage message=(Message) ois.readObject();\n\t\t\tSystem.out.println(message.getSender()+\"给\"+message.getGetter()+\"说\"+message.getCon());\n\t\t\t//这里进行转发;\n\t\t\t/*\n\t\t\t * 转发时出现错误;???????????已解决;\n\t\t\t */\n\t\t\t//取得接收人的通讯线程;\n\t\t\tServerConnectClient scClient=ManageQQClientTh.getClientThread(message.getGetter());\n\t\t\tObjectOutputStream oos=new ObjectOutputStream(scClient.s.getOutputStream());\n\t\t\t\toos.writeObject(message);\n\t\t\n\t\t\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entrez le nom du serveur.\");\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(serverIp, 4456);\r\n\t\t\tlogger.info(\"Connexion au socket serveur.\");\r\n\r\n\t\t\tThread t = new Thread(new EnvoiPresence(socket));\r\n\t\t\tt.start();\r\n\r\n\t\t\tThread t2 = new Thread(new ReceptionListUser(socket, mainView));\r\n\t\t\tt2.start();\r\n\r\n\t\t} catch (ConnectException e) {\r\n\t\t\tJOptionPane.showMessageDialog(new Frame(),\r\n\t\t\t\t\t\"Le serveur Draw Me An Idea n'est pas lancé\", \"Erreur\", 1);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "static void sendMsg(String msg){\r\n for(ServerThread t: threads){\r\n t.sendMsgToClient(msg);\r\n }\r\n }", "public ServidorScrabbleJ()\n\t {\n\t super( \"ServidorScrabbleJ\" ); // establece el título de la ventana\n\n\t // crea objeto ExecutorService con un subproceso para cada jugador\n\t ejecutarJuego = Executors.newFixedThreadPool(2);\n\t bloqueoJuego = new ReentrantLock(); // crea bloqueo para el juego\n\n\t // variable de condición para los dos jugadores conectados\n\t otroJugadorConectado = bloqueoJuego.newCondition();\n\n\t // variable de condición para el turno del otro jugador\n\t turnoOtroJugador = bloqueoJuego.newCondition(); \n\n\t for ( int i = 0; i < 15; i++ )\n\t \t for (int j = 0; j < 15; j++) {\n\t \t tablero[ i ][ j ] = new String( \"\" ); // crea tablero de scrabble\n\t\t\t}\n\t jugadores = new Jugador[2]; // crea arreglo de jugadores\n\t jugadorActual = JUGADOR_1; // establece el primer jugador como el jugador actual\n\t \n\t try\n\t {\n\t \t //establece el puerto y el numero maximo de conexiones permitidas\n\t servidor = new ServerSocket(12345, 2); // establece objeto ServerSocket\n\t } // fin de try\n\t catch ( IOException excepcionES ) \n\t {\n\t excepcionES.printStackTrace();\n\t System.exit(1);\n\t } // fin de catch\n\n\t areaSalida = new JTextArea(); // crea objeto JTextArea para mostrar la salida\n\t add( new JScrollPane(areaSalida), BorderLayout.CENTER );\n\t areaSalida.setText( \"Servidor esperando conexiones\\n\" );\n\n\t setSize( 300, 325 ); // establece el tamaño de la ventana\n\t setVisible( true ); // muestra la ventana\n\t }", "public Server(){\r\n \r\n this.m_Clients = new TeilnehmerListe();\r\n this.m_Port = 7575;\r\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tServerSocket servidor = new ServerSocket(8888);\n\t\t\t\n\t\t\tString nick,ip,mensaje;\n\t\t\t\n\t\t\tPaquete paquete_recibido;\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\n\t\t\tSocket miSocket = servidor.accept();\n\t\t\t\n\t\t\tObjectInputStream paquete_datos = new ObjectInputStream(miSocket.getInputStream());\n\t\t\t\n\t\t\tpaquete_recibido =(Paquete) paquete_datos.readObject();\n\t\t\t\n\t\t\tnick = paquete_recibido.getNick();\n\t\t\t\n\t\t\tip = paquete_recibido.getIp();\n\t\t\t\n\t\t\tmensaje = paquete_recibido.getMensaje();\n\t\t\t\n\t\t\t\n\t\t\t/*DataInputStream flujo_entrada = new DataInputStream(miSocket.getInputStream());\n\t\t\t\n\t\t\tString mensaje = flujo_entrada.readUTF();\n\t\t\t\n\t\t\tareatexto.append(\"\\n\" + mensaje);\n\t\t\t*/\n\t\t\t\n\t\t\tareatexto.append(\"\\n\" +nick +\": \"+mensaje +\" para: \"+ ip);\n\t\t\t\n\t\t\t\n\t\t\tmiSocket.close();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\");\n /*\n These variables are to print the details of client and server\n */\n InetAddress ipAddress = null;\n String hostname = null;\n String message = null;\n\n String serverHostname = new String(\"127.0.0.1\");\n int portNumberA = 10007;\n int portNumberB = 10008;\n\n /*\n This is to print the details of client and server\n */\n System.out.println(\"[CLIENT][\" + dateFormat.format(new Date()) + \"] - Initializing Simple Client\");\n ipAddress = InetAddress.getLocalHost();\n hostname = InetAddress.getLocalHost().getHostName();\n\n Socket echoSocketA = null;\n PrintWriter outA = null;\n BufferedReader inA = null;\n\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Attemping to connect to host \" + serverHostname + \" on port \" + portNumberA);\n try {\n echoSocketA = new Socket(serverHostname, portNumberA);\n outA = new PrintWriter(echoSocketA.getOutputStream(), true);\n inA = new BufferedReader(new InputStreamReader(\n echoSocketA.getInputStream()));\n } catch (UnknownHostException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Don't know about host: \" + serverHostname + \":\" + portNumberA);\n System.exit(1);\n } catch (IOException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Couldn't get I/O for the connection to: \" + serverHostname + \":\" + portNumberA);\n System.exit(1);\n }\n\n Socket echoSocketB = null;\n PrintWriter outB = null;\n BufferedReader inB = null;\n\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Attemping to connect to host \" + serverHostname + \" on port \" + portNumberB);\n try {\n echoSocketB = new Socket(serverHostname, portNumberB);\n outB = new PrintWriter(echoSocketB.getOutputStream(), true);\n inB = new BufferedReader(new InputStreamReader(\n echoSocketB.getInputStream()));\n } catch (UnknownHostException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Don't know about host: \" + serverHostname + \":\" + portNumberB);\n System.exit(1);\n } catch (IOException e) {\n System.err.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Couldn't get I/O for the connection to: \" + serverHostname + \":\" + portNumberB);\n System.exit(1);\n }\n\n BufferedReader stdIn = new BufferedReader(\n new InputStreamReader(System.in));\n String userInput;\n\n System.out.print(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Enter the message to send to \" + serverHostname + \":\" + portNumberA + \",\" + portNumberB + \": \");\n while ((userInput = stdIn.readLine()) != null) {\n outA.println(userInput);\n outB.println(userInput);\n System.out.println();\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Received \" + inA.readLine() + \" from \" + serverHostname + \":\" + portNumberA + \": \");\n System.out.println(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Received \" + inB.readLine() + \" from \" + serverHostname + \":\" + portNumberB + \": \");\n System.out.print(\"[CLIENT][\" + ipAddress + \"][\" + dateFormat.format(new Date()) + \"] - Enter the message to send to \" + serverHostname + \":\" + portNumberA + \",\" + portNumberB + \": \");\n }\n\n outA.close();\n inA.close();\n outB.close();\n inB.close();\n stdIn.close();\n echoSocketA.close();\n echoSocketB.close();\n }", "public void run(){\n try {\n dg=new Client(server_ip);\n dg.setVisible(true);\n do{\n \n String smessage=dg.dis.readUTF();\n dg.jTextArea1.append(\"server :- \"+smessage+\"\\n\\n\");\n \n }while(true);\n } catch (IOException ex) {\n Logger.getLogger(Cinit.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public static void main(String[] args) {\r\n ExamenSegundo es = new ExamenSegundo();\r\n int num = 9000;\r\n try {\r\n num = Integer.parseInt(JOptionPane.showInputDialog(\"Puerto del servidor(9000-9010)\", 9000));\r\n System.out.println(\"Soy el :\" + num);\r\n lab3.setText(lab3.getText().replace(\"Puerto : \", \"Puerto : \" + num));\r\n lab6.setText(num + \"\");\r\n lab7.setText(num + \"\");\r\n clienteM = new ClienteM(num);\r\n servidorD = new ServidorD(num);\r\n clienteD = new ClienteD(num);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.exit(-1);\r\n }\r\n\r\n Thread sm = new Thread(servidorM);\r\n Thread cm = new Thread(clienteM);\r\n Thread sd = new Thread(servidorD);\r\n //Thread cd = new Thread(clienteD);\r\n// Thread sf = new Thread(servidorF);\r\n// Thread cf = new Thread(clienteF);\r\n\r\n sm.start();\r\n cm.start();\r\n sd.start();\r\n //cd.start();\r\n// sf.start();\r\n// cf.start();\r\n\r\n for (;;) {\r\n try {\r\n ArrayList columnas = servidorM.getServidores();\r\n ArrayList ips = servidorM.getServidoresIp();\r\n// System.out.println(modelo.getRowCount()+\" - \"+columnas.size());\r\n for (int i = modelo1.getRowCount() - 1; i >= 0; i--) {\r\n modelo1.removeRow(i);\r\n }\r\n ips = ordenarIps(columnas, ips);\r\n columnas.sort(null);\r\n for (int i = 0; i < columnas.size(); i++) {\r\n String fila[] = {ips.get(i).toString(), columnas.get(i).toString()};\r\n if (Integer.parseInt(columnas.get(i).toString()) == num) {\r\n clienteD.puertoServidor = Integer.parseInt(columnas.get((i + 1) % columnas.size()).toString());\r\n clienteD.ipServidor = ips.get((i + 1) % columnas.size()).toString().substring(1);\r\n servidorD.ipServidor = ips.get((i + 1) % columnas.size()).toString().substring(1);\r\n servidorD.puerto2 = Integer.parseInt(columnas.get((i + 1) % columnas.size()).toString());\r\n lab6.setText(columnas.get((i - 1 + columnas.size()) % columnas.size()).toString());\r\n lab7.setText(columnas.get((i + 1) % columnas.size()).toString());\r\n }\r\n modelo1.addRow(fila);\r\n }\r\n \r\n String fila[]= new String[1];\r\n for(int i=0;i<servidorD.aBuscados.size();i++){\r\n fila[0]=servidorD.aBuscados.get(i);\r\n modelo2.addRow(fila);\r\n }\r\n servidorD.aBuscados.clear();\r\n \r\n for(int i=0;i<servidorD.aRespuestas.size();i++){\r\n fila[0]=servidorD.aRespuestas.get(i);\r\n modelo3.addRow(fila);\r\n }\r\n servidorD.aRespuestas.clear();\r\n\r\n// System.out.println(\"bla\");\r\n servidorM.servidores.clear();\r\n servidorM.servidoresIp.clear();\r\n Thread.sleep(5000);\r\n } // sm.join();\r\n // cm.join();\r\n // sd.join();\r\n // //cd.join();\r\n // sf.join();\r\n // cf.join();\r\n catch (InterruptedException ex) {\r\n Logger.getLogger(ExamenSegundo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "private void setUpNetworking() throws Exception {\r\n @SuppressWarnings(\"resource\")\r\n Socket socket = new Socket(host, 4242);\r\n System.out.println(\"Connecting to ... \" + socket);\r\n fromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n toServer = new PrintWriter(socket.getOutputStream());\r\n\r\n Thread readerThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n String input;\r\n try {\r\n while ((input = fromServer.readLine()) != null) {\r\n System.out.println(\"From server: \" + input);\r\n processRequest(input);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n });\r\n\r\n \r\n \r\n \r\n Thread writerThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n while (true) {\r\n //String input = consoleInput.nextLine();\r\n //String[] variables = input.split(\",\");\r\n \r\n \r\n //Message request = new Message(variables[0], variables[1], Integer.valueOf(variables[2]));\r\n \r\n GsonBuilder builder = new GsonBuilder();\r\n Gson gson = builder.create();\r\n //sendToServer(gson.toJson(request));\r\n }\r\n }\r\n });\r\n\r\n readerThread.start();\r\n writerThread.start();\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tserveurConnect.add(client.getNomClient() + \" / \" + client.getClientSocket().getRemoteSocketAddress()\n\t\t\t\t\t\t+ \" déconnecté\");\n\n\t\t\t\tCompte c = new Compte(client.getNomClient(), client.getPassClient());\n\t\t\t\tComptes.remove(c);\n\n\t\t\t\tclients.remove(clientThreads.indexOf(client));\n\t\t\t\tSystem.out.println(\"erreur\" + clientThreads.indexOf(client));\n\t\t\t\tclientThreads.remove(clientThreads.indexOf(client));\n\t\t\t}", "public static void main(String[] args) throws Exception {\n //TcpClient client = new TcpClient();\n System.out.println(\"Client Started\"); \n \n //test for infinite messages\n //client.infiniteHiTest();\n \n //test for 10 lac messages\n //client.definedForTest(1000000);\n \n //5000 messages with 45 sec delay\n //client.sendDataInDelay(5000,45000);\n \n \n Socket clientSocket = new Socket(\"localhost\", TcpServer.PORT); \n DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());\n \n outToServer.writeUTF(\"HI from non mina\");\n outToServer.flush();\n \n \n \n \n \n //client.connector.dispose(true);\n \n }", "@Override\n public void run() { \n \n String received; \n while (true) { \n try { \n\n // receive the messages from clients\n received = dis.readUTF();\n ChatServer.writeOnThreads(received);\n\n } catch (IOException e) {\n try { \n this.dis.close(); \n this.dos.close(); \n\n } catch(IOException e1) { \n e1.printStackTrace(); \n } \n } \n } \n }", "private void MailGonderDosyaDinle(Socket client, ServerSocket server) throws IOException, ClassNotFoundException {\n \n String gelen;\n\n PrintWriter out = new PrintWriter(client.getOutputStream());\n out.println(\"220\");\n out.flush();\n\n InputStreamReader in = new InputStreamReader(client.getInputStream());\n BufferedReader buf = new BufferedReader(in);\n gelen = buf.readLine(); // helo geldi\n\n out = new PrintWriter(client.getOutputStream());\n out.println(\"250\");\n out.flush();\n\n in = new InputStreamReader(client.getInputStream());\n buf = new BufferedReader(in);\n gelen = buf.readLine(); // mail_from geldi\n\n out = new PrintWriter(client.getOutputStream());\n out.println(\"250_sender_ok\");\n out.flush();\n\n in = new InputStreamReader(client.getInputStream());\n buf = new BufferedReader(in);\n gelen = buf.readLine(); // rcpt_to: geldi\n ServerCommon.mailGonderilecekKisi = gelen.split(\":\")[1];\n\n out = new PrintWriter(client.getOutputStream());\n out.println(\"250_recipient_ok\");\n out.flush();\n\n in = new InputStreamReader(client.getInputStream());\n buf = new BufferedReader(in);\n gelen = buf.readLine(); // DATA geldi\n\n out = new PrintWriter(client.getOutputStream());\n out.println(\"354\");\n out.flush();\n\n ////////////// 1 MSS lik Tampon alma işlemleri baslangic\n // tamponlama mantıgı clietdeki ile aynı \n ObjectInputStream objectInput = new ObjectInputStream(client.getInputStream());//istemciye onay veriliyor.\n Packet ilkPacket = (Packet) objectInput.readObject();\n\n if (ilkPacket.getDurum().split(\"-\")[0].equals(\"kontrol_basla\")) {\n ServerCommon.GelenDosyaAdi = ilkPacket.getDosyaAdi();\n ServerCommon.GelenHedefBytesLenght = ilkPacket.getHedefBytesLength();\n ServerCommon.GelenTampon = ilkPacket.getTampon();\n ServerCommon.HedefBytes = new byte[ilkPacket.getHedefBytesLength()];\n ServerCommon.hedefBaslangic = 0;\n ServerCommon.GelenMailBaslik = ilkPacket.getDurum().split(\"-\")[1];\n }\n\n while (true) {\n try {\n\n objectInput = new ObjectInputStream(client.getInputStream());\n Packet tamponPacket = (Packet) objectInput.readObject();\n\n if (tamponPacket.getDurum().equals(\"kontrol_bitir\")) {\n break;\n }\n\n Functions.TamponBirlestir(tamponPacket.Tampon);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n System.out.println(\"Shutting down\");\n }\n\n ///////////////1 MSS lik Tampon alma işlemleri bitti\n out = new PrintWriter(client.getOutputStream());\n out.println(\"250_message_accepted\");\n out.flush();\n\n in = new InputStreamReader(client.getInputStream());\n buf = new BufferedReader(in);\n gelen = buf.readLine(); // QUIT: geldi\n\n out = new PrintWriter(client.getOutputStream());\n out.println(\"221_closing_connection\");\n out.flush();\n\n ////////Bitis islemleri\n // dosya alma işlemleri bittiginde dosyayı gonderenenin altındaki giden kasörüne\n // ve dosyayı alanın altındaki gelen klasörüne kaydediyoruz. her iki bilgiyide\n // Mailler arraylistine kaydediyoruz.\n ServerCommon.FILEPATH = ServerCommon.CONST_FILEPATH + \"/\" + ServerCommon.mailGonderilecekKisi.split(\"@\")[0] + \"/gelen/\" + ServerCommon.GelenDosyaAdi;\n ServerCommon.Mailler.add(new MailLog(\"gelen\", \"dosya\", ServerCommon.mailGonderilecekKisi.split(\"@\")[0], ServerCommon.GelenMailBaslik, \"\", ServerCommon.FILEPATH));\n ServerCommon.file = new File(ServerCommon.FILEPATH);\n Functions.ConvertBytesToFile(ServerCommon.HedefBytes);\n\n ServerCommon.FILEPATH = ServerCommon.CONST_FILEPATH + \"/\" + ServerCommon.kullaniciAdi.split(\"@\")[0] + \"/giden/\" + ServerCommon.GelenDosyaAdi;\n ServerCommon.Mailler.add(new MailLog(\"giden\", \"dosya\", ServerCommon.kullaniciAdi.split(\"@\")[0], ServerCommon.GelenMailBaslik, \"\", ServerCommon.FILEPATH));\n ServerCommon.file = new File(ServerCommon.FILEPATH);\n Functions.ConvertBytesToFile(ServerCommon.HedefBytes);\n\n }", "public static void main(String[] args) throws Exception {\n JFrame frame = new JFrame (\"Chatting Server\");\r\n frame.setLayout(null);\r\n frame.setBounds(100, 100, 300, 300);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\r\n JLabel connectionStatusLabel = new JLabel(\"No Clients Connected\");\r\n connectionStatusLabel.setBounds(80, 30, 200, 30);\r\n connectionStatusLabel.setForeground(Color.red);\r\n frame.getContentPane().add(connectionStatusLabel);\r\n\r\n // create the welcoming server's socket\r\n ServerSocket welcomeSocket = new ServerSocket(6789);\r\n\r\n // thread to always listen for new connections from clients\r\n new Thread (new Runnable(){ @Override\r\n public void run() {\r\n\r\n Socket connectionSocket;\r\n DataOutputStream outToClient;\r\n\r\n while (!welcomeSocket.isClosed()) {\r\n\r\n try {\r\n // when a new client connect, accept this connection and assign it to a new connection socket\r\n connectionSocket = welcomeSocket.accept();\r\n\r\n // create a new output stream and send the message \"You are connected\" to the client\r\n outToClient = new DataOutputStream(connectionSocket.getOutputStream());\r\n outToClient.writeBytes(\"-Connected\\n\");\r\n\r\n clientCount++;\r\n\r\n // add the new client to the client's array\r\n Clients.add(new ClientThread(clientCount, connectionSocket, Clients));\r\n // start the new client's thread\r\n Clients.get(Clients.size() - 1).start();\r\n\r\n }\r\n catch (Exception ex) {\r\n\r\n }\r\n\r\n }\r\n\r\n }}).start();\r\n\r\n\r\n\r\n // thread to always get the count of connected clients and update the label\r\n new Thread (new Runnable(){ @Override\r\n public void run() {\r\n\r\n try {\r\n\r\n while (true) {\r\n\r\n if (Clients.size() > 0)\r\n {\r\n if (Clients.size() == 1)\r\n connectionStatusLabel.setText(\"1 Client Connected\");\r\n else\r\n connectionStatusLabel.setText(Clients.size() + \" Clients Connected\");\r\n\r\n connectionStatusLabel.setForeground(Color.blue);\r\n }\r\n else { //if there are no clients connected, print \"No Clients Connected\"\r\n\r\n connectionStatusLabel.setText(\"No Clients Connected\");\r\n connectionStatusLabel.setForeground(Color.red);\r\n\r\n }\r\n\r\n\r\n Thread.sleep(1000);\r\n\r\n }\r\n\r\n } catch (Exception ex) {\r\n\r\n }\r\n\r\n }}).start();\r\n\r\n\r\n\r\n frame.setVisible(true);\r\n\r\n }", "@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() // cette methode doit obligatoirement etre implementuee a cause de l'interface Runnable\n\t{\n\t\tSocket sockCLI;\n\t\ttry\n\t\t{\n\t\t\tServerSocket socketEcoute = new ServerSocket(portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tSystem.out.println(\"Attend client CLI sur le port : \"+ portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tlogger.log(Level.WARNING,\"Attente client CLI sur le port: \" + portCLI);\n\t\t while (true)\n\t\t {\n\t\t\t\tSocket sc = socketEcoute.accept(); // un client se connecte, un nouveau thread client est lance\n\t\t\t\tlogger.log(Level.WARNING,\"Nouveau client CLI\");\n \t\t\tlogger.log(Level.INFO,\"IP client CLI: \" +sc.getRemoteSocketAddress());\n\t\t\t\tif (nbCLI == 0)\n\t\t\t\t{\n \t\t\t\tlogger.log(Level.INFO,\"timeout actif\");\n\t\t\t\t\tsc.setSoTimeout(180*1000);\n\t\t\t\t\t_clientCLI = new CLI_TCP_Thread(sc, _socketServ);\n\t\t\t\t\t_clientCLI.start();\n\t\t\t\t\tnbCLI = 1;\n\t\t\t\t} else {\n \t\t\t\tlogger.log(Level.WARNING,\"un client est deja connecte - fermeture de la connection\");\n \t\t\t\tPrintWriter output = new PrintWriter(sc.getOutputStream());\n\t\t\t\t\toutput.println(\"Server CLI-> Connection refusée : un client est déjà connecté!\");\n\n \t\t\t\ttry \n\t \t\t\t{\n\t \t\t\t\toutput.close();\n\t\t\t \t\tsc.close();\n\t\t\t\t\t\tSystem.out.println (\"CLI\" + Thread.currentThread() + \" : Logout !!! \");\n\t \t\t\t\t} \n\t \t\t\t\tcatch (IOException e)\n\t \t\t\t{\n\t \t\t\t}\n\t\t\t\t}\n \t\t\t\n\t\t }\n\t\t}\n\t catch (Exception e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t}", "public void run(){\r\n boolean nameGet = false;\r\n try{\r\n ObjectInputStream ois = new ObjectInputStream(mySocket.getInputStream());\r\n oos = new ObjectOutputStream(mySocket.getOutputStream());\r\n\r\n //Listen for messages and RollRequest objects.\r\n while(true){\r\n DataWrapper dw = (DataWrapper) ois.readObject();\r\n //Get the name from the InputStream if not retrieved already\r\n if(!nameGet){\r\n //Store the client's first message, which is always in the format \"<name> connected.\"\r\n String line = \"\";\r\n if(dw.getType() == DataWrapper.STRINGCODE){\r\n line = dw.getMessage();\r\n }\r\n consoleAppend(line);\r\n\r\n /*\r\n * Extract the alias from the String by getting the substring from 0 to the last index of whitespace,\r\n * effectively removing the \" connected.\" part of the String.\r\n */\r\n String alias = line.substring(0, line.lastIndexOf(\" \"));\r\n\r\n //Disconnect the client if the name is already in use\r\n if(getIndex(alias) != -1){\r\n oos.writeObject(\r\n new DataWrapper(\r\n DataWrapper.STRINGCODE, \"Sorry, that name is in use. Disconnecting..\", false));\r\n oos.flush();\r\n mySocket.close();\r\n }\r\n\r\n this.setName(alias);\r\n turnQueue.add(alias);\r\n nameGet = true;\r\n\r\n //If the first client\r\n if(clientThreads.get(0) == this) {\r\n //send the boardLayout for them to unpack\r\n oos.writeObject(new DataWrapper(DataWrapper.BICODE, boardLayout));\r\n }\r\n //If not the first client\r\n if(clientThreads.get(0) != this) {\r\n //request a board from the first client and wait until the updated board is received\r\n requestBoard();\r\n synchronized (waitForBoardLock) {\r\n while (!boardUpdated) {\r\n// System.out.println(\"Thread \" + this.getName() + \" waiting\");\r\n waitForBoardLock.wait();\r\n }\r\n }\r\n oos.writeObject(new DataWrapper(DataWrapper.BICODE, boardLayout));\r\n boardUpdated = false;\r\n }\r\n\r\n //Instruct all clients to add the new player\r\n sendCTToAll(new ControlToken(ControlToken.ADDCODE, alias, rand.nextInt(8)));\r\n\r\n }\r\n //Handle DataWrapper objects\r\n switch(dw.getType()){\r\n //Ensure all clients see each others' messages\r\n case DataWrapper.STRINGCODE:\r\n //Send incoming client chat messages to all clients, and append sender name\r\n String fmtMessage = String.format(\"%s: %s\", this.getName(), dw.getMessage());\r\n sendToAll(fmtMessage);\r\n consoleAppend(fmtMessage);\r\n break;\r\n\r\n //Receive updated board information from the first client in the client list\r\n case DataWrapper.BICODE:\r\n boardLayout = dw.getBoardInformation();\r\n System.out.println(\"Received an updated BoardInformation.\");\r\n System.out.println(boardLayout.toString());\r\n synchronized(waitForBoardLock){\r\n boardUpdated = true;\r\n waitForBoardLock.notify();\r\n// System.out.println(\"Thread \" + this.getName() + \" notified because of receiving a BoardInformation.\");\r\n }\r\n break;\r\n\r\n //Handle ControlToken objects\r\n case DataWrapper.CTCODE:\r\n //Client informs server that they are finished with their turn\r\n if(dw.getCT().getCode() == ControlToken.TURNFINISHEDCODE){\r\n synchronized(turnFinishedLock) {\r\n turnFinished = true;\r\n turnFinishedLock.notify();\r\n }\r\n// System.out.println(\"Thread \" + this.getName() + \" notified because of receiving a turnFinished.\");\r\n }\r\n //Client asks to roll the dice, Server returns a random value from 1-6\r\n if(dw.getCT().getCode() == ControlToken.ROLLREQUESTCODE) {\r\n //Generate the roll result\r\n int rolledResult = rollResult();\r\n //Send it as a game message to all clients\r\n String rolledResultString = String.format(\"%s rolled a %d!\",\r\n dw.getCT().getPlayerName(), rolledResult);\r\n sendGMToAll(rolledResultString);\r\n //Instruct the clients to move the player on all boards\r\n sendCTToAll(new ControlToken(ControlToken.MOVECODE, this.getName(), rolledResult, true));\r\n }\r\n break;\r\n\r\n //Default case\r\n default:\r\n consoleAppend(\"Error: invalid DataWrapper.type\");\r\n break;\r\n } //end of switch statement\r\n } //end of while loop\r\n } catch(ClassNotFoundException cnfe) {\r\n System.err.println(\"Error: class not found \" + cnfe.getMessage());\r\n } catch(SocketException | EOFException se) {\r\n handleDisconnect();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n } catch (InterruptedException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }", "private void sendToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(DataWrapper.STRINGCODE, msg, false));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }", "private void Thread() {\n\n Thread thread = new Thread ( new Runnable() {\n \n @Override\n public void run() {\n \n String mensagem = \"\";\n\n try {\n \n InputStreamReader isr = new InputStreamReader(socket.getInputStream());\n BufferedReader br = new BufferedReader(isr);\n\n while ((mensagem = br.readLine()) != null) {\n\n enviarMensagem(mensagem);\n }\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n });\n //para iniciar a thread\n thread.start();\n }", "public void run() {\t\n\t\tScanner s = new Scanner(System.in);\n\t\tString message = null;\n\t\tString NewMess = null;\n\t\t\ttry {\n\t\t\t\t\t// Flux entrant du Joueur1\n\t\t\t\t\tBufferedReader bw1 = new BufferedReader(new InputStreamReader(socket1.getInputStream()));\n\t\t\t\t\t\n\t\t\t\t\t// Flux entrant du Joueur2\n\t\t\t\t\tBufferedReader bw2 = new BufferedReader( new InputStreamReader(socket2.getInputStream()));\n\t\t\t\t\t\n\t\t\t\t\t// Flux sortant du Joueur1\n\t\t\t\t\tPrintWriter out1 = new PrintWriter(socket1.getOutputStream(),true);\n\t\t\t\t\t\n\t\t\t\t\t// Flux sortant du Joueur2\n\t\t\t\t\tPrintWriter out2 = new PrintWriter(socket2.getOutputStream(),true);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Renvoie le mot-but au joueur 1.\n\t\t\t\t\tString mot1 = \"Le mot à faire découvrir est : \" ;\n\t\t\t\t\tlemot = this.getTab();\n\t\t\t\t\tmot = mot1 + lemot;\n\t\t\t\t\tout1.println( mot);\n\t\t\t\t\tSystem.out.println(mot); // On affiche au serveur le mot à faire découvrir.\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Renvoie au Joueur 2 le message du Joueur1 avec les 30% de caractères en moins. \n\t\t\t\t\tString J1 = \"Recu de Joueur 1 : \";\n\t\t\t\t\tString J1Serveur = \"Message du Joueur1 (sans modification) : \";\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tString accent = newFormat(bw1.readLine());\n\t\t\t\t\t\tNewMess=SuppressionMot(lemot,accent);\n\t\t\t\t\t\tmessage=getSuppr30(NewMess);\n\t\t\t\t\t\tout2.println(J1 + message);\n\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(J1Serveur + accent);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}catch (IOException e ) {\n\t\t\t\t\n\t\t\t\t//'Déconnexion' lorsque un des joueurs quitte la partie.\n\t\t\t\tSystem.out.println(\"Déconnexion\");\n\t\t\t\t\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\n\t\t}", "void main(String[] args) throws IOException {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Server().setVisible(true);\n }\n });\n\t\t\n\t\tServerSocket ss=new ServerSocket(1234);\n\t\tSocket s;\n<<<<<<< HEAD\n \t\t\n=======\n \n\t\t\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\twhile(true) {\n\t\t\ts=ss.accept();\n\t\t\tSystem.out.println(\"New client request received \"+s );\n\t\t\t\n\t\t\tDataInputStream dis=new DataInputStream(s.getInputStream());\n\t\t\tDataOutputStream dos=new DataOutputStream(s.getOutputStream());\n\t\t\tString name=dis.readUTF();\n\t\t\t\n\t\t\tSystem.out.println(\"creating a new handler for this client..\");\n\t\t\t\n\t\t\tClientHandler mtch=new ClientHandler(s,name,dis,dos);\n\t\t\t\n\t\t\tThread t=new Thread(mtch);\n \n //print to server textArea\n<<<<<<< HEAD\n //msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n Activity.setText(Activity.getText().trim()+\"\\n\"+\"New Client:\"+name+\" is Connected\");\n Active.setText(Active.getText().trim()+\"\\n\"+ClientCount+\".\"+name);\n=======\n msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n \n\t\t\t\n\t\t\tar.add(mtch);\n \n<<<<<<< HEAD\n // Client.Refresh(ar);\n \n \n=======\n Active.addElement(name);\n \n final JList<String> ActiveList = new JList<>(Active); \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\tt.start();\n\t\t\t\n\t\t\tClientCount++;\n<<<<<<< HEAD\n \n \n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t}\n\t}\n \n\t\n\n//}\n\n \n \n \n ///end my code\n \n \n \n \n// public static void main(String args[]) {\n// /* Set the Nimbus look and feel */\n// //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n// /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n// */\n// try {\n// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n// if (\"Nimbus\".equals(info.getName())) {\n// javax.swing.UIManager.setLookAndFeel(info.getClassName());\n// break;\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (InstantiationException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (IllegalAccessException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// }\n// //</editor-fold>\n//\n// /* Create and display the form */\n// java.awt.EventQueue.invokeLater(new Runnable() {\n// public void run() {\n// new Server().setVisible(true);\n// }\n// });\n// }\n\n // Variables declaration - do not modify//GEN-BEGIN:variables\n<<<<<<< HEAD\n private static javax.swing.JTextArea Active;\n private static javax.swing.JTextArea Activity;\n private javax.swing.JScrollPane jScrollPane1;\n private javax.swing.JScrollPane jScrollPane2;\n private javax.swing.JTextField jTextField1;\n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n private static javax.swing.JTextField msg_area;\n // End of variables declaration//GEN-END:variables\n}\n\n///client handler code start\nclass ClientHandler implements Runnable{\n\t \n\t Scanner scn=new Scanner(System.in);\n<<<<<<< HEAD\n\t String name;\n=======\n\t private String name;\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t private DataInputStream dis;\n\t private DataOutputStream dos;\n\t Socket s;\n\t boolean isloggedin;\n\t \n\t public ClientHandler(Socket s, String name,DataInputStream dis,DataOutputStream dos) {\n\t\t \n\t\t this.dis=dis;\n\t\t this.name=name;\n\t\t this.dos=dos;\n\t\t this.isloggedin=true;\n \n\t\t \n\t }\n\n\t@Override\n\tpublic void run() {\n\t\tString received;\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\treceived=dis.readUTF();\n \n\t\t\t\tSystem.out.println(received+\" server\");\n\t\t\t\tif(received.contentEquals(\"logout\")) {\n\t\t\t\t\tthis.isloggedin=false;\n\t\t\t\t\tthis.dis.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//break message to message vs recepient\n\t\t\t\tStringTokenizer st=new StringTokenizer(received,\"#\");\n\t\t\t\tString MsgToSend=st.nextToken();\n\t\t\t\tString recepient=st.nextToken();\n\t\t\t\t\n\t\t\t\t//search recepient in active list\n\t\t\t\t\n\t\t\t\tfor(ClientHandler mc:Server.ar) {\n\t\t\t\t\tif(mc.name.contentEquals(recepient) && mc.isloggedin==true) {\n\t\t\t\t\t\tmc.dos.writeUTF(this.name+ \" : \" + MsgToSend+'\\n');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \n \n \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tthis.dis.close();\n\t\t\tthis.dos.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n\t\n}\n\n///client handler code end", "public void run() {\n try {\n //Create the input object stream and output object stream for this client\n toClient = new ObjectOutputStream(client.getOutputStream());\n fromClient = new ObjectInputStream(client.getInputStream());\n login = false;\n\n while (!login) {/*Wait for a client to login*/\n try {\n receviedProtocol = (Protocol) fromClient.readObject();\n if (receviedProtocol.getMethod().equals(\"HELP\"))\n sendHelpMenu();\n else if (receviedProtocol.getMethod().equals(\"LOGIN\")) {\n authorize(receviedProtocol);\n login = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n logout = false;\n while (!logout) {/*Keep conncetion between client and server until the client logout*/\n try{\n receviedProtocol = (Protocol)fromClient.readObject(); //Wait for client input\n startIndex = 0;//This will be used to track the starting point of next n groups to be send\n if(receviedProtocol.getMethod().equals(\"AG\"))\n allGroupHandler(receviedProtocol);\n else if(receviedProtocol.getMethod().equals(\"LOGOUT\")){\n logout();\n logout = true;\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }\n\n } catch (IOException e) {\n System.out.println(e);\n\n } finally {\n try {\n client.close();\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }", "public void run() {\n\t\tPrintWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tString inputLine, outputLine;\r\n\t\tProtocol kkp = new Protocol();\r\n\r\n\t\toutputLine = kkp.processInput(null);\r\n\t\tout.println(outputLine);\r\n\t\t// Leo continuamente e interactuo\r\n\t\ttry {\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n//\t\t\t\toutputLine = kkp.processInput(inputLine);\r\n\t\t\t\toutputLine = inputLine;\r\n\t\t\t\tout.println(outputLine);\r\n\t\t\t\tif (outputLine.equals(\"Bye.\")){\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t// Cierro la entrada y salida\r\n\t\t\tout.close();\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\tlog.info(\"Clientes activos: \"+ (taskExecutor.getThreadPoolExecutor().getActiveCount()-1));\t\t\t\r\n\t\t}\r\n\t}", "public void start()\n {\n isRunning = true;\n try\n {\n //metoden opretter en ny socket for serveren på den valgte port\n ServerSocket serverSocket = new ServerSocket(port);\n //mens serveren kører venter den på en client\n while (isRunning)\n {\n serverDisplay(\"Serveren venter på clienter på port: \" + port);\n //accepterer clienten på socketen\n Socket socket = serverSocket.accept();\n\n if (!isRunning)\n {\n break;\n }\n // laver en ny thread til clienten med socketen der er blevet accepteret\n HandleClientThread handleClientThread = new HandleClientThread(socket);\n\n // her blever tråden tilføjet til arryet af clienter\n clientThreadArrayList.add(handleClientThread);\n // Starer handleclient tråden som håndtere clienter\n handleClientThread.start();\n }\n try\n {\n //Her lukker serveren socketen\n serverSocket.close();\n for (int i = 0; i < clientThreadArrayList.size() ; i++)\n {\n HandleClientThread hct = clientThreadArrayList.get(i);\n try\n {\n hct.inputStream.close();\n hct.outputStream.close();\n hct.socket.close();\n }\n catch (IOException e)\n {\n System.out.println(\"Uknowen command \" + e);\n }\n }\n }\n catch (Exception e)\n {\n serverDisplay(\"Kunne ikke lukke serveren og clienterne pga. \" + e);\n }\n }\n catch (IOException e)\n {\n String message = dateFormat.format(new Date()) + \"Fejl på ny server socket\" + e + \"\\n\";\n serverDisplay(message);\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tServerGUI window = new ServerGUI();\n\t\t\t\t\twindow.ServerWindow.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tString username = null;\n/* https://www.geeksforgeeks.org/introducing-threads-socket-programming-java/ \n * used for input, output stream and socket initialisation. to sending message to client and receiving the messages*/\n\t\ttry {\n\t\t\tSystem.out.println(\"Starting Server on port 9999!\");\n\t\t\t//initialise socket to listen on port 8080\n\t\t\tlistener = new ServerSocket(8080);\n\n\t\t\twhile (true) {\n\t\t\t\t//server continously listens to the client\n\t\t\t\tSocket client = listener.accept();\n\t\t\t\tSystem.out.println(\"Client is\" + client);\n\t\t\t\t//declaring server input output streams for each client\n\t\t\t\tDataInputStream dis = new DataInputStream(client.getInputStream());\n\t\t\t\tDataOutputStream dos = new DataOutputStream(client.getOutputStream());\n\t\t\t\t//do the below until valid username is read from client\n\t\t\t\twhile (true) {\n\t\t\t\t\t//reads the username from client through input stream\n\t\t\t\t\tusername = dis.readUTF();\n\t\t\t\t\t//if user has sent request to disconnect, remove him from the current clients list\n\t\t\t\t\tif (username.equals(\"exit_client\")) {\n\t\t\t\t\t\tremoveClient(username);\n\n\t\t\t\t\t} \n\t\t\t\t\t// else verify the username and create thread \n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"read user name successfully\" + username);\n\t\t\t\t\t\t//displaying current incoming client\n\t\t\t\t\t\tClientName.setText(username);\n\t\t\t\t\t\t//if the username is not present in the active clients list, then add the user.\n\t\t\t\t\t\tif (!ActiveClients.contains(username)) {\n\t\t\t\t\t\t\tActiveClients.add(username);\n\t\t\t\t\t\t\t//if username is new, update the allusernames list as well\n\t\t\t\t\t\t\tif (!AllUserNames.contains(username)) {\n\t\t\t\t\t\t\t\tAllUserNames.add(username);\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//AddUserNamesToFile(username);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"client is connected\");\n\t\t\t\t\t\t\t//System.out.println(\"Assigning new thread to client\");\n\t\t\t\t\t\t\t//storing the client information like (username,input output stream)\n\t\t\t\t\t\t\tArrayList<Object> ClientData = new ArrayList<Object>(3);\n\t\t\t\t\t\t\tClientData.add(dis);\n\t\t\t\t\t\t\tClientData.add(dos);\n\t\t\t\t\t\t\tClientData.add(client);\n\t\t\t\t\t\t\tConnectedClients.put(username, ClientData);\n\t\t\t\t\t\t\t//System.out.println(\"ActiveClients\" + ActiveClients);\n\t\t\t\t\t\t\t//if successfull connection established, stop listening to usernames\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}//if username entered by client is already in use, notify the user\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out.println(\"username already exists\");\n\t\t\t\t\t\t\tdos.writeUTF(\"Username already exists.Please enter new username\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t/* https://www.programcreek.com/java-api-examples/?class=javax.swing.JList&method=setModel \n\t\t\t\t * used for setting up the jlist using setmodel */\n\t\t\t\t//setting the GUI to show active and all usernames in that session\n\t\t\t\tDML0 = new DefaultListModel();\n\t\t\t\tDML0.addAll(ActiveClients);\n\t\t\t\tCurrentClients.setModel(DML0);\n\t\t\t\tDML0 = new DefaultListModel();\n\t\t\t\tDML0.addAll(AllUserNames);\n\t\t\t\tAllUserLists.setModel(DML0);\n\n\t\t\t\t// create a new thread object;\n\t\t\t\tThread t = new ClientHandler(client, dis, dos, username);\n\t\t\t\tt.start();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t// e.printStackTrace();\n\t\t\t// JOptionPane.showMessageDialog(null, \"Connection closed\", \"Successful\",\n\t\t\t// JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\n\t}", "@Override\n public void run() {\n while(true){\n try{\n Socket s = server.accept();\n String i = new DataInputStream(s.getInputStream()).readUTF();\n if(clientColl.containsKey(i)){\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"You Are Already Registered....!!\");\n }else{\n clientColl.put(i, s);\n txt.append(sdf.format(date) + \" \" + i + \" Joined !\\n\");\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"\");\n new MsgRead(s,i).start();\n new PrepareClientList().start();\n }\n \n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n \n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "public static void main2(String[] args) throws UnknownHostException, IOException, ClassNotFoundException, InterruptedException{\r\n //get the localhost IP address, if server is running on some other IP, you need to use that\r\n InetAddress host = InetAddress.getLocalHost();\r\n Socket socket = null;\r\n ObjectOutputStream oos = null;\r\n ObjectInputStream ois = null;\r\n for(int i=0; i<5;i++){\r\n //establish socket connection to server\r\n socket = new Socket(host.getHostName(), 9876);\r\n //write to socket using ObjectOutputStream\r\n oos = new ObjectOutputStream(socket.getOutputStream());\r\n System.out.println(\"Sending request to Socket Server\");\r\n if(i==4)oos.writeObject(\"exit\");\r\n else oos.writeObject(\"\"+i);\r\n //read the server response message\r\n ois = new ObjectInputStream(socket.getInputStream());\r\n String message = (String) ois.readObject();\r\n System.out.println(\"Message: \" + message);\r\n //close resources\r\n ois.close();\r\n oos.close();\r\n Thread.sleep(100);\r\n }\r\n }", "@Override\n\tpublic void run () {\n\t\ttry {\n\t\t\tsocket = new Socket(ipAdresse, port);\n\n\t\t\t// Stelle sicher, dass der Socket auch wieder geschlossen wird.\n\t\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run () {\n\t\t\t\t\tverbindungSchliessen();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\n\t\t\tInputStream is = socket.getInputStream();\n\n\t\t\tbw.write(\"xe\" + name);\n\t\t\tbw.newLine();\n\t\t\tbw.flush();\n\n\t\t\tString ip = socket.getInetAddress().getHostAddress();\n\n\t\t\t// set up interpreter\n\t\t\tNetzwerkInterpreter interpreter = new NetzwerkInterpreter(ip, null, new BufferedReader(new InputStreamReader(is)));\n\t\t\tinterpreter.empfaengerHinzufuegen(this);\n\n\t\t\tNetzwerkVerbindung vb = new NetzwerkVerbindung(name, ip, bw, interpreter);\n\n\t\t\tverbindung = vb;\n\n\t\t\tsynchronized (this) {\n\t\t\t\tthis.notifyAll();\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\tLogger.error(\"Konnte die IP-Adresse nicht zuordnen...\");\n\t\t\tconnectFailed = true;\n\t\t} catch (IOException e) {\n\t\t\tLogger.error(\"Es gab Input/Output - Schwierigkeiten. Sind ausreichende Rechte fuer\" + \" Internet etc. vorhanden? Das System könnte die Netzwerkanfrage ablehnen.\");\n\t\t\tconnectFailed = true;\n\t\t}\n\t}", "public void run()\n {\n \n try {\n String Msg = \"\";\n ArrayList<String> tokens=new ArrayList<String>();\n while ((Msg = this.reader.readLine())!=null)\n {\n if(!tokens.isEmpty())\n {\n //not empty,clear.\n tokens.clear();\n\n }\n //check the msg\n System.out.println(\"Inside while, Received msg in client handler:\"+Msg);\n //all the meta datas are separated using :\n tokens.addAll(Constants.tokens(Msg, \":\"));\n //if it's a login request\n if(tokens.contains(Constants.LOGIN_ID))\n {\n this.userID=tokens.get(1);//the 2nd string of this format LOGIN_ID:username:password\n this.password=tokens.get(2);\n this.client_delegate.validate(this);\n }\n //if it's a log out request.\n if(tokens.contains(Constants.LOGOUT_ID))\n {\n this.client_delegate.logout(this);\n }\n //public room message\n if(tokens.contains(Constants.PUBLIC_ROOM))\n {\n \n if(tokens.get(1).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessage(tokens.get(1)+\":\"+tokens.get(2));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessage(tokens.get(1));\n }\n \n }\n //private message\n if(tokens.contains(Constants.MESSAGE_ID))\n {\n //private message\n if(tokens.get(2).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2)+\":\"+tokens.get(3), tokens.get(4));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2), tokens.get(3));\n }\n }\n if(tokens.contains(Constants.FILE))\n {\n this.client_delegate.sendFileTo(tokens.get(1), Integer.parseInt(tokens.get(2)), tokens.get(3));\n }\n \n \n\n }\n } catch (Exception ex) {\n System.out.printf(\"Error parsing message from client:%s.\",this.userID);\n }\n }", "public Thread messageHandler(boolean isGUI, ClientView clientView) {\n Gson gson = new Gson();\n this.isGUI = isGUI;\n return new Thread(() -> {\n MessageEnvelope envelope = null;\n try {\n do {\n String inputMessage = (String)serverInput.readObject();\n envelope = gson.fromJson(inputMessage, MessageEnvelope.class);\n if (envelope.getType() != MessageType.PING) {\n synchronized (messageQ) {\n messageQ.add(inputMessage);\n messageQ.notifyAll();\n }\n if (!isGUI && envelope.getType().equals(MessageType.ENDGAME)) {\n EndGameMessage endGameMessage = gson.fromJson(envelope.getMessage(), EndGameMessage.class);\n if (!endGameMessage.isWinner() && !endGameMessage.getPlayer().isEmpty()) {\n clientView.endRead(true);\n }\n }\n }\n } while (!socket.isClosed() && !view.isQuitting());\n } catch (IOException | ClassNotFoundException e) {\n // If this branch is executed when the user is not really quitting, there was a server disconnection.\n // If the user is quitting, this thread is terminated (catches the exception because of the socket closing),\n // due to viewRun socket.close() call (should do nothing)\n if (!view.isQuitting()) {\n // Line needed to avoid another do..while iteration in viewRun()\n view.setQuitting(true);\n EndGameMessage message = new EndGameMessage(\"\", null);\n MessageEnvelope finalEnvelope = new MessageEnvelope(MessageType.ENDGAME, gson.toJson(message, EndGameMessage.class));\n try {\n serverInput.close();\n clientOutput.close();\n socket.close();\n synchronized (messageQ) {\n messageQ.add(gson.toJson(finalEnvelope, MessageEnvelope.class));\n messageQ.notifyAll();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n if (!isGUI) {\n clientView.endRead(false);\n }\n }\n }\n });\n }", "public void start() throws SocketException {\n serverSocket = new DatagramSocket(port);\n serverThread = new Thread(new Runnable() {\n public void run() {\n\n\n\n try{\n while(true) {\n byte[] receiveBuffer = new byte[BUFFER_SIZE];\n\n DatagramPacket receivePacket = new DatagramPacket(receiveBuffer,BUFFER_SIZE);\n serverSocket.receive(receivePacket);\n\n if(drop()) continue;\n\n String receiveString = new String(receivePacket.getData());\n receiveString = trim(receiveString);\n\n\n UUID uuid = Message.getUUIDFromMessageString(receiveString);\n int timestamp = Message.getTimestampFromMessageString(receiveString);\n int type = Message.getTypeFromMessageString(receiveString);\n int port = Message.getPortFromMessageString(receiveString);\n MachineInfo.MachineState state = Message.getStateFromMessageString(receiveString);\n\n\n \n\n SocketAddress sa = receivePacket.getSocketAddress();\n String[] address = sa.toString().split(\":\");\n if(address[0].startsWith(\"/\")) {\n address[0] = address[0].substring(1);\n }\n\n MachineInfo machineInfo = new MachineInfo(address[0], port);\n machineInfo.setUUID(uuid).setTimestamp(timestamp).setState(state);\n\n EventMessage em = null;\n \n if(type == 0 ) { // join message\n if(DistributedMachine.isContactServer()) {\n machineInfo.setStateConnected();\n em = new EventMessage(EventMessage.EventType.Join);\n em.setMachineInfo(machineInfo);\n }\n logger.info(\"Received a join message\");\n } else if(type == 1) { //leave message\n em = new EventMessage(EventMessage.EventType.Leave);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a leave message\");\n } else if(type == 2) { //sync message\n em = new EventMessage(EventMessage.EventType.Sync);\n em.setMemberList(Message.getMemberListfromMessageString(receiveString));\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a sync message\");\n } else if(type == 3) { //ping message\n em = new EventMessage(EventMessage.EventType.Ping);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a ping\");\n } else if(type == 4) { //receive pingack\n em = new EventMessage(EventMessage.EventType.Ping_ACK);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a pingack\");\n }\n \n else if (type == -1){\n logger.error(\"Receive an unknown type message\");\n }\n\n if(em != null) {\n eventMessageQueue.add(em);\n }\n\n\n logger.info(\"Receive \" + receiveString);\n// System.out.println();\n// System.out.println(receiveString);\n// System.out.print(\">\");\n }\n } catch(Exception ex) {\n logger.info(ex.toString());\n }\n }\n });\n\n serverThread.start();\n }", "@Override\n public void run(){\n ServerConnection[] clients = new ServerConnection[]{client2, client3, client1};\n\n for( ServerConnection c : clients ) {\n if ( c != null ){\n if ( client3 == null ){\n c.send(\"Game has started with code:\" + gameID + \".\\n\" + \"Current players are \" +\n client1.getName() + \", \" + client2.getName());\n }\n else {\n c.send(\"Game has started with code:\" + gameID + \".\\n\" + \"Current players are \" +\n client1.getName() + \", \" + client2.getName() + \", \" + client3.getName());\n }\n c.setGameID(gameID);\n }\n }\n\n String[] gods = readChallengerMessage();\n\n for (int i=0; i<2 && currClient != client1; i++){\n currClient.send(Arrays.toString(gods) );\n clientMessage = readClientMessage();\n if (i == 0) {\n gameMessage.setGod2(clientMessage.getGod());\n gameMessage.setName2(clientMessage.getName());\n } else if (i == 1) {\n gameMessage.setGod3(clientMessage.getGod());\n gameMessage.setName3(clientMessage.getName());\n }\n List<String> list = new ArrayList<String>(Arrays.asList(gods));\n list.remove( clientMessage.getGod().name());\n gods = list.toArray(new String[0]);\n currClient.send(\"Choice confirmed\");\n updateCurrClient();\n }\n\n currClient.send(gods[0]);\n gameMessage.setGod1(God.valueOf(gods[0]));\n gameMessage.setName1(client1.getName());\n updateCurrClient();\n resetUpdate();\n gameMessage.notify(gameMessage);\n sendLiteGame();\n\n for( ServerConnection c : clients ) {\n resetUpdate();\n if ( c != null ) {\n while ( !updateModel) {\n sendToCurrClient(\"Placing workers\");\n clientMessage = readClientMessage();\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.setSpace2(clientMessage.getSpace2());\n gameMessage.notify(gameMessage);\n if (!updateModel) {\n sendLiteGame();\n }\n }\n updateCurrClient();\n liteGame.setPlayer(currClient.getName());\n sendLiteGame();\n }\n }\n\n\n while ( !endOfTheGame ) {\n sendToCurrClient(\"Next action\");\n clientMessage = readClientMessage();\n\n if ( \"Choose Worker\".equals(clientMessage.getAction()) ) {\n chooseWorker();\n }\n else if ( \"Charon Switch\".equals(clientMessage.getAction()) ) {\n charonSwitch();\n }\n else if ( \"Prometheus Build\".equals(clientMessage.getAction()) ) {\n build();\n }\n else if ( \"Move\".equals(clientMessage.getAction()) ) {\n move();\n }\n else if ( \"Build\".equals(clientMessage.getAction()) ) {\n build();\n }\n\n if ( \"End\".equals(clientMessage.getAction()) ) {\n gameMessage.resetGameMessage();\n updateCurrClient();\n liteGame.setCurrWorker(5,5);\n liteGame.setPlayer(currClient.getName());\n sendLiteGame();\n }\n else {\n sendLiteGame();\n if ( !endOfTheGame && !playerRemoved ) {\n if (!updateModel) {\n currClient.send(\"Invalid action\");\n } else currClient.send(\"Action performed\");\n }\n else playerRemoved = false;\n }\n }\n\n sendToCurrClient(\"You won the match.\");\n server.endMatch(gameID, null);\n }", "@Override\n\tpublic void run() {\n\t\twhile(!Server.killServer){\n\t\t\ttry {\n\t\t\t\tThread.sleep(Constants.BROADCAST_BATTLEFIELD_PERIOD_TO_CLIENTS);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//send to EACH client\n\t\t\tfor(Node client : Server.getClientList().keySet()){\n\t\t\t\t//get client's RMI instance\n\t\t\t\tClientServer clientComm = null;\n\t\t\t\tclientComm = Server.getClientReg(client); \n\t\t\t\t//create Message\n\t\t\t\tClientServerMessage sendBattlefieldMessage = new ClientServerMessage(\n\t\t\t\t\t\t\tMessageType.GetBattlefield,\n\t\t\t\t\t\t\tthis.serverOwner.getName(),\n\t\t\t\t\t\t\tthis.serverOwner.getIP(),\n\t\t\t\t\t\t\tclient.getName(),\n\t\t\t\t\t\t\tclient.getIP());\n\t\t\t\tsendBattlefieldMessage.setBattlefield(Server.getBattlefield());\n\t\t\t\t\n\t\t\t\tif(clientComm==null){\n\t\t\t\t\tSystem.out.println(\"clientComm is null\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Server: Battlefield sent\");\n\n\t\t\t\ttry {\n\t\t\t\t\tclientComm.onMessageReceived(sendBattlefieldMessage);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (NotBoundException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\tSocket s = null;\n\t\tDataOutputStream dos = null;\n\t\tDataInputStream dis = null;\n\t\tString clientName = \"\";\n\t\tString userid = null;\n\t\tString password = null;\n\t\t\n\t\ttry {\n\t\t\ts = ss.accept(); // wait for a client\n\t\t\tnew Thread(this).start(); // make a thread to connect the NEXT client - somewhat recursive\n\t\t\tdis = new DataInputStream(s.getInputStream());\n\t\t\tString firstMsg = dis.readUTF();\n\t\t\tdos = new DataOutputStream(s.getOutputStream());\n\t\t\t\n\t\t\t// validate connection \n\t\t\tif (firstMsg.charAt(0) == '\\u0274') { // char startsWith()\n\t\t\t\tfirstMsg = firstMsg.substring(1); // drop unicode char\n\t\t\t\tint slashOffset = firstMsg.indexOf(\"/\");\n\t\t\t\tuserid = firstMsg.substring(0, slashOffset).toLowerCase();\n\t\t\t\tpassword = firstMsg.substring(slashOffset + 1);\n\t\t\t\tSystem.out.println(userid + \" is attempting to join with password \" + password);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdos.writeUTF(\"Invalid protocol. \" + \"Are you calling the right address and port?\");\n\t\t\t\tdos.close(); // close connection\n\t\t\t\tSystem.out.println(\"Invalid 1st msg received: \" + firstMsg);\n\t\t\t\treturn; // kill this client thread\n\t\t\t}\n\t\t\t\n\t\t\t// validate username then get chatName from this collection: \n\t\t\tif (authorizedClients.containsKey(userid)) clientName = authorizedClients.get(userid);\n\t\t\t else { //The submitted userid is not in the collection...\n\t\t\t\t dos.writeUTF(\"user id \" + userid + \" is not authorized to join the PrivateChatRoom.\");\n\t\t\t\t System.out.println(userid + \" is not authorized to join.\");\n\t\t\t\t dos.close(); // hang up.\n\t\t\t\t return; // and kill this client thread\n\t\t\t }\n\t\t\tif (clients.containsKey(clientName)) {\n\t\t\t\t dos.writeUTF(clientName + \" is already in the chat room. Cannot be joined from two locations concurrently.\");\n\t\t\t\t System.out.println(\"Received join request for a userid (\" + userid + \"=\" + clientName + \" that is already in the chat room.\" );\n\t\t\t\t dos.close(); // hang up.\n\t\t\t\t return; // and kill this client thread\n\t\t\t}\n\t\t\telse { // process this request\n\t\t\t\tSystem.out.println(clientName + \" is joining.\"); // trace\n\t\t\t\tsendToAllClients(\"Welcome to \" + clientName + \" who has just joined the chat room!\"); // let everyone know you're flossing\n\t\t\t\tclients.put(clientName, dos); // add to collection\n\t\t\t}\n\t\t\tObjectOutputStream oos = null;\n\t\t\tif (!passwords.containsKey(userid)) // stored password not found\n\t\t\t\t\t { // That's OK! This is just a first-time join!\n\t\t\t\t\t passwords.put(userid, password);//add to collection\n\t\t\t\t\t //And save the updated passwords collection to disk:\n\t\t\t\t\t oos= new ObjectOutputStream(new FileOutputStream(\"ChatRoomPasswords.ser\"));\n\t\t\t\t\t oos.writeObject(passwords);\n\t\t\t\t\t oos.close();\n\t\t\t\t\t }\n\t\t\t\t\t else // a stored password for this userid is found\n\t\t\t\t\t {\n\t\t\t\t\t String storedPassword = passwords.get(userid);\n\t\t\t\t\t if(!storedPassword.equals(password))\n\t\t\t\t\t {\n\t\t\t\t\t dos.writeUTF(\"Join rejected. The submitted password does not match the password stored for this user id.\");\n\t\t\t\t\t return; // and kill this client's thread.\n\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\tdos.writeUTF(\"Welcome to the chat room \" + clientName + \"!\");\t\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Client connection failure: \" + e);\n\t\t\tif (s.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\ts.close(); // hang up\n\t\t\t\t}\n\t\t\t\tcatch (IOException ioe){\n\t\t\t\t\t// Already hung up\n\t\t\t\t}\n\t\t\t} // end if\n\t\t} // end catch\n\t\t\n\t\t// Send Receive loop\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tString inChat = dis.readUTF();\n\t\t\t\tString outChat = clientName + \" says: \" + inChat;\n\t\t\t\tSystem.out.println(outChat); // trace\n\t\t\t\tsendToAllClients(outChat); // send it to everyone\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ioe){ // leave processing\n\t\t\tSystem.out.println(clientName + \" is leaving.\"); // trace\n\t\t\tsendToAllClients(\"Goodbye to \" + clientName + \" who has just left the chat room!\"); // let everyone know you're leaving\n\t\t\tclients.remove(clientName); // remove from collection\n\t\t\treturn; // kill thread since we're done now for w/e reason\n\t\t}\n\t}", "public void recibirMensajesServidor(){\n String mensaje;\n try {\n entradaDatos = new DataInputStream(socket.getInputStream());\n } catch (IOException ex) {\n mostrarMensaje(\"Error al crear el stream de entrada: \" + ex.getMessage());\n } catch (NullPointerException ex) {\n mostrarMensaje(\"El socket no se creo correctamente. \");\n }\n \n // Bucle infinito que recibe mensajes del servidor\n boolean conectado = true; \n while (conectado) {\n try {\n mensaje = entradaDatos.readUTF();\n mostrarMensaje(mensaje);\n } catch (IOException ex) {\n mostrarMensaje(\"Error al leer del stream de entrada: \" + ex.getMessage());\n conectado = false;\n } catch (NullPointerException ex) {\n mostrarMensaje(\"El socket no se creo correctamente. \");\n conectado = false;\n }\n }\n }", "@Override\r\n public void run()\r\n {\n boolean centinela = true;\r\n\r\n // Mientras el otro jugador no pierda se procede con:\r\n while (centinela)\r\n {\r\n try\r\n {\r\n // Se crea un lector para el puerto y se revisa/lee que hay en el mismo\r\n BufferedReader buffer = new BufferedReader(new InputStreamReader(socketCliente.getInputStream()));\r\n String mensaje = buffer.readLine();\r\n\r\n // Luego, trataremos de segmentar el mensaje que se recibio\r\n String[] tokens = mensaje.split(\" \");\r\n\r\n // Si el mensaje posee un elemento entonces\r\n if (tokens.length == 1)\r\n {\r\n // Si el unico token/elemento es la palabra: \"Ganaste!\" entonces\r\n if (tokens[0].equals(\"Ganaste!\"))\r\n {\r\n // Se levanta/marca la variable de victoria para este jugador\r\n gano = true;\r\n\r\n // Y se procede a terminar este ciclo, el cual a su vez terminara el hilo\r\n centinela = false;\r\n }\r\n }\r\n\r\n // Si el mensaje posee dos elementos entonces\r\n if (tokens.length == 2)\r\n {\r\n // Damos por iniciada la partida\r\n partidaEnProceso = true;\r\n }\r\n\r\n // Por otro lado, si el mensaje posee tres elementos entonces\r\n if (tokens.length == 3)\r\n {\r\n // Es porque el otro jugador acabo de eliminar un enemigo, y ahora me corresponde a mi eliminarlo (pasarselo a el de nuevo), por lo que leo cual era el tipo y espero que el generador lo cree\r\n enemigoTransferido = Integer.parseInt(tokens[2]);\r\n }\r\n }\r\n catch (IOException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void sendCoordinatorMsg() {\n int numberOfRequestsNotSent = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if ( key != ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n\n try {\n MessageTransfer.sendServer(\n ServerMessage.getCoordinator( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent leader ID to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n numberOfRequestsNotSent += 1;\n System.out.println(\"WARN : Server s\"+destServer.getServerID()+\n \" has failed, it will not receive the leader\");\n }\n }\n }\n if( numberOfRequestsNotSent == ServerState.getInstance().getServers().size()-1 ) {\n // add self clients and chat rooms to leader state\n List<String> selfClients = ServerState.getInstance().getClientIdList();\n List<List<String>> selfRooms = ServerState.getInstance().getChatRoomList();\n\n for( String clientID : selfClients ) {\n LeaderState.getInstance().addClientLeaderUpdate( clientID );\n }\n\n for( List<String> chatRoom : selfRooms ) {\n LeaderState.getInstance().addApprovedRoom( chatRoom.get( 0 ),\n chatRoom.get( 1 ), Integer.parseInt(chatRoom.get( 2 )) );\n }\n\n leaderUpdateComplete = true;\n }\n }", "private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\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}\n\t\t} catch (Exception e) {\n\t\t\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}", "private void makeThreads(String registerName, String instanceID) {\n\t\tServerSender serverSender = new ServerSender(clientTable.getQueue(registerName, instanceID), toClient);\r\n\t\tServerReceiver serverReceiver = new ServerReceiver(registerName, instanceID, fromClient, clientTable, serverSender);\r\n\t\t\r\n\t\t//starts the threads\r\n\t\tserverSender.start();\r\n\t\tserverReceiver.start();\r\n\t\t\r\n\t\t//waits for the threads to end\r\n\t\ttry {\r\n\t\t\tserverSender.join();\r\n\t\t\tserverReceiver.join();\r\n\t\t}\r\n\t\tcatch(InterruptedException e) {\r\n\t\t\tReport.errorAndGiveUp(\"Fatal error: unexpected interruption has occurred\");\r\n\t\t}\r\n\t}", "private synchronized void openConnection() {\n\t\tsendData = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tsynchronized(msgs){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmsgs.wait(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile(true){\n\t\t\t\t\tsynchronized(msgs){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(msgs.size() > 0){\n\t\t\t\t\t\t\t\tout = new PrintWriter(new PrintWriter(s.getOutputStream()));\n\t\t\t\t\t\t\t\tString temp = msgs.get(0);\n\t\t\t\t\t\t\t\tout.println(temp);\n\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t\tSystem.out.println(temp);\n\t\t\t\t\t\t\t\tmsgs.remove(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(IOException e){\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treceiveData = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tString received;\n\t\t\t\tdo{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tin = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t\t\t\t\t\treceived = in.readLine();\n\t\t\t\t\t\tparseMessageReceived(received);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}while(true);\n\t\t\t}\n\t\t};\n\t\tsendData.setDaemon(true);\n\t\treceiveData.setDaemon(true);\n\t\tsendData.start();\n\t\treceiveData.start();\n\t\tnew Thread()\n\t\t{\n\t\t\tpublic void run(){\n\t\t\t\twhile(true){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsendData.join();\n\t\t\t\t\t\treceiveData.join();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "public TCPMessengerServer() {\n initComponents();\n customInitComponents();\n listenForClient(); \n }", "private void startFedServer(){\r\n \r\n try {\r\n System.out.println(\"Start server to listen for client connection....\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Start server to listen for client connection....\", \"info\");\r\n sSocket = new ServerSocket(serverPort);\r\n sSocket.setReuseAddress(true);\r\n //System.out.println(\"FedServer is launching\");\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Error listening on port \" + serverPort, \"severe\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n List<Thread> proc_list = new ArrayList();\r\n while (FLAG) {\r\n if (proc_list.size() == PROC_MAX) {\r\n boolean full = true;\r\n //check if thread number reach the maximum number, if yes, sleep; \r\n while (full) {\r\n for (int i = proc_list.size() - 1; i >= 0; i--) {\r\n if (!proc_list.get(i).isAlive()) {\r\n proc_list.remove(i);\r\n full = false;\r\n }\r\n }\r\n if (full) {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n }\r\n }\r\n }\r\n //if not full, accpet new client connection\r\n try {\r\n cSocket = sSocket.accept();\r\n //System.out.println(\"[C4C-Notification] Accept connection from client\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Accept connection from client\", \"info\");\r\n //create new thread to process client request\r\n // System.out.println(\"Accept connection from client -step 1\");\r\n Thread request = new Thread(new processRequest(cSocket));\r\n request.start();\r\n proc_list.add(request);\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n\r\n }\r\n closeFedSockets();\r\n }", "public void startThreads() {\n\n //Start a new sender thread\n new Thread(new ClientSenderThread(sequenceNumber, eventQueue, socketsForBroadcast, incomingQueue, curTimeStamp, waitToResendQueue)).start();\n //Start a new listener thread\n //new Thread(new ClientListenerThread(socketsForBroadcast, clientTable,receivedQueue,displayQueue, incomingQueue,actionHoldingCount)).start();\n new ConfirmationBroadcast(sequenceNumber, confirmationQueue, socketsForBroadcast, waitToResendQueue, (BlockingQueue) incomingQueue).start();\n new ResendThread(150, timeout, waitToResendQueue, socketsForBroadcast).start();\n\n new IncomingMessageHandleThread(incomingQueue, receivedQueue, waitToResendQueue, confirmationQueue,\n actionHoldingCount, socketsForBroadcast, curTimeStamp, avoidRepeatenceHelper, numberOfPlayers, playerName, sequenceNumber, this).start();\n new ReceivedThread(receivedQueue, displayQueue, waitToResendQueue, incomingQueue, curTimeStamp, socketsForBroadcast,\n localPlayers, actionHoldingCount, playerName, sequenceNumber, numberOfPlayers).start();\n new DisplayThread(displayQueue, clientTable).start();\n new BulletSender(eventQueue).start();\n\n\n }", "public static void main(String[] args) throws IOException, UnknownHostException{\n\n\t\t Scanner scan = new Scanner(System.in);\n\n\t\t System.out.println(\"Bitte hostname und port eingeben:\");\n\t\t String hostname= scan.nextLine();\n\t\t int port = scan.nextInt();\n\n\t\t Socket client = new Socket(hostname,port);\n\t\t //rfhpc987\n\t\t InputStream in = client.getInputStream();\n\t\t BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n\n\t\t OutputStream out = client.getOutputStream();\n\t\t PrintWriter writer = new PrintWriter(out);\n\n\t\t //BufferedReader msgReader = new BufferedReader(new InputStreamReader(System.in));\n\t\t System.out.println(\"Bitte geben Sie einen Text ein: \");\n\t\t Scanner msgReader = new Scanner(System.in);\n \n \n\t\t // Nachricht an server senden\n\t\t String result= msgReader.nextLine();\n\t\t writer.println(result);\n\t\t writer.flush();\n\n\t\t // die von Server gesendete Nachricht\n\t\t String msgServer = reader.readLine();\n\t\t // Nachricht von Client\n\t\t System.out.println(\"Message von Server:\"+msgServer);\n\n\n\n\n\t}", "public void run(){\r\n\r\n\t\tString message = new String();\r\n\t\t\r\n\t\t\r\n\t\twhile(escoltant){\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tsClient = sServer.accept();\r\n\t\t\t\t\r\n\t\t\t\tdataIn = new ObjectInputStream(sClient.getInputStream());\r\n\t\t\t\t\r\n\t\t\t\tdataOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t//objectOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t\r\n\t\t\t\tmessage = (String)dataIn.readObject();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"ADD\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif(Logica.addUser(message)){\r\n\t\t\t\t\t\tdataOut.writeObject(\"OK\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tdataOut.writeObject(\"KO\");\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"LOG\")){\r\n\t\t\t\t\tdataOut.writeObject(Logica.checkUser(message));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.equals(\"MAPES\")){\r\n\t\t\t\r\n\t\t\t\t\tdataOut.writeObject(Logica.enviaEscenaris());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"GUANYADA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaGuanyada();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"PERDUDA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaPerduda();\r\n\t\t\t\t}\r\n\t\t\t\tdataIn.close();\r\n\t\t\t\tdataOut.close();\r\n\t\t\t\t\r\n\t\t\t\tsClient.close();\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\t\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t}", "public void run()\r\n\t{\r\n\t\t\r\n\t\tint i,tam;\r\n\r\n\t\tfinal int puerto = 6250;\r\n\t\tbyte[] buffer;\r\n\t\tSystem.out.println(\"--- Servidor iniciado ---\\n\");\t\r\n\r\n\r\n\t\ttry\r\n\t\t{\t\r\n\t\t\tDatagramSocket socket = new DatagramSocket(puerto);\r\n\t\t\tDatagramPacket peticion;\r\n\t\t\tDatagramPacket respuesta;\r\n\t\t\tInetAddress direccion;\r\n\t\t\tint puertoCliente;\r\n\r\n\t\t\tString[] tiempo;\r\n\t\t\tString mensaje,envio = \"\";\r\n\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Nueva iteracion, puerto: \" + puerto);\r\n\t\t\t\t//System.out.println(\"Nueva iteracion, puerto: \" + puertoCliente);\r\n\t\t\t\ttam = 0;\r\n\t\t\t\ttiempo = new String[4];\r\n\t\t\t\ttiempo = this.reloj.getFormatTime();\r\n\r\n\t\t\t\t// Recibe un mensaje de algun cliente, este puede estar solicitando la hora de algun reloj o la modificacion\r\n\t\t\t\tbuffer = new byte[100];\r\n\t\t\t\tpeticion = new DatagramPacket(buffer,buffer.length);\r\n\t\t\t\tsocket.receive(peticion);\r\n\t\t\t\tmensaje = new String(peticion.getData());\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(peticion.getAddress());\r\n\t\t\t\tSystem.out.println(mensaje);\r\n\t\t\t\tif(mensaje.charAt(1) == '$')\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\ttam = 12;\r\n\t\t\t\t\tSystem.out.println(\"Mensaje para pedir la hora\");\r\n\t\t\t\t\tenvio = tiempo[3] + \":\" + tiempo[2] + \":\" + tiempo[1] + \":\" + tiempo[0];\r\n\t\t\t\t}\r\n\t\t\t\telse if (mensaje.charAt(1) == '%')\r\n\t\t\t\t{\r\n\t\t\t\t\ttam = 26;\r\n\t\t\t\t\tSystem.out.println(\"Libro recibido.\");\r\n\t\t\t\t\tString[] tiempo_recibido = {mensaje.split(\":\")[1],mensaje.split(\":\")[2],mensaje.split(\":\")[3],mensaje.split(\":\")[4]};\r\n\t\t\t\t\tenvio = \"Gracias, vuelva pronto :).\";\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.st = this.Conect.conn.createStatement();\r\n\t\t\t\t\t\tthis.rs = this.st.executeQuery(\"SELECT idUsuario FROM usuario WHERE IP = INET6_ATON('\"+ peticion.getAddress().getHostAddress() +\"')\");\r\n\t\t\t\t\t\twhile(this.rs.next())\r\n\t\t {\r\n\t\t \tthis.Conect.terminar_pedidos(this.rs.getInt(1),tiempo_recibido);\r\n\t\t }\r\n\t\t\t\t\t}catch(Exception ex) {\r\n\t\t System.out.println(\"Error: \" + ex);\r\n\t\t }\r\n\t\t\t\t}else if(mensaje.charAt(1) == '#')\r\n\t\t\t\t{\r\n\t\t\t\t\tint confirmado = JOptionPane.showConfirmDialog(null, \"Se solicito un reinicio de pedidos\", \"Sin libros\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\tif (JOptionPane.OK_OPTION == confirmado)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.Reiniciar();\r\n\t\t\t\t\t\tenvio = \"Oki\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tenvio = \"Nop\";\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\ttam = 100;\r\n\t\t\t\t\ttry\r\n\t\t {\r\n\t\t this.st = this.Conect.conn.createStatement();\r\n\t\t int opcion = this.Conect.asignar_libro(mensaje,peticion.getAddress().getHostAddress());\r\n\t\t if(opcion != -1)\r\n\t\t {\r\n\t\t \tthis.rs = this.st.executeQuery(\"SELECT * FROM libro where idLibro = \" + opcion);\r\n\t\t\t while(this.rs.next())\r\n\t\t\t {\r\n\r\n\t\t\t java.sql.Blob blob = rs.getBlob(\"Portada\");\r\n\t\t\t System.out.println(this.rs.getString(\"Nombre\"));\r\n\t\t\t envio = this.rs.getString(\"Nombre\") + \"&\" + this.rs.getString(\"Autor\") + \"&\" + this.rs.getFloat(\"Precio\") + \"&\";\r\n\t\t\t this.Ventana.setTitle(this.rs.getString(\"Nombre\"));\r\n\t\t\t InputStream in = blob.getBinaryStream(); \r\n\t\t\t BufferedImage image = ImageIO.read(in);\r\n\t\t\t ImageIcon imageIcon = new ImageIcon(image.getScaledInstance(240, 330, Image.SCALE_SMOOTH));\r\n\r\n\t\t\t this.Ventana.setTitle(this.rs.getString(\"Nombre\"));\r\n\t\t\t this.Ventana.texto[0].setText(\"Autor: \" + this.rs.getString(\"Autor\"));\r\n\t\t\t this.Ventana.texto[1].setIcon(imageIcon);\r\n\t\t\t }\r\n\t\t }\r\n\t\t else\r\n\t\t \tenvio = \"Todos los libros estan apartados\";\r\n\t\t \r\n\r\n\t\t }catch(Exception ex) {\r\n\t\t System.out.println(\"Error: \" + ex);\r\n\t\t }\r\n\t\t\t\t}\r\n\t\t\t\tif(mensaje.charAt(2) == ':' && mensaje.charAt(1) != '%' && peticion.getPort() == 6969)\r\n\t\t\t\t{\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Ajuste automatico UTC\");\r\n\t\t\t\t\t\tString[] tiempo_recibido = {mensaje.split(\":\")[0],mensaje.split(\":\")[1],mensaje.split(\":\")[2]};\r\n\t\t\t\t\t\tSystem.out.println(\"Hora: \"+tiempo_recibido[2]);\r\n\t\t\t\t\t\tSystem.out.println(\"min: \"+tiempo_recibido[1]);\r\n\t\t\t\t\t\tSystem.out.println(\"sec: \"+tiempo_recibido[0]);\r\n\t\t\t\t\t\treloj.setTime(Integer.parseInt(tiempo_recibido[2]),Integer.parseInt(tiempo_recibido[1]),Integer.parseInt(tiempo_recibido[0]),0);\r\n\t\t\t\t\t}catch(Exception ex) {\r\n\t\t System.out.println(\"Error: \" + ex);\r\n\t\t }\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tbuffer = new byte[tam];\r\n\t\t\t\t\tbuffer = envio.getBytes();\r\n\t\t\t\t\tpuertoCliente = peticion.getPort();\r\n\t\t\t\t\tdireccion = peticion.getAddress();\r\n\r\n\t\t\t\t\tmensaje = tiempo[3] + \":\" + tiempo[2] + \":\" + tiempo[1] + \":\" + tiempo[0];\r\n\t\t\t\t\tthis.Enviar_mensaje(mensaje,new byte[8],direccion);\r\n\r\n\t\t\t\t\tSystem.out.println(\"Mensaje enviado: \" + envio);\r\n\t\t\t\t\trespuesta = new DatagramPacket(buffer,buffer.length,direccion,puertoCliente);\r\n\t\t\t\t\tsocket.send(respuesta);\r\n\t\t\t\t\tbuffer = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public void run() {\n System.out.println(\"NS: in service NameServer worker!\");\n\n PrintStream out;\n BufferedReader in;\n\n try {\n out = new PrintStream(serv.getOutputStream());\n in = new BufferedReader(new InputStreamReader(serv.getInputStream()));\n\n String input = in.readLine();\n StringTokenizer parsedIn = new StringTokenizer(input, \"&\");\n\n \n //if the message sent is a host registering, take the info and put it in\n //the host info list.\n if (input.contains(\"HOST:\")) {\n parsedIn.nextToken();\n String ip = parsedIn.nextToken();\n int port = Integer.parseInt(parsedIn.nextToken());\n HostInfo newHost = new HostInfo(ip, port);\n HostInfoList.add(newHost);\n\n out.println(\"Host registered with NameServer: \" + newHost.toString());\n out.flush();\n\n } else if (input.startsWith(\"NEWAGENT:\")) {\n //register agent with its ID number... assign it a name\n //give all the names of group members\n parsedIn.nextToken();\n AgentInfo agent = newAgent(parsedIn);\n\n out.println(\"NEWAGENT:&\" + agent.getName() + \"&\" + agent.getGroupId());\n out.flush();\n\n\n } else if (input.startsWith(\"AGENTMIGRATE:\")) {\n /*\n * updates info on the agent.\n */\n parsedIn.nextToken();\n String agentId = parsedIn.nextToken();\n AgentInfo agent = null;\n List<AgentInfo> agentList = AgentInfoList.getList();\n for (AgentInfo a : agentList){\n if (a.agentId.equals(agentId))\n agent = a;\n }\n\n //agent.getCurLocation().setNumAgents(agent.getCurLocation().getNumAgents() - 1);\n agent.getCurLocation().incNumAgents();\n HostInfo newHost = HostInfoList.getRandomHost();\n agent.setCurLocation(newHost);\n //newHost.setNumAgents(newHost.getNumAgents() + 1);\n newHost.incNumAgents();\n\n out.println(\"AGENTMIGRATE:&\" + newHost.getIp() + \"&\" + newHost.getPort());\n out.flush();\n\n \n\n \n \n } else if (input.startsWith(\"REAGENT:\")){\n System.out.println(\"NS: receiving: \");\n parsedIn.nextToken();\n String agentId = parsedIn.nextToken();\n int newPort = Integer.parseInt(parsedIn.nextToken());\n List<AgentInfo> agentList = AgentInfoList.getList();\n for (AgentInfo a : agentList){\n if (a.agentId.equals(agentId))\n a.setPort(newPort);\n }\n \n }\n else {\n System.out.println(\"NS: Agent or HostServer requesting unimplemented action from service port.\");\n }\n\n\n } catch (IOException e) {\n System.out.println(\"NS: issue with connection in service NameServer worker!\");\n }\n\n\n }", "public void run()\n\t{\n\t\tint state = 1;\n\t\t\n\t\ttry \n\t\t{\n\t\t\t_socket = new Socket(_hostname, Integer.parseInt(_portnum));\n\t\t\t\t\t\t\n\t\t\t_sendBuf = new byte[_socket.getSendBufferSize()];\n\t\t\t_recBuf = new byte[_socket.getReceiveBufferSize()];\n\t\t\t\n\t\t\t_address = _socket.getInetAddress();\n\t\t\t_port = _socket.getPort();\n\t\t\t_user = new User(_myName, _address, _port);\n\t\t\t\n\t\t\t_sendBuf = toByteArray(_user);\n\t\t\t_socket.getOutputStream().write(Message.USER);\n\t\t\t_socket.getOutputStream().write(_sendBuf);\n\t\t\t_socket.getOutputStream().flush();\n\t\t\t\n\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\n\t\t\twhile (state == 200)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Username already is use!\");\n\t\t\t\tbuildRelog();\n\t\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\tSystem.out.println(state);\n\t\t\t\t_relogFrame.dispose();\n\t\t\t\t\n\t\t\t\tif (state != 200)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tClient._mainFrame.setTitle(\"Cr@p Talk: \" + _myName);\n\t\t\tClient._mainFrame.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tMessage rec = new Message();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tif (state == Message.HASHSET)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing hashset\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\tObject[] online = (Object[]) toObject(_recBuf);\n\t\t\t\t\t\tString[] onlineList = new String[online.length];\n\t\t\t\t\t\tfor (int i = 0; i < online.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tonlineList[i] = (String) online[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tClient._userList.setListData(onlineList);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.LOBBY)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing lobby\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(\"[\" + rec.getOrigin() +\"]: \" + rec.getMessage() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.WHISPER)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing whisper\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(\"[\" + rec.getOrigin() +\"(whisp)]: \" + rec.getMessage() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.SHARED)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing shared\");\n\t\t\t\t\t\tArrayList<String> files = new ArrayList<String>();\n\t\t\t\t\t\tScanner file = new Scanner(new File(\"shared.txt\"));\n\t\t\t\t\t\t\n\t\t\t\t while(file.hasNextLine()) \n\t\t\t\t {\n\t\t\t\t String line = file.nextLine();\n\t\t\t\t files.add(line);\n\t\t\t\t }\n\t\t\t\t _sendBuf = toByteArray(files.toArray());\n\t\t\t\t _socket.getOutputStream().write(Message.TEXT);\n\t\t\t\t _socket.getOutputStream().write(_sendBuf);\n\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\tSystem.out.println(\"sent data\");\n\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.RESULTS)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing results\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t \t\t\tObject[] lines = (Object[]) toObject(_recBuf);\n\t \t\t\t\n\t \t\t\tString[] mal = new String[lines.length];\n\t \t\t\t\n\t \t\t\tfor (int i = 0; i < lines.length; i++)\n\t \t\t\t{\n\t \t\t\t\tmal[i] = (String) lines[i];\n\t \t\t\t}\n\t \t\t\tbuildResultGUI(mal);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.TEST)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing test\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] data = rec.getMessage().split(\"\\\\&\\\\&\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t_person = data[0];\n\t\t\t\t\t\t_fileName = data[1];\n\t\t\t\t\t\t_filePath = data[2];\n\t\t\t\t\t\t_comPort = Integer.parseInt(data[3]);\n\t\t\t\t\t\tSystem.out.println(\"*******SENDER PORT: \" + _comPort);\n\t\t\t\t\t\t_fileKey = data[4];\n\n\t\t\t\t\t\tString prompt = \"Upload \" + _fileName + \" to \" + _person + \"?\";\n\t\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, prompt, \"Upload confirmation\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t \n\t\t\t\t\t\tif (reply == JOptionPane.YES_OPTION)\n\t\t\t\t {\t\t\t\t \n\t\t\t\t\t\t\tFile file = new File(_filePath);\n\t\t\t\t\t\t\tlong fileSize = file.length();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<String> metaData = new ArrayList<String>();\n\t\t\t\t\t\t\tmetaData.add(\"\" + _comPort);\n\t\t\t\t\t\t\tmetaData.add(\"\" + fileSize);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t_sendBuf = toByteArray(metaData.toArray());\n\t\t\t\t\t\t\t\n\t\t\t\t \tSystem.out.println(\"accepted\");\n\t\t\t\t \t_socket.getOutputStream().write(Message.ACCEPT);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t \t_socket.getOutputStream().write(_sendBuf);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tClient._sending = new SenderThread(_fileName, _filePath, _comPort, _fileKey);\n\t\t\t\t\t\t\tClient._sending.start();\n\t\t\t\t }\n\t\t\t\t else \n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"declined\");\n\t\t\t\t \t_socket.getOutputStream().write(Message.DECLINE);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.ACCEPT)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing accept\");\n\t\t\t\t\t\tlong fileSize = 0;\n\t\t\t\t\t\tint port = -1;\n\t\t\t\t\t\t\n\t\t\t\t\t\t_fileKey = Client._key;\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t \t\t\tObject[] data = (Object[]) toObject(_recBuf);\n\t \t\t\t\n\t \t\t\tport = Integer.parseInt((String) data[0]);\n\t \t\t\tfileSize = Long.parseLong((String) data[1]);\n\t \t\t\t\n\t \t\t\tSystem.out.println(\"*******RECV PORT: \" + port);\n\t \t\t\t\n\t \t\t\tClient._receiving = new ReceiverThread(_fileName, _hostname, port, _fileKey, fileSize);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(300);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tClient._receiving.start();\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.DECLINE)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing decline\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"File transfer denied.\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.DC)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing dc\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(rec.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.SERVERDOWN)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing serverdown\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Server has gone down...\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.ERROR)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing error\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"It's bad to talk to yourself...\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.REMOVED)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing doing removed\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SocketException e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Server is not responding\");\n\t\t\tSystem.exit(0);\n\t\t} \n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (ClassNotFoundException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "@Override\n\tpublic void run(){\n\t\tInetAddress IPAddress = serverTcpSocket.getInetAddress();\n\t\tfor (ClientObj c: clients)\n\t\t\tif (c.getId() == client.getId()){\n\t\t\t\tSystem.out.print(IPAddress + \" Client already connected!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\ttry{\n\t\t\t// Check handshake received for correctness\n\t\t\t//(connect c->s) [herader | \"JUSTIN\\0\" | connection port] (udp)\n\t\t\t//(connect response s->c) [header | client id | port] (udp)\n\t \n\t // open the connection\n\t\t clientSocket = null;\n\t\t Socket clientListener = null;\n\t\t // wait for client connection on tcp port\n\t\t //serverTcpSocket.setSoTimeout(5000);\n\t \tSystem.out.println (\" Waiting for tcp connection.....\");\n\t \tclientSocket = serverTcpSocket.accept();\n\t \tclientListener = serverTcpSocket.accept();\n\t \tclient.setListenerSocket(clientListener);\n\t\t\tIPAddress = clientSocket.getInetAddress();\n\t\t\tint recv_port = clientSocket.getPort();\n\t\t\tSystem.out.println(IPAddress + \": Client connected @ port \" + recv_port);\n\n\t\t // handle tcp connection\n\t\t\tclientSocket.setSoTimeout(Constants.ACK_TIMEOUT);\n\t\t out = new BufferedOutputStream(clientSocket.getOutputStream());\n\t\t\tin = new BufferedInputStream(clientSocket.getInputStream());\n\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\tclient.setPort(clientSocket.getPort());\n\t\t clients.add(client);\n\t\t\t\n\t\t // handle requests\n\t\t\twhile (!shutdown_normally) {\n\t\t\t\t// read just the header, then handle the req based on the info in the header\n\t\t\t\tif ((buf = Utility.readIn(in, Constants.HEADER_LEN)) == null)\n\t\t\t\t\tbreak;\n\t\t\t\tint flag = buf.getInt(0);\n\t\t\t\tint len2 = buf.getInt(4);\n\t\t\t\tint id = buf.getInt(8);\n\t\t\t\t\n\t\t\t\t// check for correctness of header\n\t\t\t\t\n\t\t\t\tif (flag < Constants.OPEN_CONNECTION || \n\t\t\t\t\t\tflag > Constants.NUM_FLAGS || \n\t\t\t\t\t\tid != client.getId() || \n\t\t\t\t\t\tlen2 < 0){\n\t\t\t\t\tout.close(); \n\t\t\t\t\tin.close(); \n\t\t\t\t\tclientSocket.close(); \n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t\t\tclients.remove(client);\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Connection - FAILURE! (malformed header)\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// read payload\n\t\t\t\tif ((buf = Utility.readIn(in, Utility.getPaddedLength(len2))) == null)\n\t\t\t\t\tthrow new IOException(\"read failed.\");\n\t\t\t\t// update address (necessary?)\n\t\t\t\tclients.get(clients.indexOf(client)).setAddress(clientSocket.getInetAddress());\n\t\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\t\tswitch (flag){\n\t\t\t\t\tcase Constants.ACK:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.VIEW_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing view request...\");\n\t\t\t\t\t\tViewFiles(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download request...\");\n\t\t\t\t\t\tDownload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.UPLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing upload request...\");\n\t\t\t\t\t\tUpload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_ACK:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download acknowledgment...\");\n\t\t\t\t\t\tDownloadCompleted(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.CLOSE_CONNECTION:\n\t\t\t\t\t\tshutdown_normally = true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close all open sockets\n\t\t out.close(); \n\t\t in.close(); \n\t\t clientSocket.close(); \n\t\t serverTcpSocket.close();\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(IPAddress + \": Timeout waiting for response.\");\n\t\t} catch (UnknownHostException e) {\n\t\t\t// IPAdress unknown\n\t\t\tSystem.err.println(\"Don't know about host \" + IPAddress);\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to \" +\n\t\t\t\t\tIPAddress);\n\t\t} catch (RuntimeException e){\n\t\t\t// Malformed Header or payload most likely\n\t\t\tSystem.err.println(IPAddress + \": Connection - FAILURE! (\" + e.getMessage() + \")\");\n\t\t} finally {\n\t\t\t// remove this client from active lists, close all (possibly) open sockets\n\t\t\tSystem.out.println(IPAddress + \": Connection - Closing!\");\n\t\t\tclients.remove(client);\n\t\t\ttry {\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\n\t\t\t\tif (out != null)\n\t\t\t\t\tout.close();\n\t\t\t\tif (in != null)\n\t\t\t\t\tin.close();\n\t\t\t\tif (!clientSocket.isClosed())\n\t\t\t\t\tclientSocket.close();\n\t\t\t\tif (!serverTcpSocket.isClosed())\n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t} catch (IOException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n }", "private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }", "@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n try {\n \t\n\t\t\t\t\tDataInputStream in = new DataInputStream(\n\t\t\t\t\t\t\tsocket.getInputStream());\n\t\t\t\t\tBufferedReader d = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(in));\n\n\t\t\t\t\tString msg = d.readLine();\n\t\t\t\t\t\n third.notifyAllClients(msg);\n \n d.close();\n in.close();\n } finally {\n socket.close();\n }\n }\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n finally {\n try {\n\t\t\t\tlistener.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n\t}", "private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }", "public void send(){ \n\t\tserverAddress=tfTxtIpServer.getText();\n\t\tserverPort=\"3232\";\n\t\ttext=tfTxtMsg.getText();\n try{\n\t\t\t// get the \"registry\"\n registry=LocateRegistry.getRegistry(\n serverAddress,\n (new Integer(serverPort)).intValue()\n );\n\t\t // look up the remote object\n rmiServer=(ReceiveMessageInterface)(registry.lookup(\"rmiServer\"));\n\t\t\t// call the remote method\n rmiServer.receiveMessage(text);\n }\n catch(RemoteException e){\n e.printStackTrace();\n }\n catch(NotBoundException e){\n e.printStackTrace();\n } \n }", "public ServerOnlyReadsThread(Context c,ServerSocket ss,Socket s,Game g,int p,Handler h,Handler h2)\n {\n super();\n context = c;\n serverSocket = ss;\n client = s;\n test_string = \" arxi \";\n game = g;\n priority = p;\n handler = h;\n debugging = h2;\n n=g.numberOfPlayers;\n //Toast.makeText(context,\" Successfull creation!!! Me prior= \"+priority,Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tString msg=\"\";\n\t\t\twhile((msg=br.readLine())!=null){\n\t\t\t\tSystem.out.println((server?\"Client\":\"Server\")+\": \"+msg);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// generate Client\r\n\t\t\tClient client = new Client(publicKeysOfMixes);\r\n\t\t\tclient.connect();\r\n\t\t\tInputStream cascadeInputStream = client.getInputStream();\r\n\t\t\tOutputStream cascadeOutputStream = client.getOutputStream();\r\n\t\t\t\r\n\t\t\t// \"Send K bytes of data with a delay of L ms between sending, M \r\n\t\t\t// times.\"\r\n\t\t\t\r\n\t\t\tint m = getVariable(\"M\");\r\n\t\t\tfor (int i=1; i<=m; i++) {\r\n\t\t\t\t\r\n\t\t\t\t// generate random message\r\n\t\t\t\tint size = getVariable(\"K\");\r\n\t\t\t\tbyte[] message = generateRandomMessage(size);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Starting to write \" +i +\". message (\"\r\n\t\t\t\t\t\t\t\t+size +\" bytes): \\n\" +new String(message)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// send message\r\n\t\t\t\tcascadeOutputStream.write(message);\r\n\t\t\t\tcascadeOutputStream.flush();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tint messageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(message, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addSentMessage(messageID);\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// receive reply\r\n\t\t\t\tbyte[] reply = new byte[size];\r\n\t\t\t\tint sizeOfReply = cascadeInputStream.read(reply);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Received \" +i +\". reply (\"\r\n\t\t\t\t\t\t\t\t+sizeOfReply +\" bytes): \\n\" +new String(reply)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tmessageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(reply, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addReceivedMessage(messageID);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// add delay\r\n\t\t\t\tif (i != m) { // not last round\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tThread.sleep((long)ClientSimulator.getVariable(\"L\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// disconnect\r\n\t\t\t\r\n\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t+\") Disconnecting since all data is written!\"\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tclient.disconnect();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.warning(\t\"(ClientSimulator) Message could not be sent! \"\r\n\t\t\t\t\t\t\t+e.getMessage()\r\n\t\t\t\t\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t}", "public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\t\n\t \tSocket s=new Socket(\"192.168.3.176\",9000);\n\t \tBufferedReader reader=new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t \tString info=reader.readLine();\t \n\t \ttext.setText(\"服务器收到的消息:\"+info); \t\n\t reader.close();\n\t s.close();\n\t }catch(Exception e){\n\t \te.printStackTrace();\n//\t \tSystem.out.print(c);\n\t //\ttext.setText(\"出错了\"); \n\t }\n\t\t}", "@Override\r\n\tpublic void run() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t//Get a list of pairs. The pair will be a chunkname with a chunkserver \r\n\t\t/*for(Pair<String, String> p: EventFactory.hostToFiles.getChunkLocations(message.getContent())){\r\n\t\t\tSystem.out.println(\"The location is: \" + p.getKey() + \" and the chunkname is: \" + p.getValue());\r\n\t\t\t\r\n\t\t\t//actual code will contact chunk servers and tell them to read and forward the file to the client\r\n\t\t\tMessage forwardToClient = new Message(\"ForwardChunkToClient\");\r\n\t\t\t//chunkname, servername, port\r\n\t\t\tforwardToClient.setContent(p.getKey());\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tTCPSender sender = new TCPSender(new Socket(p.getValue().split(\" \")[0], Integer.parseInt(p.getValue().split(\" \")[1])));\r\n\t\t\t\tsender.sendData(forwardToClient);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (UnknownHostException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}*/\r\n\t\t//Send the list to the client so it can request the chunks from chunkServers\r\n\t\t//Any other way seems like it would be beyond a pain. \r\n\t\tLinkedList<String> fileAndHosts = new LinkedList<String>();\r\n\t\tfor(PairStrings p: EventFactory.hostToFiles.getChunkLocations(message.getContent())) {\r\n\t\t\tString fileAndHost = p.getValue() + \" \" + p.getKey();\r\n\t\t\tfileAndHosts.add(fileAndHost);\r\n\t\t}\r\n\t\t\r\n\t\tMessage getFromChunkServers = new Message(\"RequestChunksFromServers\");\r\n\t\t\r\n\t\t//If the list is empy, the no file was found, report invalid.\r\n\t\tif(fileAndHosts.size() == 0) {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"invalid\" + \" \" + message.getContent());\r\n\t\t} else {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"valid\" + \" \" + message.getContent());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tTCPSender sender = new TCPSender(new Socket(message.getSenderHostName(), message.getSenderPort()));\r\n\t\t\tsender.sendData(getFromChunkServers);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void runServer() throws Exception{\n \twhile (true) \n {\n \trecieve = false;\n try\n {\n System.out.printf(\"Child process received message: %s\\n\", message);\n System.out.println(\"Child about to send message: OK. Command?\\n\");\n line = in.readUTF();\n \n // parses the commands as a long then initializes it to an array list\n long numbers = Long.parseLong(line);\n ArrayList<Long> array = new ArrayList<Long>();\n do {\n \tarray.add(0, numbers % 10);\n \tnumbers /= 10;\n } \n while(numbers > 0 );\n str = message;\n \n // loops through the commands and applies the appropriate transformation based on order\n for (Long num : array) {\n \trecieve = false;\n \twhile(!recieve && num < 7 && num >0) {\n \t\tsendMicroServer(str, num);\n \t\tfromMicroServer();\n }\t\n }\n // writes the message back to the client after successfully transforming it\n sendBack = new DataOutputStream(socket.getOutputStream()); \n \t\tsendBack.writeUTF(str);\n \t\tstr = message;\n } \n catch(IOException i) \n { \t\n System.out.println(\"Client has exited the program.\");\n System.exit(1);\n \n } \n } \n }", "private void sendGMToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(0, msg, true));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }", "public void run() {\n\t\t\tPrintWriter out = null;\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * byte[] buf = new byte[2048]; DatagramPacket packet = new\n\t\t\t\t * DatagramPacket(buf, buf.length);\n\t\t\t\t * System.out.print(\"Server: Receiving\\n\");\n\t\t\t\t * incomingUDP.receive(packet);\n\t\t\t\t * \n\t\t\t\t * System.out.print(\"Receiving successful packet with :\" +\n\t\t\t\t * packet.getLength() + \"kb\");\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tout = new PrintWriter(new OutputStreamWriter(\n\t\t\t\t\t\tincoming.getOutputStream()));\n\n\t\t\t\t// inform the server of this new client\n\t\t\t\tServerNMS.this.addClient(out);\n\n\t\t\t\tout.print(\"Welcome to AndyChat! \");\n\t\t\t\tout.println(\"Enter BYE to exit.\");\n\t\t\t\tout.flush();\n\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tincoming.getInputStream()));\n\t\t\t\tfor (;;) {\n\t\t\t\t\tString msg = in.readLine();\n\t\t\t\t\tif (msg == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msg.trim().equals(\"BYE\"))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tSystem.out.println(\"Received: \" + msg\n\t\t\t\t\t\t\t\t+ \"With size is: \" + msg.getBytes().length\n\t\t\t\t\t\t\t\t+ \"bytes\");\n\t\t\t\t\t\t// broadcast the receive message\n\t\t\t\t\t\tServerNMS.this.broadcast(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tincoming.close();\n\n\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void fromMicroServer() throws Exception {\n \tbyte[] buf = new byte[1024];\n\t\tDatagramPacket dp = new DatagramPacket(buf, 1024);\n\t\ttry{\n\t\t\ttoMicroServer.receive(dp);\n\t\t\trecieve = true;\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Connection timed out, retrying...\");\n\t\t\trecieve = false;\n\t\t\treturn;\n\t\t}\n str = new String(dp.getData(), 0, dp.getLength());\n\t\tSystem.out.printf(\"Child about to send message: %s \\n\", str);\n\n }", "@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }", "public void receiveMessage(String message, OutputStream os) {\n\t\tString[] parts = message.split(\" \");\n\t\tString msgPart2 = \"\";\n\t\tif (parts.length > 1) {\n\t\t\tmsgPart2 = parts[1];\n\t\t}\n\t\tString msg = parts[0];\n\t\tSystem.out.println(\"Message recu \" + message + \" etat: \" + myState);\n\t\t/**\n\t\t * On traite les reponses en fonction de l'état du client\n\t\t */\n\t\tif (myState == CSLState.waiting_ok) {\n\t\t\tif (msg.compareTo(Client.ok) == 0) {\n\t\t\t\tSystem.out.println(\"in state waiting_ok completed\");\n\t\t\t\tmyState = CSLState.nothing;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"J'attend la reponse ok du server!\");\n\t\t\t}\n\t\t}\n\t\tif (myState == CSLState.waiting_yourid) {\n\t\t\tif (msg.compareTo(Client.yourId) == 0) {\n\t\t\t\tSystem.out.println(\"in state waiting your id completed\");\n\t\t\t\tSystem.out.println(\"Votre ID \" + msgPart2);\n\t\t\t\tmyState = CSLState.nothing;\n\t\t\t\tClient.sendMsgToServer(Client.ok, os);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"J'attend la reponse ok du server!\");\n\t\t\t}\n\t\t}\n\t\tif (myState == CSLState.waiting_ok_exit) {\n\t\t\tif (msg.compareTo(Client.ok) == 0) {\n\t\t\t\tSystem.out.println(\"in state waiting_ok_exit completed\");\n\t\t\t\tmyState = CSLState.nothing;\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * Je met isRunning à false\n\t\t\t\t\t * puis je demande de taper entrer pour quitter \n\t\t\t\t\t */\n\t\t\t\t\tClient.isRunning = false;\n\t\t\t\t\tsocket.close();\n\t\t\t\t\tSystem.out.println(\"Tapez 'entrée' pour sortir...\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"J'attend la reponse ok du server!\");\n\t\t\t}\n\t\t}\n\t\tif (myState == CSLState.waiting_refuse_error_create_addr || myState == CSLState.waiting_error_create_server) {\n\t\t\tswitch (msg) {\n\t\t\tcase ServerHandlerThread.refuse_game:\n\t\t\t\tif (myState == CSLState.waiting_refuse_error_create_addr) {\n\t\t\t\t\tSystem.out.println(\"Votre demande a ete refusee\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Vous avez envoyé Answer Y, donc vous ne pouvez \" + \"pas recevoir RefuseGame\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ServerHandlerThread.address_game:\n\t\t\t\tSystem.out.println(\"Vous avez recu l'adresse pour vous connecter: \" + msgPart2);\n\t\t\t\tClient.sendMsgToServer(ServerHandlerThread.ok, os);\n\t\t\t\tconnectToTheGameServer(msgPart2);\n\t\t\t\tmyState = CSLState.nothing;\n\t\t\t\tbreak;\n\t\t\tcase ServerHandlerThread.error:\n\t\t\t\tshowErrorMessage(msgPart2);\n\t\t\t\tClient.sendMsgToServer(ServerHandlerThread.ok, os);\n\t\t\t\tmyState = CSLState.nothing;\n\t\t\t\tbreak;\n\t\t\tcase ServerHandlerThread.create_server:\n\t\t\t\tSystem.out.println(\"Je cree le serveur\" + msgPart2);\n\t\t\t\tcreateServer(os);\n\t\t\t\tmyState = CSLState.waiting_ok;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// FIN D'ATTENTE D'UN ETAT PARTICULIER\n\t\tif (myState == CSLState.nothing) {\n\t\t\tswitch (msg) {\n\t\t\t// Affiche les ids des joueurs\n\t\t\tcase ServerHandlerThread.list_available:\n\t\t\t\tClient.sendMsgToServer(Client.ok, os);\n\t\t\t\tshowMessage(message, true);\n\t\t\t\tbreak;\n\t\t\t// Affiche le message en entier\n\t\t\tcase ServerHandlerThread.your_id:\n\t\t\t\tClient.sendMsgToServer(Client.ok, os);\n\t\t\t\tshowMessage(message, false);\n\t\t\t\tbreak;\n\t\t\t// Affiche le message en entier\n\t\t\tcase ServerHandlerThread.ask_game:\n\t\t\t\tSystem.out.println(\"Voulez vous jouer avec le jouer : \" + msgPart2 + \"? \");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public ServerThread(Socket client, String name, GomokuBoard board) {\r\n\t\tthis.client = client;\r\n\t\tthis.name = name;\r\n\t\tthis.board = board;\r\n\t\tthis.messages = new LinkedList<>();\r\n\t}", "public void run() {\n\t\tSystem.out.println(\"in run\");\n\t\ttry {\n\t\t\tinputsocket = connectclient.accept();\n\t\t\tflag=1;\n\t\t\tcl = new Client();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\t\n\t\t\tDataInputStream inputdata = new DataInputStream(inputsocket.getInputStream());\n\t\t\toutputdata = new DataOutputStream(inputsocket.getOutputStream());\n\t\t\tBufferedReader inFromClient = new BufferedReader(new InputStreamReader(inputsocket.getInputStream()));\n\t\t\t//DataOutputStream  outToClient = new DataOutputStream(inputsocket.getOutputStream());\n\t\t\t//s.list.add(outputdata);\n\t\t\t//System.out.println(s.list.size());\n\t\t\twhile(true){\n\t\t\t\t\n\t\t\t\tString input = inFromClient.readLine();\n\t\t\t\tif(input!=\"\")\n\t\t\t\t\tSystem.out.println(\"input to server : \" + input);\n\t\t\t\tif(flag==1)\n\t\t\t\t\tcl.printMessage(input);\n\t\t\t\toutputdata.writeBytes(input+\"\\n\");\n\t\t\t\t//out.writeBytes\n//\t\t\t\tif(input!=\"\"){\n//\t\t\t\t\tfor(DataOutputStream out : s.list){\n//\t\t\t\t\t\t//System.out.println(\"one\");\n//\t\t\t\t\t\tout.writeBytes(input+\"\\n\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch(Exception E){\n//\t\t\tint i=0;\n//\t\t\tfor(DataOutputStream out : s.list){\n//\t\t\t\tif(out == outputdata){\n//\t\t\t\t\ts.list.remove(i);\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n//\t\t\t\ti++;\n//\t\t\t}\n\t\t\tSystem.out.println(\"Connection close\");\n\t\t}\n\t}", "public void run() {\n while (true) {\n try {\n /* Get string from client */\n String fromClient = this.in.readLine();\n \n /* If null, connection is closed, so just finish */\n if (fromClient == null) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this == clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" disconnected\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n \n /* If the client said \"bye\", close the connection */\n if (fromClient.equals(\"bye\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" said bye, disconnecting\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n\n if(fromClient.startsWith(\"/id \")) {\n String oldID=this.id;\n String msg = this.changeID(fromClient.substring(4));\n if (msg.equals(\"\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + oldID + \" changed his/her name to \" + this.id); }\n }\n }\n else {\n this.out.println(msg);\n }\n }\n else if(fromClient.startsWith(\"/whisper \")){\n String msg = this.whisper(fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2)));\n String user = fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2));\n for (int x=0; x<clientlist.size(); x++) {\n if (user.equalsIgnoreCase(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(this.id + \" whispered : \" + (fromClient.substring(StringUtils.ordinalIndexOf(fromClient, \" \", 2)+1)).toUpperCase() );\n }\n }\n if(!msg.equalsIgnoreCase(\"\")){ this.out.println(msg); }\n }\n else if(fromClient.startsWith(\"/room \")){\n String msg = this.roomChange(fromClient.substring(6));\n String roomName = fromClient.substring(6);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id)) {\n clientlist.get(y).out.println(this.id + \" has joined room \" + roomName);\n }\n }\n }\n }\n this.out.println(msg);\n\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n aRoom = theRoom;\n }\n }\n }\n\n this.out.print(\"The admins in the group are: \");\n for(String admin: aRoom.getAdmins()){\n this.out.print(admin + \" \");\n }\n this.out.println(\"\");\n this.out.println(\"The topic of the room is \" + aRoom.topic);\n }\n else if(fromClient.startsWith(\"/+admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.addAdmin(user, roomName);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(user + \" was made an admin of \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/-admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.removeAdmin(user);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(clientlist.get(x).id + \" was removed from the admin position in \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/kick \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String user = fromClient.substring(6);\n String roomName=\"\";\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id) && !clientlist.get(x).id.equalsIgnoreCase(user)){\n clientlist.get(x).out.println(user + \" was kicked from \" + roomName);\n }\n else if (aRoom.getAdmins().contains(user) && clientlist.get(x).id.equalsIgnoreCase(this.id) ){\n this.out.println(\"You cannot kick an admin of the group\");\n }\n else if (aRoom.getMembers().contains(clientlist.get(x).id) && clientlist.get(x).id.equalsIgnoreCase(user)) {\n clientlist.get(x).out.println(\"You are being kicked from \" + roomName + \" by \" + this.id + \", and being placed in Lobby.\");\n this.kick(user);\n }\n }\n }\n else if(fromClient.startsWith(\"/topic \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String topic = fromClient.substring(7);\n String roomName=\"\";\n\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n }\n }\n }\n\n this.addTopic(topic);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id) && rooms.get(x).getAdmins().contains(this.id)) {\n clientlist.get(y).out.println(this.id + \" changed the topic of the room to \" + topic);\n }\n }\n }\n }\n }\n \n /* Otherwise send the text to the server*/\n\n else {\n for (int y=0; y < rooms.size(); y++) {\n for (int x = 0; x < clientlist.size(); x++) {\n if (this != clientlist.get(x)) {\n if(rooms.get(y).hasClient(this.id) && rooms.get(y).hasClient(clientlist.get(x).id)) {\n clientlist.get(x).out.println(\"Client \" + this.id + \" said: \" + fromClient);\n }\n }\n }\n }\n }\n \n } catch (IOException e) {\n /* On exception, stop the thread */\n System.out.println(\"IOException: \" + e);\n return;\n }\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tServerSocket serverSocket = new ServerSocket(777);\r\n\t\tSystem.out.println(\"Utworzono Socket\");\r\n\t\tSocket connectionSocket = serverSocket.accept();\r\n\t\tSystem.out.println(\"Mam klienta, jego IP: \" + connectionSocket.getRemoteSocketAddress()+\" moj address\"+connectionSocket.getLocalSocketAddress());\r\n\t\tBufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\r\n\t\tDataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());\r\n\t\t//outToClient.writeBytes(\"Polaczyles sie!\"+ '\\n');\r\n\t\twhile (true){\r\n\t\t\tString komenda;\r\n\t\t\tkomenda = inFromClient.readLine();\r\n\t\t\tSystem.out.println(\"Received: \" + komenda);\r\n\t\t\tif(komenda.matches(\"dir\")){\r\n\t\t\t\tFile folder = new File(\"C:/Users/minek/Documents/pliki\");\r\n\t\t\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\t\tfor (int i = 0; i < listOfFiles.length; i++) {\r\n\t\t\t\t\toutToClient.writeBytes(\"\"+listOfFiles[i].getName()+ '\\n');\r\n\t\t\t\t\t//System.out.println(\"Wyslano: \" + komenda);\r\n\t\t\t\t}\r\n\t\t\t}else\r\n\t\t\tif(komenda.startsWith(\"get\")){\r\n\t\t\t\tboolean znaleziono = false;\r\n\t\t\t\tFile folder = new File(\"C:/Users/minek/Documents/pliki\");\r\n\t\t\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\t\tfor (int i = 0; i < listOfFiles.length; i++) {\r\n\t\t\t\t\tif(komenda.endsWith(listOfFiles[i].getName())){\r\n\t\t\t\t\t\tznaleziono = true;\r\n\t\t\t\t\t\tSystem.out.println(\"wysylam \"+listOfFiles[i].getName());\r\n\t\t\t\t\t\tint port = (int) (Math.random()*1000+6000);\r\n\t\t\t\t\t\tSystem.out.println(\"wysylam prosbe otwarcia portu \"+port+\" aby wyslac pliki\");\r\n\t\t\t\t\t\toutToClient.writeBytes(\"\"+port+'\\n');\r\n\t\t\t\t\t\tServerSocket wysylacz = new ServerSocket(port);\r\n\t\t\t\t\t\tSystem.out.println(\"Utworzono socket do wysylania pliku na porcie \"+port);\r\n\t\t\t\t\t\tSocket w = wysylacz.accept();\r\n\t\t\t\t\t\tSystem.out.println(\"Mam go, jego IP: \" + w.getRemoteSocketAddress()+\" moj address \"+w.getLocalSocketAddress());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tOutputStream fileToClient = w.getOutputStream();\r\n\t\t\t\t\t\tfileToClient.write(listOfFiles[i].getName().getBytes(), 0, listOfFiles[i].getName().getBytes().length);\r\n\t\t\t\t\t\tFileInputStream s = new FileInputStream(listOfFiles[i]);\r\n\t\t\t\t\t\tbyte[] fileBytes = new byte[1400];\r\n\t\t\t\t\t\twhile (true){\r\n\t\t\t\t\t\t\tint ileBytes=s.read(fileBytes);\r\n\t\t\t\t\t\t\tfileToClient.write(fileBytes, 0, ileBytes);\r\n\t\t\t\t\t\t\tfileToClient.flush();\r\n\t\t\t\t\t\t\tSystem.out.println(\"wyslano bajty: \"+ ileBytes);\r\n\t\t\t\t\t\t\tif(ileBytes<1400){\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}\r\n\t\t\t\t\t\twysylacz.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!znaleziono){\r\n\t\t\t\t\toutToClient.writeBytes(\"nie ma takiego pliku\"+ '\\n');\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\toutToClient.writeBytes(\"zla komenda\"+ '\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * File file = new File(\"ala.txt\"); Scanner in = new Scanner(file);\r\n\t\t * String zdanie = in.nextLine(); System.out.println(zdanie);\r\n\t\t */\r\n\t}", "public synchronized void mensajeRecibido(int tipo, Serializable mensaje) {\n\n System.out.println(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n log.info(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n /*Tipos de mensajes:\n * 1- Mensaje de Chat\n * 2- Mensaje de Jugada o Informacion de Salas y mesas\n * 3- Mensaje de Entrada en mesa\n * 4- Mensaje de Salida de Mesa\n * 5- Cierre de conexión\n * 6- Mensaje de Entrada en Sala\n * 7- Mensaje de Salida de Sala\n *\n */\n if (tipo == TipoMensaje.MENSAJE_CHAT) {\n MensajeChat mensajeChat = ((MensajeChat) mensaje);\n System.out.println(\"server \" + mensajeChat.get_usuario());\n GestorChatServidor.getInstance(this).dejamensaje(mensajeChat);\n\n } else if (tipo == TipoMensaje.MENSAJE_JUGADA) {\n MensajeJugada mensajeJugada = ((MensajeJugada) mensaje);\n GestorJuegosServidor.getInstance(this).dejamensaje(mensajeJugada);\n //TODO Devolver la confirmacion de la jugada\n\n } else if (tipo == TipoMensaje.ENTRADA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n if (GestorUsuarios.getInstancia(this).insertarJugadorEnMesa(m.getUsuario(), m.getMesa())) //Envio mensaje de confimacion de la entrada en la mesa\n {\n enviarMensajeMesa(m.getUsuario(), m);//necesito saber en qué mesa se ha insertado el cliente. Quito null y envio mensaje de vuelta\n } else {\n enviarMensajeMesa(m.getUsuario(), m);//TODO mirar porque devuelve false\n }\n } else if (tipo == TipoMensaje.SALIDA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnMesa(m.getUsuario());\n\n } else if (tipo == TipoMensaje.CERRAR_CONEXION) {\n //TODO cierre de conexion\n } else if (tipo == TipoMensaje.ENTRADA_SALA) {\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).insertarJugadorEnSala(m.getUsuario(), m.getSala());\n\n //envío mensaje de vuelta para confirmarle al usuario que ha entrado en la sala\n enviarMensajeSala(m.getUsuario(), m);\n\n //envío la info de todas las mesas de la sala.\n enviarMesasDeUnaSala(m.getUsuario(), m.getSala());\n\n } else if (tipo == TipoMensaje.SALIDA_SALA) {\n\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnSala(m.getUsuario());\n }\n\n\n\n }", "public void run() {\n try {\n // 대화명 입력 받기\n printWriter.println(\"대화명을 입력하세요\");\n userId = bufferedReader.readLine();\n\n // 서버에서 각 클라이언트에 대화명 출력\n chatGUIServer.broadCast(\"[\" + userId + \"]\" + \"님이 입장했습니다.\");\n\n // 무한 대기하며 입력한 메세지를 각 클라이언트에 계속 전달\n while ((strSend = bufferedReader.readLine()) != null) {\n chatGUIServer.broadCast(\"[\" + userId + \"]: \" + strSend);\n }\n } catch (Exception e) {\n // 접속자 퇴장시 v에서 해당 클라이언트 스레드 제거\n chatGUIServer.removeThread(this); // this: ServerThread 객체, 접속 클라이언트\n // 서버에서 각 클라이언트에 출력\n chatGUIServer.broadCast(\"[\" + userId + \"]\" + \"님이 퇴장했습니다.\");\n\n // 콘솔에 퇴장 클라이언트 IP 주소 출력\n System.out.println(socket.getInetAddress() + \"의 연결이 종료됨!\");\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tString msg;\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t\tBufferedReader inFromClient =\r\n\t\t\t\t new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\t DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream());\r\n\t\t\t\t \r\n\t\t\t\t String clientSentence;\r\n\t\t\t\t while((clientSentence = inFromClient.readLine())!=null)\r\n\t\t\t\t {\t\r\n\t\t\t\t\t System.out.println(\"Received: \" + clientSentence);\r\n\t\t\t\t\t System.out.println(\"port: \" + socket.getPort());\r\n\r\n\t\t\t\t\t String newsentence = clientSentence + '\\n';\r\n\t\t\t\t\t outToClient.writeBytes(\"Server: \"+newsentence);\r\n\t\t\t\t\t \r\n\t\t\t\r\n\t\t\t\t }\r\n//\t\t\t\t \r\n//\t\t\t\t\treader.close();\r\n//\t\t\t\t\tinFromClient.close();\r\n//\t\t\t\t\toutToClient.close();\r\n//\t\t\t\t\tsocket.close();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Client has Disconnected\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void run(){\n\tSystem.out.println(\"ServerListenerThread started!\");\n\t\t\t\twhile (parent.isWorking)\n\t\t\t\t{\n\n\t\t\t\t\tint t=0;\n\t\t\t\t\tString user = null,message=null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tt =Integer.parseInt(parent.inputStream.readLine());\n\t\t\t\t\t\tuser=parent.inputStream.readLine();\n\t\t\t\t\t\tmessage=parent.inputStream.readLine();\n\t\t\t\t\t\tif(t==MessageType.WILL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\">\"+user+\" wants to play!\");\n\t\t\t\t\t\t\tparent.parent.addWaiter(parent,user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(t==MessageType.PRIVATE || t==MessageType.MOVE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Inside message from: \"+user);\n\t\t\t\t\t\t\tparent.parent.sendPlayed(t,user,message);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparent.parent.sendMessage(t, user, message);\n\t\t\t\t\t\t\tif(!parent.socket.isConnected())break;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Recevied a message from: \"+user+\": \"+message);\n\n\t\t\t\t}\n\t\t\t//END\n\t\t\tsynchronized(this)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tparent.inputStream.close();\n\t\t\t\t\tparent.outputStream.close();\n\t\t \tparent.socket.close();\n\t\t \tSystem.out.println(\"ServerListenerThread closed!\");\n\t\t }\n\t\t catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t\t}\n}", "@Test\n public void testServer() throws Exception{\n ServerMain s=new ServerMain(1,3,2,\"test\",InetAddress.getLocalHost(),null);\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.PM);\n uut.serverVisit(new Client(\"test\",s).getServerVisitor());\n\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.serverVisit(new Client(\"test\",s).getServerVisitor());\n\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.serverVisit(new Client(\"testInvalid\",s).getServerVisitor());\n }", "public void run() {\n try {\n\n // Create character streams for the socket.\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n System.out.println(\"...\"+socket.getInetAddress());\n\n // Request a name from this client. Keep requesting until\n // a name is submitted that is not already used. Note that\n // checking for the existence of a name and adding the name\n // must be done while locking the set of names.\n while (true) {\n out.println(\"SUBMIT NAME\");\n name = in.readLine();\n \tString[] arr= name.split(\":\", 2);\n \tname= arr[1];\n if (name == null) {\n return;\n }\n if (!ip.contains(socket.getInetAddress())) {\n ip.add(socket.getInetAddress());\n }\n else\n {\n \tout.println(\"already opened once.\");\n \tcontinue;\n }\n synchronized (clientOut) {\n if (clientOut.get(name) == null) {\n client.put(count, name);\n id= count;\n break;\n }\n }\n }\n\n // Now that a successful name has been chosen, add the\n // socket's print writer to the set of all writers so\n // this client can receive broadcast messages.\n clientOut.put(name, out);\n out.println(\"NAMEACCEPTED\"+name);\n //adding online users to the new user.\n for (int i= 0;i < count;i++) {\n \tString str;\n\t\t\t\t\tif((str= (String)client.get(i)) != null)\n \t\tout.println(\"TAB\"+i+str);\n }\n \n //adding new user to all the users who are online.\n for (int i= 0;i < count;i++) {\n \tPrintWriter wrt;\n \tif((wrt= clientOut.get(client.get(i))) != null)\n \t\twrt.println(\"TAB\"+count+name);\n }\n count++;\n\n // Accept messages from this client and broadcast them.\n // Ignore other clients that cannot be broadcasted to.\n while (true) {\n \tString input= in.readLine();\n \tchar c1;\n \tint c2;\n \tString[] arr= input.split(\":\", 2);\n \tif(arr[0].equals(\"FILE\"))\n \t{\n \t\tString[] arr1= input.split(\":\", 3);\n \t\tPrintWriter p= clientOut.get(client.get(Integer.valueOf(arr1[1])));\n \t\tp.println(\"FILE:\"+id+\":\"+arr1[2]);\n \t\twhile((input= in.readLine()) != \"stop\")\n \t\t{\n \t\t\tp.println(input);\n \t\t\tp.flush();\n \t\t}\n \t\tp.println(\"stop\");\n \t\tp.flush();\n \t\tSystem.out.println(\"sent.........\");\n/* \t\twhile((c2= in.read()) != -1)\n \t\t{\n \t\t\tc1= (char) c2;\n \t\t\tp.print(c1);\n \t\t\tp.flush();\n \t\t\tSystem.out.print(c2);\n \t\t}\n \t\tSystem.out.println(c2+\".......\");\n \t\tp.print((char)-1);*/\n \t}\n \telse\n \t\tclientOut.get(client.get(Integer.valueOf(arr[0]))).println(\"MESSAGE:\"+id+\":\"+name+\":\"+arr[1]);\n }\n } catch (IOException e) {\n System.out.println(e);\n } finally {\n // This client is going down! Remove its name and its print\n // writer from the sets, and close its socket.\n \t//remove this client from every other client.(TAB)\n \tfor (int i= 0;i < count;i++) {\n \t\tPrintWriter wrt;\n\t\t\t\t\tif(i != id && (wrt= clientOut.get(client.get(i))) != null)\n \t\t\twrt.println(\"REMOVE\"+id);\n }\n\n if (name != null) {\n \tclient.remove(id);\n \tclientOut.remove(name);\n \tip.remove(socket.getInetAddress());\n }\n try {\n socket.close();\n } catch (IOException e) {\n }\n }\n }", "public static void regThread(SocketClient socketClient) {\n mSocketClient = socketClient;\n\n initMsg();\n movement();\n\n try {\n// mSocketClient.send(msg);\n String msg = mSocketClient.receive();\n System.out.println(\"From CP's msg : \" + msg);\n String[] line = msg.split(\",\");\n if (line[0].equals(\"e\")) {\n if (Integer.valueOf(line[1]) == EID) {\n if (Integer.valueOf(line[1]) < Integer.valueOf(line[2])) {\n upQueue.add(Integer.valueOf(line[1]));\n upQueue.add(Integer.valueOf(line[2]));\n } else {\n downQueue.add(Integer.valueOf(line[1]));\n downQueue.add(Integer.valueOf(line[2]));\n }\n }\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void sentRecieve() throws UnknownHostException, IOException, ClassNotFoundException, InterruptedException {\n InetAddress host = InetAddress.getLocalHost();\r\n Socket socket = null;\r\n ObjectOutputStream output = null;\r\n ObjectInputStream input = null;\r\n \r\n LinkedList client = new LinkedList();\r\n client.add(\"Elifas\");\r\n client.add(\"Andrew\");\r\n client.add(\"Claudia\");\r\n client.add(\"Ester\");\r\n client.add(\"Emilie\");\r\n \r\n for (int i = 0; i < client.size(); i++) {\r\n int size = client.size();\r\n //establishing socket connection to a server\r\n socket = new Socket(host.getHostName(), 2535);\r\n //write to the socket using ObjectOutputStream\r\n output = new ObjectOutputStream(socket.getOutputStream());\r\n System.out.println(client.get(i)+\" sending request to the server\");\r\n if (size > 5) {\r\n output.writeObject(\"exit\");\r\n }\r\n else{\r\n output.writeObject(\" \"+ client.get(i));\r\n }\r\n //reading the server response\r\n input = new ObjectInputStream(socket.getInputStream());\r\n String message = (String) input.readObject();\r\n System.out.println(\"Response: \"+message);\r\n \r\n //close resources\r\n input.close();\r\n output.close();\r\n Thread.sleep(2000);\r\n }\r\n }", "public void Subscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { // subscribe se ena buslineID\n Socket requestSocket = null;\n ObjectOutputStream out = null; // Gets and sends streams\n ObjectInputStream in = null;\n\n try {\n Client client = new Client();\n client.brokers = Subscriber.this.brokers;\n\n subscribedLists.add(busLineID);\n subscribedThreads.put(busLineID, client);\n\n int hash = HashTopic(busLineID);\n\n int no = FindBroker(hash);\n\n requestSocket = connectWithTimeout(no, TIMEOUT);\n\n subscribedSockets.put(busLineID, requestSocket);\n\n out = new ObjectOutputStream(requestSocket.getOutputStream());\n in = new ObjectInputStream(requestSocket.getInputStream());\n\n String s = in.readUTF();\n\n out.writeUTF(\"subscriber\");\n\n out.flush();\n\n s = in.readUTF();\n\n out.writeUTF(\"subscribe\");\n\n out.flush();\n\n String msg = String.valueOf(busLineID);\n out.writeUTF(msg);\n out.flush();\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 4;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n\n while (true) {\n s = in.readUTF();\n visualizeData(s);\n\n message = MapsActivity.mainHandler.obtainMessage();\n message.what = 5;\n message.obj = s;\n\n MapsActivity.mainHandler.sendMessage(message);\n }\n } catch (SocketTimeoutException ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 8;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n subscribedLists.remove(busLineID);\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n } catch (Exception ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 7;\n message.obj = ex.toString();\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n }\n }", "public void talk() {\n\t try{\t\n\t \twhile(exit) {\n\t\t \t\t//Definizione stream per la comunicazione\n\t\t \t\ttastiera = new BufferedReader(new InputStreamReader(System.in));\n\t\t \t\tout = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t in = new DataInputStream(connection.getInputStream());\n\t\t\t\t \n\t\t \t\t//Invio messaggio\n\t\t\t\t System.out.println(\"Inserisci il messaggio da mandare al server: \\n\");\n\t\t\t\t mess = tastiera.readLine();\n\t\t\t\t\tout.writeUTF(mess + \"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t//Ricezione risposta server\n\t\t\t\t\tservermess = in.readUTF();\n\t\t\t System.out.println(\"Risposta dal server: \"+servermess);\n\t\t\t if(mess.equals(\"FINE\")) {\n\t\t\t \texit = false;\n\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t }\n\t \tfinally {\n\t\t\t try {\n\t\t\t\t if (connection!=null)\n\t\t\t\t {\n\t\t\t\t connection.close();\n\t\t\t\t System.out.println(\"Connessione chiusa!\");\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t catch(IOException e){\n\t\t\t System.err.println(\"Errore nella chiusura della connessione!\");\n\t\t\t }\n\t \t}\t\n \t}", "NetThread(){}", "public void run() {\n try {\n // Create character streams for the socket.\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n // Request a name from this client. Keep requesting until\n // a name is submitted that is not already used. \n while (true) {\n out.println(\"SUBMITNAME\");\n name = in.readLine();\n if (name == null) {\n return;\n }\n synchronized (names) {\n if (!names.contains(name)) {\n names.add(name);\n break;\n }\n else {\n \tout.println(\"duplicate\");\n }\n }\n }\n // Now that a successful name has been chosen, add the\n // socket's print writer to the set of all writers so\n // this client can receive broadcast messages.\n out.println(\"NAMEACCEPTED,\"+name);\n System.out.println(out);\n for(PrintWriter writer : clients) {\n \twriter.println(\"\\n\"+name + \" is connected\\n\");\n \tSystem.out.println(\"broadcast\");\n }\n clients.add(out);\n System.out.println(\"client \"+name+\" is connected\"); \n serverMessageArea.append(name + \" is connected\\n\");\n writeFile( name + \" is connected\\n\");\n \n //String url = \"http://localhost:9000\";\n // Accept messages from this client and broadcast them.\n while (true) {\n String s = in.readLine();\n writeFile(\"Content:\"+s+\"\\n\");\n serverMessageArea.append(\"Content:\"+s+\"\\n\");\n System.out.println(s);\n String input=s.split(\",\")[0];\n System.out.println(input);\n if (input == null) {\n return;\n }\n for (PrintWriter writer : clients) { \t\t\n writer.println(\"MESSAGE,\" + name + \",\" + input);\n }\n writeFile(\"From: \"+name + \":\" + input+\"\\n\");\n serverMessageArea.append( \"From: \"+name + \":\" + input+\"\\n\");\n }\n } catch (IOException e) {\n System.out.println(e);\n } finally {\n // This client is going down! Remove its name and its print\n // writer from the sets, and close its socket.\n if (name != null) {\n names.remove(name); \n System.out.println(\"nr\");\n }\n if (out != null) {\n clients.remove(out); \n for(PrintWriter writer : clients) {\n \twriter.println(name + \" is disconnected\\n\");\n \tSystem.out.println(\"broadcast\");\n }\n \tserverMessageArea.append(name + \" is disconnected\\n\");\n \twriteFile(\"\\n\"+name + \" is disconnected\\n\");\n System.out.println(\"cr\");\n \n }\n try {\n socket.close();\n writeFile( \" Server is disconnected\\n\");\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n try{\n listenSocket = new ServerSocket(Integer.parseInt(serverPortText.getText())); \n Runnable helloRunnable = new Runnable() {\n public void run() {\n try {\n while(true){\n connection = listenSocket.accept();\n inFromClient = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n sentence = inFromClient.readLine(); \n String arr[] = sentence.split(\",\");\n \n if(arr[0].equals(\"offline\")){\n listModel.removeElement(arr[1]);\n \n for(int i = 0 ; i < listModel2.getSize() ;i++){\n \n if(listModel2.get(i).getPort() == Integer.parseInt(arr[2])){\n listModel2.removeElementAt(i);\n }\n }\n sendClient(\"offline\" , connection);\n Client.listModel.removeAllElements();\n }\n else{\n\n listModel.addElement(arr[1]);\n listModel2.addElement(connection);\n Client.listModel.removeAllElements();\n jList1.setModel(listModel);\n sendClient(\"online\" , connection);\n \n }\n \n }\n \n \n \n }\n catch(Exception ex){\n ex.printStackTrace();\n }\n }\n };\n ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);\n executor.scheduleAtFixedRate(helloRunnable, 0, 1, TimeUnit.SECONDS);\n \n //}\n }\n catch(Exception ex){\n ex.printStackTrace();\n }\n \n \n }", "@Override\n public void run()\n {\n System.out.println(\"[\" + getCurrentDateTimeStamp() + \"]\" + \" Received connection from: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Received connection from: \" + clientSocket);\n try (PrintWriter pw = new PrintWriter(clientSocket.getOutputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()))) {\n String line = \"\";\n\n while ((line != null) && (!line.trim().toUpperCase().equals(\"CLOSE\")) && (!stop)) {\n if (!stop && !clientSocket.isClosed()) {\n synchronized (this) {\n line = br.readLine();\n }\n }\n\n if ((line != null) && (!line.trim().isEmpty()) && (!stop)) {\n if(\"getRegisterTopics\".equalsIgnoreCase(line))\n {\n sendRegisterTopics(pw);\n }\n else\n {\n line = processMessage(clientSocket, pw, line);\n }\n }\n }\n } catch (SocketException e1)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"the connection was interrupted by the client - \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e1));\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] the connection was interrupted by the client - \" + clientSocket);\n } catch (IOException e)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to read from client \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to read from client \" + clientSocket);\n } finally {\n //remove from topic table\n synchronized (Server.class) {\n if (clientTopicsTable.containsKey(clientSocket)) {\n clientTopicsTable.remove(clientSocket);\n }\n //remove from threads table\n if (Server.handleClients.contains(this)) {\n Server.handleClients.remove(this);\n }\n }\n try {\n clientSocket.close();\n } catch (IOException e) {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to close socket clientSocket: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to close socket clientSocket: \" + clientSocket);\n }\n }\n }", "public void run() {\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(cliente.getInputStream()));\n\t\t\tmOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(cliente.getOutputStream())), true);\n\n\t\t\tint comparar = idCliente(); //recibe id del cliente\n\t\t\tif(comparar==0) { \n\t\t\t\t//ENVIA id PARA EL CLIENTE\n\t\t\t\tthis.tcpServidor.maxCliente++;\n\t\t\t\tenviarMensaje(\"ID;\"+this.tcpServidor.maxCliente);\n\t\t\t\t//ENVIA maxCliente A TODAS LAS REPLICAS\n\t\t\t\tfor (HiloReplica h : this.tcpServidor.hiloReplica) {\n\t\t\t\t\th.enviarMensaje(\"MAXCLIENTE;\"+this.tcpServidor.maxCliente);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.idCliente = comparar; //GUARDA id DEL CLIENTE\n\t\t\t}\n\t\n\t\t\tSystem.out.println(\"Cliente \"+this.idCliente+\" conectado a Balanceado \"+this.tcpServidor.id);\n\t\t\t\n\t\t\tpeticionDeCliente();\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t//System.out.println(\"HiloCliente\" + \": Error\" + e);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n final SocketChannel socketChannel = SocketChannel.open(new InetSocketAddress(\"127.0.0.1\", 8088));\n socketChannel.configureBlocking(false);\n\n //客户端建立连接\n// socketChannel.register(selector, SelectionKey.OP_CONNECT);\n// socketChannel.isConnected();\n\n\n// new Thread(new Runnable() {\n// @Override\n// public void run() {\n// System.out.println(\"客户端发送消息~~~\");\n// String clientMsg = \"客户端首发信息\";\n// ByteBuffer byteBuffer = ByteBuffer.allocate(clientMsg.getBytes().length);\n// byteBuffer.put(clientMsg.getBytes());\n// byteBuffer.flip();\n// try {\n// socketChannel.write(byteBuffer);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// }\n// }).start();\n\n System.out.println(\"客户端发送消息~~~\");\n String clientMsg = \"客户端首发信息\";\n ByteBuffer byteBuffer = ByteBuffer.allocate(clientMsg.getBytes().length);\n byteBuffer.put(clientMsg.getBytes());\n byteBuffer.flip();\n try {\n socketChannel.write(byteBuffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()){\n byteBuffer.flip();\n String str = scanner.next();\n byteBuffer.put(str.getBytes());\n byteBuffer.flip();\n socketChannel.write(byteBuffer);\n }\n socketChannel.close();\n// System.out.println(\"客户端接收消息~~~\");\n// ByteBuffer bbf = ByteBuffer.allocate(1024);\n// int num = socketChannel.read(bbf);\n// if (num > 0) {\n// bbf.flip();\n// byte[] bytes = new byte[bbf.remaining()];\n// bbf.get(bytes);\n// System.out.println(\"客户端接收到服务端信息:\" + (new String(bytes, \"UTF-8\")));\n// }\n\n// while (true) {\n//// selector.select(1000);\n// Set<SelectionKey> selectionKeys = selector.selectedKeys();\n// Iterator<SelectionKey> iterator = selectionKeys.iterator();\n// System.out.println(\"--1\");\n// while (iterator.hasNext()) {\n// System.out.println(\"--2\");\n// SelectionKey key = iterator.next();\n// System.out.println(\"--3\");\n//\n// final SocketChannel channel = (SocketChannel) key.channel();\n// new Thread(new Runnable() {\n// @Override\n// public void run() {\n// System.out.println(\"客户端发送消息~~~\");\n// String clientMsg = \"客户端首发信息\";\n// ByteBuffer byteBuffer = ByteBuffer.allocate(clientMsg.getBytes().length);\n// byteBuffer.put(clientMsg.getBytes());\n// byteBuffer.flip();\n// try {\n// channel.write(byteBuffer);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// }\n// }).start();\n// System.out.println(\"--4\");\n// if (key.isReadable()) {\n// System.out.println(\"客户端接收消息~~~\");\n// ByteBuffer bbf = ByteBuffer.allocate(1024);\n// int num = channel.read(bbf);\n// if (num > 0) {\n// bbf.flip();\n// byte[] bytes = new byte[bbf.remaining()];\n// bbf.put(bytes);\n// System.out.println(\"客户端接收到服务端信息:\" + (new String(bytes, \"UTF-8\")));\n// }\n// }\n// iterator.remove();\n// }\n// }\n\n }", "public void run(){\n //wait for clients to connect to the server and start a new thread,\n //then continue waiting.\n while(true) {\n //create the packet to accept a message\n byte[] buf = new byte[bufSize];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n try {\n //receive a message from the client\n datagramSocket.receive(packet);\n } catch (IOException e) {\n System.err.println(\"Error receiving datagram packet\");\n } catch (Exception e){\n serverGUI.displayText(\"Error: There is an issue with your connection. Please restart the program.\");\n }\n //Start a new thread for this client\n ServerThread servant = new ServerThread(mainServer, packet, serverGUI);\n servant.start();\n }\n }", "public ServerNMS() {\n\t\tclients = new LinkedList<PrintWriter>();\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif(socket != null && !socket.isClosed() && socket.isConnected())\n\t\t{\n\t\t\tSendMessage(ApplicationManager.Instance().GetName(), MessageType.clientData);\n\t\t\tApplicationManager.textChat.writeGreen(\"Connected to \" + connectionInfo.ServerAdress);\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\twhile (IsConnected) \n\t\t {\n\t\t Message message = (Message) in.readObject();\n\t\t\t\t\t\n\t\t if(!IsConnected)\n\t\t \tbreak;\n\t\t \t\n\t\t if(message == null)\n\t\t {\n\t\t \tIsConnected = false;\n\t\t \tbreak;\n\t\t }\n\t\t \n\t\t HandleMessage(message); \n\t\t }\n\t\t\t \n\t\t\t} \n\t\t\tcatch (SocketException | EOFException e) {\n\t\t\t\tif(IsConnected)\n\t\t\t\tApplicationManager.textChat.writeGreen(\"Server go down!\");\n\t\t\t}\n\t\t\tcatch (IOException | ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tApplicationManager.Instance().Disconnect();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tApplicationManager.textChat.writeGreen(\"Cannot connect!\");\n\t\t\tApplicationManager.Instance().Disconnect();\n\n\t\t}\n\t}", "public void run()\r\n\t\t{\n\t\t\ttheVMKClient.sendMessageToServer(m);\r\n\t\t}", "@Override\n\tpublic void run(){\n\t\ttry{\n\t\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\twhile(true){\n\t\t\t\ttry{\t\t\t\t\t\n\t\t\t\t\tmethReception(in);\n\t\t\t\t\texeBdd();\n\t\t\t\t\tmethEnvoie();\n\t\t\t\t}catch(IllegalArgumentException | ExecutionException | InterruptedException a){\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(a.getMessage());\t\t\t\t\n\t\t \tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Fin des comunucations avec :\" + socket.getPort());\n\t\t\tAuthentification.CLIENTS.remove(this);\n\t\t\tsocket.close();\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"problème BufferedReader du ChatServeur\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}" ]
[ "0.6828557", "0.672033", "0.66463935", "0.6541733", "0.64677495", "0.6418732", "0.63781154", "0.63403213", "0.6313038", "0.62522423", "0.6235902", "0.62314004", "0.62104785", "0.62094486", "0.615921", "0.61493635", "0.61247045", "0.61176896", "0.61171526", "0.6109058", "0.60814476", "0.6066865", "0.60658556", "0.6064744", "0.60630846", "0.6035479", "0.60354155", "0.60293806", "0.60205686", "0.60131866", "0.60129863", "0.6003738", "0.5995938", "0.5986922", "0.5985466", "0.5979271", "0.5974203", "0.5973122", "0.59635574", "0.5958991", "0.5958236", "0.5955614", "0.5952842", "0.5948701", "0.59462523", "0.5939814", "0.59367657", "0.59367156", "0.5931882", "0.59291494", "0.5925042", "0.5914092", "0.5906954", "0.5895253", "0.5894902", "0.58902043", "0.58899033", "0.5887768", "0.5887422", "0.5879961", "0.5877127", "0.5873067", "0.58713406", "0.58653414", "0.58641845", "0.5859071", "0.58556", "0.58537364", "0.5845401", "0.584359", "0.5842493", "0.58380854", "0.58377737", "0.5837454", "0.583678", "0.58358365", "0.58343464", "0.5831675", "0.5831497", "0.58300656", "0.5829947", "0.5825632", "0.58192635", "0.5816685", "0.58163255", "0.58154017", "0.5803551", "0.57984084", "0.57967174", "0.5794034", "0.57932675", "0.5787637", "0.5785719", "0.57777035", "0.57748324", "0.57670265", "0.5763053", "0.5754114", "0.57518345", "0.5749916", "0.5747392" ]
0.0
-1
Zeichnet das Hauptmenue, indem der Spielmodus (Einzelspieler bzw. Multiplayer) ausgewaehlt oder das Spiel beendet werden kann.
private void paintMenu(){ //Idee: Vllt. lieber Menü auf unsichtbar setzen und immer wieder anzeigen, wenn benötigt? Vllt. auch praktisch für Pause...Aber was mit entsprechenden Labels? if(spiel_status == 3){ //Spiel noch gar nicht gestartet frame3 = new JFrame("Spiel starten?"); frame3.setLocation(650,300); frame3.setSize(100, 100); JButton b1 = new JButton("Einzelspieler"); b1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter JButton b2 = new JButton("Beenden"); b2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape JButton b3 = new JButton("Mehrspieler"); JButton b4 = new JButton("Einstellungen"); JButton b5 = new JButton("Handbuch"); //Neues Layout. 4 Zeilen, 1 Spalte. frame3.setLayout(new GridLayout(5,1)); frame3.add(b1); frame3.add(b3); frame3.add(b4); frame3.add(b5); frame3.add(b2); frame3.pack(); frame3.setVisible(true); b1.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0){ singleplayer = true; doInitializations(frame3); } }); b2.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ //bzgl. Schließen System.exit(0); } }); b3.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ multiplayer = true; paintNetworkMenu(); } }); b4.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ paintSettingMenu(); } }); b5.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ try { Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+ "resources\\handbuch\\Handbuch.pdf"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); } if(spiel_status == 1|| spiel_status == 0){ //Wenn Spiel gewonnen oder verloren // if (!multiplayer){ frame2 = new JFrame("Neues Einzelspielerspiel?"); frame2.setLocation(500,300); frame2.setSize(100, 100); JLabel label; if(spiel_status == 1){ label = new JLabel("Bravo, du hast gewonnen! Neues Einzelspielerspiel?"); }else{ if(player.getLifes() == 0){ label = new JLabel("Schade, du hast verloren! Neues Einzelspielerspiel?"); }else{ label = new JLabel("Du hast gewonnen! Neues Einzelspielerspiel?"); } } frame2.add(BorderLayout.NORTH, label); JButton b1 = new JButton("Neues Einzelspielerspiel"); b1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter b1.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0){ //bzgl. Starten soundlib.stopLoopingSound(); doInitializations(frame2); } }); JButton b2 = new JButton("Zurück zum Hauptmenü"); b2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape b2.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ //bzgl. Schließen soundlib.stopLoopingSound(); spiel_status=3; paintMenu(); frame2.setVisible(false); } }); frame2.add(BorderLayout.CENTER, b1); frame2.add(BorderLayout.SOUTH, b2); frame2.pack(); frame2.setVisible(true); spiel_status = 0; } // }else{ // frame2 = new JFrame("Ende"); // frame2.setLocation(500,300); // frame2.setSize(100, 100); // JLabel label; // if(player.getLifes() == 0){ // label = new JLabel("Du Lusche hast verloren!"); // }else{ // label = new JLabel("Boom-Headshot! Du hast gewonnen!"); // } // // frame2.add(BorderLayout.NORTH, label); // // JButton b2 = new JButton("Zurück zum Hauptmenü"); // b2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape // b2.addActionListener(new ActionListener(){ // public void actionPerformed(ActionEvent arg1){ //bzgl. Schließen // if(sound_running){ // soundlib.stopLoopingSound(); // } // spiel_status=3; // paintMenu(); // frame2.setVisible(false); // frame2.dispose(); // // // // } // // }); // frame2.add(BorderLayout.CENTER, b2); // frame2.pack(); // frame2.setVisible(true); // spiel_status = 0; // } spiel_status = 0; // Daraus folgt, dass wenn man das Spiel per ESC-taste verlässt, man verliert. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inizializeMultiplayer() {\r\n\t\t\r\n\t\tthis.client = new Client(); //inzializzo connessione con il server\r\n\t\tmultiplayerPanel = new MultiplayerPanel(this);\r\n\t\tm.setVisible(false);\r\n\t\tgameFrame.add(multiplayerPanel);\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\tgameFrame.repaint();\r\n\t}", "boolean isMultiplayer();", "public boolean isMultiplayer() {\n return multiplayer;\n }", "public void gameSetupMultiplayer() {\r\n\t\t\r\n\t\tmultiplayerScreen = new MultiplayerScreen(this, playerNumber, playerIndex ); \r\n\t\t\r\n\t\t// creo giocatore\r\n\t\tfor (int i=0; i<playerNumber; i++) {\r\n\t\t\tplayers.add(new Player());\r\n\r\n\t\t}\t\r\n\t\tmultiplayerScreen.addPlayers(players); //creazione schermo di gioco multiplayer\r\n\t\t\r\n\t\tmultiplayerScreen.setMusic(music);\r\n\t\t\r\n\t\tmultiplayerScreen.setLevel(level);\r\n\t\t\r\n\t\tclient.startThread(multiplayerScreen);\r\n\t\t\r\n\t\tgameFrame.add(multiplayerScreen);\r\n\t\tgameFrame.requestFocusInWindow();\r\n\r\n\t\t// aggiungo controllo da tastiera\r\n\t\tgameFrame.addKeyListener(players.get(playerIndex).getInputHandler());\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\t\t\t\r\n\t\t// avvio ciclo di gioco\r\n\t\tnew Thread(multiplayerScreen).start();\r\n\t\tmultiplayerScreen.setVisible(true);\r\n\t}", "public SPIEL( int breite , int hoehe , boolean punkteLinks , boolean punkteRechts , boolean maus ) \n {\n //Zaehler fuer Tick, Tack, ...\n zaehler = 0;\n anzeige = new AnzeigeE( breite , hoehe );\n //animationsManager = AnimationsManager.getAnimationsManager();\n \n //Punkteanzeige\n anzeige.punkteLinksSichtbarSetzen( punkteLinks );\n anzeige.punkteRechtsSichtbarSetzen( punkteRechts );\n \n //Maus ggf. aktivieren\n if ( maus ) \n {\n anzeige.klickReagierbarAnmelden( this , true );\n }\n \n //Tastatur\n anzeige.tastenReagierbarAnmelden( this );\n \n //Ticker\n //Alle 500 Millisekunden (=Jede halbe Sekunde) ein Tick\n //anzeige.tickerAnmelden(this, 500); \n }", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "public void lostGame(){\n\t\tSystem.out.println(\"Schade, du hast verloren. Möchtest du es noch einmal versuchen?\");\n\t\tif(!singleplayer){\n\t\t\tif(player.getLifes() == 0){\n\t\t\t\tSystem.out.println(\"Spieler 2 gewinnt!\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Spieler 1 gewinnt!\");\n\t\t\t}\n\t\t\n\t\t}\n\t\tstopGame();\n\t\tstarted = false;\n\t\tspiel_status = 0;\n\t\tpaintMenu();\n\t}", "public boolean isMultiplayer() {\n return multiplayerGameManager.isMultiplayer();\n }", "private void Management_Player(){\n\t\t\n\t\t// render the Player\n\t\tswitch(ThisGameRound){\n\t\tcase EndRound:\n\t\t\treturn;\t\t\t\n\t\tcase GameOver:\n\t\t\t// do nothing\n\t\t\tbreak;\n\t\tcase Running:\n\t\t\tif (PauseGame==false){\n\t\t\t\tplayerUser.PlayerMovement();\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (PauseGame==true){\n\t\t\t\t// do not update gravity\n\t\t\t}\n\t\t\tbreak;\t\t\n\t\t}\n\t\n\t\tbatch.draw(playerUser.getframe(PauseGame), playerUser.getPosition().x , playerUser.getPosition().y,\n\t \t\tplayerUser.getBounds().width, playerUser.getBounds().height);\n\t\t\n\t\t\n\t\t\n\t\tswitch (playerUser.EquipedToolCycle)\n\t\t{\t\n\t\tcase 0:\n\t\t\tstartTimeTool = System.currentTimeMillis(); \n\t\t\tbreak;\n\t\t\t\n\t\tcase 1: \n\t\t\t\n\t\t\tif (PauseGame==true){\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// tool is grabbed\n\t\t\testimatedTimeEffect = System.currentTimeMillis() - startTimeTool;\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tplayerUser.pe_grab.setPosition(playerUser.getPosition().x + playerUser.getBounds().width/2,\n\t\t\t\t\tplayerUser.getPosition().y + playerUser.getBounds().height/2);\t\n \t\t\n\t\t\t\tplayerUser.pe_grab.update(Gdx.graphics.getDeltaTime());\n\t\t\t\tplayerUser.pe_grab.draw(batch,Gdx.graphics.getDeltaTime()); \t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (estimatedTimeEffect >= Conf.SYSTIME_MS){\n\t\t\t\testimatedTimeEffect = 0;\n\t\t\t\tplayerUser.ToolEquiped();\n\t\t\t\tstartTimeTool = System.currentTimeMillis(); \n\t\t\t\tplayerUser.EquipedToolCycle++;\n\t\t\t}else{\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\t\t\n\t\tcase 2:\n\t\t\t\n\t\t\tif (PauseGame==true){\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\testimatedTimeEffect = (System.currentTimeMillis() - startTimeTool) / 1000;\t\t\t\t\n\t\t\tplayerUser.pe_equip.setPosition(playerUser.getPosition().x + playerUser.getBounds().width/2,\n\t\t\tplayerUser.getPosition().y + playerUser.getBounds().height/2);\t\n\t\t\tplayerUser.pe_equip.update(Gdx.graphics.getDeltaTime());\n\t\t\tplayerUser.pe_equip.draw(batch,Gdx.graphics.getDeltaTime()); \t\t\t\t\n\t\t\tif (estimatedTimeEffect>=Conf.TOOL_TIME_USAGE_LIMIT){\n\t\t\t\tplayerUser.EquipedToolCycle=0;\t\t\n\t\t\t\tplayerUser.color = Color.NONE;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (estimatedTimeEffect>=Conf.TOOL_TIME_USAGE_MUSIC_LIMIT){\n\t\t\t\tPhoneDevice.Settings.setMusicValue(true);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "public void mo1607a() {\r\n if (this.f4603a.f4592h != null) {\r\n Message.obtain(this.f4603a.f4598n, 3).sendToTarget();\r\n }\r\n }", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "public void gameOver() {\r\n\t\t// Clean up the model layer\r\n\t\tModelEventSource.clear();\r\n\t\tStargate.clearStargates();\r\n\r\n\t\t//\r\n\t\tisReplicatorMoving = false;\r\n\t\tplayers.clear();\r\n\t\treplicator = null;\r\n\t\tzpmSet.clear();\r\n\t}", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}", "@Override\n\tpublic void msgPartsLow() {\n\t\t\n\t}", "@Override\n\tpublic void handleServer(EntityPlayerMP player) {\n\n\t}", "@Override\n\tpublic int getGameLayer() {\n\t\treturn 0;\n\t}", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw x draw y, elud, damage, nimi, exp\n mangija = new Player(game, 97,174,50,370,100,10);\n mspawner = new mobSpawner(game, Mobid[13].getWidth(), Mobid[13].getHeight(), 450, 370, km[13].elud, km[13].dpsMin, km[13].dpsMax, km[13].mobSpeed, km[13].nimi, km[13].mobXp, km[13].mobGold,km[13].mobGold);\n magicAttack = new magicAttack(game,(mangija.x+mangija.width-15),(mangija.y-(mangija.height/2)),40,20,1,mangija.damage);\n kLiides = new uiBox(0,400,600,200);\n kLiides2 = new uiSide(600,0,200,600);\n uusRida = new Tekstid(0,420);//420 v 590\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\r\n\t\t\t\t\tfor(Entity as: Bukkit.getWorld(\"world\").getEntities()) {\r\n\t\t\t\t\t\tif(as instanceof ArmorStand) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tas.remove();\r\n\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\t//TOPS\r\n\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topkills\")) {\r\n\t\t\t\t\t getTop(locTopKILLS,\"Kills\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP KILLS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP KILLS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topcoins\")) {\r\n\t\t\t\t\t getTop(locTopCoins,\"Coins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP COINS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"top1v1\")) {\r\n\t\t\t\t\t getTop(locTop1v1,\"wins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP 1v1 ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP 1v1 NAO PODE SER CARREGADO, POIS A WARP top1v1 NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Caixa misteriosa\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"misteryBox\")) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t Spawn(misteryBox, \"žažlCAIXA MISTERIOSA\",misteryBox.getY()-1.7);\r\n\t\t\t\t\t Spawn(misteryBox, \"žežlEM BREVE!\",misteryBox.getY()-2);\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlMYSTERYBOX ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP misteryBox NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public void gameEngineInitializer() {\n\t\t\r\n\t\tthis.sputacchioGameEngine = new SputacchioGameEngine(supportDeck, mainDeck, mainBoard, players, gamestate, playerDoingTurnNumber);// da implementare alla fine\r\n\t\tthis.classicGameEngine = new ClassicGameEngine(supportDeck, mainDeck, mainBoard, players, gamestate, playerDoingTurnNumber, engineUtility, filter);\r\n\t\t\r\n\t\tthis.gamestate.setCurrentGameType(GameType.CLASSICGAME);//si dovrebbe iniziare dal cucù ma facciamo dopo\r\n\t\tthis.gamestate.setCurrentHandNumber(INITIALHANDNUMBER);\r\n\t\tthis.givePersonalJolly();\r\n\t\t\r\n\t\tthis.classicGameEngine.distributeHands();//queste due si fanno all'inizio di ogni mano, non sono da fare solo la prima volta e basta\r\n\t\tthis.classicGameEngine.substituteJolly();\r\n\t\t\r\n\t\tmainEngine();\r\n\t\t//TODO ci vuole un metodo che, a parte la prima chiamata di Server Room, chiama il sotto-engine giusto in base a game type. Se classic game engine fa una return per segnalare\r\n\t\t//che la mano è finita perchè nessuno ha carte in mano, game engine deve ridare le 6 carte o settare l'ultima mano, o la mano della scala obbligatoria, e cambiare chi inizia a cucù.\r\n\t\t//Poi penso che debba chiamare Filter per mostrare a entrambi cosa accade, stampare le nuove carte e dichiarare l'inizio del cucù.\r\n\t}", "private PowerSubsystem() {\n mPdp = new PowerDistributionPanel(0);\n addChild(\"PowerDistributionPanel\",mPdp);\n }", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "public final void mo66559hj() {\n int hl = m72695hl() | m72696hm();\n m72697hn();\n if (hl != 0) {\n m72694hk();\n notifyChanged();\n }\n }", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\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\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Multi_Player()\r\n {\r\n \r\n }", "public interface ITransformablePacket {\n\n default boolean isPacketOnMainThread(INetHandlerPlayServer server, boolean callingFromSponge) {\n if (!MixinLoadManager.isSpongeEnabled() || callingFromSponge) {\n NetHandlerPlayServer serverHandler = (NetHandlerPlayServer) server;\n EntityPlayerMP player = serverHandler.player;\n return player.getServerWorld().isCallingFromMinecraftThread();\n } else {\n return false;\n }\n }\n\n /**\n * Puts the player into local coordinates and makes a record of where they used to be.\n */\n default void doPreProcessing(INetHandlerPlayServer server, boolean callingFromSponge) {\n if (isPacketOnMainThread(server, callingFromSponge)) {\n // System.out.println(\"Pre packet process\");\n NetHandlerPlayServer serverHandler = (NetHandlerPlayServer) server;\n EntityPlayerMP player = serverHandler.player;\n PhysicsWrapperEntity wrapper = getPacketParent(serverHandler);\n if (wrapper != null\n && wrapper.getPhysicsObject().getShipTransformationManager() != null) {\n ISubspaceProvider worldProvider = (ISubspaceProvider) player.getServerWorld();\n ISubspace worldSubspace = worldProvider.getSubspace();\n worldSubspace.snapshotSubspacedEntity((ISubspacedEntity) player);\n wrapper.getPhysicsObject().getShipTransformationManager()\n .getCurrentTickTransform().transform(player,\n TransformType.GLOBAL_TO_SUBSPACE);\n }\n\n }\n }\n\n /**\n * Restores the player from local coordinates to where they used to be.\n */\n default void doPostProcessing(INetHandlerPlayServer server, boolean callingFromSponge) {\n if (isPacketOnMainThread(server, callingFromSponge)) {\n NetHandlerPlayServer serverHandler = (NetHandlerPlayServer) server;\n EntityPlayerMP player = serverHandler.player;\n PhysicsWrapperEntity wrapper = getPacketParent(serverHandler);\n // I don't care what happened to that ship in the time between, we must restore\n // the player to their proper coordinates.\n ISubspaceProvider worldProvider = (ISubspaceProvider) player.getServerWorld();\n ISubspace worldSubspace = worldProvider.getSubspace();\n ISubspacedEntity subspacedEntity = (ISubspacedEntity) player;\n ISubspacedEntityRecord record = worldSubspace\n .getRecordForSubspacedEntity(subspacedEntity);\n // System.out.println(player.getPosition());\n if (subspacedEntity.currentSubspaceType() == CoordinateSpaceType.SUBSPACE_COORDINATES) {\n subspacedEntity.restoreSubspacedEntityStateToRecord(record);\n player.setPosition(player.posX, player.posY, player.posZ);\n }\n // System.out.println(player.getPosition());\n // We need this because Sponge Mixins prevent this from properly working. This\n // won't be necessary on client however.\n }\n }\n\n PhysicsWrapperEntity getPacketParent(NetHandlerPlayServer server);\n}", "@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "public void sendeLobby();", "public void sendeSpielStarten();", "public void setMultiplayer(boolean multiplayer) {\n this.multiplayer = multiplayer;\n }", "private void enterMultiPlayerMode(Game game) {\n initSubSystems(game);\n }", "@Override\n\tpublic int use() {\n\t\treturn Game.getInstance().getPlayer().equip(this);\n\t}", "public void startGame() {\r\n\t\t\r\n\t\tmultiplayerPanel.setVisible(false);\r\n\t\tif(waitingPanel != null) waitingPanel.setVisible(false);\r\n\t\tmultiplayerPanel.removeAll();\r\n\t\t\r\n\t\tgameSetupMultiplayer();\r\n\t\t\r\n\t\t\r\n\t}", "public void hyperSpace()\n\t{\n\t\t//only return the ship if a PlayerShip is currently spawned\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\t//invoke resetShip() method from PlayerShip\n\t\t\t((PlayerShip)gameObj[1].get(0)).resetShip();\n\t\t\tSystem.out.println(\"PS location reset\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"There is no playership spawned\");\n\t}", "public void tick() \n {\n //Einfache Bildschirmausgabe. Kann spaeter in Subklasse beliebig ueberschreiben werden.\n zaehler++;\n zaehler = zaehler % 2;\n if ( zaehler == 1 ) \n {\n System.out.println( \"Tick!\" );\n }\n else \n {\n System.out.println( \"Tack!\" );\n }\n }", "public static void startMultiMod() {\n System.out.println(\"Starting MultiMode!\");\n System.out.println(\"Human 1 discs are showed: \" + '\\u26AA');\n System.out.println(\"Human 2 discs are showed: \" + '\\u26AB');\n Board board = new Board();\n Human human1 = new Human(1);\n Human human2 = new Human(2);\n //if non of two players has a turn the game will be finished\n boolean human1HasTurn = true;\n boolean human2HasTurn = true;\n while (true) {\n while (true) {\n //checking if the player can have any putting if not the turn will be passed to the next one\n boolean passTurn = human1.checkCanPut();\n if (!passTurn) {\n human1HasTurn = false;\n System.out.println(\"Pass!\");\n break;\n }\n board.printBoard();\n System.out.println(\"Human 1 turn \"+ '\\u26AA');\n String string1 = scanner.nextLine();\n int x=-1, y=-1;\n try {\n x = string1.charAt(0) - 48;\n y = string1.charAt(2) - 64;\n } catch (StringIndexOutOfBoundsException e) {\n System.out.println(\"Wrong input , try again\");\n continue;\n }\n\n // if the player did not put the disc successfully, get another coordinate\n if (human1.putDisc(true, x, y)) {\n human1HasTurn = true;\n break;\n } else System.out.println(\"Can not put here choose another coordinate\");\n }\n while (true) {\n //checking if the player can have any putting if not the turn will be passed to the next one\n\n boolean passTurn = human2.checkCanPut();\n if (!passTurn) {\n human2HasTurn = false;\n System.out.println(\"Pass!\");\n break;\n }\n board.printBoard();\n System.out.println(\"Human 2 turn \"+ '\\u26AB');\n String string2 = scanner.nextLine();\n int x=-1, y=-1;\n try {\n x = string2.charAt(0) - 48;\n y = string2.charAt(2) - 64;\n\n } catch (StringIndexOutOfBoundsException e) {\n System.out.println(\"Wrong input , try again\");\n continue;\n }\n\n // if the player did not put the disc successfully, get another coordinate\n\n if (human2.putDisc(true, x, y)) {\n human2HasTurn = true;\n break;\n } else System.out.println(\"Can not put here choose another coordinate\");\n }\n //checking the end of game\n if (!(human1HasTurn || human2HasTurn)) {\n System.out.println(\"The game has finished!\");\n System.out.println(\"Human 1 caught \" + Board.pointCounter(1) + \" points\");\n System.out.println(\"Human 2 caught \" + Board.pointCounter(2) + \" points\");\n\n if (Board.pointCounter(1) > Board.pointCounter(2))\n System.out.println(\"Human 1 won the game!\");\n else if (Board.pointCounter(1) < Board.pointCounter(2))\n System.out.println(\"Human 2 won the game!\");\n else if (Board.pointCounter(1) == Board.pointCounter(2))\n System.out.println(\"The game drew!\");\n break;\n }\n }\n }", "public void sendeSpielfeld();", "private void specialPowersPhase() {\n \tSpecialCharacter tmpPiece = null;\n \tTerrain theHex = null;\n\n for (Player p : playerList) {\n pause();\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Game.getRackGui().setOwner(player);\n }\n });\n /*\n * Loops through all of the hexes that the player has pieces on.\n * If one of the pieces is either Master Thief or Assassin Primus, perform their\n * special ability.\n */\n for (Terrain hex : player.getHexesWithPiece()) {\n for (Piece pc : hex.getContents(player.getName()).getStack()) {\n if (pc.getName().equals(\"Master Thief\") || pc.getName().equals(\"Assassin Primus\")) { \n ((Performable)pc).specialAbility();\n if (MasterThief.isReturnPiece() || AssassinPrimus.isReturnPiece()) {\n \ttmpPiece = (SpecialCharacter)pc;\n \ttheHex = hex;\n \ttmpPiece.returnToBank(theHex);\n \tbreak;\n }\n }\n }\n }\n player.flipAllDown();\n }\n ClickObserver.getInstance().setPlayerFlag(\"\");\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n DiceGUI.getInstance().setFaceValue(0);\n DiceGUI.getInstance().cover();\n }\n });\n }", "public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\t\r\n\t\t\tnew BukkitRunnable() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(Entity as: Bukkit.getWorld(\"world\").getEntities()) {\r\n\t\t\t\t\t\tif(as instanceof ArmorStand) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tas.remove();\r\n\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\t//TOPS\r\n\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topkills\")) {\r\n\t\t\t\t\t getTop(locTopKILLS,\"Kills\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP KILLS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP KILLS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topcoins\")) {\r\n\t\t\t\t\t getTop(locTopCoins,\"Coins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP COINS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"top1v1\")) {\r\n\t\t\t\t\t getTop(locTop1v1,\"wins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP 1v1 ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP 1v1 NAO PODE SER CARREGADO, POIS A WARP top1v1 NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Caixa misteriosa\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"misteryBox\")) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t Spawn(misteryBox, \"žažlCAIXA MISTERIOSA\",misteryBox.getY()-1.7);\r\n\t\t\t\t\t Spawn(misteryBox, \"žežlEM BREVE!\",misteryBox.getY()-2);\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlMYSTERYBOX ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP misteryBox NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}.runTaskLater(Main.plugin, 20);\r\n\t\t\t\r\n\t\t}", "@Override // com.android.server.wm.WindowContainer\n public void prepareSurfaces() {\n Trace.traceBegin(32, \"prepareSurfaces\");\n try {\n ScreenRotationAnimation screenRotationAnimation = this.mWmService.mAnimator.getScreenRotationAnimationLocked(this.mDisplayId);\n SurfaceControl.Transaction transaction = getPendingTransaction();\n if (this.mIsFisrtLazyMode && this.mSingleHandContentEx != null) {\n this.mSingleHandContentEx.handleSingleHandMode(transaction, this.mWindowingLayer, this.mHwSingleHandOverlayLayer);\n this.mIsFisrtLazyMode = false;\n }\n if (screenRotationAnimation != null && screenRotationAnimation.isAnimating()) {\n screenRotationAnimation.getEnterTransformation().getMatrix().getValues(this.mTmpFloats);\n if (this.mWmService.mHwWMSEx.isNeedLandAni() && this.mDisplayId == 0) {\n resetMatrixValues(this.mTmpFloats);\n }\n float tmpScale = this.mWmService.getLazyMode() != 0 ? 0.75f : 1.0f;\n transaction.setMatrix(this.mWindowingLayer, this.mTmpFloats[0] * tmpScale, this.mTmpFloats[3], this.mTmpFloats[1], this.mTmpFloats[4] * tmpScale);\n if (this.mWmService.getLazyMode() != 0) {\n Point origin = this.mWmService.getOriginPointForLazyMode(0.75f, this.mWmService.getLazyMode());\n transaction.setPosition(this.mWindowingLayer, (float) origin.x, (float) origin.y);\n } else {\n transaction.setPosition(this.mWindowingLayer, this.mTmpFloats[2], this.mTmpFloats[5]);\n }\n transaction.setAlpha(this.mWindowingLayer, screenRotationAnimation.getEnterTransformation().getAlpha());\n if (this.mWmService.mHwWMSEx.isNeedLandAni() && this.mDisplayId == 0) {\n transaction.setAlpha(this.mWindowingLayer, 1.0f);\n this.mWmService.mHwWMSEx.applyLandOpenAnimation();\n }\n }\n for (int i = this.mTaskStackContainers.getChildCount() - 1; i >= 0; i--) {\n TaskStack stack = (TaskStack) this.mTaskStackContainers.getChildAt(i);\n stack.updateSurfacePosition();\n stack.updateSurfaceSize(stack.getPendingTransaction());\n }\n super.prepareSurfaces();\n SurfaceControl.mergeToGlobalTransaction(transaction);\n } finally {\n Trace.traceEnd(32);\n }\n }", "public GameManager() {\n\t\tobjects.add(new Player(4, 4, ComponentManager.getComponent(ComponentManager.ComponentType.AABB), ProjectileManager.ProjectileType.Bullet, ComponentManager.ComponentType.AABB));\n\t\t\n\t\n\t\t\n\t\tobjects.add(new Platform(new AABBComponent()));\n\t\t\n\t\tloadLevel(\"/levelImage2_0.png\");\n\t\t\n\t\t//мусор\n\t\t\n\t\t//p1 = null;\n\t\t\n\t\t\n\t\tPBParticle p1 = null;\n\t\tPBParticle p2 = null;\n\t\t\n\t\tPLink l1 = null;\n\t\t\n\t\tnumOfPart = 48;\n\t\t\n\t\tint colNum = numOfPart / 3;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < numOfPart; i ++)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tp2 = p1; \n\t\t\t\n\t\t\tp1 = new PBParticle( (float)((4 + i % colNum) * TS),(float) ((4 + i / colNum) * TS), (float)(Math.random()*5), (float)(Math.random()*5), 1, new CircleComponent());\n\t\t\t\n\t\t\t\n\t\t\t//связи диагональ левый верхний - правый нижний\n\t\t\t/*if(i / colNum > 0 && i % colNum < colNum - 1)//не первая строка и не последняя чатсица в строке\n\t\t\t{\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum + 1), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsdlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t//связи диагональ правый верхний - левый нижний\n\t\t\t\n\t\t\tif(i / colNum > 0 && i % colNum > 0) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum - 1), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tmdlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//горизонтальные связи\n\t\t\t\n\t\t\t//первая итерация для создания связи не подходит\n\t\t\t\n\t\t\t//также для создания горизонтальной связи не подходит итерация\n\t\t\t//когда p1 на новой строке, а p2 а старой\n\t\t\t\n\t\t\t\n\t\t\tif(p2 != null && (p1.getPosY() - p2.getPosY()) == 0)\n\t\t\t{\n\t\t\t\tl1 = new PLink(p1, p2, 20, this.stiffness);\n\t\t\t\t\n\t\t\t\thlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t//вертикальные связи\n\t\t\t\n\t\t\t//проверить не ноль ли при делении i на количество столбцов\n\t\t\t//если не ноль то я должен выбрать из массива ссылок элемент \n\t\t\t//порядковый номер которого \n\t\t\tif(i / colNum != 0) //не первая строка\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum ), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tvlinks.add(l1);\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\tobjects.add(p1);\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t\t//p1 = new PBParticle( 12 * TS, 1 * TS, 0, 1, 1);\n\t\t//objects.add(p1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tcamera = new Camera(\"player\");\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\n public void run() {\n if (plugin.getGm().getPlayersInGame().size() < plugin.getAm().getMinPlayers()) {\n plugin.getGm().setCheckStart(true);\n plugin.getServer().getOnlinePlayers().forEach(pl -> pl.setLevel(0));\n GameState.state = GameState.LOBBY;\n cancel();\n return;\n }\n \n plugin.getGm().getPlayersInGame().stream().forEach(players -> {\n plugin.getMsg().sendActionBar(players, \"&a&lEl juego empieza en: \" + count);\n });\n\n switch (count){\n case 30:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c30 &7segundos\");\n break;\n case 5:\n GameState.state = GameState.GAME;\n plugin.getGm().getPlayersInGame().forEach(p -> {\n plugin.getAm().teleport(p);\n TntWars.getPlayer(p).setCleanPlayer(GameMode.SURVIVAL);\n });\n break;\n case 4:\n case 3:\n case 2:\n case 1:\n plugin.getMsg().sendBroadcast(\"&7El juego empezará en &c\" + count + \" &7segundos\");\n plugin.getGm().getPlayersInGame().forEach(p -> p.playSound(p.getLocation(), Sound.NOTE_PLING, 1F, 1F));\n break;\n case 0:\n plugin.getGm().setDañoEnCaida(false);\n\n //Iniciar hilo de la fase de esconder (Ja, still nope)\n new GameTask(plugin).runTaskTimer(plugin, 20, 20);\n cancel();\n break;\n }\n --count; \n }", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void missionlist() {\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tSystem.out.println(\" \" + hTemp.getName());\r\n\t\t}\r\n\t}", "public Husdjurshotell(){}", "public MancalaModel() \n\t{\n\t\tplayerApits[] = new Pit[6];//going to switch to contain specific pits\n\t\tplayerBpits[] = new Pit[6];//\"\"\n\t\tcurrent = playerA;\n\t}", "@Override\n public void landedOn(Player player) {}", "public boolean isSinglePlayer() {\n\t\treturn false;\n\t}", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "public void mo21783H() {\n }", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "private void prepare_3_warten_auf_start() {\n if (stopBecause_wartenAufStart() ) {\n this.zeitgeber.stopGame(\"spielzeit des vorbereitenden ist abgelaufen\");\n }\n \n // zeit wieder starten, falls vorbereiten leer ist oder eine zeile mit start in der zukunft hat, falls evnet auf pause ist\n if (jetzt.isUnterbruch() && ! stopBecause_zumVorbereiten()) {\n if (this._3_vorbereitet.isEmpty() || jetzt.getSpielZeit().isBefore(new DateTime(_3_vorbereitet.get(0).getStart()))) {\n this.zeitgeber.startGame(0, \"liste mit vorbereiteten ist wieder leer\");\n }\n }\n }", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public void doInitializationsMulti(JFrame f){\n\t\t\n\t\t//TODO: Hier wird nix gemalt, solange Server und Client aktiv sind -> Zwei parallel Threads? Wie implementieren?\n\t\tf.dispose();\n\t\tchat();\n\n\t\tSystem.out.println(\"Netzwerk-Fenster verstecken\");\n\t\tSystem.out.println(\"doInitializationsMulti ausführen\");\n\t\t\n\t\tup = false;\n\t\tdown = false;\n\t\tleft = false;\n\t\tright = false; //sonst läuft Spieler nach Neustart einfach los\n\t\tattack = false;\n\t\tattack2 = false;\n\t\t\n\t\tlevel = 1;\n\t\troom = 1;\n\t\tlast = System.nanoTime();\n\t\tgameover = 0;\n\t\t\n\t\tactors = new CopyOnWriteArrayList<Sprite>();\n\t\tattacks = new CopyOnWriteArrayList<Object>();\n\t\t\n\t\tlib = SpriteLib.getInstance();\n\t\tsoundlib = new SoundLib();\n\t\tsoundlib.loadSound(\"Hintergrund\", \"sound/Greensleeves.wav\");\n\t\tsoundlib.loadSound(\"Angriff\", \"sound/Angriff.wav\");\n\t\tsoundlib.loadSound(\"Zauber\", \"sound/Zauber.wav\");\n\t\tif(sound_running == true){\n\t\tsoundlib.loopSound(\"Hintergrund\");\n\t\t}\n\t\t\n\t\tif(serverMode){\n\t\t\tplayer = new Player(lib.getSprite(\"resources/pics/player.gif\", 12, 1), 50, 50, 100, this); //player immer eigener Spieler, player 2 der andere\n\t\t\tplayer2 = new Player(lib.getSprite(\"resources/pics/player2.gif\", 12, 1), 650, 50, 100, this);\n\t\t\tplayer2.setRemote(true);\n\t\t\tactors.add(player);\n\t\t\tactors.add(player2);\n\t\t}else{\n\t\t\tplayer = new Player(lib.getSprite(\"resources/pics/player2.gif\", 12, 1), 650, 50, 100, this);\n\t\t\tplayer2 = new Player(lib.getSprite(\"resources/pics/player.gif\", 12, 1), 50, 50, 100, this);\n\t\t\tplayer2.setRemote(true);\n\t\t\tactors.add(player2);\n\t\t\tactors.add(player);\n\t\t}\n\t\tschwerteis = new Item(lib.getSprite(\"resources/pics/IceSword.gif\", 1, 1), 100, 500, 5, 100, this);\n\t\tschwertfeuer = new Item(lib.getSprite(\"resources/pics/FireSword.gif\", 1, 1), 600, 500, 10, 100, this);\n\t\t\n//\t\tItem xp1 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 50, 530, 11, 100, this);\n//\t\tItem xp2 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 100, 530, 11, 100, this);\n//\t\tItem xp3 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 150, 530, 11, 100, this);\n//\t\tItem xp4 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 200, 530, 11, 100, this);\n//\t\tItem xp5 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 250, 530, 11, 100, this);\n//\t\tItem xp6 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 300, 530, 11, 100, this);\n//\t\tItem xp7 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 350, 530, 11, 100, this);\n//\t\tItem xp8 = new Item(lib.getSprite(\"resources/pics/Doughnut.gif\", 1, 1), 400, 530, 11, 100, this);\n\t\t\n\t\tactors.add(schwerteis);\n\t\tactors.add(schwertfeuer);\n//\t\tactors.add(xp1);\n//\t\tactors.add(xp2);\n//\t\tactors.add(xp3);\n//\t\tactors.add(xp4);\n//\t\tactors.add(xp5);\n//\t\tactors.add(xp6);\n//\t\tactors.add(xp7);\n//\t\tactors.add(xp8);\n\t\t\n\t\tmap = new MapDisplay(\"resources/level/MultiTileMap_1_1.txt\", \"resources/pics/tiles_2.gif\", \"resources/pics/shadow.png\", 5, 1, this);\n\t\t\n\t\tframe.add(this);\n\t\tinitSkills();\n\t\tsetStarted(true);\n\t}", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public String gibZustand(){\n String out = anzahl+QwirkleServer.SEP;\n String aktiv = \"\";\n int[] punkte = new int[anzahl];\n String[] spielerSteine = new String[anzahl];\n String spielfeldString = \"\";\n\n //sammle Daten\n int count = 0;\n while (count<anzahl){\n Spieler spieler = this.spielerRing.getContent();\n if (spieler.istAktiv()) aktiv = spieler.gibIndex()+\"\";\n punkte[spieler.gibIndex()] = spieler.gibPunkteStand();\n spielerSteine[spieler.gibIndex()]=spieler.gibSteineString();\n this.spielerRing.next();\n count++;\n }\n\n if (spielEnde) aktiv = \"-1\";\n\n out += beutel.gibAnzahl()+QwirkleServer.SEP;\n out += aktiv;\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+punkte[i];\n\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+spielerSteine[i];\n\n\n spielfeld.toFirst();\n while(spielfeld.hasAccess()) {\n Stein stein = spielfeld.getContent();\n out += QwirkleServer.SEP + stein.toString();\n spielfeld.next();\n }\n\n return out;\n }", "private UsineJoueur() {}", "public void procesarTramaEasyFuel(){\n switch (bufferRecepcion[4]){\n //TRAMA DE CONFIGURACION\n case 0x06:\n if(bufferRecepcion[5] == 0x01 || bufferRecepcion[5] == 0x02){\n //TRAMA DE CONFIGURACION\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(bufferRecepcion,bufferRecepcion.length)));\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //Log.v(\"TRAMA EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACEmbedded,tramaMACEmbedded.length)));\n //Log.v(\"PING HOST EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaPingHost,tramaPingHost.length)));\n //Log.v(\"NÚMERO DE BOMBAS\", \"\" + byteArrayToHexInt(numeroBombas,1));\n\n llenarDatosConfiguracion();\n insertarMaestrosSQLite();\n agregarImagenEstaciones();\n //inicializarMangueras();\n clientTCPThread.write(EmbeddedPtcl.b_ext_configuracion); //0x06\n\n //inicializarMangueras();\n /*try {\n Thread.sleep(3000);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }*/\n\n //cambiarEstadoIniciaAbastecimiento(1);\n\n }\n break;\n\n //CAMBIO DE ESTADO\n case 0x01:\n int indiceLayoutHose=0;\n //Capturar idBomba\n int[] arrayIdBomba = new int[1];\n int idBomba = 0;\n arrayIdBomba[0] = bufferRecepcion[7];\n idBomba = Integer.parseInt(byteArrayToHexIntGeneral(arrayIdBomba,1));\n\n for(int i=0;i<hoseEntities.size();i++ ){\n if(hoseEntities.get(i).idBomba==idBomba) {\n indiceLayoutHose = i;\n break;\n }\n }\n\n switch (bufferRecepcion[5]){\n case 0x01:\n //Cambio de estado\n if(hoseEntities.size() > 0){\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x02:\n //Estado actual de Mangueras\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n case 0x03:\n //Cambio de Pulsos\n switch (bufferRecepcion[9]){\n case 0x01:\n // FLUJO\n if(hoseEntities.size() > 0){\n cambiarPulsos(indiceLayoutHose);\n }\n break;\n case 0x02:\n // INICIO NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoSinFlujo(indiceLayoutHose);\n }\n break;\n case 0x03:\n // NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoCierreHook(indiceLayoutHose);\n }\n break;\n }\n break;\n case 0x04:\n //Vehiculo Leido\n if(hoseEntities.size() > 0){\n cambiarPlaca(indiceLayoutHose);\n }\n\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x07:\n //Ultima transaccion\n\n if(hoseEntities.size() > 0){\n\n /*for(int j = 0; j< hoseEntities.size(); j++){\n if(hoseEntities.get(j).idBomba == idBomba){\n //llenarDatosTransaccion(hoseEntities.get(j));\n break;\n }\n }*/\n\n llenarDatosTransaccion(hoseEntities.get(indiceLayoutHose),indiceLayoutHose);\n\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n }\n break;\n\n case 0x07:\n switch(bufferRecepcion[5]){\n case 0x01:\n break;\n }\n break;\n }\n changeFragment=true;\n }", "public void spustPosluchace() {\n newGameButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent arg0) {\n\n // posli komunikaci at zalozi hru\n if (zalozenaHra == false) {\n gameConnectButton.setEnabled(false);\n newGameButton.setText(\"Zrus zalozeni\");\n zalozenaHra = true;\n komunikace.CreateGame();\n } else {\n gameConnectButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n zalozenaHra = false;\n komunikace.cancelGame();\n }\n\n }\n });\n\n gameConnectButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n int polozka = listHer.getSelectedIndex();\n if (polozka >= 0) {\n newGameButton.setEnabled(false);\n gameConnectButton.setEnabled(false);\n komunikace.connectToGame(polozka);\n }\n\n }\n });\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n komunikace.disconnect(\"f\");\n zalogujSkonci();\n }\n });\n\n }", "private void offer() {\n\t\t\t\n\t\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "@Override\n\tpublic void moverse() {\n\t\t\n\t}", "public Mazewar(String namingServerHost, int namingServerPort, int selfPort) throws IOException {\n super(\"ECE419 Mazewar\");\n consolePrintLn(\"ECE419 Mazewar started!\");\n\n /*\n * instantiate all of the needed structures\n * */\n this.namingServerHost = namingServerHost;\n this.namingServerPort = namingServerPort;\n this.selfPort = selfPort;\n this.waitToResendQueue = new Hashtable<Integer, SenderPacketInfo>();\n this.serverSocket = new MServerSocket(selfPort);\n this.receivedQueue = new PriorityBlockingQueue<PacketInfo>(100, new PacketINFOComparator());\n this.displayQueue = new LinkedBlockingQueue<MPacket>(50);\n this.incomingQueue = new LinkedBlockingQueue<MPacket>(100);\n this.actionHoldingCount = new AtomicInteger(0);\n this.localPlayers = new LinkedList<String>();\n this.numberOfPlayers = new AtomicInteger(1);\n this.curTimeStamp = new AtomicInteger(0);\n this.sequenceNumber = new AtomicInteger(0);\n this.neighbours = new Hashtable<String, IpLocation>();\n this.socketsForBroadcast = new Hashtable<String, MSocket>();\n this.confirmationQueue = new LinkedBlockingQueue<MPacket>();\n this.timeout = new Hashtable<String, Long>();\n this.DeriRTT = new AtomicInteger(5);\n this.avoidRepeatenceHelper = new AvoidRepeatence();\n //Initialize queue of events\n this.eventQueue = new LinkedBlockingQueue<MPacket>();\n //Initialize hash table of clients to client name\n this.clientTable = new Hashtable<String, Client>();\n this.startRender = new AtomicBoolean(false);\n // Create the maze\n maze = new MazeImpl(new Point(mazeWidth, mazeHeight), mazeSeed);\n assert (maze != null);\n\n // Have the ScoreTableModel listen to the maze to find\n // out how to adjust scores.\n ScoreTableModel scoreModel = new ScoreTableModel();\n assert (scoreModel != null);\n maze.addMazeListener(scoreModel);\n\n // Throw up a dialog to get the GUIClient name.\n String name = JOptionPane.showInputDialog(\"Enter your name\");\n if ((name == null) || (name.length() == 0)) {\n Mazewar.quit();\n }\n //set the name\n playerName = name;\n\n\n //old code\n // mSocket = new MSocket(serverHost, serverPort);\n //Send hello packet to server\n //register the player to the server\n /*MPacket hello = new MPacket(name, MPacket.HELLO, MPacket.HELLO_INIT);\n hello.mazeWidth = mazeWidth;\n hello.mazeHeight = mazeHeight;\n\n if (Debug.debug) System.out.println(\"Sending hello\");\n mSocket.writeObject(hello);\n if (Debug.debug) System.out.println(\"hello sent\");\n \n\t\t//Receive response from server\n MPacket resp = (MPacket) mSocket.readObject();\n if (Debug.debug) System.out.println(\"Received response from server\");\n */\n\n\n // Use braces to force constructors not to be called at the beginning of the\n // constructor.\n /*\n {\n maze.addClient(new RobotClient(\"Norby\"));\n //localPlayer.add(\"Norby\")\n maze.addClient(new RobotClient(\"Robbie\"));\n maze.addClient(new RobotClient(\"Clango\"));\n maze.addClient(new RobotClient(\"Marvin\"));\n }\n */\n\n\n //start naming server\n new ServerSocketHandleThread(serverSocket, this, incomingQueue).start(); //has to start this before naming server\n /* register the naming server*/\n\n IpPacket ipPacket = null;\n try {\n Random randomGen = new Random(Mazewar.mazeSeed);\n Point point = new Point(randomGen.nextInt(Mazewar.mazeWidth), randomGen.nextInt(Mazewar.mazeHeight));\n Player player = new Player(playerName, point, Player.North);\n Socket toNamingServerSocket = new Socket(namingServerHost, namingServerPort);\n ipPacket = new IpPacket(playerName, InetAddress.getLocalHost().getHostAddress(), selfPort, player);\n toNamingServer = new ObjectOutputStream(toNamingServerSocket.getOutputStream());\n fromNamingServer = new ObjectInputStream(toNamingServerSocket.getInputStream());\n toNamingServer.writeObject(ipPacket);\n new NamingServerListenerThread(toNamingServerSocket, this).start();\n } catch (UnknownHostException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //wait till naming server get the guiclient then start the display\n while (!startRender.get()) {\n\n }\n\n // Create the panel that will display the maze.\n overheadPanel = new OverheadMazePanel(maze, guiClient);\n assert (overheadPanel != null);\n maze.addMazeListener(overheadPanel);\n\n // Don't allow editing the console from the GUI\n console.setEditable(false);\n console.setFocusable(false);\n console.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder()));\n\n // Allow the console to scroll by putting it in a scrollpane\n JScrollPane consoleScrollPane = new JScrollPane(console);\n assert (consoleScrollPane != null);\n consoleScrollPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Console\"));\n\n // Create the score table\n scoreTable = new JTable(scoreModel);\n assert (scoreTable != null);\n scoreTable.setFocusable(false);\n scoreTable.setRowSelectionAllowed(false);\n\n // Allow the score table to scroll too.\n JScrollPane scoreScrollPane = new JScrollPane(scoreTable);\n assert (scoreScrollPane != null);\n scoreScrollPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Scores\"));\n\n // Create the layout manager\n GridBagLayout layout = new GridBagLayout();\n GridBagConstraints c = new GridBagConstraints();\n getContentPane().setLayout(layout);\n\n // Define the constraints on the components.\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1.0;\n c.weighty = 3.0;\n c.gridwidth = GridBagConstraints.REMAINDER;\n layout.setConstraints(overheadPanel, c);\n c.gridwidth = GridBagConstraints.RELATIVE;\n c.weightx = 2.0;\n c.weighty = 1.0;\n layout.setConstraints(consoleScrollPane, c);\n c.gridwidth = GridBagConstraints.REMAINDER;\n c.weightx = 1.0;\n layout.setConstraints(scoreScrollPane, c);\n\n // Add the components\n getContentPane().add(overheadPanel);\n getContentPane().add(consoleScrollPane);\n getContentPane().add(scoreScrollPane);\n\n // Pack everything neatly.\n pack();\n\n // Let the magic begin.\n setVisible(true);\n overheadPanel.repaint();\n this.requestFocusInWindow();\n }", "protected void renderModel(EntityEnderPig p_77036_1_, float p_77036_2_, float p_77036_3_, float p_77036_4_, float p_77036_5_, float p_77036_6_, float p_77036_7_)\n {\n \tif (p_77036_1_.getSaddled()) {\n \t\tthis.bindTexture(saddledPigTextures);\n \t\tGL11.glPushMatrix();\n \t\tGL11.glScaled(1.1, 1.1, 1.1);\n \t\tGL11.glTranslated(0, -0.08, 0);\n \t\tthis.mainModel.render(p_77036_1_, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);\n \t\tGL11.glPopMatrix();\n \t}\n \t\n this.bindEntityTexture(p_77036_1_);\n this.mainModel.render(p_77036_1_, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);\n\n if (p_77036_1_.hurtTime > 0)\n {\n GL11.glDepthFunc(GL11.GL_EQUAL);\n GL11.glDisable(GL11.GL_TEXTURE_2D);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n GL11.glColor4f(1.0F, 0.0F, 0.0F, 0.5F);\n this.mainModel.render(p_77036_1_, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);\n GL11.glEnable(GL11.GL_TEXTURE_2D);\n GL11.glDisable(GL11.GL_BLEND);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n }\n }", "public void displayMech(Entity en) {\n // Look out for a race condition.\n if (en == null) {\n return;\n }\n DisplayMapSet ams = mech;\n removeAll();\n if (en instanceof QuadMech) {\n ams = quad;\n minLeftMargin = minMechLeftMargin;\n minTopMargin = minMechTopMargin;\n minBottomMargin = minMechBottomMargin;\n minRightMargin = minMechRightMargin;\n } else if (en instanceof TripodMech) {\n ams = tripod;\n minLeftMargin = minMechLeftMargin;\n minTopMargin = minMechTopMargin;\n minBottomMargin = minMechBottomMargin;\n minRightMargin = minMechRightMargin;\n } else if (en instanceof ArmlessMech) {\n ams = armless;\n minLeftMargin = minMechLeftMargin;\n minTopMargin = minMechTopMargin;\n minBottomMargin = minMechBottomMargin;\n minRightMargin = minMechRightMargin;\n } else if (en instanceof Mech) {\n ams = mech;\n minLeftMargin = minMechLeftMargin;\n minTopMargin = minMechTopMargin;\n minBottomMargin = minMechBottomMargin;\n minRightMargin = minMechRightMargin;\n } else if (en instanceof GunEmplacement) {\n ams = gunEmplacement;\n minLeftMargin = minTankLeftMargin;\n minTopMargin = minTankTopMargin;\n minBottomMargin = minTankTopMargin;\n minRightMargin = minTankLeftMargin;\n } else if (en instanceof VTOL) {\n ams = vtol;\n minLeftMargin = minVTOLLeftMargin;\n minTopMargin = minVTOLTopMargin;\n minBottomMargin = minVTOLTopMargin;\n minRightMargin = minVTOLLeftMargin;\n } else if (en instanceof LargeSupportTank) {\n ams = largeSupportTank;\n minLeftMargin = minTankLeftMargin;\n minTopMargin = minTankTopMargin;\n minBottomMargin = minTankTopMargin;\n minRightMargin = minTankLeftMargin;\n } else if (en instanceof SuperHeavyTank) {\n ams = superHeavyTank;\n minLeftMargin = minTankLeftMargin;\n minTopMargin = minTankTopMargin;\n minBottomMargin = minTankTopMargin;\n minRightMargin = minTankLeftMargin;\n } else if (en instanceof Tank) {\n ams = tank;\n minLeftMargin = minTankLeftMargin;\n minTopMargin = minTankTopMargin;\n minBottomMargin = minTankTopMargin;\n minRightMargin = minTankLeftMargin;\n } else if (en instanceof BattleArmor) {\n ams = battleArmor;\n minLeftMargin = minInfLeftMargin;\n minTopMargin = minInfTopMargin;\n minBottomMargin = minInfTopMargin;\n minRightMargin = minInfLeftMargin;\n } else if (en instanceof Infantry) {\n ams = infantry;\n minLeftMargin = minInfLeftMargin;\n minTopMargin = minInfTopMargin;\n minBottomMargin = minInfTopMargin;\n minRightMargin = minInfLeftMargin;\n } else if (en instanceof Protomech) {\n ams = proto;\n minLeftMargin = minTankLeftMargin;\n minTopMargin = minTankTopMargin;\n minBottomMargin = minTankTopMargin;\n minRightMargin = minTankLeftMargin;\n } else if (en instanceof Warship) {\n ams = warship;\n minLeftMargin = minAeroLeftMargin;\n minTopMargin = minAeroTopMargin;\n minBottomMargin = minAeroTopMargin;\n minRightMargin = minAeroLeftMargin;\n } else if (en instanceof Jumpship) {\n ams = jump;\n minLeftMargin = minAeroLeftMargin;\n minTopMargin = minAeroTopMargin;\n minBottomMargin = minAeroTopMargin;\n minRightMargin = minAeroLeftMargin;\n } else if (en instanceof FighterSquadron) {\n ams = squad;\n minLeftMargin = minAeroLeftMargin;\n minTopMargin = minAeroTopMargin;\n minBottomMargin = minAeroTopMargin;\n minRightMargin = minAeroLeftMargin;\n } else if (en instanceof Aero) {\n ams = aero;\n if (en instanceof SmallCraft) {\n SmallCraft sc = (SmallCraft) en;\n if (sc.isSpheroid()) {\n ams = sphere;\n }\n }\n if (en.isCapitalFighter()) {\n ams = capFighter;\n }\n minLeftMargin = minAeroLeftMargin;\n minTopMargin = minAeroTopMargin;\n minBottomMargin = minAeroTopMargin;\n minRightMargin = minAeroLeftMargin;\n }\n if (ams == null) {\n System.err.println(\"The armor panel is null.\"); //$NON-NLS-1$\n return;\n }\n ams.setEntity(en);\n addElement(ams.getContentGroup());\n Enumeration<BackGroundDrawer> iter = ams.getBackgroundDrawers()\n .elements();\n while (iter.hasMoreElements()) {\n addBgDrawer(iter.nextElement());\n }\n onResize();\n update();\n }", "public void run()\r\n/* 29: */ {\r\n/* 30:26 */ for (Player p :HG.plugin.getServer().getOnlinePlayers()) {\r\n/* 31:28 */ if (p.getInventory().contains(Material.COMPASS))\r\n/* 32: */ {\r\n/* 33:29 */ PlayerData pd = (PlayerData)this.plugin.players.get(p.getName());\r\n/* 34:31 */ if (pd != null)\r\n/* 35: */ {\r\n/* 36:33 */ String[] st = getNearestPlayer(p, pd);\r\n/* 37:34 */ String info = \"\" + ChatColor.WHITE + ChatColor.BOLD + \"Nearest Player: \" + ChatColor.RED + st[0] + \" \" + ChatColor.WHITE + ChatColor.BOLD + \"Distance: \" + ChatColor.RED + st[1];\r\n/* 38:36 */ for (ItemStack it : p.getInventory()) {\r\n/* 39:37 */ if ((it != null) && (it.getType() == Material.COMPASS))\r\n/* 40: */ {\r\n/* 41:38 */ ItemMeta im = it.getItemMeta();\r\n/* 42:39 */ im.setDisplayName(info);\r\n/* 43:40 */ it.setItemMeta(im);\r\n/* 44: */ }\r\n/* 45: */ }\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: */ }", "public interface ServerStrategie {\n\t/**\n\t * Sendet dem Client das Signal, dass der Name OK ist.\n\t */\n\tpublic void sendeHello();\n\t\n\t/**\n\t * Sendet dem Client das Signal, dass der Name bereits belegt ist.\n\t */\n\tpublic void sendeFehlerHelo();\n\t\n\t/**\n\t * Sendet dem Client das Signal, dass ein neuer Spieler die Lobby betreten hat.\n\t * \n\t * @param spieler Der Name des neuen Spielers.\n\t */\n\tpublic void sendeNeuerSpieler(String spieler);\n\t\n\t/**\n\t * Sendet dem Client das Signal, dass ein Spieler die Lobby verlassen hat.\n\t * \n\t * @param spieler Der Name des Spielers, der die Lobby verlassen hat.\n\t */\n\tpublic void sendeSpielerWeg(String spieler);\n\t\n\t/**\n\t * Sendet dem Client die Lobby.\n\t */\n\tpublic void sendeLobby();\n\t\n\t/**\n\t * Sendet dem Client das Signal zum Starten des Spiels.\n\t */\n\tpublic void sendeSpielStarten();\n\t\n\t/**\n\t * Sendet dem Client das Spielfeld.\n\t */\n\tpublic void sendeSpielfeld();\n\t\n\t/**\n\t * Sendet dem Client den Namen des Spielers, der am Zug ist.\n\t * \n\t * @param spieler Der Spieler, der am Zug ist.\n\t */\n\tpublic void sendeRate(String spieler);\n\t\n\t/**\n\t * Sendet dem Client einen Zug, den ein Spieler gemacht hat.\n\t * \n\t * @param zug Die Position der Karte, die aufgedeckt wurde (als String)\n\t */\n\tpublic void sendeZug(String zug);\n\t\n\t/**\n\t * Sendet dem Client das Signal, dass das Spiel zuende ist.\n\t */\n\tpublic void sendeBeenden();\n\t\n\t/**\n\t * Setzt den Namen des Spielers, den diese Verbindung repräsentiert.\n\t * \n\t * @param name Der Name, der gesetzt werden soll.\n\t */\n\tpublic void setName(String name);\n\t\n\t/**\n\t * Trennt die Verbindung zum Client.\n\t */\n\tpublic void trenneVerbindung();\n\t\n\t/**\n\t * Die String-Repräsentation einer Verbindung ist der Name des Spielers, den sie repräsentiert.\n\t * \n\t * @return Der Name des Spielers.\n\t */\n\tpublic String toString();\n}", "public void stoperJeux() {\n\t\t\n\t\tliaison.stopper();\n\t}", "public void gameOver() {\r\n grid.exposeMines();\r\n this.displayGrid();\r\n System.out.println(\"Better luck next time!\");\r\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n addToBot(new GainBlockAction(p,block));\n if (AbstractDungeon.player.hand.contains(this)){\n if (AbstractDungeon.player.hand.group.indexOf(this)-1 >= 0){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)-1),AbstractDungeon.player.hand));\n }\n if (AbstractDungeon.player.hand.group.indexOf(this)+1 <= AbstractDungeon.player.hand.group.size()-1){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)+1),AbstractDungeon.player.hand));\n }\n }\n }", "private static Player getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? null : Remain.getOnlinePlayers().iterator().next();\n\t}", "public void startOrder() {\n\t\tDeck tempDeck = new Deck();\n\t\tArrayList<Player> highPlayerList = new ArrayList<Player>();\n\t\tStrategy3 testPlayer = new Strategy3();\n\t\tint temp = 0;\n\t\tfor (Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t\tp.hand.add(tempDeck.dealTile());\n\t\t}\n\t\t\n\t\twhile (playerList.isEmpty() == false) {\t\n\t\t\tPlayer min = playerList.get(0);\n\t\t\tfor(Player i : playerList) {\n\t\t\t\tif (i.getHandValue() > min.getHandValue()) {min = i;}\n\t\t\t}\n\t\t\thighPlayerList.add(min);\n\t\t\tplayerList.remove(min);\n\t\t}\n\t\tthis.playerList = highPlayerList;\t\n\t\ttemp = 0; \n\t\tfor(Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t}\n\t\t\n\t\tfor (Player p : playerList) {\n\t\t\tp.hand.clear();\n\t\t}\t\t\n\t}", "public boolean mo253b() {\n return true;\n }", "public void lancerJeu () {\n switch (choixModeJeu) {\n case \"C\":\n Jeu jeuJoueC = new JeuChallenger(modeDev, choixJeu, nbdeCouleur, nbessaiPossible, longueurduSecret);\n jeuJoueC.unJeu();\n break;\n case \"U\":\n Jeu jeuJoueU = new JeuDuel(modeDev, choixJeu, nbdeCouleur, nbessaiPossible, longueurduSecret);\n jeuJoueU.unJeu();\n break;\n case \"D\":\n Jeu jeuJoueD = new JeuDefenseur(modeDev, choixJeu, nbdeCouleur, nbessaiPossible, longueurduSecret);\n jeuJoueD.unJeu();\n break;\n default:\n LOG.error(\"Cas du choix du mode de jeu non géré\");\n break;\n }\n }", "public void setPlayer(Player p){\r\n playerModel=p; \r\n jEnemigoDatos.setText(p.getEnemy().getName());\r\n /*if(p.getBadConsequence()==null)\r\n jMalRolloDatos.setText(\"No\");\r\n else\r\n jMalRolloDatos.setText(\"Si\");*/\r\n if(p.isDead())\r\n jMuertoDatos.setText(\"Si\");\r\n else\r\n jMuertoDatos.setText(\"No\");\r\n \r\n jNivelDatos.setText(p.getLevels()+\"\");\r\n jCombatLevelDatos.setText(p.getCombatLevel()+\"\");\r\n jNombreDatos.setText(p.getName());\r\n if(p.canISteal())\r\n jRobarDatos.setText(\"Si\");\r\n else\r\n jRobarDatos.setText(\"No\");\r\n \r\n jNSectDatos.setText(Integer.toString(CultistPlayer.getTotalCultistPlayer()));\r\n \r\n if(playerModel.getClass() == CultistPlayer.class){\r\n jSectarioDatos.setText(\"Si\");\r\n //String text=(CultistPlayer)playerModel.getMyCultist().getGainedLevels()+\"\";\r\n //jSectarioDatos.setText(\"\"+(CultistPlayer)playerModel.getGainedLevels());\r\n \r\n }else\r\n jSectarioDatos.setText(\"No\");\r\n \r\n /*if(playerModel.getBadConsequence().isEmpty())\r\n pendingBadView1.setVisiblePending(false);\r\n else*/\r\n pendingBadView1.setVisiblePending(true);\r\n pendingBadView1.limpiar();\r\n \r\n // A continuación se actualizan sus tesoros \r\n fillTreasurePanel (jpVisibles, playerModel.getVisibleTreasures()); \r\n fillTreasurePanel (jpOcultos, playerModel.getHiddenTreasures()); \r\n btRobar.setEnabled(playerModel.canISteal());\r\n manejarBotones(true);\r\n repaint(); \r\n revalidate();\r\n }", "@Override\n\tpublic Object getModInstance() {\n\t\treturn null;\n\t}", "@Override\n public String getModu() {\n return null;\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void livingTick() {\n super.livingTick();\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public java.lang.String getMu_zhh() {\r\n return localMu_zhh;\r\n }", "public java.lang.String getMu_zhh() {\r\n return localMu_zhh;\r\n }", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "public void defender(){setModopelea(1);}", "private static PluginMessageRecipient getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? Bukkit.getServer() : Remain.getOnlinePlayers().iterator().next();\n\t}", "public final void mo75312aj() {\n super.mo75312aj();\n if (this.f77593aS != null && this.f77546j != null && C25352e.m83221d(this.f77546j)) {\n C24961b e = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play_break\").mo65283e(\"video\");\n C43222g gVar = this.f77593aS;\n C7573i.m23582a((Object) gVar, \"mPlayer\");\n C24961b a = e.mo65255a(gVar.mo104915n());\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n a.mo65271b((long) video.getVideoLength()).mo65270a(mo75261ab());\n }\n }", "public Spielflaeche getSpielflaeche() {return spielflaeche;}", "@Override\n public void showMessage() {\n MessageHandler.getInstance()\n .writeMessage(\"This Base is different! \\n Behold!\");\n Player p = ((RomInntrenger) GameApplication.getInstance()).getClosestPlayer(transform.getGlobalPosition());\n p.getCurrentWeapon().setWeaponBase(cli);\n collider.destroy();\n destroy();\n\n }", "public Raum2 (Player spieler){\n\t\t\n\t\tlabel = new Label();\n\t\tlabel.setBounds(0, 0, 600, 600);\n\t\tThread th = new Thread(label);\n\t\tth.start();\n\t\tPlayer.update(hoch,runter,links,rechts);\n\t\tadd(label);\n\t\taddKeyListener(label);\n\t\tthis.spieler=spieler;\n\t\tspieler.lv2walls();\n\t\t\n\t\t\n\t\t\t\n\t\t}", "private ServerModel() {\n this.users = new HashMap<>();\n this.authTokens = new HashMap<>();\n this.gameListClients = new HashSet<>();\n this.waitingGames = null;\n this.activeGames = new HashMap<>();\n this.sessionCommandQueue = new HashMap<>();\n this.persistenceFacade = new PersistenceFacade();\n addComputerPlayer();\n\n /* Timer timer = new Timer();\n int HOUR = 3600000; //3,600,000 milliseconds in one hour\n timer.schedule(new ExpireAuthsTask(), 0, HOUR); */\n }", "private void add(Himmelskoerper himmelskoerper, Modul m) {\r\n\t\tthis.ladung.put(himmelskoerper, m);\r\n\t\tthis.aktuelleLast += m.getGewicht();\r\n\r\n\t\tif (this.schwerstesModul == null || this.schwerstesModul.getGewicht() < m.getGewicht()) {\r\n\t\t\tthis.schwerstesModul = m;\r\n\t\t}\r\n\t}" ]
[ "0.5717297", "0.5656282", "0.55852854", "0.5576322", "0.55070525", "0.5473798", "0.5444115", "0.5395511", "0.5381222", "0.52991176", "0.5292726", "0.5256886", "0.52548796", "0.5232274", "0.52126986", "0.5211534", "0.52067214", "0.5203141", "0.5194352", "0.51849943", "0.51748854", "0.5170243", "0.5166099", "0.51486117", "0.5142347", "0.5133182", "0.5131304", "0.512824", "0.51229614", "0.5107259", "0.5100057", "0.5098897", "0.5092047", "0.5088899", "0.50882083", "0.50869495", "0.5083947", "0.5071015", "0.50679684", "0.50460577", "0.5045488", "0.5042919", "0.5040098", "0.50370973", "0.5036033", "0.50350267", "0.50342315", "0.5021295", "0.5019781", "0.501834", "0.5015834", "0.5013958", "0.50070035", "0.49898037", "0.49862242", "0.49750978", "0.49722427", "0.49653262", "0.49640834", "0.49631268", "0.4961521", "0.49495786", "0.4948725", "0.4948181", "0.49461263", "0.4945548", "0.4945467", "0.49392223", "0.49388552", "0.49334022", "0.49288955", "0.49266213", "0.49265048", "0.49256986", "0.492367", "0.49219245", "0.49213594", "0.49208724", "0.4910789", "0.49105576", "0.49092013", "0.49057975", "0.49046108", "0.49042597", "0.49042597", "0.49042597", "0.49042597", "0.49042597", "0.49042597", "0.49042597", "0.49031618", "0.49031618", "0.49029666", "0.48982862", "0.48981532", "0.48929793", "0.48909107", "0.48898163", "0.4888831", "0.48881704", "0.48880622" ]
0.0
-1
Ruft den Shop auf, indem Spielobjekte (Manatrank, Leben) gekauft werden koennen.
public void shop(){ up = false; down = false; left = false; right = false; shopmode = true; shop2.setLocation(500,300); shop2.setSize(800, 600); shop2.pack(); shop2.setVisible(true); JButton b1 = new JButton("1 Manatrank für 10 Münzen"); b1.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0){ //bzgl. Starten if(player.getCoins() >= 10){ player.setMana(player.getMana()+1); player.setCoins(player.getCoins()-10); }else{ System.out.println("Du hast nicht genug Münzen!"); } shopmode = false; enterShop = false; } }); JButton b2 = new JButton("1 Leben für 50 Münzen"); b2.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ //bzgl. Schließen if(player.getCoins() >= 50){ player.setLifes(player.getLifes()+1); player.setCoins(player.getCoins()-50); }else{ System.out.println("Du hast nicht genug Münzen!"); } shopmode = false; enterShop = false; } }); JButton b3 = new JButton("Ich will nix - danke"); b3.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ shopmode = false; enterShop = false; } }); shop2.add(BorderLayout.NORTH, b1); shop2.add(BorderLayout.CENTER, b2); shop2.add(BorderLayout.SOUTH, b3); shop2.pack(); shop2.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setShop(Shop s)\n\t{\n\t\tm_currentShop = s;\n\t}", "public void initShop(){\n addCountToStorage(actionProduct.findProductByName(\"Jemeson\"), 3);\n addCountToStorage(actionProduct.findProductByName(\"Red Label\"), 5);\n addCountToStorage(actionProduct.findProductByName(\"Burenka\"), 10);\n addCountToStorage(actionProduct.findProductByName(\"Kupyanskoe\"), 21);\n\n //add transaction\n int idxCustomer = actionCustomer.findCustomerByName(\"Perto\");\n int idxProduct = actionProduct.findProductByName(\"Burenka\");\n\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"white bread\");\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxCustomer = actionCustomer.findCustomerByName(\"Dmytro\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"burenka\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n\n }", "@Override\n public void setLocationOfShop() {\n\n }", "private List<ItemMovement> uitGraven(Slot slot, Gantry gantry){\n\n List<ItemMovement> itemMovements = new ArrayList<>();\n Richting richting = Richting.NaarVoor;\n\n //Recursief naar boven gaan, doordat we namelijk eerste de gevulde parents van een bepaald slot moeten uithalen\n if(slot.getParent() != null && slot.getParent().getItem() != null){\n itemMovements.addAll(uitGraven(slot.getParent(), gantry));\n }\n\n //Slot in een zo dicht mogelijke rij zoeken\n boolean newSlotFound = false;\n Slot newSlot = null;\n int offset = 1;\n do { //TODO: als storage vol zit en NaarVoor en NaarAchter vinden geen vrije plaats => inf loop\n // bij het NaarAchter lopen uw index telkens het negatieve deel nemen, dus deze wordt telkens groter negatief.\n //AANPASSING\n Integer locatie = richting==Richting.NaarVoor? (slot.getCenterY() / 10) + offset : (slot.getCenterY() / 10) - offset;\n //we overlopen eerst alle richtingen NaarVoor wanneer deze op zen einde komt en er geen plaats meer is van richting veranderen naar achter\n // index terug op 1 zetten omdat de indexen ervoor al gecontroleerd waren\n if (grondSlots.get(locatie) == null) {\n //Grootte resetten en richting omdraaien\n offset = 1;\n richting = Richting.NaarAchter;\n continue;\n }\n\n Set<Slot> ondersteRij = new HashSet<>(grondSlots.get(locatie).values());\n newSlot = GeneralMeasures.zoekLeegSlot(ondersteRij);\n\n if(newSlot != null){\n newSlotFound = true;\n }\n //telkens één slot verder gaan\n offset += 1;\n }while(!newSlotFound);\n // vanaf er een nieuw vrij slot gevonden is deze functie verlaten\n\n //verplaatsen\n itemMovements.addAll(GeneralMeasures.createMoves(pickupPlaceDuration,gantry, slot, newSlot));\n update(Operatie.VerplaatsIntern, newSlot, slot);\n\n return itemMovements;\n }", "public Shop(Shop s)\n {\n super(s);\n this.id = s.id;\n this.stock = new AllItems(s.stock);\n this.bills = new ArrayList<>(s.bills);\n }", "public void setShopNm(String shopNm) {\n this.shopNm = shopNm;\n }", "public Shop(String uname, String pass)\n {\n super(uname, pass);\n stock = new AllItems();\n bills = new ArrayList<>();\n id = Utilities.SHOP_CTR;\n Utilities.SHOP_CTR++;\n }", "public void goShopping() {\n shop1.theShop();\n\n }", "public void setShopName(String shopName) {\n\t\tthis.shopName = shopName;\n\t}", "private void goToShop() {\n shopMenu.runMenu();\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "public Shop getShop()\n\t{\n\t\treturn m_currentShop;\n\t}", "public void stworzWrogow() {\n\t\tfor(; aktualnaLiczbaWrogow < MAX_LICZBA_WROGOW; aktualnaLiczbaWrogow++) {\n\t\t\tdouble x = (generatorWspolrzednych.nextInt(550)) + 20 ;\n\t\t\tdouble y = ((generatorWspolrzednych.nextInt(750)) + 20);\n\t\t\tx = x < 0 ? -x : x; \n\t\t\ty = y < 0 ? y : -y;\n\t\t\tStatekWroga statekWroga = new StatekWroga(new Wspolrzedne(x, y));\n\t\t\t\n\t\t\tstatekWroga.setDol(DLUGOSC_RUCHU);\n\t\t\t\n\t\t\tstatkiWroga.add(statekWroga);\n\t\t}\n\t}", "public String getShopNm() {\n return shopNm;\n }", "@Override\n\tpublic String addShop(Food f, int fsnu) {\n\t\treturn ob.addShop(f, fsnu);\n\t}", "@Override\r\n\tpublic void modifyShop(Shop shop) {\n\t\tSystem.out.println(\"-------ShopDaoImp.modifyShop-----------\"\r\n\t\t\t\t+ shop.getName());\r\n\t\tgetSession().update(shop);\r\n\t}", "public static void llenarWalmart(){\r\n \r\n \r\n Producto café = new Producto(\"cafe\", \"nescafe\", 77, 2);\r\n Nodo<Producto> nTemp = new Nodo(café);\r\n listaWalmart.agregarNodo(nTemp);\r\n \r\n Producto panblancobimbo = new Producto(\"pan blanco bimbo\", \"bimbo\", 30, 2);\r\n Nodo<Producto> nTemp2 = new Nodo(panblancobimbo);\r\n listaWalmart.agregarNodo(nTemp2);\r\n \r\n Producto lecheentera = new Producto(\"leche\", \"Lala\", 17, 2);\r\n Nodo<Producto> nTemp3 = new Nodo(lecheentera);\r\n listaWalmart.agregarNodo(nTemp3);\r\n \r\n Producto mantequilla = new Producto(\"mantequilla\", \"sin sal lala\", 11.50, 2);\r\n Nodo<Producto> nTemp4 = new Nodo(mantequilla);\r\n listaWalmart.agregarNodo(nTemp4);\r\n \r\n Producto huevoblanco= new Producto(\"huevo\", \"san juan\",50.50, 2);\r\n Nodo<Producto> nTemp5 = new Nodo(huevoblanco);\r\n listaWalmart.agregarNodo(nTemp5);\r\n \r\n Producto crema= new Producto(\"crema\", \"lala\", 46, 2);\r\n Nodo<Producto> nTemp6 = new Nodo(crema);\r\n listaWalmart.agregarNodo(nTemp6);\r\n \r\n Producto naranja= new Producto(\"naranja\", \"valencia\", 15.90, 0);\r\n Nodo<Producto> nTemp7 = new Nodo(naranja);\r\n listaWalmart.agregarNodo(nTemp7);\r\n \r\n Producto limon= new Producto(\"limon\", \"limon agrio\", 25.90, 0);\r\n Nodo<Producto> nTemp8 = new Nodo(limon);\r\n listaWalmart.agregarNodo(nTemp8);\r\n \r\n Producto manzana= new Producto(\"manzana\", \"red delicious\", 39.90, 0);\r\n Nodo<Producto> nTemp9 = new Nodo(manzana);\r\n listaWalmart.agregarNodo(nTemp9);\r\n \r\n Producto plátano = new Producto(\"platano\", \"chiapas\", 13.90, 0);\r\n Nodo<Producto> nTemp10 = new Nodo(plátano);\r\n listaWalmart.agregarNodo(nTemp10);\r\n \r\n Producto papaya= new Producto(\"papaya\", \"maradol\",27.90, 0);\r\n Nodo<Producto> nTemp11 = new Nodo(papaya);\r\n listaWalmart.agregarNodo(nTemp11);\r\n \r\n Producto uva= new Producto(\"uva\", \"roja sin semilla\", 59, 0);\r\n Nodo<Producto> nTemp12 = new Nodo(uva);\r\n listaWalmart.agregarNodo(nTemp12);\r\n \r\n Producto chiledelarbol= new Producto(\"chile del arbol\", \"verde valle\", 20, 2);\r\n Nodo<Producto> nTemp13 = new Nodo(chiledelarbol);\r\n listaWalmart.agregarNodo(nTemp13);\r\n \r\n Producto piernaymuslodepollo = new Producto(\"pierna y muslo de pollo\", \"bachoco\", 34, 1);\r\n Nodo<Producto> nTemp14 = new Nodo(piernaymuslodepollo);\r\n listaWalmart.agregarNodo(nTemp14);\r\n \r\n Producto pechugadepollo= new Producto(\"pechuga de pollo\", \"bachoco\", 114, 1);\r\n Nodo<Producto> nTemp15 = new Nodo(pechugadepollo);\r\n listaWalmart.agregarNodo(nTemp15);\r\n \r\n Producto costilladecerdo= new Producto(\"costilla de cerdo\", \"pork loin\", 114, 1);\r\n Nodo<Producto> nTemp16 = new Nodo(costilladecerdo);\r\n listaWalmart.agregarNodo(nTemp16);\r\n \r\n Producto carnemolida= new Producto(\"carne molida\", \"premium\", 152, 1);\r\n Nodo<Producto> nTemp17 = new Nodo(carnemolida);\r\n listaWalmart.agregarNodo(nTemp17);\r\n \r\n Producto chuletadecostilla= new Producto(\"chuleta de costilla\", \"premium\", 219, 1);\r\n Nodo<Producto> nTemp18 = new Nodo(chuletadecostilla);\r\n listaWalmart.agregarNodo(nTemp18);\r\n \r\n Producto pescado= new Producto(\"pescado\", \"sierra del golfo\", 89, 1);\r\n Nodo<Producto> nTemp19 = new Nodo(pescado);\r\n listaWalmart.agregarNodo(nTemp19);\r\n \r\n Producto atun= new Producto(\"atun\", \"herdez\", 18.50, 2);\r\n Nodo<Producto> nTemp20 = new Nodo(atun);\r\n listaWalmart.agregarNodo(nTemp20);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"verde valle super extra\", 22.50, 2);\r\n Nodo<Producto> nTemp21 = new Nodo(arroz);\r\n listaWalmart.agregarNodo(nTemp21);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"verde valle\", 30, 2);\r\n Nodo<Producto> nTemp22 = new Nodo(frijol);\r\n listaWalmart.agregarNodo(nTemp22);\r\n \r\n \r\n Producto azucar= new Producto(\"azucar\", \"zulka\", 54, 2);\r\n Nodo<Producto> nTemp23 = new Nodo(azucar);\r\n listaWalmart.agregarNodo(nTemp23);\r\n \r\n Producto consome= new Producto(\"consome\", \"knorr\", 7, 2);\r\n Nodo<Producto> nTemp24 = new Nodo(consome);\r\n listaWalmart.agregarNodo(nTemp24);\r\n \r\n Producto galletassaladas= new Producto(\"galletas saladas\", \"saladitas\", 40, 2);\r\n Nodo<Producto> nTemp25 = new Nodo(galletassaladas);\r\n listaWalmart.agregarNodo(nTemp25);\r\n \r\n Producto sal= new Producto(\"sal\", \"la fina\", 8.90, 2);\r\n Nodo<Producto> nTemp26 = new Nodo(sal);\r\n listaWalmart.agregarNodo(nTemp26);\r\n \r\n Producto pimienta= new Producto(\"pimienta\", \"mccormick\", 47.50, 2);\r\n Nodo<Producto> nTemp27= new Nodo(pimienta);\r\n listaWalmart.agregarNodo(nTemp27);\r\n \r\n Producto comino= new Producto(\"comino\", \"mccormick\", 30, 2);\r\n Nodo<Producto> nTemp28 = new Nodo(comino);\r\n listaWalmart.agregarNodo(nTemp28);\r\n \r\n Producto canela= new Producto(\"canela\", \"el cuernito\", 4.50, 2);\r\n Nodo<Producto> nTemp29 = new Nodo(canela);\r\n listaWalmart.agregarNodo(nTemp29);\r\n \r\n Producto cebolla= new Producto(\"cebolla\", \"blanca\", 31.90, 2);\r\n Nodo<Producto> nTemp30 = new Nodo(cebolla);\r\n listaWalmart.agregarNodo(nTemp30);\r\n \r\n Producto zanahoria= new Producto(\"zanahoria\", \"simple\", 19.50, 2);\r\n Nodo<Producto> nTemp31 = new Nodo(zanahoria);\r\n listaWalmart.agregarNodo(nTemp31);\r\n \r\n Producto polvoparaprepararbebida= new Producto(\"polvo para preparar bebida\", \"zuko\", 3.80, 2);\r\n Nodo<Producto> nTemp32 = new Nodo(polvoparaprepararbebida);\r\n listaWalmart.agregarNodo(nTemp32);\r\n \r\n Producto cereal= new Producto(\"cereal\", \"nestle\", 39.90, 2);\r\n Nodo<Producto> nTemp33 = new Nodo(cereal);\r\n listaWalmart.agregarNodo(nTemp33);\r\n \r\n Producto sopa= new Producto(\"sopa\", \"aurrera \", 3.10, 2);\r\n Nodo<Producto> nTemp34 = new Nodo(sopa);\r\n listaWalmart.agregarNodo(nTemp34);\r\n \r\n \r\n Producto espagueti= new Producto(\"espagueti\", \"moderna\", 5.20, 2);\r\n Nodo<Producto> nTem35 = new Nodo(espagueti);\r\n listaWalmart.agregarNodo(nTem35);\r\n \r\n Producto maquinaparaafeitar= new Producto(\"maquina para afeitar\", \"gillette prestobarba\", 20, 3);\r\n Nodo<Producto> nTemp35 = new Nodo(maquinaparaafeitar);\r\n listaWalmart.agregarNodo(nTemp35);\r\n \r\n Producto shampoo= new Producto(\"shampoo\", \"ego black\", 63.50, 3);\r\n Nodo<Producto> nTemp36 = new Nodo(shampoo);\r\n listaWalmart.agregarNodo(nTemp36);\r\n \r\n \r\n Producto pastadental= new Producto(\"pasta dental\", \"colgate\", 43.50, 3);\r\n Nodo<Producto> nTemp37 = new Nodo(pastadental);\r\n listaWalmart.agregarNodo(nTemp37);\r\n \r\n Producto papelhigienico= new Producto(\"papel higienico\", \"elite\", 17.50, 3);\r\n Nodo<Producto> nTemp38 = new Nodo(papelhigienico);\r\n listaWalmart.agregarNodo(nTemp38);\r\n \r\n Producto pañuelos = new Producto(\"pañuelos\", \"kleenex\", 14.50, 3);\r\n Nodo<Producto> nTemp39 = new Nodo(pañuelos);\r\n listaWalmart.agregarNodo(nTemp39);\r\n \r\n Producto cremad = new Producto(\"crema\", \"pond´s\", 56, 2);\r\n Nodo<Producto> nTemp40 = new Nodo(cremad);\r\n listaWalmart.agregarNodo(nTemp40);\r\n \r\n Producto desodorantemasculino= new Producto(\"desodorante masculino\", \"stefano\", 41.50, 3);\r\n Nodo<Producto> nTemp41 = new Nodo(desodorantemasculino);\r\n listaWalmart.agregarNodo(nTemp41);\r\n \r\n Producto desodorantefemenino= new Producto(\"desodorante femenino\", \"lady speed stick\", 23, 3);\r\n Nodo<Producto> nTemp42 = new Nodo(desodorantefemenino);\r\n listaWalmart.agregarNodo(nTemp42);\r\n \r\n Producto cloro= new Producto(\"cloro\", \"cloralex\", 21, 3);\r\n Nodo<Producto> nTemp43 = new Nodo(cloro);\r\n listaWalmart.agregarNodo(nTemp43);\r\n \r\n Producto pinol= new Producto(\"pinol\", \"pinol\", 29.90, 3);\r\n Nodo<Producto> nTemp44 = new Nodo(pinol);\r\n listaWalmart.agregarNodo(nTemp44);\r\n \r\n Producto lavatrastes= new Producto(\"lavatrastes\", \"axion\", 36.90, 3);\r\n Nodo<Producto> nTemp45 = new Nodo(lavatrastes);\r\n listaWalmart.agregarNodo(nTemp45);\r\n \r\n Producto deterjente= new Producto(\"deterjente\", \"finish\", 99, 3);\r\n Nodo<Producto> nTemp46 = new Nodo(deterjente);\r\n listaWalmart.agregarNodo(nTemp46);\r\n \r\n Producto queso= new Producto(\"queso\", \"chichuahua\", 125, 1);\r\n Nodo<Producto> nTemp47 = new Nodo(queso);\r\n listaWalmart.agregarNodo(nTemp47);\r\n \r\n Producto lentejas= new Producto(\"lentejas\", \"verde valle\", 25.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo(lentejas);\r\n listaWalmart.agregarNodo(nTemp48);\r\n \r\n Producto papitas= new Producto(\"papitas\", \"sabritas\", 36, 2);\r\n Nodo<Producto> nTemp49 = new Nodo(papitas);\r\n listaWalmart.agregarNodo(nTemp49);\r\n \r\n Producto mole= new Producto(\"mole\", \"doña maria \", 33, 2);\r\n Nodo<Producto> nTemp50 = new Nodo(mole);\r\n listaWalmart.agregarNodo(nTemp50);\r\n }", "public String getSumShopCode() {\n return sumShopCode;\n }", "@Override\n public void interactWith(Shop shop, Orientation orientation) {\n if (getOrientation().opposite().equals(orientation)) {\n shop.shop(inventory);\n }\n }", "public void reestablecerFullStock() { \n bodega Bodega = new bodega();\n Bodega.setProductosList(this.bodegaDefault());\n }", "@Override\r\n\tpublic int addshop(Shop shop) {\n\t\treturn dao.addshop(shop);\r\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public String getShopName() {\n\t\treturn shopName;\n\t}", "protected Groep updateSpelers(Groep groep, Serie serie) {\r\n\r\n for (Speler speler : groep.getSpelers()) {\r\n Wedstrijd wedstrijd = serie.getWedstrijdVoorSpeler(speler);\r\n if (wedstrijd != null) {\r\n if (wedstrijd.getWit().gelijkAan(speler)) {\r\n // Speler speelde met wit\r\n speler.addTegenstander(wedstrijd.getZwart().getInitialen());\r\n speler.setWitvoorkeur(speler.getWitvoorkeur() - 1.1);\r\n\r\n } else if (wedstrijd.getZwart().gelijkAan(speler)) {\r\n // Speler speelde met zwart\r\n speler.addTegenstander(wedstrijd.getWit().getInitialen());\r\n\r\n speler.setWitvoorkeur(speler.getWitvoorkeur() + 1.1);\r\n\r\n } else {\r\n System.out.println(\"Hmmm, speler niet gevonden....\");\r\n }\r\n }\r\n }\r\n return groep;\r\n }", "public void setShopId(Long shopId) {\n this.shopId = shopId;\n }", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "public void setSumShopCode(String sumShopCode) {\n this.sumShopCode = sumShopCode;\n }", "public String addPromotionShop() {\n\t\tList<PromotionShopMap> lstCheckPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCheckPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tresult.put(ERROR, true);\n\t\tif (promotionId == null || promotionId < 1 || lstQtt == null || lstQtt.size() == 0 || lstId == null || lstId.size() == 0 || lstId.size() != lstQtt.size()) {\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tstaff = getStaffByCurrentUser();\n\t\t\tif (staff == null || staff.getShop() == null || staff.getStaffType() == null || currentUser == null || currentUser.getShopRoot() == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION, \"\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (shopId == null || shopId == 0) {\n\t\t\t\tshopId = currentUser.getShopRoot().getShopId();\n\t\t\t}\n\t\t\t// kiem tra don vi, don vi con da thuoc CTKM\n\t\t\tList<PromotionShopVO> lstTmp = promotionProgramMgr.getListShopInPromotion(promotionId, lstId, true);\n\t\t\tif (lstTmp != null && lstTmp.size() > 0) {\n\t\t\t\tString msg = \"\";\n\t\t\t\tfor (PromotionShopVO vo : lstTmp) {\n\t\t\t\t\tmsg += (\", \" + vo.getShopCode());\n\t\t\t\t}\n\t\t\t\tmsg = msg.replaceFirst(\", \", \"\");\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.program.promotion.shop.map.exists\", msg));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tlstTmp = promotionProgramMgr.getListShopInPromotionShopJoin(promotionId, lstId, true);\n\t\t\tif (lstTmp != null && lstTmp.size() > 0) {\n\t\t\t\tString msg = \"\";\n\t\t\t\tfor (PromotionShopVO vo : lstTmp) {\n\t\t\t\t\tmsg += (\", \" + vo.getShopCode());\n\t\t\t\t}\n\t\t\t\tmsg = msg.replaceFirst(\", \", \"\");\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.program.promotion.shop.map.exists\", msg));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tlstTmp = null;\n\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.WAITING.equals(pro.getStatus()) && !ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tList<Long> lstShopId = new ArrayList<Long>();\n\t\t\tList<PromotionShopMap> lstPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopJoin> lstPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tlstCheckPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(shopId, promotionId);\n\t\t\tlstCheckPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(shopId, promotionId);\n\t\t\tfor (int m = 0, sizelst = lstCheckPromotionShopMap.size(); m < sizelst; m++) {\n\t\t\t\tPromotionShopMap item = lstCheckPromotionShopMap.get(m);\n\t\t\t\tif (item != null && item.getShop() != null) {\n\t\t\t\t\tlstShopId.add(item.getShop().getId());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int m = 0, sizelst = lstCheckPromotionShopJoin.size(); m < sizelst; m++) {\n\t\t\t\tPromotionShopJoin item = lstCheckPromotionShopJoin.get(m);\n\t\t\t\tif (item != null && item.getShop() != null) {\n\t\t\t\t\tlstShopId.add(item.getShop().getId());\n\t\t\t\t}\n\t\t\t}\n\t\t\tShop shT = null;\n\t\t\tDate now = DateUtil.now();\n\t\t\tLong idt = null;\n\t\t\tfor (int i = 0, sz = lstId.size(); i < sz; i++) {\n\t\t\t\tidt = lstId.get(i);\n\t\t\t\tshT = shopMgr.getShopById(idt);\n\t\t\t\tif (shT == null) {\n\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"DV\"));\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\tif (!ActiveType.RUNNING.equals(shT.getStatus())) {\n\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shT.getShopCode()));\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\tif (shT.getType() != null && shT.getType().getSpecificType() != null && ShopSpecificType.NPP.getValue().equals(shT.getType().getSpecificType().getValue())) {\n\t\t\t\t\tPromotionShopMap psm = new PromotionShopMap();\n\t\t\t\t\tpsm.setPromotionProgram(pro);\n\t\t\t\t\tpsm.setShop(shT);\n\t\t\t\t\tpsm.setStatus(ActiveType.RUNNING);\n\t\t\t\t\tpsm.setCreateDate(now);\n\t\t\t\t\tpsm.setCreateUser(staff.getStaffCode());\n\t\t\t\t\tif (DateUtil.compareTwoDate(pro.getFromDate(), commonMgr.getSysDate()) > 0) {\n\t\t\t\t\t\tpsm.setFromDate(pro.getFromDate());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpsm.setFromDate(commonMgr.getSysDate());\n\t\t\t\t\t}\n\t\t\t\t\t//psm.setFromDate(pro.getFromDate());\n\t\t\t\t\tpsm.setToDate(pro.getToDate());\n\t\t\t\t\tpsm.setIsQuantityMaxEdit((lstEdit.get(i) != null && lstEdit.get(i)) ? 1 : 0);\n\t\t\t\t\tif (lstQtt.get(i) >= ZEZO) {\n\t\t\t\t\t\tpsm.setQuantityMax(lstQtt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstAmt.get(i)) <= 0) {\n\t\t\t\t\t\tpsm.setAmountMax(lstAmt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstNum.get(i)) <= 0) {\n\t\t\t\t\t\tpsm.setNumMax(lstNum.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tlstPromotionShopMap.add(psm);\n\t\t\t\t} else {\n\t\t\t\t\tPromotionShopJoin psj = null;\n\t\t\t\t\tObjectVO<Shop> listObjectChildShop = null;\n\t\t\t\t\tfor (int k = 0, size = lstPromotionShopJoin.size(); k < size; k++) {\n\t\t\t\t\t\tPromotionShopJoin promotionShopJoin = lstPromotionShopJoin.get(k);\n\t\t\t\t\t\tif (idt.equals(promotionShopJoin.getShop().getId())) {\n\t\t\t\t\t\t\tpsj = promotionShopJoin;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (psj == null) {\n\t\t\t\t\t\tShopFilter flCheck = new ShopFilter();\n\t\t\t\t\t\tflCheck.setShopId(idt);\n\t\t\t\t\t\tflCheck.setListOrgAccess(lstShopIdNPP);\n\t\t\t\t\t\tflCheck.setStrShopId(super.getStrListShopId());\n\t\t\t\t\t\t// co chon NPP thi moi luu shop chon (shop join)\n\t\t\t\t\t\tif (shopMgr.getListChildrenPromotionProgram(flCheck)) {\n\t\t\t\t\t\t\tpsj = new PromotionShopJoin();\n\t\t\t\t\t\t\tpsj.setShop(shT);\n\t\t\t\t\t\t\tpsj.setPromotionProgram(pro);\n\t\t\t\t\t\t\tpsj.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\tpsj.setCreateDate(now);\n\t\t\t\t\t\t\tpsj.setCreateUser(staff.getStaffCode());\n\t\t\t\t\t\t\tpsj.setFromDate(pro.getFromDate());\n\t\t\t\t\t\t\tpsj.setToDate(pro.getToDate());\n\t\t\t\t\t\t\t// lay ds shop con\n\t\t\t\t\t\t\tlstShopId.add(idt);\n\t\t\t\t\t\t\tShopFilter filter = new ShopFilter();\n\t\t\t\t\t\t\tfilter.setShopId(idt);\n\t\t\t\t\t\t\tfilter.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\tfilter.setLstNotInId(lstShopId); // khong lay shop da co\n\t\t\t\t\t\t\tfilter.setNotSpecType(ShopSpecificType.NPP); // khong lay NPP lam shop join\n\t\t\t\t\t\t\tfilter.setStrShopId(super.getStrListShopId());\n\t\t\t\t\t\t\tlistObjectChildShop = shopMgr.getListChildShop(filter);\n\t\t\t\t\t\t} else {\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\t//psj.setIsQuantityMaxEdit((lstEdit.get(i) != null && lstEdit.get(i)) ? 1 : 0);\n\t\t\t\t\tif (lstQtt.get(i) >= ZEZO) {\n\t\t\t\t\t\tpsj.setQuantityMax(lstQtt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstAmt.get(i)) <= 0) {\n\t\t\t\t\t\tpsj.setAmountMax(lstAmt.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (BigDecimal.ZERO.compareTo(lstNum.get(i)) <= 0) {\n\t\t\t\t\t\tpsj.setNumMax(lstNum.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tlstPromotionShopJoin.add(psj);\n\t\t\t\t\t// tao theo shop con\n\t\t\t\t\tif (listObjectChildShop != null && listObjectChildShop.getLstObject() != null && listObjectChildShop.getLstObject().size() > 0) {\n\t\t\t\t\t\tList<Shop> listChildShop = listObjectChildShop.getLstObject();\n\t\t\t\t\t\tShopFilter filterCheck = new ShopFilter();\n\t\t\t\t\t\tfor (int k = 0, size = listChildShop.size(); k < size; k++) {\n\t\t\t\t\t\t\tShop childShop = listChildShop.get(k);\n\t\t\t\t\t\t\tif (childShop != null) {\n\t\t\t\t\t\t\t\tfilterCheck.setShopId(childShop.getId());\n\t\t\t\t\t\t\t\tfilterCheck.setListOrgAccess(lstShopIdNPP);\n\t\t\t\t\t\t\t\tfilterCheck.setStrShopId(super.getStrListShopId());\n\t\t\t\t\t\t\t\tif (shopMgr.getListChildrenPromotionProgram(filterCheck)) {\n\t\t\t\t\t\t\t\t\tPromotionShopJoin shopJoin = new PromotionShopJoin();\n\t\t\t\t\t\t\t\t\tshopJoin.setShop(childShop);\n\t\t\t\t\t\t\t\t\tshopJoin.setPromotionProgram(pro);\n\t\t\t\t\t\t\t\t\tshopJoin.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\t\t\tshopJoin.setCreateDate(now);\n\t\t\t\t\t\t\t\t\tshopJoin.setCreateUser(staff.getStaffCode());\n\t\t\t\t\t\t\t\t\tshopJoin.setFromDate(pro.getFromDate());\n\t\t\t\t\t\t\t\t\tshopJoin.setToDate(pro.getToDate());\n\t\t\t\t\t\t\t\t\tlstPromotionShopJoin.add(shopJoin);\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\tlstCheckPromotionShopMap.addAll(lstPromotionShopMap);\n\t\t\tlstCheckPromotionShopJoin.addAll(lstPromotionShopJoin);\n\t\t\tString error = validatePromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\tif (!StringUtil.isNullOrEmpty(error)) {\n\t\t\t\tresult.put(\"errMsg\", error);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tpromotionProgramMgr.addPromotionShop(lstPromotionShopMap, lstPromotionShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.addPromotionShop\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t} finally {\n\t\t\tlstCheckPromotionShopMap.clear();\n\t\t\tlstCheckPromotionShopMap = null;\n\t\t\tlstCheckPromotionShopJoin.clear();\n\t\t\tlstCheckPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "public void setShopCell(String shopCell) {\n\t\tthis.shopCell = shopCell;\n\t}", "public void checkout() {\n\t\t// checkout and reset the quantity in global product list\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\ttry {\n\t\t\t\tfor (CartProduct cartProduct : cart.getProducts()) {\n\t\t\t\t\tif (product.getDescription().equals(cartProduct.getDescription())) {\n\t\t\t\t\t\tif(product.getQuantity() >= 1) {\n\t\t\t\t\t\t\tproduct.setQuantity(product.getQuantity() - 1); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\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\tcart.deleteCart();\n\t}", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void resetSaleAndCostTracking() {\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the beanBag object at the current position is \"isSold\" bool is true.\r\n if (((BeanBag) stockList.get(i)).isSold()) {\r\n // Remove beanBag object at that position from the \"stockList\".\r\n stockList.remove(i);\r\n }\r\n }\r\n }", "private void atualizarPalitos() {\n Jogador jogador = servidor.getJogador(nomeJogador);\n LugarModelo lugarModelo = listaLugares.get(jogador.lugar - 1);\n lugarModelo.getMao().setText(jogador.quantidadePalitosApostados + \" Palitos\");\n lugarModelo.getQuantidadePalitosRestantes().setText(\"Palitos Restante: \" + jogador.quantidadePalitosRestantes + \"\");\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public String getSumShopJkn() {\n return sumShopJkn;\n }", "Shop getShopByCode(String shopCode);", "public void setShopid(Integer shopid) {\n this.shopid = shopid;\n }", "public String getShopNmR() {\n return shopNmR;\n }", "public void setSumShopJkn(String sumShopJkn) {\n this.sumShopJkn = sumShopJkn;\n }", "@Override\n public void sell() {\n }", "public ShopDialog(String title, Skin skin, TextureManager manager) {\n\t\tsuper(title, skin);\n\t\tthis.getTitleLabel().setAlignment(Align.center);\n\t\tthis.textureManager = manager;\n\t\t// Making the items table to buy from\n\t\tthis.getContentTable().debugCell();\n\t\tthis.getContentTable().left();\n\t\tthis.skin = skin;\n\n\t\tthis.technologyManager = (TechnologyManager) GameManager.get()\n\t\t\t\t.getManager(TechnologyManager.class);\n\n\t\tstatus = new Label(\"Welcome to the shop!\", skin);\n\n\t\tscrollTable = new Table();\n\t\tscrollTable.top();\n\t\tscrollTable.debugCell();\n\t\tscrollTable.add(new Label(\"Item\", skin)).width(iconSize).top().center();\n\t\tscrollTable.add(new Label(\"Description\", skin)).width(iconSize)\n\t\t\t\t.expandX().top().left();\n\t\tscrollTable.add(new Label(\"Cost\", skin)).width(iconSize).top();\n\t\tscrollTable.row();\n\n\t\tthis.technologyManager = (TechnologyManager) GameManager.get()\n\t\t\t\t.getManager(TechnologyManager.class);\n\t\tif (technologyManager.armourIsUnlocked(1)) {\n\t\t\tunlockArmours(1);\n\t\t}\n\t\tif (technologyManager.armourIsUnlocked(2)) {\n\t\t\tunlockArmours(2);\n\t\t}\n\t\tif (technologyManager.armourIsUnlocked(3)) {\n\t\t\tunlockArmours(3);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(1)) {\n\t\t\tunlockWeapons(1);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(2)) {\n\t\t\tunlockWeapons(2);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(3)) {\n\t\t\tunlockWeapons(3);\n\t\t}\n\t\tif (technologyManager.specialIsUnlocked()) {\n\t\t\tunlockSpecials();\n\t\t}\n\n\t\t// making the right side table for the Commander icons.\n\t\tfinal ScrollPane scroller = new ScrollPane(scrollTable);\n\n\t\tthis.getContentTable().add(scroller).fill().expand().top();\n\n\t\tthis.getContentTable().row();\n\t\tthis.getContentTable().add(status).expandX().center().colspan(2);\n\n\t}", "public static Inventory createStorageInventory(UserShop shop) {\n\t\tInventory inv = Bukkit.createInventory(null, 27, shop.getTitle() + \" §7- §6Lager\");\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tinv.setItem(i, spacer);\n\t\t}\n\t\tinv.setItem(8, back);\n\t\tfor (ShopItemEntry offer : shop.getStoredItems()) {\n\t\t\tinv.addItem(offer.getItem());\n\t\t}\n\t\treturn inv;\n\t}", "private void storeTrip(Player p){\r\n\t\tSystem.out.println(\"Welcome to the store!\");\r\n\t\tSystem.out.println(\"Just a reminder, you have $\" + p.getMoney() + \" to spend!\");\r\n\t\tSystem.out.println(\"Please Select An Option: \");\r\n\t\tSystem.out.println(\"1. Buy Food\");\r\n\t\tSystem.out.println(\"2. Buy Toys\");\r\n\t\tSystem.out.println(\"3. Leave the store\");\r\n\t\tArrayList<Toy> storetoys = store.getToys();\r\n\t\tArrayList<Food> storefood = store.getFoods();\r\n\t\tint[] toyamounts = store.getToyamounts();\r\n\t\tint[] foodamounts = store.getFoodamounts();\r\n\t\tint buyoption; //The buying option\r\n\t\tint c; //Counter\r\n\r\n\t\tint selectedoption = getNumber(1, 3);\r\n\t\tswitch(selectedoption){\r\n\t\t//Buy food\r\n\t\tcase 1:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Food f : storefood){\r\n\t\t\t\tSystem.out.println(c + \". \" + f.getName() + \"\\nPrice: $\" + f.getValue() + \" Stock: \" + foodamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storefood.size());\r\n\t\t\tFood selectedfood = storefood.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedfood.getValue() && foodamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedfood.getValue());\r\n\t\t\t\tfoodamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addFood(selectedfood);\r\n\t\t\t\tstore.setFoodamounts(foodamounts);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t//Buy toys\r\n\t\tcase 2:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Toy t : storetoys){\r\n\t\t\t\tSystem.out.println(c + \". \" + t.getName() + \"\\nPrice: $\" + t.getPrice() + \" Stock: \" + toyamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storetoys.size());\r\n\t\t\tToy selectedtoy = storetoys.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedtoy.getPrice() && toyamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedtoy.getPrice());\r\n\t\t\t\ttoyamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addToy(selectedtoy);\r\n\t\t\t\tstore.setToyamounts(toyamounts);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\nError. Either the store was out of stock for the selected product or the player was out of money.\");\r\n\t\t\t}\r\n\t\tcase 3:\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"ERROR\");\r\n\t\t}\r\n\t}", "private static void randomizedEntry() {\r\n\t\tfor (int i = 0; i < shops.length; i++) {\r\n\t\t\tshops[i] = new Shop();\r\n\t\t}\r\n\t}", "final void letMerchantGo(final Player player) {\n for (Map.Entry<Integer, Integer> it : player.getBag().entrySet()) {\n int cardId = (Integer) ((Map.Entry) it).getKey();\n int freq = (Integer) ((Map.Entry) it).getValue();\n\n if (player.getShop().containsKey(cardId)) {\n player.getShop().put(cardId, player.getShop().get(cardId) + freq);\n } else {\n player.getShop().put(cardId, freq);\n }\n }\n }", "public Name getShopperName() {\n return shopperName;\n }", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "public void verurteilen(Schurke schurke) {\n\t\tif (!this.korrupt) {\n\t\t\tschurke.MetroDollarVeraendern(-1000);\n\t\t}\n\t\tthis.metroDollar += 60000;\n\t}", "@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }", "public void lokaleLijst(){\n // haal boodschappenlijst op uit Shared Preferences en voeg toe aan shoppingList\n shoppingList = getArrayVal(getApplicationContext());\n // sorteer de lijst en set de adapter en view\n Collections.sort(shoppingList);\n adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, shoppingList);\n lv = (ListView) findViewById(R.id.listView);\n lv.setAdapter(adapter);\n\n // set variable tedoen gelijk aan totaal aantal producten in de lijst\n tedoen = shoppingList.size();\n\n // set klik listener op items in de lijst\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView parent, View view, int position, long id) {\n String selectedItem = ((TextView) view).getText().toString();\n // vink het aangeklikte product af of zet het terug\n switchElement(selectedItem, position);\n }\n });\n }", "public void ramasser(ArrayList<Loot> drop, int entree) {\n\t\tString s = drop.get(entree-1).getNom();\n\t Connection c = null;\n\t Statement select = null;\n\t try {\n\t Class.forName(\"org.postgresql.Driver\");\n\t c = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ProjetJava\", \"postgres\", \"sql\");\n\t select = c.createStatement();\n\t ResultSet query = select.executeQuery(\"SELECT weaponDamage, lootXpValue from tbLoot WHERE lootName = \\'\"+s+\"\\'\");\n\t int weapDam = 0;\n\t int lootXp = 0;\n\t while(query.next()) {\n\t \t weapDam = query.getInt(\"weaponDamage\");\n\t \t lootXp = query.getInt(\"lootXpValue\");\n\t }\n\t if(weapDam>0) {\n\t \t if(this.getArmeDroite().getDegat() < weapDam) {\n\t \t\t System.out.println(\"Vous avez choisi : \"+s+\" / degat : \"+weapDam);\n\t \t\t Arme a = new Arme(s, weapDam);\n\t \t\t this.setArmeDroite(a);\n\t \t }else {\n\t \t\t System.out.println(\"Vous avez choisi : \"+s+\" / valeur d XP : \"+lootXp);\n\t \t\t this.ajoutXp(lootXp);\n\t \t }\n\t } else {\n\t \t System.out.println(\"Vous avez choisi : \"+s+\" / valeur d XP : \"+lootXp);\n\t \t this.ajoutXp(lootXp);\n\t }\n\t query.close();\n\t select.close();\n\t c.close();\n\t drop.remove(entree-1);\n\t } catch (Exception e) {\n\t \te.printStackTrace();\n\t System.err.println(e.getClass().getName()+\": \"+e.getMessage());\n\t System.exit(0);\n\t }\n\t}", "public void setShopCode(String shopCode) {\n\t\tthis.shopCode = shopCode;\n\t}", "private void equipButtonClicked(final ShopItem shopItem) {\n shopItem.setState(ItemStatusID.EQUIPPED);\n if (shopItem instanceof Shovel) {\n for (Shovel shovel : SHOVELS) {\n if (shovel.equals(shopItem)) {\n continue;\n } else if (shovel.getState() == ItemStatusID.EQUIPPED) {\n shovel.setState(ItemStatusID.BOUGHT);\n break;\n }\n }\n } else if (shopItem instanceof Background) {\n for (Background background : BACKGROUNDS) {\n if (background.equals(shopItem)) {\n continue;\n } else if (background.getState() == ItemStatusID.EQUIPPED) {\n background.setState(ItemStatusID.BOUGHT);\n break;\n }\n }\n }\n updateUI();\n }", "public Long getShopId() {\n return shopId;\n }", "public void sleutelWaarde(){\n if(sleutel100.getX() == speler.getX() && sleutel100.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel100.getWaarde());\n }\n else if(sleutel1002.getX() == speler.getX() && sleutel1002.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel1002.getWaarde());\n }\n else if(sleutel200.getX() == speler.getX() && sleutel200.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel200.getWaarde());\n }\n else if(sleutel300.getX() == speler.getX() && sleutel300.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel300.getWaarde());\n }\n }", "@Override\r\n\tpublic void jouer() {\r\n\t\t// liste servant a retenir les cartes potentiellement selectionnables\r\n\t\tArrayList<ICarte> listeCartesPossibles = new ArrayList<ICarte>();\r\n\t\t// sert a choisir une carte aleatoirement parmis celles selectionnables\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\t//enregistrement des cartes pouvant etre selectionnees\r\n\t\tfor(int i=0 ; i<plateau.getListeCartesMelangees().size() ; i++) {\r\n\t\t\tif (plateau.getListeCartesMelangees().get(i).getSurPlateau() == true) {\r\n\t\t\t\tlisteCartesPossibles.add(plateau.getListeCartesMelangees().get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// choix aleatoire de la premiere carte\r\n\t\tcarte1 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\t//choix aleatoire de la seconde carte\r\n\t\tlisteCartesPossibles.remove(carte1);\r\n\t\tcarte2 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\tplateau.setCartesSelectionnees(true);\r\n\t}", "public void setShopId(String shopId) {\n\t\tthis.shopId = shopId;\n\t}", "public void setShopId(String shopId) {\n\t\tthis.shopId = shopId;\n\t}", "public String updateShopQuantity() throws Exception {\n\t\tList<PromotionShopMap> lstCheckPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCheckPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\tresult.put(ERROR, true);\n\t\tif (promotionId == null || promotionId < 1 || lstShopQttAdd == null || lstShopQttAdd.size() == 0) {\n\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tstaff = getStaffByCurrentUser();\n\t\t\tif (staff == null || staff.getShop() == null || staff.getStaffType() == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION, \"\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.WAITING.equals(pro.getStatus()) && !ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tList<PromotionShopMap> lstNewPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopJoin> lstNewPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tlstCheckPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(staff.getShop().getId(), promotionId);\n\t\t\tlstCheckPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(staff.getShop().getId(), promotionId);\n\t\t\tfor (int i = 0, sz = lstShopQttAdd.size(); i < sz; i++) {\n\t\t\t\tPromotionShopQttVO promotionShopQttVO = lstShopQttAdd.get(i);\n\t\t\t\tif (promotionShopQttVO != null) {\n\t\t\t\t\tPromotionShopMap psm = null;\n\t\t\t\t\tPromotionShopJoin psj = null;\n\t\t\t\t\tshopId = promotionShopQttVO.getShopId();\n\t\t\t\t\tif (super.getMapShopChild().get(shopId) == null) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tShop shop = shopMgr.getShopById(shopId);\n\t\t\t\t\tif (shop == null) {\n\t\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.shop.name.lable\")));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (!ActiveType.RUNNING.equals(shop.getStatus())) {\n\t\t\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shop.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (shop.getType() != null && shop.getType().getSpecificType() != null && (ShopSpecificType.NPP.getValue().equals(shop.getType().getSpecificType().getValue()) || ShopSpecificType.NPP_MT.getValue().equals(shop.getType()\n\t\t\t\t\t\t\t.getSpecificType().getValue()))) {\n\t\t\t\t\t\tfor (int j = 0, size = lstCheckPromotionShopMap.size(); j < size; j++) {\n\t\t\t\t\t\t\tPromotionShopMap item = lstCheckPromotionShopMap.get(j);\n\t\t\t\t\t\t\tif (item.getShop() != null && item.getShop().getId().equals(shopId)) {\n\t\t\t\t\t\t\t\tpsm = item;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (psm == null) {\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.not.exist\"));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null && psm.getQuantityReceivedTotal() != null && promotionShopQttVO.getQuantityMax().compareTo(psm.getQuantityReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.quantity.max.not.less.than.quantity.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getAmountMax() != null && psm.getAmountReceivedTotal() != null && promotionShopQttVO.getAmountMax().compareTo(psm.getAmountReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.amount.max.not.less.than.amount.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getNumMax() != null && psm.getNumReceivedTotal() != null && promotionShopQttVO.getNumMax().compareTo(psm.getNumReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.num.max.not.less.than.num.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsm.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\tpsm.setIsQuantityMaxEdit(promotionShopQttVO.getIsEdit());\n\t\t\t\t\t\tpsm.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\tpsm.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\tlstNewPromotionShopMap.add(psm);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0, size = lstCheckPromotionShopJoin.size(); j < size; j++) {\n\t\t\t\t\t\t\tPromotionShopJoin item = lstCheckPromotionShopJoin.get(j);\n\t\t\t\t\t\t\tif (item.getShop() != null && item.getShop().getId().equals(shopId)) {\n\t\t\t\t\t\t\t\tpsj = item;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (psj == null) {\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.not.exist\"));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null && psj.getQuantityReceivedTotal() != null && promotionShopQttVO.getQuantityMax().compareTo(psj.getQuantityReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.quantity.max.not.less.than.quantity.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getAmountMax() != null && psj.getAmountReceivedTotal() != null && promotionShopQttVO.getAmountMax().compareTo(psj.getAmountReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.amount.max.not.less.than.amount.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t} else if (promotionShopQttVO.getNumMax() != null && psj.getNumReceivedTotal() != null && promotionShopQttVO.getNumMax().compareTo(psj.getNumReceivedTotal()) < 0) {\n\t\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.shop.num.max.not.less.than.num.received\"));\n\t\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsj.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\tpsj.setIsQuantityMaxEdit(promotionShopQttVO.getIsEdit());\n\t\t\t\t\t\tpsj.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\tpsj.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\tlstNewPromotionShopJoin.add(psj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\t// lay cau hinh bat buoc cac node NPP phai duoc phan bo\n\t\t\t\tList<ApParam> allocationPromotionShopConfigs = apParamMgr.getListApParam(ApParamType.ALLOCATION_PROMOTION_SHOP, ActiveType.RUNNING);\n\t\t\t\tisAllocationPromotionShop = (allocationPromotionShopConfigs == null || allocationPromotionShopConfigs.size() == 0 || Constant.ONE_TEXT.equals(allocationPromotionShopConfigs.get(0).getValue()));\n\t\t\t\tif (isAllocationPromotionShop) {\n\t\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCheckPromotionShopMap);\n\t\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// 1. kiem tra cha phan bo con phai phan bo: chi kiem tra khi chuyen trang thai sang hoat dong. khi luu chi kiem tra tong con <= cha. \n\t\t\t\terrMsg = validateAllocateParentChildPromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t}\n\t\t\terrMsg = validatePromotionShop(lstCheckPromotionShopMap, lstCheckPromotionShopJoin);\n\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tpromotionProgramMgr.updatePromotionShop(lstNewPromotionShopMap, lstNewPromotionShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.updateShopQuantity\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t} finally {\n\t\t\tlstCheckPromotionShopMap.clear();\n\t\t\tlstCheckPromotionShopMap = null;\n\t\t\tlstCheckPromotionShopJoin.clear();\n\t\t\tlstCheckPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "private void removeAllWeightBasedProduct(Product product){\n total-= cartItems.get(product.name).cost();\n noOfItems--;\n cartItems.remove(product.name);\n }", "@FXML\r\n public void makeSale(ActionEvent event) throws Exception {\r\n // TODO:\r\n // K, here's what needs to happen to beautify this:\r\n // ShipBar needs to extend javafx.scene.control.Toggle,\r\n // and then we can use ToggleGroup.getSelectedToggle()\r\n // rather than this shit\r\n Map<String, ShipType> ships = Data.SHIPS.get();\r\n for (ShipBar bar : buyShips.getItems()) {\r\n if (bar.isSelected()) {\r\n ShipType ship = ships.get(bar.getKey());\r\n int playerCash = player.getMoney();\r\n int price = ship.getPrice() - currentShip.getNetWorth();\r\n if (!(playerCash < price)) {\r\n // TODO: use a dedicated class to facilitate ship upgrades\r\n // the same way Transaction is used for goods\r\n Ship newShip = new Ship(ship);\r\n player.setShip(newShip);\r\n player.setMoney(playerCash - price);\r\n // update labels\r\n fillLabels();\r\n // rebuild ships list (?)\r\n currentShip = player.getShip();\r\n buildShipsList();\r\n }\r\n /*else {\r\n // TODO: warning: not enough money\r\n\r\n }*/\r\n // TODO: don't use a for loop here (see above)\r\n break;\r\n }\r\n }\r\n }", "public void DaneStartowe() {\n\t\tSystem.out.println(\"DaneStartowe\");\n\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getArystokrataNaPlanszy().setZloto((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t\tPlansza.getArystokrataNaPlanszy().setTowary((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t}", "private void printDecreaseItemQuantityMenu(Shop shop, FileManager fileManager) {\n ArrayList<Tool> toolList = new ArrayList<Tool>();\n String selection = \"Y\";\n toolList = sellTools(shop, toolList, selection);\n createAutoOrder(shop, fileManager, toolList);\n }", "public GroceryStore(String n, String sl){\n aisles=20;\n freezers=5;\n inventoryFull=8;\n fresh=9;\n liveAnimals=false;\n bakery=true;\n bestSeller=\"Milk\";\n numberOfProducts=10000;\n setName(n);\n setArea(60,60);\n setConnected(false);\n setEmployees(15);\n setFloorNumber(1);\n setManager(\"Stacey\");\n setCleanliness(7);\n setParkingSpaces(50);\n setStreetLocation(sl);\n setRegisters(4);\n calcRevenue(500000, 300000);\n }", "public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}", "public String saveShopSupportQuantity() {\n\t\tList<PromotionShopMap> lstCurrentPromotionShopMap = new ArrayList<PromotionShopMap>();\n\t\tList<PromotionShopJoin> lstCurrentPromotionShopJoin = new ArrayList<PromotionShopJoin>();\n\t\tresetToken(result);\n\t\tactionStartTime = DateUtil.now();\n\t\tresult.put(ERROR, true);\n\t\ttry {\n\t\t\tif (currentUser == null || currentUser.getShopRoot() == null) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_PERMISSION, \"\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (promotionId == null || promotionId < 1 || lstShopQttAdd == null || lstShopQttAdd.size() == 0) {\n\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_DATA_CORRECT));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tPromotionProgram pro = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (pro == null) {\n\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tif (!ActiveType.RUNNING.equals(pro.getStatus())) {\n\t\t\t\tresult.put(ERR_MSG, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.incorrect\"));\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tlstCurrentPromotionShopMap = promotionProgramMgr.getListPromotionChildShopMapWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\tlstCurrentPromotionShopJoin = promotionProgramMgr.getListPromotionChildShopJoinWithShopAndPromotionProgram(currentUser.getShopRoot().getShopId(), promotionId);\n\t\t\tList<PromotionShopMap> lstNewShopMap = new ArrayList<PromotionShopMap>();\n\t\t\tList<PromotionShopMap> lstNewShopMapNewTree = new ArrayList<PromotionShopMap>(); // chua shop nam trong cay moi\n\t\t\tList<PromotionShopMap> lstNewShopMapOldTree = new ArrayList<PromotionShopMap>(); // chua shop nam trong cay da them\n\t\t\tList<PromotionShopJoin> lstNewShopJoin = new ArrayList<PromotionShopJoin>();\n\t\t\tPromotionShopMap psmAdd = null;\n\t\t\tShop shT = null;\n\t\t\tDate now = commonMgr.getSysDate();\n\t\t\tLong idt = null;\n\t\t\tfor (int i = 0, sz = lstShopQttAdd.size(); i < sz; i++) {\n\t\t\t\tPromotionShopQttVO promotionShopQttVO = lstShopQttAdd.get(i);\n\t\t\t\tif (promotionShopQttVO != null) {\n\t\t\t\t\tidt = promotionShopQttVO.getShopId();\n\t\t\t\t\tif (super.getMapShopChild().get(idt) == null) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tshT = shopMgr.getShopById(idt);\n\t\t\t\t\tif (shT == null || shT.getType() == null || (!ShopSpecificType.NPP.equals(shT.getType().getSpecificType()) && !ShopSpecificType.NPP_MT.equals(shT.getType().getSpecificType()))) {\n\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"common.cms.shop.undefined\"));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tif (!ActiveType.RUNNING.equals(shT.getStatus())) {\n\t\t\t\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_STATUS_INACTIVE, shT.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tPromotionShopMap psm = promotionProgramMgr.getPromotionShopMap(idt, promotionId);\n\t\t\t\t\tif (psm != null && ActiveType.RUNNING.equals(psm.getStatus())) {\n\t\t\t\t\t\tresult.put(ERR_MSG, Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.shop.exist.shop.map.view\", shT.getShopCode()));\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t\tpsmAdd = new PromotionShopMap();\n\t\t\t\t\tpsmAdd.setPromotionProgram(pro);\n\t\t\t\t\tpsmAdd.setShop(shT);\n\t\t\t\t\tpsmAdd.setStatus(ActiveType.RUNNING);\n\t\t\t\t\tpsmAdd.setCreateDate(now);\n\t\t\t\t\tpsmAdd.setCreateUser(currentUser.getUserName());\n\t\t\t\t\tpsmAdd.setFromDate(pro.getFromDate());\n\t\t\t\t\tpsmAdd.setToDate(pro.getToDate());\n\t\t\t\t\tif (promotionShopQttVO.getQuantityMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getQuantityMax().toString()) || promotionShopQttVO.getQuantityMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.quantity.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t}\n\t\t\t\t\tif (promotionShopQttVO.getNumMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getNumMax().toString()) || promotionShopQttVO.getNumMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.num.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t}\n\t\t\t\t\tif (promotionShopQttVO.getAmountMax() != null) {\n\t\t\t\t\t\tif (!ValidateUtil.validateNumber(promotionShopQttVO.getAmountMax().toString()) || promotionShopQttVO.getAmountMax().intValue() < 0) {\n\t\t\t\t\t\t\tresult.put(ERR_MSG, R.getResource(\"catalog.promotion.shop.add.map.amount.max.error\", shT.getShopCode()));\n\t\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpsmAdd.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t}\n\t\t\t\t\t// ktra co cha phan bo k\n\t\t\t\t\tList<Shop> listParentShop = shopMgr.getListParentShopId(ActiveType.RUNNING.getValue(), idt);\n\t\t\t\t\tPromotionShopJoin parentAllotion = getParentPromotionShopJoinAllcation(listParentShop, lstCurrentPromotionShopJoin);\n\t\t\t\t\tif (parentAllotion == null) {\n\t\t\t\t\t\tlstNewShopMapNewTree.add(psmAdd);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlstNewShopMapOldTree.add(psmAdd);\n\t\t\t\t\t\t// them cac shop cha con thieu\n\t\t\t\t\t\tfor (Shop shop : listParentShop) {\n\t\t\t\t\t\t\tif (shop.getId() != null && parentAllotion.getShop() != null && shop.getId().equals(parentAllotion.getShop().getId())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionShopJoin shopAdded = getParentPromotionShopJoin(lstNewShopJoin, shop.getId());\n\t\t\t\t\t\t\tif (shopAdded != null) {\n\t\t\t\t\t\t\t\tshopAdded.setQuantityMax(shopAdded.getQuantityMax() == null ? promotionShopQttVO.getQuantityMax() : (shopAdded.getQuantityMax() + promotionShopQttVO.getQuantityMax()));\n\t\t\t\t\t\t\t\tshopAdded.setNumMax(shopAdded.getNumMax() == null ? promotionShopQttVO.getNumMax() : shopAdded.getNumMax().add(promotionShopQttVO.getNumMax()));\n\t\t\t\t\t\t\t\tshopAdded.setAmountMax(shopAdded.getAmountMax() == null ? promotionShopQttVO.getAmountMax() : shopAdded.getAmountMax().add(promotionShopQttVO.getAmountMax()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tPromotionShopJoin newShopJoin = new PromotionShopJoin();\n\t\t\t\t\t\t\t\tnewShopJoin.setPromotionProgram(pro);\n\t\t\t\t\t\t\t\tnewShopJoin.setShop(shop);\n\t\t\t\t\t\t\t\tnewShopJoin.setStatus(ActiveType.RUNNING);\n\t\t\t\t\t\t\t\tnewShopJoin.setCreateDate(now);\n\t\t\t\t\t\t\t\tnewShopJoin.setCreateUser(currentUser.getUserName());\n\t\t\t\t\t\t\t\tnewShopJoin.setFromDate(pro.getFromDate());\n\t\t\t\t\t\t\t\tnewShopJoin.setToDate(pro.getToDate());\n\t\t\t\t\t\t\t\tnewShopJoin.setQuantityMax(promotionShopQttVO.getQuantityMax());\n\t\t\t\t\t\t\t\tnewShopJoin.setNumMax(promotionShopQttVO.getNumMax());\n\t\t\t\t\t\t\t\tnewShopJoin.setAmountMax(promotionShopQttVO.getAmountMax());\n\t\t\t\t\t\t\t\tlstNewShopJoin.add(newShopJoin);\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\tlstNewShopMap.add(psmAdd);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// validate cac shop thuoc nhanh moi\n\t\t\tif (lstNewShopMapNewTree.size() > 0) {\n\t\t\t\t// lay cau hinh bat buoc cac node NPP phai duoc phan bo\n\t\t\t\tList<ApParam> allocationPromotionShopConfigs = apParamMgr.getListApParam(ApParamType.ALLOCATION_PROMOTION_SHOP, ActiveType.RUNNING);\n\t\t\t\tisAllocationPromotionShop = (allocationPromotionShopConfigs == null || allocationPromotionShopConfigs.size() == 0 || Constant.ONE_TEXT.equals(allocationPromotionShopConfigs.get(0).getValue()));\n\t\t\t\tif (isAllocationPromotionShop) {\n\t\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCurrentPromotionShopMap, lstNewShopMapNewTree);\n\t\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// validate cac shop thuoc nhanh da them\n\t\t\tif (lstNewShopMapOldTree.size() > 0) {\n\t\t\t\tlstCurrentPromotionShopMap.addAll(lstNewShopMapOldTree);\n\t\t\t\tlstCurrentPromotionShopJoin.addAll(lstNewShopJoin);\n\t\t\t\terrMsg = validateQuantityAmountNumPromotionShop(lstCurrentPromotionShopMap, lstNewShopMapOldTree);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\terrMsg = validateAllocateParentChildPromotionShop(lstCurrentPromotionShopMap, lstCurrentPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t\terrMsg = validatePromotionShop(lstCurrentPromotionShopMap, lstCurrentPromotionShopJoin);\n\t\t\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\tresult.put(\"errMsg\", errMsg);\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\treturn JSON;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpromotionProgramMgr.addPromotionShop(lstNewShopMap, lstNewShopJoin, getLogInfoVO());\n\t\t\tresult.put(ERROR, false);\n\t\t} catch (BusinessException ex) {\n\t\t\tLogUtility.logErrorStandard(ex, \"vnm.web.action.program.ProgramCatalogAction.saveShopSupportQuantity\", createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(ERROR, true);\n\t\t\tresult.put(ERR_MSG, ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t} finally {\n\t\t\tlstCurrentPromotionShopMap.clear();\n\t\t\tlstCurrentPromotionShopMap = null;\n\t\t\tlstCurrentPromotionShopJoin.clear();\n\t\t\tlstCurrentPromotionShopJoin = null;\n\t\t}\n\t\treturn JSON;\n\t}", "public void teken(){\n removeAll();\n \n //eerste tekening\n if(tekenEerste != false){\n tekenMuur();\n tekenSleutel();\n veld[9][9] = 6;\n tekenEerste = false;\n tekenBarricade();\n }\n \n //methode die de speler de waarde van de sleutel geeft aanroepen\n sleutelWaarde();\n \n //de methode van het spel einde aanroepen\n einde();\n \n //vernieuwd veld aanroepen\n veld = speler.nieuwVeld(veld);\n \n //het veld tekenen\n for(int i = 0; i < coordinaten.length; i++) {\n for(int j = 0; j < coordinaten[1].length; j++){\n switch (veld[i][j]) {\n case 1: //de sleutels\n if(i == sleutel100.getY() && j == sleutel100.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel1002.getY() && j == sleutel1002.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel200.getY() && j == sleutel200.getX()){\n coordinaten[i][j] = new SleutelVakje(200);\n }\n else if (i == sleutel300.getY() && j == sleutel300.getX()){\n coordinaten[i][j] = new SleutelVakje(300);\n } break;\n case 2: //de muren\n coordinaten[i][j] = new MuurVakje();\n break;\n // de barricades\n case 3:\n coordinaten[i][j] = new BarricadeVakje(100);\n break;\n case 4:\n coordinaten[i][j] = new BarricadeVakje(200);\n break;\n case 5:\n coordinaten[i][j] = new BarricadeVakje(300);\n break;\n case 6: // het eindveld vakje\n coordinaten[i][j] = new EindveldVakje();\n break;\n default: // het normale vakje\n coordinaten[i][j] = new CoordinaatVakje();\n break;\n }\n //de speler\n coordinaten[speler.getY()][speler.getX()] = new SpelerVakje();\n \n //het veld aan de JPanel toevoegen\n add(coordinaten[i][j]);\n }\n }\n System.out.println(\"Speler waarde = \" + speler.getSleutelWaarde());\n revalidate();\n repaint();\n }", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "public List<Shop> getListShop(){\r\n\t\tSession session = getSessionFactory().openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tString sql = \"select s from \" + Shop.class.getName() + \" s\";\r\n\t\tList<Shop> listShop = (List<Shop>)session.createQuery(sql).list(); \r\n\t\tif(null != listShop && shopCache.size() == 0){\r\n\t\t\tfor(Shop shop : listShop){\r\n\t\t\t\tif(!shopCache.containsKey(shop.getId())){\r\n\t\t\t\t\tShopView shopView = parseShopView(shop);\r\n\t\t\t\t\tshopCache.put(shop.getId(), shopView);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\ttx.commit();\r\n\t\tsession.close();\r\n\t\treturn listShop;\r\n\t}", "@Override\n public void onRefresh() {\n fetchShopAsync(0);\n }", "public void addShop() {\n FacesContext context = FacesContext.getCurrentInstance();\n\n log.info(\"OrdersBean : AddShop\");\n\n int idAds = Integer.parseInt(getParam(\"adsId\"));\n\n if (idAds == 0) {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"fxs.addShopButton.addShopError\"), null));\n return;\n }\n\n adsBean.getAdsId(idAds);\n\n init();\n checkIfOrdersEntityIsNullAndCreateOrders();\n\n if (contractsBean.createContract()) {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, JsfUtils.returnMessage(getLocale(), \"fxs.addShopButton.addShopSuccess\"), null));\n } else {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"fxs.addShopButton.addShopError\"), null));\n }\n findOrderAndfindContracts();\n }", "@Override\n\t@Transactional\n\tpublic ShopDTO updateShop(Shop shop) throws ArgumentNotValidException, ArgumentNotFoundException {\n\t\tShop shopPrevious = GetShopByIdFromRepository(shop.getId());\n\t\tif(!shopPrevious.getBrandName().equals(shop.getBrandName())) CheckIfShopBrandNameExist(shop);\n\t\t\n\t\t//keep creation date\n\t\tshop.setCreationDate(shopPrevious.getCreationDate());\n\t\t\n\t\t//update shop\n\t\tshop = shopRepo.save(shop);\n\t\treturn ConvertShopToDTO(shop);\n\t}", "public String getShopId() {\n\t\treturn shopId;\n\t}", "public String getShopId() {\n\t\treturn shopId;\n\t}", "public void sell(Player p, TradeGood good, Planet planet, int numGoods) {\n // increment money and remove from cargoArr\n p.setCredits(p.getCredits() + numGoods*calcPrice(good, planet));\n// for(int i = 0; i < numGoods; i++) {\n// p.getShip().sellCargo(good, numGoods);\n// }\n p.getShip().sellCargo(good, numGoods);\n }", "public void setShopNmR(String shopNmR) {\n this.shopNmR = shopNmR;\n }", "private void sellItem(ShopItem item) {\n if (!world.ifHasItem(item.getName())) {\n System.out.println(\"You don't have Item : \" + item.getName());\n return;\n }\n world.removeItem(item.getName());\n int gold = world.getCharacter().getGold().get();\n world.getCharacter().setGold(gold + item.getPrice());\n System.out.println(\"You have sold Item : \" + item.getName());\n }", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "public void unRegAll(){\n \t\t\n \t\tfor(ShopItem shopItem : itemList){\n \t\t\t//TODO: process more then one item at the same time.\n \t\t\t/*\n \t\t\tint position = shopItem.getShopPosition().getSlot();\n \t\t\tif(processedPositions.contains(position))\n \t\t\t\tcontinue;\n \t\t\tprocessedPositions.add(position);\n \t\t\tint amount = getItemAmount(position);\n \t\t\t*/\n \t\t\tint amount = 1;\n \t\t\tgetOwner().getClient().sendPacket(Type.U_SHOP, \"unreg\", 1, shopItem.getShopPosition().getSlot(), amount);\n \t\t\t\n \t\t\t//int[] freePosition = getOwner().getInventory().getFreeSlots(shopItem.getItem(), -1);\n \t\t\t//InventoryPosition inventoryPosition = new InventoryPosition(freePosition[1],freePosition[2],freePosition[0]);\n \t\t\t//InventoryItem inventoryItem = new InventoryItem(shopItem.getItem(),\tinventoryPosition);\n \t\t\t//getOwner().getInventory().addInventoryItem(inventoryItem);\n \t\t\tInventoryItem inventoryItem = getOwner().getInventory().storeItem(shopItem.getItem(), -1);\n \t\t\tgetOwner().getClient().sendPacket(Type.INVEN, inventoryItem, getOwner().getClient().getVersion());\n \t\t}\n \t\titemList.clear();\n \t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "@SuppressWarnings(\"FeatureEnvy\")\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void sellItem(String goods, int price) {\n @SuppressWarnings(\"ChainedMethodCall\") int max = player.getInven().get(goods.toLowerCase());\n if ((max - Integer.parseInt(inputStr)) >= 0) {\n player.getInven().put(goods.toLowerCase(), player.getInven().get(goods.toLowerCase())\n -Integer.parseInt(inputStr));\n player.setCargo(player.getCargo() - Integer.parseInt(inputStr));\n player.setCredit(player.getCredit() + (Integer.parseInt(inputStr) * price));\n bay.setText(String.valueOf(player.getCargo()) + \"/\" + player.getSpaceship().getBay());\n credit.setText(String.valueOf(player.getCredit()) + \" Cr\");\n setupInverntory();\n Toast.makeText(getApplicationContext(), \"You sold \" + inputStr + \" \" + goods,\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"You can not sell anymore. Check your bay.\", Toast.LENGTH_LONG).show();\n }\n }", "private void shopSwitchToMainMenu() {\n potionNum = 1;\n defenseNum = 1;\n pause();\n Pane canvas = new Pane();\n Stage stage = new Stage();\n stage.setTitle(\"Shopping Store\");\n Label winLabel = new Label(\"Shopping Castle!\");\n ShopItem[] buyItems = new ShopItem[8];\n ShopItem[] sellItems = new ShopItem[8];\n for (int i = 0; i < 8; i++) {\n int gold = world.getCharacter().getGold().get();\n ShopItem item = ShoppingItem(i, gold, true);\n Button newButton = new Button(\"Buy\" + item.getName() + \" \" + item.getPrice());\n newButton.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n buyItem(item);\n }\n });\n if (gold < item.getPrice()) {\n newButton.disableProperty().set(true);\n }\n newButton.relocate(30 + i * 100, 80);\n canvas.getChildren().addAll(newButton);\n\n buyItems[i] = item;\n buyItems[i].setButton(newButton);\n }\n\n for (int i = 0; i < 8; i++) {\n int gold = world.getCharacter().getGold().get();\n ShopItem item = ShoppingItem(i, gold, false);\n Button newButton = new Button(\"Sell\" + item.getName() + \" \" + item.getPrice());\n\n if (!world.ifHasItem(item.getName())) {\n newButton.disableProperty().set(true);\n }\n\n newButton.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n sellItem(item);\n }\n });\n\n newButton.relocate(30 + i * 100, 150);\n canvas.getChildren().addAll(newButton);\n\n sellItems[i] = item;\n sellItems[i].setButton(newButton);\n }\n Button tempButton;\n for (int i = 0; i < 8; i++) {\n tempButton = buyItems[i].getButton();\n tempButton.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n updateButtonState(buyItems, sellItems);\n }\n });\n tempButton = sellItems[i].getButton();\n tempButton.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n updateButtonState(buyItems, sellItems);\n }\n });\n }\n\n Button returnGameButton = new Button(\"Back to Game Menu\");\n returnGameButton.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n stage.close();\n startTimer();\n }\n });\n canvas.setPrefSize(1000, 400);\n winLabel.relocate(123, 30);\n returnGameButton.relocate(80, 200);\n canvas.getChildren().addAll(winLabel, returnGameButton);\n stage.setScene(new Scene(canvas, 1000, 400));\n stage.sizeToScene();\n stage.show();\n }", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "private void showShopScreen() {\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 643 && Mouse.getX() <= 758 && Mouse.getY() <= (displayHeight - 494) && Mouse.getY() >= (displayHeight - 562))) {\n\t\t\t// draw shop screen\n\t\t\tdrawScreen(sprite.get(\"shopScreen\"));\n\t\t\t\n\t\t\twhile (Mouse.next()) {\n\t\t\t\tif (!laserShot && cash >= 500 && !Mouse.getEventButtonState() && Mouse.getEventButton() == 0\n\t\t\t\t\t\t&& Mouse.getX() >= 278 && Mouse.getX() <= 382\n\t\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 207) && Mouse.getY() >= (displayHeight - 259)) {\n\t\t\t\t\tbulletShot = false;\n\t\t\t\t\tdoubleShot = false;\n\t\t\t\t\tlaserShot = true;\n\t\t\t\t\tcash -= 500;\n\t\t\t\t\tsound.get(\"shopBuyEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!doubleShot && cash >= 1000 && !Mouse.getEventButtonState()\n\t\t\t\t\t\t&& Mouse.getEventButton() == 0 && Mouse.getX() >= 278 && Mouse.getX() <= 382\n\t\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 319) && Mouse.getY() >= (displayHeight - 371)) {\n\t\t\t\t\tbulletShot = false;\n\t\t\t\t\tdoubleShot = true;\n\t\t\t\t\tlaserShot = false;\n\t\t\t\t\tcash -= 1000;\n\t\t\t\t\tsound.get(\"shopBuyEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (player.getHP() < 1000 && cash >= 100 && !Mouse.getEventButtonState()\n\t\t\t\t\t\t&& Mouse.getEventButton() == 0 && Mouse.getX() >= 680 && Mouse.getX() <= 784\n\t\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 207) && Mouse.getY() >= (displayHeight - 259)) {\n\t\t\t\t\tplayer.setHP(player.getHP() + 100);\n\t\t\t\t\tif (player.getHP() > 1000)\n\t\t\t\t\t\tplayer.setHP(1000);\n\t\t\t\t\tcash -= 100;\n\t\t\t\t\tsound.get(\"shopBuyEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// draw health\n\t\t\tdefaultFont.drawString(13, displayHeight - 70, \"Health: \" + player.getHP() + \"/1000\");\n\t\t\t// draw cash\n\t\t\tdefaultFont.drawString(13, displayHeight - 40, \"Cash: $\" + cash);\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t}", "@Override\r\n\tpublic void AddShop(Shop shop) {\n\t\tSystem.out.println(\"-------ShopDaoImp.AddShop-----------\"\r\n\t\t\t\t+ shop.getName());\r\n\t\tgetSession().save(shop);\r\n\t}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "@Override\r\n\tpublic void getGroup(ShoppingList sl) {\r\n\r\n\t}", "@Override\r\n\tpublic List<Shop> chakan(Integer sid) {\n\t\treturn dao.chakan(sid);\r\n\t}", "private void buyProperty(Player currentPlayer, Square location) {\n String method = \"buyProperty\";\n PropertySquare square = (PropertySquare)location;\n\n recognizedSpeech.setText(\"\");\n if(square.getOwned()){\n convertTextToSpeech(square.getOwnedBy() + \"call rent\");\n //rent is subtracted and added\n\n if(m_manageFunds) {\n currentPlayer.subtractMoney(100);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(method + \"rent subtract money\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n String owner = square.getOwnedBy();\n for (int i = 0; i < m_numPlayers; i++) {\n if (players.get(i).getName().equals(owner)) {\n players.get(i).addMoney(100);\n Log.d(method + \"rent add money\", players.get(i).getName() +\n String.valueOf(players.get(i).getMoney()));\n }\n }\n }\n nextTurnRoll();\n\n } else {\n int price = ((PropertySquare) location).getPrice();\n convertTextToSpeech(\"Would you like to buy\" + square.getName() + \"for\" + price);\n\n while (m_tts.isSpeaking()) {\n speech = null;\n }\n\n speech = SpeechRecognizer.createSpeechRecognizer(this);\n speech.setRecognitionListener(this);\n speech.startListening(getIntent());\n\n }\n }", "public Shop getShopById(String id) {\n for(Shop shop: shops) {\n if(shop.getId().equals(id)) {\n return shop;\n }\n }\n return null;\n }", "public String searchShopOfPromotion() throws Exception {\n\t\tactionStartTime = new Date();\n\t\tif (promotionId == null || promotionId <= 0) {\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tLong shId = currentUser.getShopRoot().getShopId();\n\t\t\tPromotionShopMapFilter filter = new PromotionShopMapFilter();\n\t\t\tfilter.setShopId(shId);\n\t\t\tfilter.setPromotionId(promotionId);\n\t\t\tfilter.setStaffRootId(currentUser.getStaffRoot().getStaffId());\n\t\t\tfilter.setRoleId(currentUser.getRoleToken().getRoleId());\n\t\t\tfilter.setShopRootId(currentUser.getShopRoot().getShopId());\n\t\t\tfilter.setShopCode(code);\n\t\t\tfilter.setShopName(name);\n\t\t\tfilter.setQuantityMax(quantity);\n\t\t\tList<PromotionShopVO> lstTemp = promotionProgramMgr.searchPromotionShopMapJoin(filter);\n\t\t\tList<TreeGridNode<PromotionShopVO>> tree = new ArrayList<TreeGridNode<PromotionShopVO>>();\n\t\t\tif (lstTemp == null || lstTemp.size() == 0) {\n\t\t\t\tresult.put(\"rows\", tree);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\tfor (int k = 0; k < lstTemp.size(); k++) {\n\t\t\t\t/*\n\t\t\t\t * for (int j = k + 1; j < lstTemp.size(); j++) { if\n\t\t\t\t * (lstTemp.get(k).getId().equals(lstTemp.get(j).getId())) {\n\t\t\t\t * lstTemp.remove(j); j--; } }\n\t\t\t\t */\n\t\t\t\t//fix sonar\n\t\t\t\tint j = k + 1;\n\t\t\t\twhile (j < lstTemp.size()) {\n\t\t\t\t\tif (lstTemp.get(k).getId().equals(lstTemp.get(j).getId())) {\n\t\t\t\t\t\tlstTemp.remove(j);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Filter cac shop trung\n\t\t\tArrayList<PromotionShopVO> lst = new ArrayList<>();\n\t\t\tfor (PromotionShopVO shopVO : lstTemp) {\n\t\t\t\tboolean isExist = false;\n\n\t\t\t\tfor (PromotionShopVO shopAdd : lst) {\n\t\t\t\t\tif (shopVO.getId().equals(shopAdd.getId())) {\n\t\t\t\t\t\tisExist = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!isExist) {\n\t\t\t\t\tlst.add(shopVO);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Tao cay\n\t\t\tint i, sz = lst.size();\n\t\t\tPromotionShopVO vo = null;\n\t\t\tboolean flag = false;\n\t\t\tfor (i = 0; i < sz; i++) {\n\t\t\t\tvo = lst.get(i);\n\t\t\t\tif (shId.equals(vo.getId())) {\n\t\t\t\t\ti++;\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!flag) {\n\t\t\t\tresult.put(\"rows\", tree);\n\t\t\t\treturn JSON;\n\t\t\t}\n\t\t\t//PromotionShopVO vo = lst.get(0);\n\t\t\tTreeGridNode<PromotionShopVO> node = new TreeGridNode<PromotionShopVO>();\n\t\t\tnode.setNodeId(vo.getId().toString());\n\t\t\tnode.setAttr(vo);\n\t\t\tnode.setState(ConstantManager.JSTREE_STATE_OPEN);\n\t\t\tnode.setText(vo.getShopCode() + \" - \" + vo.getShopName());\n\t\t\tList<TreeGridNode<PromotionShopVO>> chidren = new ArrayList<TreeGridNode<PromotionShopVO>>();\n\t\t\tnode.setChildren(chidren);\n\t\t\ttree.add(node);\n\n\t\t\tTreeGridNode<PromotionShopVO> tmp;\n\t\t\tTreeGridNode<PromotionShopVO> tmp2;\n\t\t\tfor (; i < sz; i++) {\n\t\t\t\tvo = lst.get(i);\n\n\t\t\t\tif (vo.getParentId() == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\ttmp2 = getNodeFromTree(tree, vo.getParentId().toString());\n\t\t\t\tif (tmp2 != null) {\n\t\t\t\t\ttmp = new TreeGridNode<PromotionShopVO>();\n\t\t\t\t\ttmp.setNodeId(vo.getId().toString());\n\t\t\t\t\ttmp.setAttr(vo);\n\t\t\t\t\tif (0 == vo.getIsNPP()) {\n\t\t\t\t\t\ttmp.setState(ConstantManager.JSTREE_STATE_OPEN);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttmp.setState(ConstantManager.JSTREE_STATE_LEAF);\n\t\t\t\t\t}\n\t\t\t\t\ttmp.setText(vo.getShopCode() + \" - \" + vo.getShopName());\n\n\t\t\t\t\tif (tmp2.getChildren() == null) {\n\t\t\t\t\t\ttmp2.setChildren(new ArrayList<TreeGridNode<PromotionShopVO>>());\n\t\t\t\t\t}\n\t\t\t\t\ttmp2.getChildren().add(tmp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult.put(\"rows\", tree);\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.searchShopOfPromotion\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn JSON;\n\t}", "public void setShopCostumerSubscription(String shopCostumerSubscription)\n\t{\n\t\tm_shopCostumerSubscription = shopCostumerSubscription;\n\t}", "private void printSupplierList(Shop shop) {\n System.out.println(shop.supplierListToString());\n }", "public GroceryStore (int a, int f, int iF, int fr, boolean lA, boolean b, String bS, int p, String n, double l, double w, boolean c,int e, int fn, String m, int cl, int ps, String sl, int r, double in, double out)\n {\n if (a <= 0)\n {\n System.out.println (\"Invalid amount of aisles. There are now 5 aisles.\");\n aisles = 5;\n }\n else{\n aisles = a;\n }\n if (f <= 0)\n {\n System.out.println (\"Invalid amount of freezers. There are now 3 freezers.\");\n freezers = 3;\n }\n else{\n freezers = f;\n }\n if (iF>10||iF<=0)\n {\n System.out.println (\"Number isn't 1-10. \\\"inventoryFull\\\" value is 5.\");\n inventoryFull = 5;\n }\n else\n {\n inventoryFull = iF;\n }\n if (fr>10||fr<=0)\n {\n System.out.println (\"Number isn't 1-10. \\\"fresh\\\" value is 8.\");\n fresh = 8;\n }\n else\n {\n fresh = fr;\n }\n liveAnimals=lA;\n bakery=b;\n bestSeller=bS;\n if (p <= 0)\n {\n System.out.println (\"Invalid amount of products. There are now 1000 products.\");\n numberOfProducts = 1000;\n }\n else{\n numberOfProducts = p;\n }\n\n setName(n);\n if (l*w <= 0)\n {\n System.out.println (\"Invalid area. Area set to 500.0m2.\");\n setArea(50.0, 10.0);\n }\n else\n {\n setArea(l,w);\n }\n setConnected(c);\n if (e <= 0)\n {\n System.out.println (\"Invalid number of employees. Employees set to 5.\");\n setEmployees(5);\n }\n else\n {\n setEmployees(e);\n }\n if (fn <= 0)\n {\n System.out.println (\"Invalid number of floors. Floor number set to 1.\");\n setFloorNumber(1);\n }\n else\n {\n setFloorNumber(fn);\n }\n setManager(m);\n if (cl>10||cl<=0)\n {\n System.out.println (\"Number isn't 1-10. \\\"cleanliness\\\" is set to 8.\");\n setCleanliness(8);\n }\n else\n {\n setCleanliness(cl);\n }\n if (ps <= 0)\n {\n System.out.println (\"Invalid number of parking spaces. Parking spaces set to 3.\");\n setParkingSpaces(3);\n }\n else\n {\n setParkingSpaces(ps);\n }\n setStreetLocation(sl);\n if (r <= 0)\n {\n System.out.println (\"Invalid number of registers. Number of registers set to 2.\");\n setRegisters(2);\n }\n else\n {\n setRegisters(r);\n }\n calcRevenue(in, out);\n }", "public void openShop(MainWindow mainWindow) {\n mainWindow.closeWindow();\n new ShopWindow(this);\n }", "@Override\n\t\t\tpublic void suprimer(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "public Integer getShopid() {\n return shopid;\n }", "public void dealerUitspelen(Spelers speler, Spelers dealer, ArrayList<Kaarten> kaartenspel) {\n\n\t\twhile ((dealer.berekenScore(dealer.hand) < 17) && (speler.totaal > dealer.totaal)) {\n\n\t\t\tSystem.out.println(\"De dealer pakt een nieuwe kaart\");\n\t\t\tdealer.hand.add(kaartenspel.get(0));\n\t\t\tkaartenspel.remove(0);\n\t\t\tdealer.berekenScore(dealer.hand);\n\t\t}\n\t\tif (dealer.berekenScore(dealer.hand) > 21) {\n\n\t\t\tSystem.out.println(\"U wint dit spelletje!\");\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"U heeft van de dealer verloren\\n\");\n\n\t\t}\n\t}" ]
[ "0.63732046", "0.63137305", "0.62407535", "0.6069606", "0.6049356", "0.59880745", "0.593253", "0.58922046", "0.58768094", "0.5851971", "0.583374", "0.58138317", "0.57753307", "0.57695866", "0.5755805", "0.57529664", "0.57075673", "0.5696386", "0.56909037", "0.56716037", "0.56521904", "0.5648239", "0.56314445", "0.5603663", "0.5592822", "0.55906534", "0.558978", "0.55669546", "0.5562905", "0.5556413", "0.55402225", "0.5524431", "0.552361", "0.5508877", "0.55071265", "0.55007833", "0.5500008", "0.5488579", "0.54857963", "0.5463068", "0.545874", "0.545306", "0.54479325", "0.54434544", "0.5437614", "0.5432156", "0.5429505", "0.5428848", "0.5419226", "0.5412845", "0.5411089", "0.54102236", "0.5406197", "0.54045004", "0.5402083", "0.5400888", "0.53857267", "0.53803855", "0.53803855", "0.5380277", "0.5373846", "0.53730124", "0.5372034", "0.53632957", "0.5354413", "0.534583", "0.5326492", "0.53258216", "0.5317486", "0.531499", "0.5290317", "0.52883524", "0.52831185", "0.5280501", "0.5280501", "0.5276933", "0.5275469", "0.5272504", "0.5271663", "0.52586", "0.52568585", "0.52465403", "0.5244183", "0.5243776", "0.5242208", "0.524178", "0.52371603", "0.5231468", "0.5221623", "0.5221594", "0.52187634", "0.5216682", "0.5215216", "0.52151024", "0.5212625", "0.5210479", "0.52020603", "0.51980984", "0.51893747", "0.5180713" ]
0.66065997
0
Spielschleife, fuehrt die Zeitberechnung fuer fluessige Darstellung, Tastenabfrage, Logik, Bewegung und Neuzeichnung aus.
public void run(){ while(game_running){ if(singleplayer){ computeDelta(); //Zeit für vorausgehenden Schleifendurchlauf wird errechnet //Erst Methoden abarbeiten, wenn Spiel gestartet ist if(isStarted()){ checkKeys(); //Tastaturabfrage doLogic(); //Ausführung der Logik moveObjects(); //Bewegen von Objekten } repaint(); try{ if(System.nanoTime()-last < 16666666){ Thread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate } }catch (InterruptedException e){} } else{ if(serverMode){ //Zeit für vorausgehenden Schleifendurchlauf wird errechnet //Erst Methoden abarbeiten, wenn Spiel gestartet ist computeDelta(); if(isStarted()){ checkKeys(); //Tastaturabfrage doLogic(); //Ausführung der Logik moveObjects(); //Bewegen von Objekten } repaint(); //System.out.println(System.nanoTime() - last); try{ if(!isStarted()){ Thread.sleep(20); }else if(System.nanoTime()-last < 16666666){ Thread.sleep((16666666 - (System.nanoTime() - last))/1000000); } // if(System.nanoTime()-last < 16666666){ // Thread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate // } }catch (InterruptedException e){} }else if(clientMode){ computeDelta(); if(isStarted()){ checkKeys(); doLogic(); moveObjects(); } repaint(); //System.out.println(System.nanoTime() - last); try{ //Thread.sleep(20); if(!isStarted()){ Thread.sleep(20); }else if(System.nanoTime()-last < 16666666){ Thread.sleep((16666666 - (System.nanoTime() - last))/1000000); } // if(System.nanoTime()-last < 16666666){ // Thread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate // } }catch (InterruptedException e){} } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "public void sendeSpielfeld();", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "public Spielflaeche getSpielflaeche() {return spielflaeche;}", "public Spieler(String spielfigur) {\n\n this.kontostand = 30000;\n this.spielfigur = spielfigur;\n this.istGefängnis = false;\n\n liste.put(\"braun\", braun);\n liste.put(\"hellblau\", hellblau);\n liste.put(\"pink\", pink);\n liste.put(\"orange\", orange);\n liste.put(\"rot\", rot);\n liste.put(\"gelb\", gelb);\n liste.put(\"grün\", grün);\n liste.put(\"duneklblau\", dunkelblau);\n liste.put(\"bahnhoefe\", bahnhoefe);\n liste.put(\"werke\", werke);\n felderInBesitz = new ArrayList<>();\n\n }", "public void sendeSpielerWeg(String spieler);", "public String gibZustand(){\n String out = anzahl+QwirkleServer.SEP;\n String aktiv = \"\";\n int[] punkte = new int[anzahl];\n String[] spielerSteine = new String[anzahl];\n String spielfeldString = \"\";\n\n //sammle Daten\n int count = 0;\n while (count<anzahl){\n Spieler spieler = this.spielerRing.getContent();\n if (spieler.istAktiv()) aktiv = spieler.gibIndex()+\"\";\n punkte[spieler.gibIndex()] = spieler.gibPunkteStand();\n spielerSteine[spieler.gibIndex()]=spieler.gibSteineString();\n this.spielerRing.next();\n count++;\n }\n\n if (spielEnde) aktiv = \"-1\";\n\n out += beutel.gibAnzahl()+QwirkleServer.SEP;\n out += aktiv;\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+punkte[i];\n\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+spielerSteine[i];\n\n\n spielfeld.toFirst();\n while(spielfeld.hasAccess()) {\n Stein stein = spielfeld.getContent();\n out += QwirkleServer.SEP + stein.toString();\n spielfeld.next();\n }\n\n return out;\n }", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "@Before\r\n\tpublic void erstelleSUT() {\n\t\tSpiel spiel = new Spiel();\r\n\r\n\t\t// Für jeden Spieler eine Unternehmenskette, damit eine\r\n\t\t// Konkurrenzsituation entsteht\r\n\t\tukette = new Unternehmenskette(\"KetteNummer1\");\r\n\t\tukette1 = new Unternehmenskette(\"KetteNummer2\");\r\n\t\t// Es werden für Unternehmenskette ein Report erstellt. Pro Runde\r\n\t\t// brauchen wir eigentlich ein Report für jede Kette.\r\n\t\tReport report = new Report(1, ukette);\r\n\t\tReport report1 = new Report(1, ukette1);\r\n\t\tukette.hinzufuegenReport(report);\r\n\t\tukette1.hinzufuegenReport(report1);\r\n\t\t// Dem Spiel werden die Unternehmensketten zugeordnet\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette);\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette1);\r\n\t\t// Ein Standort, an dem die Ketten konkurrieren sollen, wird angelegt\r\n\r\n\t\t// für den Kunden:\r\n\t\t// Praeferenz für ALLE ist Qualität\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tstandort = new Standort(Standorttyp.Standort1);\r\n\t\tfil1 = new Filiale(standort, ukette);\r\n\t\tfil1.setzeMitarbeiter(1);\r\n\t\tfil1.initialisierenKapazitaet();\r\n\t\tfil2 = new Filiale(standort, ukette1);\r\n\t\tfil2.setzeMitarbeiter(1);\r\n\t\tfil2.initialisierenKapazitaet();\r\n\t\tZufall.setzeTestmodus(false);\r\n\t\tstandort.beeinflussenKunden(ukette, 1);\r\n\t\tstandort.beeinflussenKunden(ukette1, 1);\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tProdukt p1 = new Produkt(Produkttyp.TEE, 20);\r\n\t\tProdukt p2 = new Produkt(Produkttyp.KUCHEN, 10);\r\n\t\tp1.setzePreis(1);\r\n\t\tp1.setzeQualitaet(0.56);\r\n\t\tp2.setzePreis(1.2);\r\n\t\tp2.setzeQualitaet(0.6);\r\n\t\tukette.holeLager().einlagern(p1);\r\n\t\tukette.holeLager().einlagern(p2);\r\n\t\tp1.setzePreis(0.8);\r\n\t\tp1.setzeQualitaet(0.5);\r\n\t\tukette1.holeLager().einlagern(p1);\r\n\t\t// Kette1 bietet Kaffee (P:1; Q:0.56) und Kuchen (P:1.2; Q:0.6) an\r\n\t\t// Kette2 bietet Kaffe (P:0.8, Q:0.5) an.\r\n\t}", "protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\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\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "public void sendeNeuerSpieler(String spieler);", "public void addSteinZuSpielFeld(Stein pStein, int spielerIndex)\n {\n if (!checkLegbarkeit(pStein))\n return;\n //System.out.println(\"QuirkelSpiel: \"+(System.currentTimeMillis() - start) + \" ms for Legbarkeitscheck!\");\n\n\n\n if (aktiveZeile ==null && aktiveSpalte ==null){\n aktiveZeile = pStein.gibZeile();\n aktiveSpalte = pStein.gibSpalte();\n }\n else if (aktiveZeile!=null && aktiveSpalte!=null){\n if (pStein.gibZeile()!=aktiveZeile && pStein.gibSpalte()!=aktiveSpalte) //Stein muss in gleiche Zeile oder Spalte gelegt werden\n return;\n else if (pStein.gibZeile()==aktiveZeile)\n aktiveSpalte = null;\n else\n aktiveZeile =null;\n }\n else if (aktiveZeile!=null){\n if (pStein.gibZeile()!=aktiveZeile) //Stein muss in die gleiche Zeile gelegt werden\n return;\n }\n else\n if (pStein.gibSpalte()!=aktiveSpalte) //Stein muss in die gleiche Spalte gelegt werden\n return;\n\n if (aktiveFarbe ==null && aktivesSymbol ==null){\n aktiveFarbe = pStein.gibFarbString();\n aktivesSymbol = pStein.gibSymbolString();\n }\n else if (aktiveFarbe!=null && aktivesSymbol!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe) && !pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol oder gleiche Farbe haben\n return;\n else if (pStein.gibFarbString().equals(aktiveFarbe))\n aktivesSymbol = null;\n else\n aktiveFarbe =null;\n }\n else if (aktiveFarbe!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe)) //Stein muss gleiche Farbe haben\n return;\n }\n else\n if (!pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol haben\n return;\n\n\n spielfeld.append(pStein); // legt ihn auf das Spielfeld\n symbolMap.get(pStein.gibSymbol()).add(pStein);\n farbenMap.get(pStein.gibSymbol()).add(pStein);\n\n int punkte=0;\n int zwischenPunkte =horizontalePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n zwischenPunkte =senkrechtePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n\n if (punkte==0)\n punkte = 1; //gib auf alle Faelle einen Punkt\n\n while (spielerRing.getContent().gibIndex()!=spielerIndex)\n spielerRing.next();\n\n Spieler spieler = this.spielerRing.getContent();\n spieler.legeStein(pStein,punkte);\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + pStein.toString() + \" gelegt.\");\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + punkte + \" Punkte bekommen.\");\n\n\n //Wiederauffuellen in der gleichen Runde, wenn alle Steine abgelegt worden sind\n if (spieler.gibAnzahlSteine()==0 && beutel.gibAnzahl()>0){\n while (spieler.gibAnzahlSteine()<6 && beutel.gibAnzahl()>0){\n spieler.addStein(beutel.gibStein());\n }\n }\n\n }", "public void skrivUtSpiller() {\r\n\t\tSystem.out.println(\"Spiller \" + id + \": \" + navn + \", har \" + poengsum + \" poeng\");\r\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "public int bewerten(String spieler){\n\t\treihenPruefen pruefen = new reihenPruefen();\n\t\tString gegner;\n\t\t\n\t\tif(spieler.equals(\"o\")){\n\t\t\tgegner = \"x\";\n\t\t}else{\n\t\t\tgegner = \"o\";\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, spieler)){\n\t\t\treturn 4;\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, gegner)){\n\t\t\treturn -4;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, spieler)){\n\t\t\treturn 3;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, gegner)){\n\t\t\treturn -3;\n\t\t}\n\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, spieler)){\n\t\t\treturn 2;\n\t\t}\n\t\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, gegner)){\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }", "public int miete(Spieler spieler){\n\t\treturn logik.miete(spieler);\n\t}", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "public Farbe letztesKamel();", "public AbstraktesSpielfeld getSpielfeld() {\n // Hier ein Spielfeld-Objekt erzeugen und zurückliefern.\n return new Spielfeld();\n }", "public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}", "public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}", "public Farbe fuehrendesKamel();", "private void heilenTrankBenutzen() {\n LinkedList<Gegenstand> gegenstaende = spieler.getAlleGegenstaende();\n for (Gegenstand g : gegenstaende) {\n if (g.getName().equalsIgnoreCase(\"heiltrank\")) {\n spieler.heilen();\n gegenstaende.remove(g);\n System.out.print(\"Heiltrank wird benutzt\");\n makePause();\n System.out.println(\"Du hast noch \" + zaehltGegenstand(\"heiltrank\") + \" Heiltranke!\");\n return;\n }\n }\n System.out.println(\"Du hast gerade keinen Heiltrank\");\n }", "private boolean analyseQueryBefore(Spieler spieler,Spieler spielerB, Board board) {\r\n\t\t// Switch mit der Spielphase des Spielers\r\n\t\tboolean back = false;\r\n\t\tswitch (spieler.getSpielPhase()) {\r\n\t\t\tcase 0: \t// Werte nur Regel 1 aus\r\n\t\t\t\t\t\tList<Stein> rueckgabe = this.logikCheck.sucheZweiInGleicherReihe(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!rueckgabe.isEmpty() && !rueckgabe.get(0).equals(new Stein(0,0,0, null))) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe.get(0));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 1:\t\tfor(Regel regel: uebergreifendeRegeln) {\r\n\t\t\t\t\t\t\tif(regel.getIfTeil().contains(\"eigene Steine\")) {\r\n\t\t\t\t\t\t\t\tList<Stein> getDataBack = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!getDataBack.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tStein stein = getDataBack.get(1);\r\n\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\tback = true;\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\t\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tList<Stein> zweiGegner = this.logikCheck.sucheZweiInGleicherReihe(spielerB.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!zweiGegner.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tList<Stein> result = this.logikCheck.sucheSteinInderNäheUmGegnerZuBlocken(zweiGegner, spieler);\r\n\t\t\t\t\t\t\t\t\tif(!result.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tStein stein = result.get(0);\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\t\tback = true;\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\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 2:\t\tList<Stein> rueckgabe2 = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\tif(!rueckgabe2.isEmpty()) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(0));\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(1));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault: break;\t\r\n\t\t}\r\n\t\treturn back;\r\n\t}", "public Zufallsgenerator(){//der arbeitskonstruktor, der alles setzt\n\t\t\n\t\tfile=\"Zwischenstand.txt\";\n\t\tint x=Gamepanel.Spielfeld.length;//hol die spielfeld-länge\n\n\t\tString ausgabe=\"\";\n\t\tausgabe+=\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\";\n\t\tausgabe+=\"\\n\";\n\t\t\n\t\tausgabe+=\"<level>\";\n\t\tausgabe+=\"\\n\";\n\t\ttry{\n\t\tFile schreiber=new File(file);\n\t\tFileWriter fwriter=new FileWriter(schreiber);\n\t\t\n\t\t/**\n\t\t * Die Methode muss mehrmals verwendet werden, da sonst der String oft schnell zu groß wird\n\t\t */\n\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\tchar c=ausgabe.charAt(k);\n\t\t\tif(c=='\\n')\n\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\telse fwriter.write(c);\n\t\t}\n\t\tausgabe=\"\";\n\t\tdouble ran;\n\t\t\n\t\tfor(int i=0;i<x;i++){//methode aus dem schreibe_xml\n\t\t\t\n\t\t\tfor(int j=0;j<x;j++){\t\t\t\t\n\t\t\t\tausgabe+=(\"\\t<Feld>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Typ>\");\n\t\t\t\t\n\t\t\t\tif(i == 0 || i == 14 || j == 0 || j == 14){\n\t\t\t\t\tausgabe+=\"unzerstoerbar\";\n\t\t\t\t} else if((i == 1 && j == 1) || (i == 1 && j == 2) || (i == 2 && j == 1) || (i == 13 && j == 13)\n\t\t\t\t\t\t|| (i == 13 && j == 12) || (i == 12 && j == 13)) {\n\t\t\t\t\tausgabe+=\"Weg\";\n\t\t\t\t} else if(i == 7 && j == 7){\n\t\t\t\t\tausgabe +=\"Ausgang\";\n\t\t\t\t} else {\n\t\t\t\t\tran = (int) (Math.random()*3);\n\t\t\t\t\tif(ran == 0) ausgabe += \"Weg\";\n\t\t\t\t\tif(ran == 1) ausgabe += \"zerstoerbar\";\n\t\t\t\t\tif(ran == 2) ausgabe += \"zerstoerbar\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tausgabe+=(\"</Typ>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Position><X>\"+j+\"</X><Y>\"+i+\"</Y></Position>\\n\");\n\t\t\t\tausgabe+=(\"\\t</Feld>\\n\");\n\t\n\t\t\t}\n\t\t\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\t\t\tchar c=ausgabe.charAt(k);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\tausgabe=\"\";\n\t\t\t}\n\n\t\t\tausgabe+=\"\\n\\t<Spieler1>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+40+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+40+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler1>\";\n\t\t\t\n\t\t\tausgabe+=\"\\n\\t<Spieler2>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+520+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+520+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler2>\";\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\tausgabe+=\"\\n\\n\\n</level>\";\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\tfwriter.flush();\n\t\t\t\tfwriter.close();\n\t\t} catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t\n\t\t}\n\t\t\n\t}", "public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}", "protected ElementDoppeltVerkettet gehe(int anzahlSchritte) {\n\t\tElementDoppeltVerkettet aktuell = this;\n\t\tint aS = anzahlSchritte;\n\t\tif (aS < 0) {\n\t\t\twhile (aS < 0 && aktuell.zurück != null) {\n\t\t\t\taktuell = aktuell.zurück;\n\t\t\t\taS++;\n\t\t\t}\n\t\t} else {\n\t\t\twhile (aS > 0 && aktuell.vor != null) { aktuell = (ElementDoppeltVerkettet) aktuell.vor; aS--; }\n\t\t}\n\t\tif (aS == 0) {\n\t\t\treturn aktuell;\n\t\t} else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Die Grenzen der Liste sollten überschritten werden\");\n\t\t}\n\t}", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public boolean siegMuster(int spalte, int zeile){\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile].equals(eigenerStein) && spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe links -1\n\t\ttry{\n\t\t\tif(spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe rechts +3\n\t\ttry{\n\t\t\tif(spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein) && spielfeld[spalte+3][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t//Pruefe senkrecht\n\t\ttry{\n\t\t\tif(spielfeld[spalte][zeile-3].equals(eigenerStein) && spielfeld[spalte][zeile-2].equals(eigenerStein) && spielfeld[spalte][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t//Pruefe waagerecht\n\t\t//Pruefe diagonal links -3\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile-3].equals(eigenerStein) && spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe diagonal links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein) && spielfeld[spalte+3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(eigenerStein) && spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+3][zeile-3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links hoch\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein) && spielfeld[spalte-3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile].equals(gegnerStein) && spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein) && spielfeld[spalte+3][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t//Pruefe senkrecht\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte][zeile-3].equals(gegnerStein) && spielfeld[spalte][zeile-2].equals(gegnerStein) && spielfeld[spalte][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe diagonal links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile-3].equals(gegnerStein) && spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -1\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein) && spielfeld[spalte+3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(gegnerStein) && spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+3][zeile-3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links hoch\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein) && spielfeld[spalte-3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\treturn false;\n\t}", "private void findeNachbarSteine(Stein pStein, java.util.List<Stein> pSteinListe, Richtung pRichtung){\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){ //Schleife ueber alle Steine des Spielfelds\n Stein stein = spielfeld.getContent();\n switch(pRichtung){\n case oben:\n if (pStein.gibZeile()==stein.gibZeile()+1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case links:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()+1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case unten:\n if (pStein.gibZeile()==stein.gibZeile()-1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case rechts:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()-1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n }\n spielfeld.next();\n }\n }", "@Override\n public String toString() {\n return \"Cheval De Frise\";\n }", "public String toString() {\r\n if(t!=null && t.getLettre()!=System.getProperty(\"line.separator\").charAt(0))\r\n {\r\n return \"(f= \"+String.valueOf(this.frequence)+\" L= \"+this.t.getLettre()+\")\";\r\n }\r\n else if(t!=null && t.getLettre()==System.getProperty(\"line.separator\").charAt(0)){\r\n return \"(f= \"+String.valueOf(this.frequence)+\" L=[saut_ligne])\";\r\n }\r\n else {\r\n return \"(f= \" + String.valueOf(this.frequence) + \" g= \" + this.getGauche() + \" d= \" + this.getDroite()+\"\";\r\n }\r\n }", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "public IzvajalecZdravstvenihStoritev() {\n\t}", "float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}", "@Override\r\n\tpublic String Land() {\n\t\treturn \"El Helicoptero esta Aterrizando\";\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }", "public String getSpfl() {\n return spfl;\n }", "public void ponerLetraFallo(){\r\n System.out.println(\"Letras falladas \");\r\n System.out.println(sb.toString());\r\n }", "public void bevestigBestelling(int beslistIndex){\r\n Voorraadbeheer.beslist.get(beslistIndex).setBesteld(true); \r\n Log.print();\r\n System.out.println(\"Bestelling met beslistIndex \" + beslistIndex+ \"is besteld.\");\r\n }", "private void poetries() {\n\n\t}", "public int getSteineAufSpielfeld() {\n\t\tint steineAufDemSpielfeld = 0;\n\t\tfor (int i = 0; i<mulden.length;i++) {\n\t\t\tsteineAufDemSpielfeld += mulden[i];\n\t\t}\n\t\t\n\t\treturn steineAufDemSpielfeld;\n\t}", "public void fuehreNaechstenZugAus(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(\"_\")){\n\t\t\tspielfeld[spalte][zeile] = spieler;\n\t\t}\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }", "private void analyseQuerySpielPhase0(Board board, Spieler spieler) {\r\n\t\tfor(RegelSpielPhase0 regel: spielphase0) {\r\n\t\t\tif(regel.getIfTeil().contains(\"Frei\") && !board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"Belegt\") && board.checkAufBelegtFeld(regel.getIfStein().convertToFeld()) &&\r\n\t\t\t\t\t\t!board.checkAufBelegtFeld(regel.getElseStein().convertToFeld())){\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"zufall\")) {\r\n\t\t\t\t\r\n\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\tthis.dataBack.add(regel.getIfStein());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\twhile(board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\t\tSystem.out.println(\"Eine zufällige Regel wurde erzeugt.\");\r\n\t\t\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\t\t\t\tregel.erzeugeZufällig();\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}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public SPIEL( int breite , int hoehe , boolean punkteLinks , boolean punkteRechts , boolean maus ) \n {\n //Zaehler fuer Tick, Tack, ...\n zaehler = 0;\n anzeige = new AnzeigeE( breite , hoehe );\n //animationsManager = AnimationsManager.getAnimationsManager();\n \n //Punkteanzeige\n anzeige.punkteLinksSichtbarSetzen( punkteLinks );\n anzeige.punkteRechtsSichtbarSetzen( punkteRechts );\n \n //Maus ggf. aktivieren\n if ( maus ) \n {\n anzeige.klickReagierbarAnmelden( this , true );\n }\n \n //Tastatur\n anzeige.tastenReagierbarAnmelden( this );\n \n //Ticker\n //Alle 500 Millisekunden (=Jede halbe Sekunde) ein Tick\n //anzeige.tickerAnmelden(this, 500); \n }", "public void hauptProgramm(int gewuenschteTiefe){\n\t\tgespeicherterZug = -1;\n\t\tthis.gewuenschteTiefe = gewuenschteTiefe;\n\t\t\n\t\tmax(eigenerStein, gewuenschteTiefe);\n\t\t\n\t\tif (gespeicherterZug == -1) {\n\t\t\t//Es gab keine weiteren Zuege mehr\n\t\t\tSystem.out.println(\"Das Spiel ist beendet.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Der Stein wird in Spalte \" + gespeicherterZug + \" geworfen.\");\n\t\t}\n\t}", "@Override\n\tvoid ligar() {\n\t\tsuper.ligar();\n\t\tSystem.out.println(\"Automovel ligando\");\n\t}", "public Fische(String name, String gattung, int lebenserwartung, String geburtsart, String haltung, String futter, String nutzen, int flossenzahl, int schwarmgroesse, String schuppenart, String schuppenfarbe)\n {\n super(name, gattung, lebenserwartung, geburtsart, haltung, futter, nutzen, flossenzahl, schwarmgroesse);\n this.schuppenart=schuppenart;\n this.schuppenfarbe=schuppenfarbe;\n }", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "private Position findeNahrung(Position position)\n {\n List<Position> nachbarPositionen = \n feld.nachbarpositionen(position);\n Iterator<Position> iter = nachbarPositionen.iterator();\n while(iter.hasNext()) {\n Position pos = iter.next();\n Object tier = feld.gibObjektAn(pos);\n if(tier instanceof Hase) {\n Hase hase = (Hase) tier;\n if(hase.istLebendig()) { \n hase.sterben();\n futterLevel = HASEN_NAEHRWERT;\n return pos;\n }\n }\n }\n return null;\n }", "public void test4(){\r\n\t\tZug zug0 = st.zugErstellen(0, 3, \"Zug 0\");\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(21).setStellung(true);\r\n\t\td.getWeiche(17).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(18).setStellung(true);\r\n\t\td.getWeiche(39).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\tst.fahren();\r\n\t}", "public KI(Spieler spieler, Spiel spiel){\r\n\t\tif (spieler == null) throw new RuntimeException(\"Spieler muss vorhanden sein!\");\t\r\n\t\tthis.spieler = spieler;\r\n\r\n\t\tif(spiel==null) throw new RuntimeException (\"Spiel sollte vorhanden sein\");\r\n\t\tthis.spiel=spiel;\r\n\r\n\t\thatUeberlauf=false;\r\n\t}", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "@Override\r\n\tpublic void frases() {\n\t\t\r\n\t\tthis.frase.add(\"Não há que ser forte. Há que ser flexível.\");\r\n this.frase.add(\"Gente todo dia arruma os cabelos, por que não o coração?\");\r\n this.frase.add(\"Há três coisas que jamais voltam; a flecha lançada, a palavra dita e a oportunidade perdida.\");\r\n this.frase.add(\"Melhor pensar alto do que não pensar nada.\");\r\n this.frase.add(\"A juventude não é uma época da vida, é um estado de espírito.\");\r\n this.frase.add(\" Podemos escolher o que semear, mas somos obrigados a colher o que plantamos.\");\r\n this.frase.add(\"Dê toda a atenção para a formação dos teus filhos, sobretudo por exemplos de tua própria vida.\");\r\n \r\n\t\t\r\n\t}", "@Override\r\n\tpublic double getSalaire() {\n\t\treturn nbJoursTravailles*montantJournalier;\r\n\t}", "@Override\n public String toString(){\n return \" Vuelo \"+this.getTipo()+\" \" +this.getIdentificador() +\"\\t \"+ this.getDestino()+ \"\\t salida prevista en \" + timeToHour(this.getTiemposal())+\" y su combustible es de \"+this.getCombustible()+\" litros.( \"+ String.format(\"%.2f\", this.getCombustible()/this.getTankfuel()*100) + \"%).\"; \n }", "public void skrivUt(){\n System.out.println(this.fornavn + \" \" + this.etternavn + \" \" + this.adresse + \" \" + this.telefonnr + \" \" + this.alder);\n }", "public double berechnePreis(){\r\n\t\tdouble gesamtpreis = 0;\r\n\t\tfor (Titel tmp : this){\r\n\t\t\tgesamtpreis = gesamtpreis + tmp.getPreis();\r\n\t\t}\r\n\t\treturn gesamtpreis;\r\n\t}", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "public void maakNieuweDoolhof()\n {\n /*hzs: hoek zonder schat\n hms: hoek met schat\n r: recht stuk\n t: T-kruispunt met schat*/\n //vaste aantallen vakjes\n int hzs = 10, hms = 6, r = 11, t = 6;\n List<String> schatten = sch.getSchatten();\n List<String> tSchatten = schatten.subList(12, 18);\n Collections.shuffle(tSchatten);\n List<String> hSchatten = schatten.subList(18, 24);\n Collections.shuffle(hSchatten);\n\n int hKaartTeller = 0, tKaartTeller = 0;\n\n //losse vakken random invullen\n //oneven rijen\n for (int h = 0; h <= 6; h += 2)\n {\n for (int i = 1; i <= 5; i += 2)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[h][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[h][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n\n //even rijen\n for (int j = 1; j <= 5; j += 2)\n {\n for (int i = 0; i <= 6; i++)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[j][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[j][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n }", "void berechneFlaeche() {\n\t}", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "@Override\r\n\tpublic String fly() {\n\t\tString volar = \"Puede volar\";\r\n\t\treturn volar;\r\n\t}", "public abstract Koordinate schuss();", "public void print() {\r\n\t\tSystem.out.println(\"---Vrachtwagen---\");\r\n//\t\thaalt de print functie op van de class voertuigen\r\n\t\tsuper.print();\r\n//\t \tgeeft lading weer\r\n\t\tSystem.out.println(\"Lading: \" + lading);\r\n\t}", "public void besucherZuordnen(Spieler besucher) {\n\t\tboolean hinsetzen = false;\n\t\twhile (!hinsetzen) {\n\t\t\tfor (Tisch it : this.tische) {\n\t\t\t\tif (it.AnzahlTeilnehmer() < 8) {\n\t\t\t\t\tit.hinsetzen(besucher);\n\t\t\t\t\tbesucher.setTischNr(this.tische.indexOf(it));\n\t\t\t\t\tbesucher.setCasino(this);\n\t\t\t\t\tit.getDealer().setCasino(this);\n\t\t\t\t\thinsetzen = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hinsetzen) {\n\t\t\t\ttischAufstellen(new Tisch());\n\t\t\t}\n\t\t}\n\t}", "public int gibBesitzer(int spalte)\n\t{\n\t\tint besitzer;\n\t\tswitch (spalte)\n\t\t{\n\t\tcase 0:\n\t\t\tbesitzer = _spalte0;\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\tbesitzer = _spalte1;\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\tbesitzer = _spalte2;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(String.valueOf(spalte));\n\t\t}\n\t\treturn besitzer;\n\t}", "public Spielsteuerung(Path file) {\n BufferedReader reader = null;\n try {\n Charset charset = Charset.forName(\"UTF-8\");\n reader = Files.newBufferedReader(file, charset);\n String zeile = null;\n long date = 0;\n boolean dateiKaputt = false;\n while ((zeile = reader.readLine()) != null && !dateiKaputt) {\n // Einlesen\n String[] data = zeile.split(\":\");\n String[] detail;\n int x, y;\n switch (data[0]) {\n case \"b\":\n breite = Integer.parseInt(data[1]);\n if (hoehe != 0 && breite != 0) {\n initVariables();\n }\n break;\n case \"h\":\n hoehe = Integer.parseInt(data[1]);\n if (hoehe != 0 && breite != 0) {\n initVariables();\n }\n break;\n case \"geld\":\n geld = Long.parseLong(data[1]);\n break;\n case \"bil\":\n bilanz = Integer.parseInt(data[1]);\n break;\n case \"depot\":\n depot = Integer.parseInt(data[1]);\n break;\n case \"w\":\n werkstatt = Integer.parseInt(data[1]);\n break;\n case \"date\":\n date = Long.parseLong(data[1]);\n break;\n case \"haus\":\n if (hoehe != 0 && breite != 0) {\n detail = data[1].split(\",\");\n x = Integer.parseInt(detail[1]);\n y = Integer.parseInt(detail[0]);\n teile[y][x] = new Haus();\n hauszahl++;\n } else {\n dateiKaputt = true;\n }\n break;\n case \"firma\":\n if (hoehe != 0 && breite != 0) {\n detail = data[1].split(\",\");\n x = Integer.parseInt(detail[1]);\n y = Integer.parseInt(detail[0]);\n teile[y][x] = new Firma();\n hauszahl++;\n } else {\n dateiKaputt = true;\n }\n break;\n case \"park\":\n if (hoehe != 0 && breite != 0) {\n detail = data[1].split(\",\");\n x = Integer.parseInt(detail[1]);\n y = Integer.parseInt(detail[0]);\n teile[y][x] = new Park();\n hauszahl++;\n } else {\n dateiKaputt = true;\n }\n break;\n case \"rh\":\n if (hoehe != 0 && breite != 0) {\n detail = data[1].split(\",\");\n x = Integer.parseInt(detail[1]);\n y = Integer.parseInt(detail[0]);\n teile[y][x] = new Rathaus();\n hauszahl++;\n } else {\n dateiKaputt = true;\n }\n break;\n case \"bhf\":\n if (hoehe != 0 && breite != 0) {\n // System.out.println(\"Bahnhof geladen!\");\n detail = data[1].split(\",\");\n x = Integer.parseInt(detail[1]);\n y = Integer.parseInt(detail[0]);\n bhfNamen.remove(bhfNamen.indexOf(detail[2]));\n intNeuerBahnhof(x, y, detail[2]);\n bahnhoefe[y][x].setEinsteigen(Integer.parseInt(detail[3]));\n bahnhoefe[y][x].setAussteigen(Integer.parseInt(detail[4]));\n bahnhoefe[y][x].setKasse(Integer.parseInt(detail[5]));\n } else {\n dateiKaputt = true;\n }\n break;\n case \"linie\":\n if (hoehe != 0 && breite != 0) {\n // System.out.println(\"Linie geladen!\");\n detail = data[1].split(\",\");\n int stelle = intNeueLinie(detail[0]);\n linien[stelle].setFarbe(new Color(Integer.parseInt(detail[1]), Integer.parseInt(detail[2]), Integer.parseInt(detail[3])));\n linien[stelle].setZuegeWieder(Integer.parseInt(detail[4]));\n linien[stelle].setGewinn(Integer.parseInt(detail[6]));\n // Bahnhöfe einfügen\n String bhfZeile = \"\";\n while (!(bhfZeile = reader.readLine()).equals(\"endeLinie\")) {\n // System.out.println(\"Bahnhof zu Linie geladen!\");\n String[] bhf = bhfZeile.split(\":\");\n if (bhf[0].equals(\"bzl\")) {\n String[] koord = bhf[1].split(\",\");\n linien[stelle].bahnhofWiederEinfuegen(bahnhoefe[Integer.parseInt(koord[0])][Integer.parseInt(koord[1])]);\n }\n }\n\n linien[stelle].setGruenesLicht(Boolean.parseBoolean(detail[5]));\n } else {\n dateiKaputt = true;\n }\n break;\n }\n }\n reader.close();\n\n if (hoehe == 0 || breite == 0) {\n dateiKaputt = true;\n }\n\n if (dateiKaputt) {\n JOptionPane.showMessageDialog(null, \"Dieser Spielstand enthält einen Fehler\", \"Fehlerhafter Spielstand!\", JOptionPane.WARNING_MESSAGE);\n System.exit(1);\n } else {\n strgTimer = new StrgTimer(this, new Date(date));\n timerS.scheduleAtFixedRate(strgTimer, 0, strgPause);\n }\n\n } catch (IOException ex) {\n System.err.println(\"Fehler beim Lesen der Datei!\");\n }\n }", "public void teken(){\n removeAll();\n \n //eerste tekening\n if(tekenEerste != false){\n tekenMuur();\n tekenSleutel();\n veld[9][9] = 6;\n tekenEerste = false;\n tekenBarricade();\n }\n \n //methode die de speler de waarde van de sleutel geeft aanroepen\n sleutelWaarde();\n \n //de methode van het spel einde aanroepen\n einde();\n \n //vernieuwd veld aanroepen\n veld = speler.nieuwVeld(veld);\n \n //het veld tekenen\n for(int i = 0; i < coordinaten.length; i++) {\n for(int j = 0; j < coordinaten[1].length; j++){\n switch (veld[i][j]) {\n case 1: //de sleutels\n if(i == sleutel100.getY() && j == sleutel100.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel1002.getY() && j == sleutel1002.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel200.getY() && j == sleutel200.getX()){\n coordinaten[i][j] = new SleutelVakje(200);\n }\n else if (i == sleutel300.getY() && j == sleutel300.getX()){\n coordinaten[i][j] = new SleutelVakje(300);\n } break;\n case 2: //de muren\n coordinaten[i][j] = new MuurVakje();\n break;\n // de barricades\n case 3:\n coordinaten[i][j] = new BarricadeVakje(100);\n break;\n case 4:\n coordinaten[i][j] = new BarricadeVakje(200);\n break;\n case 5:\n coordinaten[i][j] = new BarricadeVakje(300);\n break;\n case 6: // het eindveld vakje\n coordinaten[i][j] = new EindveldVakje();\n break;\n default: // het normale vakje\n coordinaten[i][j] = new CoordinaatVakje();\n break;\n }\n //de speler\n coordinaten[speler.getY()][speler.getX()] = new SpelerVakje();\n \n //het veld aan de JPanel toevoegen\n add(coordinaten[i][j]);\n }\n }\n System.out.println(\"Speler waarde = \" + speler.getSleutelWaarde());\n revalidate();\n repaint();\n }", "private void wechsleRaum(Befehl befehl)\n {\n if(!befehl.hatZweitesWort()) {\n \t// Gibt es kein zweites Wort, wissen wir nicht, wohin...\n System.out.println(\"Wohin m�chten Sie gehen?\");\n return;\n }else if(spieler.getAktuellerZustand().toString().equals(\"Bewegungsunf�hig\")) {\n \tSystem.out.println(\"Sie sind bewegungsunf�hig und m�ssen sich heilen bevor sie weiter k�nnen\");\n \treturn;\n }\n\n String richtung = befehl.gibZweitesWort();\n\n // Wir versuchen den Raum zu verlassen.\n Raum naechsterRaum = spieler.getAktuellerRaum().getAusgang(richtung);\n\n if (naechsterRaum == null) {\n System.out.println(\"Dort ist keine T�r!\");\n }\n else {\n \tif(naechsterRaum.getClass().getName().equals(\"Level.Teleporter\")) {\n \t\tspieler.setAktuellerRaum(landkarte.getZufaelligenRaum());\n \t\tSystem.out.println(\"Du wurdest Teleportiert\");\n \t}else {\n \t\t spieler.setAktuellerRaum(naechsterRaum);\n \t}\n\n \trauminfoAusgeben();\n }\n }", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void auswahlAnzeigen() throws Exception {\n System.out.println(\"Bitte Zahl und dann RETURN eingeben:\");\n System.out.println(\"<1> Freund anlegen\");\n System.out.println(\"<2> Freund suchen\");\n System.out.println(\"<3> Freund veraendern\");\n System.out.println(\"<4> Freund loeschen\");\n System.out.println(\"<5> Anzahl gespeicherter Freunde angeben\");\n System.out.println(\"<6> Telefonliste ausgeben\");\n System.out.println(\"<7> Beenden\");\n auswahlAuswerten();\n }", "public void setzeEigenenStein(int spielzug){\t\t\n\t\t//Setze eigenen Stein\n\t\tfor(int i=0; i<6; i++) {\n\t\t\tif(spielfeld[spielzug][i].equals(\"_\")){\n\t\t\t\tspielfeld[spielzug][i] = eigenerStein;\n\t\t\t\teigenerPunkt.setLocation(spielzug, i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "protected void doorschuiven(Groepen wedstrijdGroepen, Groepen aanwezigheidsGroepen) {\r\n int aantal = bepaalAantalDoorschuiven(0, aanwezigheidsGroepen.getPeriode(), aanwezigheidsGroepen.getRonde());\r\n \tlogger.log(Level.INFO, \"Aantal door te schuiven spelers \" + aantal);\r\n // Doorloop hoogste groep tot ��n na laagste groep. In de laagste groep\r\n // kunnen geen spelers inschuiven\r\n \t// Let op: iterator gaat op array index en NIET op groepID\r\n ArrayList<Groep> groepen = wedstrijdGroepen.getGroepen();\r\n// for (int i = 0; i < groepen.size() - 1; ++i) {\r\n for (int i = 0; i < wedstrijdGroepen.getAantalGroepen() - 1; ++i) {\r\n aantal = bepaalAantalDoorschuiven(groepen.get(i).getNiveau(), aanwezigheidsGroepen.getPeriode(), aanwezigheidsGroepen.getRonde());\r\n \tlogger.log(Level.INFO, \"Doorschuiven van groep \" + groepen.get(i+1).getNaam() + \" naar \" + groepen.get(i).getNaam() + \" n=\" + aantal);\r\n ArrayList<Speler> naarGroep = groepen.get(i).getSpelers();\r\n if (naarGroep == null) naarGroep = new ArrayList<>();\r\n ArrayList<Speler> vanGroep = groepen.get(i + 1).getSpelers();\r\n // Als laatste speler niet aanwezig, dan ��n minder doorschuiven\r\n Speler laatste = groepen.get(i + 1).getSpelerByID(aantal);\r\n if (aantal > 2 && laatste == null) aantal--;\r\n\r\n for (int j = 1; j <= aantal; ++j) {\r\n Speler s = groepen.get(i + 1).getSpelerByID(j);\r\n \tlogger.log(Level.FINE, \"Speler : \" + (s != null ? s.getNaam() : \"null\"));\r\n if ((s != null) && s.isAanwezig()) {\r\n if ((j == aantal) && (aantal == 1)) {\r\n // Alleen doorschuiven als speler 1 niet meer ingehaald kan worden\r\n Speler s2 = groepen.get(i + 1).getSpelerByID(2);\r\n\t\t\t\t\t\tif (!IJCController.c().laasteRondeDoorschuivenAltijd) {\r\n\t\t\t\t\t\t\tif ((s2 != null) && (s.getPunten() > (s2.getPunten() + 4))) {\r\n\t\t\t\t\t\t\t\tlogger.log(Level.FINE, \"Speler doorgeschoven, niet meer in te halen \");\r\n\t\t\t\t\t\t\t\tnaarGroep.add(new Speler(s));\r\n\t\t\t\t\t\t\t\tvanGroep.remove(s);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n } else if (j == aantal) {\r\n if (naarGroep.size() % 2 != 0) {\r\n \tlogger.log(Level.FINE, \"Speler doorgeschoven, laatste doorschuiver maar door om even aantal \");\r\n naarGroep.add(new Speler(s));\r\n vanGroep.remove(s);\r\n }\r\n } else {\r\n \tlogger.log(Level.FINE, \"Speler doorgeschoven, niet laatste dus altijd\");\r\n naarGroep.add(new Speler(s));\r\n vanGroep.remove(s);\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n }", "public abstract String getBeschreibung();", "public void starteSpiel(int pAnzahl){\n\n this.anzahl = pAnzahl;\n\n spielerRing = new Ring<>();\n for (int i = 0; i < pAnzahl; i++) {\n spielerRing.insert(new Spieler(i));\n }\n\n Spieler startSpieler = null;\n while (startSpieler==null) {\n\n //verteile Steine\n int count = 0;\n while (count < pAnzahl) {\n Spieler spieler = this.spielerRing.getContent();\n spieler.loescheAlleSteine();\n for (int i = 0; i < 6; i++) {\n spieler.addStein(beutel.gibStein());\n }\n this.spielerRing.next();\n count++;\n }\n\n //bestimme Startspieler\n int startWert = 0;\n count=0;\n while (count < pAnzahl) {\n Spieler spieler = this.spielerRing.getContent();\n int wert = spieler.gibStartWert();\n if (wert>startWert){\n startWert = wert;\n if (wert>2)\n startSpieler = spieler;\n }\n this.spielerRing.next();\n count++;\n }\n\n if (startSpieler!=null)\n startSpieler.setzeAktiv(true);\n }\n }", "public void schreibeFreizeitbaederInTxtDatei()\r\n\t\t throws IOException{\r\n\t\t\t WriterCreator writerCreator = new ConcreteTxtWriterCreator();\r\n\t\t\t WriterProduct writerProduct = writerCreator.factoryMethod();\r\n\t\t\t //Praktikum 4\r\n \t\t\tthis.getFreizeitbaeder().forEach((fzb) -> {\r\n \t\t\t\ttry {\r\n \t\t\t\t\twriterProduct.fuegeInDateiHinzu(fzb);\r\n \t\t\t\t} catch (IOException e) {\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t});\r\n \t\t\twriterProduct.schliesseDatei();\t\t \r\n }", "private boolean checkLegbarkeit(Stein pStein){\n\n if (spielfeld.isEmpty()) //erster Stein, alles ist moeglich\n return true;\n\n //liegt schon ein Stein im Feld?\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){\n Stein stein = spielfeld.getContent();\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte())\n return false;\n spielfeld.next();\n }\n\n //bestimme alle Nachbarsteine\n java.util.List<Stein> oben = new ArrayList<>();\n java.util.List<Stein> rechts = new ArrayList<>();\n java.util.List<Stein> links = new ArrayList<>();\n java.util.List<Stein> unten = new ArrayList<>();\n\n findeNachbarSteine(pStein,oben, Richtung.oben);\n findeNachbarSteine(pStein,rechts, Richtung.rechts);\n findeNachbarSteine(pStein,unten, Richtung.unten);\n findeNachbarSteine(pStein,links, Richtung.links);\n\n if (oben.size()==0 && rechts.size()==0 && links.size()==0 && unten.size()==0) //keine Nachbar, Stein ins Nirvana gelegt\n return false;\n\n if(pruefeAufKonflikt(pStein,oben)) return false;\n if(pruefeAufKonflikt(pStein,rechts)) return false;\n if(pruefeAufKonflikt(pStein,unten)) return false;\n if(pruefeAufKonflikt(pStein,links)) return false;\n\n return true;\n }" ]
[ "0.7006821", "0.6710857", "0.6527328", "0.6436089", "0.6426219", "0.62887293", "0.62827086", "0.62039155", "0.6180487", "0.6121524", "0.6115676", "0.6088024", "0.60134774", "0.6006942", "0.60066056", "0.60046405", "0.59979606", "0.59376705", "0.59305185", "0.5884679", "0.5863554", "0.58402604", "0.5832892", "0.5823308", "0.58184814", "0.5806633", "0.58042866", "0.5764609", "0.57567537", "0.57411885", "0.57297873", "0.5726017", "0.5682802", "0.56814456", "0.56770605", "0.5580611", "0.5578371", "0.55277795", "0.551236", "0.55088913", "0.5507285", "0.5497051", "0.5495571", "0.5483586", "0.548181", "0.54632956", "0.5454373", "0.5430706", "0.5411464", "0.5407217", "0.5394175", "0.5393808", "0.53823006", "0.53805393", "0.5379321", "0.53792906", "0.5377059", "0.5371983", "0.5370244", "0.53680706", "0.5367467", "0.53662765", "0.53657526", "0.5363586", "0.5350418", "0.5347592", "0.5339962", "0.5338956", "0.53311557", "0.53253186", "0.53167534", "0.5313827", "0.52997756", "0.52988446", "0.52960074", "0.52811825", "0.52763385", "0.52732354", "0.52655977", "0.526313", "0.52519006", "0.5248164", "0.5244647", "0.5242745", "0.52423584", "0.5241045", "0.52409035", "0.5237329", "0.52322865", "0.52301663", "0.5227911", "0.52273875", "0.52183163", "0.5213392", "0.5208034", "0.52063733", "0.52051705", "0.5198481", "0.5195186", "0.51894677", "0.51855606" ]
0.0
-1
Methode zur Initialisierung des SkillMenues, muss einmal vor Aufruf von skills() ausgefuehrt werden.
public void initSkills(){ up = false; down = false; left = false; right = false; skillmode = true; skills.setLocation(500,300); skills.setSize(400,300); t1 = new JButton("Dicker Brecher (benötigt 2 Skillpunkte)"); t1.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0){ //bzgl. Starten if(player.getXP() >= 2){ player.setXP(player.getXP()-2); player.setMaxhealth(player.getMaxhealth() + 50); player.setSkillHealth1(true); }else{ System.out.println("Du hast nicht genug Erfahrung"); } skillmode = false; } }); t3 = new JButton("Kanten-Paule (benötigt 4 Skillpunkte und Dicker Brecher)"); t3.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0){ //bzgl. Starten if(player.getXP() >= 4){ player.setXP(player.getXP()-4); player.setMaxhealth(player.getMaxhealth() + 50); player.setSkillHealth2(true); }else{ System.out.println("Du hast nicht genug Erfahrung"); } skillmode = false; } }); t2 = new JButton("Brutaler Prügelknabe (benötigt 2 Skillpunkte)"); t2.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ //bzgl. Schließen if(player.getXP() >= 2){ player.setXP(player.getXP()-2); player.setDamage(player.getDamage() + 20); player.setSkillStrength1(true); }else{ System.out.println("Du hast nicht genug Erfahrung!"); } skillmode = false; } }); t4 = new JButton("Mega-Mörder brutaler Prügelknabe (benötigt 4 Skillpunkte und Brutaler Prügelknabe)"); t4.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ //bzgl. Schließen if(player.getXP() >= 4){ player.setXP(player.getXP()-4); player.setDamage(player.getDamage() + 30); player.setSkillStrength2(true); }else{ System.out.println("Du hast nicht genug Erfahrung!"); } skillmode = false; } }); t5 = new JButton("Ich will nix - danke"); t5.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg1){ skillmode = false; } }); skills.setLayout(new GridLayout(3,2)); skills.add(t1); skills.add(t2); skills.add(t3); skills.add(t4); skills.add(t5); if(player.hasSkillHealth1()){ t1.setEnabled(false); t3.setEnabled(true); }else{ t3.setEnabled(false); } if(player.hasSkillHealth2()){ t3.setEnabled(false); } if(player.hasSkillStrength1()){ t2.setEnabled(false); t4.setEnabled(true); }else{ t4.setEnabled(false); } if(player.hasSkillStrength2()){ t4.setEnabled(false); } skills.pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Skill() {\n\t\tsuper();\n\t}", "public skills(){\n\t\tname = \"tempName\";\n\t\tmanaCost =0;\n\t\tskillDmg = 0;\n\t\tcritFactor = 0;\n\t\tcritChance = 0;\n\t\tnoOfTargets = 1;\n\t\thitChance = 0;\n\t\tmyAttribute = null;\n\t\t\n\t\t//instantiates the original values, prob will have no need\n\t\torigSkillDmg = 0;\n\t\torigCritFac = 0;\n\t\torigCritChan = 0;\n\t\torigHitChan =0;\n\t\t\n\t\t//stores the current buffs on the person\n\t\tcurrBuff = null;\n\t}", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.LEER);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.EMBER)));\n levelUpSkills.put(8, new ArrayList<Integer>(Arrays.asList(SkillFactory.WORK_UP)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.HEADBUTT)));\n levelUpSkills.put(15, new ArrayList<Integer>(Arrays.asList(SkillFactory.NOBLE_ROAR)));\n levelUpSkills.put(20, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAKE_DOWN)));\n levelUpSkills.put(23, new ArrayList<Integer>(Arrays.asList(SkillFactory.FIRE_FANG)));\n levelUpSkills.put(28, new ArrayList<Integer>(Arrays.asList(SkillFactory.ENDEAVOR)));\n levelUpSkills.put(33, new ArrayList<Integer>(Arrays.asList(SkillFactory.ECHOED_VOICE)));\n levelUpSkills.put(36, new ArrayList<Integer>(Arrays.asList(SkillFactory.FLAMETHROWER)));\n levelUpSkills.put(39, new ArrayList<Integer>(Arrays.asList(SkillFactory.CRUNCH)));\n levelUpSkills.put(43, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYPER_VOICE)));\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.INCINERATE)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.OVERHEAT)));\n }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n //TODO: CONVERSION 2\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.CONVERSION);\n beginnerSkills.add(SkillFactory.SHARPEN);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.PSYBEAM)));\n levelUpSkills.put(12, new ArrayList<Integer>(Arrays.asList(SkillFactory.AGILITY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RECOVER)));\n //TODO: MAGNET RISE 23\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.SIGNAL_BEAM)));\n //TODO: RECYCLE 34\n levelUpSkills.put(40, new ArrayList<Integer>(Arrays.asList(SkillFactory.DISCHARGE)));\n levelUpSkills.put(45, new ArrayList<Integer>(Arrays.asList(SkillFactory.LOCK_ON)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.TRI_ATTACK)));\n //TODO: MAGIC COAT 56\n levelUpSkills.put(62, new ArrayList<Integer>(Arrays.asList(SkillFactory.ZAP_CANNON)));\n }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.MEGAHORN);\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.TAIL_WHIP);\n beginnerSkills.add(SkillFactory.WATER_GUN);\n beginnerSkills.add(SkillFactory.WATER_SPORT);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAIL_WHIP)));\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_GUN)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_SPORT)));\n levelUpSkills.put(13, new ArrayList<Integer>(Arrays.asList(SkillFactory.FOCUS_ENERGY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RAZOR_SHELL)));\n levelUpSkills.put(21, new ArrayList<Integer>(Arrays.asList(SkillFactory.FURY_CUTTER)));\n levelUpSkills.put(26, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_PULSE)));\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.REVENGE)));\n levelUpSkills.put(34, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_JET)));\n //39 ENCORE\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_TAIL)));\n //51 RETALIATE\n levelUpSkills.put(58, new ArrayList<Integer>(Arrays.asList(SkillFactory.SWORDS_DANCE)));\n levelUpSkills.put(63, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYDRO_PUMP)));\n initEvolutionSkills();\n }", "private void initHeroRollSkills() {\n if (heroRoll.skills.isEmpty()) {\n for (int i : heroRoll.hero.skills40) {\n heroRoll.skills.add(singleton.skillsMap.get(i));\n }\n }\n }", "public Skill(String skillName, double skillDamage, int skillManaCost, double skillHeal){\n name = skillName;\n damage = skillDamage;\n manaCost = skillManaCost;\n heal = skillHeal;\n//sets up skills to return as their name.\n }", "public Skill() {\n shortName = new SimpleStringProperty(\"\");\n description = new SimpleStringProperty(\"\");\n }", "public LanguageSkill() {\n\t}", "public PlayerSkillManager() {\n\n for (SkillType type : SkillType.values()) {\n levels.put(type, 1);\n levelsXp.put(type, calculateXpForLevel(1));\n }\n }", "public TbljobSkill() {\n this(\"tbljob_skill\", null);\n }", "public SysSkillConferpo()\n {\n }", "public Skill(Player player){\n this.player = player;\n this.name = player.name;\n this.intellect = player.intellect;\n this.defense = player.defense;\n this.attack = player.attack;\n this.weapon = player.weapon;\n this.armor = player.armor;\n this.defense = player.defense;\n\n }", "public void setSkill(int skill){\n\t\tskillSelection = skill;\n\t}", "public CharacterSkillLevelData() {\n\t\tsuper();\n\t}", "public SkillPanel(Player p)\n\t{\n\t\tsuper(new FlowLayout());\n\t\tthis.setBackground(Color.BLACK);\n\t\tplayer = p;\n\t\tmenu = player.getSkillMenu();\n\t\tthis.add(menu);\n\t}", "public abstract SkillData skill();", "public void initializeClientSkills()\n\t{\n\t\tServerMessage skillLevels = new ServerMessage(ClientPacket.SKILL_LVL_UP);\n\t\tskillLevels.addInt(getTrainingLevel());\n\t\tskillLevels.addInt(getBreedingLevel());\n\t\tskillLevels.addInt(getFishingLevel());\n\t\tskillLevels.addInt(getCoordinatingLevel());\n\t\tgetSession().Send(skillLevels);\n\t}", "@Inject\n public SkillHandler(ISkillService skillService) {\n if (skillService == null) {\n throw new NullPointerException(\"skill service was null\");\n }\n\n this.fSkillSPI = skillService;\n }", "public void setSkillId(Integer skillId) {\n this.skillId = skillId;\n }", "@Override\n\tpublic Skills chooseSkill() {\n\t\t\n\t\treturn null;\n\t}", "public void AddNewSkill()\n\t{\n\t\t\n\t}", "public final void start() {\n if (!player.isSkillAction()) {\n player.setSkillAction(true);\n World.submit(new SkillActionTask(this));\n }\n }", "public void skills(){\n\t\tup = false;\n\t\tdown = false;\n\t\tleft = false;\n\t\tright = false;\n\t\tskillmode = true;\n\t\t\n\t\tif(player.hasSkillHealth1()){\n\t\t\tt1.setEnabled(false);\n\t\t\tt3.setEnabled(true);\n\t\t}else{\n\t\t\tt3.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillHealth2()){\n\t\t\tt3.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillStrength1()){\n\t\t\tt2.setEnabled(false);\n\t\t\tt4.setEnabled(true);\n\t\t}else{\n\t\t\tt4.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillStrength2()){\n\t\t\tt4.setEnabled(false);\n\t\t}\n\t\tskills.setVisible(true);\n\t\t\n\t}", "public LovelyKiss() {\n super(SkillFactory.LOVELY_KISS, \"Lovely Kiss\", SkillDescription.LOVELY_KISS,10,\n Pokemon.Type.NORMAL, 75);\n effects.add(new SleepEffect(SecondaryEffect.Target.ENEMY));\n }", "public Skill(Agent agent) {\n\t\tsuper(agent);\n\t}", "private void default_init(){\n id = 0;\n xPos = 0;\n yPos = 0;\n hp = 100;\n name=\"\";\n character_id = 1;\n weapons = new ArrayList<>();\n weaponEntryTracker = new LinkedList<>();\n isJumping = false;\n isFalling = false;\n initial_y= -1;\n stateOfMovement = 0;\n for(int i = 0; i < 3; i++){\n this.weapons.add(new Pair<>(NO_WEAPON_ID, (short) 0));\n }\n this.weapons.set(0,new Pair<>(PISTOL_ID,DEFAULT_PISTOL_AMMO));\n currentWeapon = this.weapons.get(0);\n bulletsFired = new ArrayList<>();\n shootingDirection = 1;\n energy = 0;\n sprint = false;\n score = 0;\n roundsWon = 0;\n ready = false;\n audioHandler = new AudioHandler();\n }", "public Skills chooseSkill();", "@Override\n\tpublic void init() {\n\t\tloadSpritesheet();\n\t\tloadSounds();\n\t\tinitIntro();\n\t}", "public void setSkillPrediction(Skills skill);", "@java.lang.Override\n public int getSkillId() {\n return skillId_;\n }", "@java.lang.Override\n public int getSkillId() {\n return skillId_;\n }", "public Sku() {\n\t}", "public void AddSkill(int aSkill_ID)\n\t{\n\t\tSkill aSkill= new Skill(aSkill_ID);\n\t\taSkill.user_Id=this.id;\n\t\tmySkills.add(aSkill);\n\t}", "@Override\n public void applyDefaults(DynamicSkill skill, String prefix) { }", "public Candidato(String nome, List<String> skills) {\n\t\tsuper(nome);\n\t\tthis.skills = skills;\n\t}", "public SkillInventory(int capacity) {\n inventory = new Skill[capacity];\n isActive = new boolean[capacity];\n cooldown = new float[capacity];\n weighting = new float[capacity];\n projectiles = new DynamicHitbox[capacity];\n }", "public Builder setSkillId(int value) {\n \n skillId_ = value;\n onChanged();\n return this;\n }", "public Weapon() {\n this(Weapon.defaultName, 0, new Level(0), 0, 0);\n }", "protected void initialize() {\n\t\tthis.initializeFileMenu();\n\t\tthis.initializeEditMenu();\n\t\tthis.initializeNavigationMenu();\n\t\tthis.initializeHelpMenu();\n\t}", "public void init()\n {\n quizText = (TextView)findViewById(R.id.sportQuiz);\n setAnimationToQuizName();\n nameEditText = (EditText)findViewById(R.id.nameEditText);\n startButton = (Button)findViewById(R.id.startButtonView);\n }", "public void addSkills(final Characters player, final Characters enemy)\r\n\t{\r\n\t\tskillOne = new JButton(\"Skill 1\");\r\n\t\tadd(skillOne);\r\n\t\tskillOne.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tcombatLog = combatLog + \"\\n\" + player.attack(enemy);\r\n\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\tstate.setWaiting(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillTwo = new JButton(\"Skill 2\");\r\n\t\tadd(skillTwo);\r\n\t\tskillTwo.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(0, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillThree = new JButton(\"Skill 3\");\r\n\t\tadd(skillThree);\r\n\t\tskillThree.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(1, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillFour = new JButton(\"Skill 4\");\r\n\t\tadd(skillFour);\r\n\t\tskillFour.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(2, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillFive = new JButton(\"Skill 5\");\r\n\t\tadd(skillFive);\r\n\t\tskillFive.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(3, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}", "public void init() {\n Assets.init();\n titleAnimation = new Animation(Assets.titleMoving, 180);\n startButton = new MenuButton((game.getWidth()/2 - 100), 220, 100, 200, MenuButtonType.START, this);\n highscoreButton = new MenuButton((game.getWidth()/2 - 100), 370, 100, 200, MenuButtonType.HIGHSCORE, this);\n backButton = new NavigationButton(37, 720, 120, 60, NavigationButton.NavButtonType.BACK, this.getGame());\n tutorialButton = new MenuButton((game.getWidth()/2 - 100), 520, 100, 200, MenuButtonType.INSTRUCTIONS, this);\n \n showTutorial = false;\n }", "private void addSkill(Skill skill) {\n Species.Characteristic att = skill.getGoverningAtt();\n int ability = character.getSpecies().getCharacteristicValue(att);\n skill.setAbility(ability);\n\n skillList.add(skill);\n }", "protected void initialize() {\n \tclaw = Robot.getClaw();\n\n \tclaw.open();\n }", "protected void addSkill(String name) {\r\n\t\tthis.skills.add(name.toLowerCase());\r\n\t}", "public JudokaCreator() {\n\t\tsuper();\n\t\ttechniques = new Technique[]{\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA\n\t\t};\n\t}", "@Override\n\tpublic void initialize(IsValidHobby arg0) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tGameSkill m = new GameSkill();\n\t\t\n\t}", "public void initialize() {\n\t\tDynamoConfig config = new DynamoConfig();\n\t\tthis.setup(config);\n\t}", "public Weapon ()\r\n\t{\r\n\t\t//no default values for Weapon attributes are set here as the specific weapon type unspecified at super level\r\n\t}", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "public String getSkill() {\n\t\treturn skill;\n\t}", "@Override\n public void initialize() {\n AppContext.getInstance().set(\"tablero\",this);\n tabl = new CasillaController[8][6]; \n SeleccNivel((int)AppContext.getInstance().get(\"lvl\"));\n LlenarCasillas();\n \n }", "public void Skill() {\n\t\tBuilding ig = new Iglu(this.GetWater());\n\t\tthis.GetWater().GetBuilding().ReplaceBuilding(ig);\n\t}", "@Override\n\tpublic void initializeItemFields(CharacterClass item) {\n\t\titem.setStartingMainhandInstance(weaponBag.getItem(item.getStartingMainhand()));\n\t\titem.setStartingOffhandInstance(weaponBag.getItem(item.getStartingOffhand()));\n\n\t\titem.setStartingHelmetInstance(equipmentBag.getItem(item.getStartingHelmet()));\n\t\titem.setStartingChestInstance(equipmentBag.getItem(item.getStartingChest()));\n\t\titem.setStartingGlovesInstance(equipmentBag.getItem(item.getStartingGloves()));\n\t\titem.setStartingPantsInstance(equipmentBag.getItem(item.getStartingPants()));\n\t\titem.setStartingBootsInstance(equipmentBag.getItem(item.getStartingBoots()));\n\t\titem.setStartingRing1Instance(equipmentBag.getItem(item.getStartingRing1()));\n\t\titem.setStartingRing2Instance(equipmentBag.getItem(item.getStartingRing2()));\n\t\titem.setStartingNeckInstance(equipmentBag.getItem(item.getStartingNeck()));\n\n\t\t// Initialize Skills\n\t\tif(item.getSkillInstances() == null)\n\t\t\titem.setSkillInstances(new ArrayList<>());\n\n\t\tfor(String id: item.getSkills()) {\n\t\t\tSkill skill = skillBag.getItem(id);\n\t\t\titem.getSkillInstances().add(skill);\n\t\t}\n\t}", "@Override\n\tpublic List<JobSkill> findAllSkill() {\n\t\treturn jobskillRepository.findAll();\n\t}", "@Override\n public void applyDefaults(DynamicSkill skill, String prefix) {\n skill.checkDefault(prefix + DAMAGE, 1, 0);\n skill.checkDefault(prefix + DURATION, 5, 2);\n skill.checkDefault(prefix + FREQUENCY, 1, 0);\n if (!skill.isSet(LETHAL)) skill.setValue(LETHAL, 0);\n }", "@ApiModelProperty(value = \"List of Skills to assign to the user. Effect: The list contains a collection of skill descriptors. If the corresponding skill is found, it is assigned to the user with the specified level. If it is not found, the skill is created and then assigned. \")\n public List<Skill> getSkills() {\n return skills;\n }", "public void setSkill(com.transerainc.aha.gen.agent.SkillDocument.Skill skill)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.transerainc.aha.gen.agent.SkillDocument.Skill target = null;\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().find_element_user(SKILL$0, 0);\n if (target == null)\n {\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().add_element_user(SKILL$0);\n }\n target.set(skill);\n }\n }", "public Integer getSkillId() {\n return skillId;\n }", "public void init(){\n hp = DEFAULT_MAX_HEALTH;\n bulletsFired = new ArrayList<>();\n initial_y = -1;\n\n //Sets the byte to identify the state of movement\n //For animation purposes in the renderer\n //0 = stationary\n //1 = jumping\n //2 = moving left\n //3 = jumping left\n //4 = right\n //5 = Jumping right\n //6 = crouching\n //8 = crouching left\n //10 = crouching right\n stateOfMovement = 0;\n }", "private void initialize() {\n\t\t@SuppressWarnings(\"unused\")\n\t\tKanaSyllabary kanaSyllabary = new KanaSyllabary();\n\n\t\t// initialize interface elements with click listeners\n\t\thiraganaLayout = (LinearLayout) findViewById(R.id.hiraganaLayout);\n\t\thiraganaLayout.setOnClickListener(this);\n\t\tkatakanaLayout = (LinearLayout) findViewById(R.id.katakanaLayout);\n\t\tkatakanaLayout.setOnClickListener(this);\n\t\tkanjiLayout = (LinearLayout) findViewById(R.id.kanjiLayout);\n\t\tkanjiLayout.setOnClickListener(this);\n\t}", "public Builder clearSkillId() {\n \n skillId_ = 0;\n onChanged();\n return this;\n }", "public void initialize() {\n\n Employee emp = new Employee(\"jaden Williams\", \"abEFc123!\");\n\n //Widget newProductTest = new Widget(\"iPod45\", \"Apple\", ItemType.AUDIO); //Test widget\n\n System.out.println(\"Launched program\");\n loadDatabaseProducts();\n loadDatabaseRecords();\n tableViewSetup(); //Sets up table structure\n populateProductLineTabs(); //Populates item type dropdown\n populateItemQuantity(); //Populates quantity dropdown\n //testMultimedia(); //Testing\n //testProductionRecord(); //Testing text log on last page\n }", "public void skillControl() {\n\t\tif(skillActive) {\r\n\t\t\tif(skillLast > 0)\r\n\t\t\t{\r\n\t\t\t\tskillLast--;\r\n\t\t\t}else if(skillLast == 0) {\r\n\t\t\t\tskillActive = false;\r\n\t\t\t\tthis.hp/=2;\r\n\t\t\t\tthis.maxHp/=2;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void initialize(EducationLevel parameters) {\n }", "@Override\n public Skill addSkill(Skill skill) {\n return _skills.put(skill.getId(), skill);\n }", "public Skills getChosenSkill();", "public SkillBar(WBC wbc){\n this.wbc=wbc;\n this.setLayout(null);\n \n setSkillUnable(0);\n setSkillUnable(1);\n setSkillUnable(2);\n setSkillUnable(3);\n \n skill1Label.setBounds( 0, 0, 154, 154);\n skill2Label.setBounds(154, 0, 154, 154);\n skill3Label.setBounds(308, 0, 154, 154);\n skill4Label.setBounds(462, 0, 154, 154);\n \n this.add(skill1Label); \n this.add(skill2Label);\n this.add(skill3Label);\n this.add(skill4Label);\n }", "public Argonian()\n\t{\n\t\tthis.race = \"Argonian\";\n\t}", "Player()\n\t{\n\t\tiHP = 30;\n\t\tstrEquippedWeapon = \"None\";\n\t\tiLocation = 1;\n\t\tblnPlayerState = true;\n\t\tblnPlayerVictory = false;\n\t\tblnSearchedDirt = false;\n\t\tblnSearchedBarrels = false;\n\t\t\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "public void init() {\n super.setEditMode(false);\n positions = taskPropertyService.getPositionsInString(PerformanceAppraisal.class.getSimpleName());\n levels = taskPropertyService.getCandidateLevelsInString(PerformanceAppraisal.class.getSimpleName());\n //questions = getQuestionNamesFromList(performanceAppraisalService.getAllActiveQuestions());\n questions = performanceAppraisalService.getAllActiveQuestions();\n numberOfQuestions = questions.size();\n\n setIndQuestionInEditMode(-1);\n for (Question x : questions) {\n LOG.info(getQuestionIndex(x) + \" : \" + getQuestionNumber(x) + x.getName());\n }\n\n setEditMode(false);\n setPositionEditMode(false);\n setLevelEditMode(false);\n setQuestionEditMode(false);\n setIsAddQuestion(false);\n }", "public Weapon()\n {\n name = \"None\";\n speed = 2;\n damage = 1;\n range = 1;\n }", "public SkillServlet() {\r\n\t\tsuper();\r\n\t}", "public void initialize()\n {\n \t// Luodaan manager-luokat\n EffectManager.getInstance();\n MessageManager.getInstance();\n CameraManager.getInstance();\n\n // Luodaan pelitilan eri osat\n backgroundManager = new BackgroundManager(wrapper);\n \tweaponManager = new WeaponManager();\n hud = new Hud(context, weaponManager);\n touchManager = new TouchManager(dm, surfaceView, context, hud, weaponManager);\n gameMode = new GameMode(gameActivity, this, dm, context, hud, weaponManager);\n \n // Järjestellään Wrapperin listat uudelleen\n wrapper.sortDrawables();\n wrapper.generateAiGroups();\n \n // Merkitään kaikki ladatuiksi\n allLoaded = true;\n }", "@Override\r\n\tpublic Skills deserialize(JsonElement arg0, Type arg1, JsonDeserializationContext arg2) throws JsonParseException {\n\t\tJsonObject obj = arg0.getAsJsonObject();\r\n\t\t\r\n\t\tList<SingleSkill> Skillz = new ArrayList<>();\r\n\t\t\r\n\t\tfor(Map.Entry<String, JsonElement> entry : obj.entrySet()){\r\n\t\t\tSingleSkill skl = new SingleSkill();\r\n\t\t\tskl.name = entry.getKey();\r\n\t\t\tskl.level = entry.getValue().getAsInt();\r\n\t\t\tSkillz.add(skl);\r\n\t\t}\r\n\t\t\r\n\t\tSkills skills = new Skills();\r\n\t\tskills.ListOfSkills = Skillz;\r\n\t\t\r\n\t\treturn skills;\r\n\t}", "public void init() {\n\t\tmenuTimer.start();\n\t\tmainMenuAnimation = new Animation(100,Assets.mainMenu);\n\t}", "protected void initSkins()\n {\n synchronized (this)\n {\n _skins = new HashMap<SkinMetadata, Skin>();\n }\n }", "public SKIN_SPECIALIST() {\n initComponents();\n }", "public KarateChop() {\n super(SkillFactory.KARATE_CHOP, \"Karate Chop\", SkillDescription.KARATE_CHOP, 25,\n Pokemon.Type.FIGHTING, SkillCategory.PHYSICAL, 100, 50, 2);\n makesPhysicalContact = true;\n }", "@FXML\n\tpublic void initialize() {\n\t\t// Fill the knowledge level selector\n\t\tknowledgeLevelSelector.getItems().setAll(KnowledgeLevel.BEGINNER,\n\t\t\t\tKnowledgeLevel.INTERMEDIATE, KnowledgeLevel.EXPERT);\n\t\tknowledgeLevelSelector.getSelectionModel().selectFirst();\n\t\tstartButtonBox.setBackground(new Background(new BackgroundImage(\n\t\t\t\tlearning, BackgroundRepeat.SPACE, BackgroundRepeat.SPACE, null, null)));\n\t\t// Create table (search table) columns\n\t\tfor (int i = 0; i < columnTitles.length; i++) {\n\t\t\t// Create table column\n\t\t\tTableColumn<Map, String> column = new TableColumn<>(columnTitles[i]);\n\t\t\t// Set map factory\n\t\t\tcolumn.setCellValueFactory(new MapValueFactory(columnTitles[i]));\n\t\t\t// Set width of table column\n\t\t\tcolumn.prefWidthProperty().bind(table.widthProperty().divide(columnTitles.length));\n\t\t\t// Add column to the table\n\t\t\ttable.getColumns().add(column);\n\t\t}\n\t}", "private void initData() throws Exception {\n\t\tString title = personRatingWindow.getTitle();\n\t\ttitle += \" - \" + _studentW.getStudent().getLastFirstName();\n\t\tpersonRatingWindow.setTitle(title);\n\n\t\tList<Skill> skills = new ArrayList<>(); \n\t\t_model.initData(_rko);\n\t\t\n\t\tList<RateCardItem> data = getUserWorkspace().getDataServiceProvider().getRateCard(_studentW.getStudent().getId());\n\t\tdata.stream().forEach((item) -> {\n\t\t\tExercise exercise = _model.getId2ex().get(item.getExerciseId());\n\t\t\tif ( exercise != null ) {\n\t\t\t\taddExcerise(exercise, item);\n\t\t\t\titem.getSkills().stream().forEach((rcItem) -> {\n\t\t\t\t\tSkill skill = _model.getId2skill().get(rcItem.getSkillId() );\n\t\t\t\t\tif ( !_existingSkills.contains(skill) ) {\n\t\t\t\t\t\t_existingSkills.add(skill);\n\t\t\t\t\t\tskills.add(skill);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tCollections.sort(skills, new SkillComparator(true, SkillComparator.TYPE_ORDER));\n\t\tskills.stream().forEach((skill) -> _model.add(skill) );\n\n\t\tif ( listBoxSkills!=null ) {\n\t\t\t_skillModel.setMultiple(true);\n\t\t\t_skillModel.clear();\n\t\t\t_skillModel.addAll(_model.getSkills());\n\t\t\tlistBoxSkills.setModel(_skillModel);\n\t\t}\n\t\t\n\t\tgridSkillsExercises.setModel(_model);\n\t\tlistBoxExercises.setModel(_exerciseListModel);\n\t\t\n\t\t//sampleData();\n\t}", "protected void initialize() {\n \tsetShowStartScreen(false);\n \t\n \t// do not preload resources, for this very simple game\n \t// preloadResources();\n \t\n \t// Max number of balls is just 17\n \tchains.setMaxBalls(17);\n }", "public TbljobSkill(String alias) {\n this(alias, TBLJOB_SKILL);\n }", "public Spell() {\r\n spells = new ArrayList<>();\r\n // Add all 3 spells whenever defualt constructor is called\r\n spells.add(\"Jump the player to another grid location\");\r\n spells.add(\"Randomly reveal the location of one of the Tokimons\");\r\n spells.add(\"Randomly kill off one of the Fokimons\");\r\n spellsCounter = 3;\r\n }", "@Override\n public void initialize() {\n this.product = new Product(this.productId,this.productName,this.productPrice,this.productInv,this.productMin,this.productMax);\n productTitleLabel.setText(\"Modify Product\");\n }", "public Observant() {\n super(ID, 1, CardType.SKILL, CardRarity.UNCOMMON, CardTarget.SELF);\n }", "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"[email protected]\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "public Championship() {\n }", "public AbilityKit(KitHandler kitHandler) {\n super(kitHandler);\n }", "public void constructor() {\n setEdibleAnimals();\n }", "protected void initialize()\n {\n logger.info(\"Initializing stack: {}\", this.getClass().getSimpleName());\n Function function = createLambdaFunction();\n createAthenaDataCatalog(function);\n }", "@Override\r\n\tpublic void useSkill() {\n\t\tthis.defense+=20;\r\n\t\tthis.maxHp+=(this.maxHp/2);\r\n\t\tthis.hp+=(this.hp/2);\r\n\t\tthis.skillActive = true;\r\n\t\tthis.skillLast = 2;\r\n\t}", "private SkillLevel(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public StudentPlayer() {\n super(\"260740998\");\n }", "void skill( String key, String value ){\n developer.skills.add( value );\n }", "public Lunge() {\n super(SkillFactory.LUNGE, \"Lunge\", SkillDescription.lunge, 15, Pokemon.Type.BUG,\n SkillCategory.PHYSICAL, 100, 80, 1, 1.0);\n secondaryEffects.add(new AttackEffect(SecondaryEffect.Target.ENEMY, 1,\n SecondaryEffect.StatDirection.DECREASE));\n makesPhysicalContact = true;\n }" ]
[ "0.76046795", "0.7486045", "0.7285631", "0.7276342", "0.7096559", "0.70127225", "0.6851989", "0.6802223", "0.6783452", "0.65407676", "0.6473932", "0.6208135", "0.6020316", "0.5860283", "0.5821648", "0.5735973", "0.57214034", "0.5716569", "0.5713688", "0.56915134", "0.5689231", "0.56853646", "0.56844825", "0.5674532", "0.5672264", "0.5597047", "0.5595002", "0.5590844", "0.5525418", "0.55129105", "0.54980373", "0.54922444", "0.54828596", "0.5480561", "0.54260784", "0.54179376", "0.5417583", "0.5406231", "0.5404612", "0.53911674", "0.5366724", "0.5362147", "0.53581196", "0.5345144", "0.53351873", "0.53192174", "0.52772135", "0.5256397", "0.52487403", "0.52159745", "0.5205233", "0.5204618", "0.5193845", "0.518545", "0.5183885", "0.5179804", "0.5177143", "0.51731163", "0.51635826", "0.51594317", "0.51565725", "0.51541084", "0.5145681", "0.51456046", "0.51432973", "0.51430976", "0.51384366", "0.51360494", "0.51320803", "0.51314676", "0.51251024", "0.51180375", "0.51167196", "0.5109254", "0.5105188", "0.51037884", "0.50966144", "0.5087788", "0.50847906", "0.50821537", "0.508024", "0.5077752", "0.507591", "0.50723743", "0.5066192", "0.50580716", "0.50562876", "0.5050629", "0.5046524", "0.5031039", "0.50293386", "0.50170803", "0.5016235", "0.5015897", "0.50147223", "0.5002248", "0.49993494", "0.49936548", "0.4992811", "0.49860293" ]
0.6846175
7
Methode zum Aufruf des SkillMenues (Faehigkeiten koennen gegen Erfahrung erlernt werden). Vorher muss initSkills() aufgerufen werden.
public void skills(){ up = false; down = false; left = false; right = false; skillmode = true; if(player.hasSkillHealth1()){ t1.setEnabled(false); t3.setEnabled(true); }else{ t3.setEnabled(false); } if(player.hasSkillHealth2()){ t3.setEnabled(false); } if(player.hasSkillStrength1()){ t2.setEnabled(false); t4.setEnabled(true); }else{ t4.setEnabled(false); } if(player.hasSkillStrength2()){ t4.setEnabled(false); } skills.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.LEER);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.EMBER)));\n levelUpSkills.put(8, new ArrayList<Integer>(Arrays.asList(SkillFactory.WORK_UP)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.HEADBUTT)));\n levelUpSkills.put(15, new ArrayList<Integer>(Arrays.asList(SkillFactory.NOBLE_ROAR)));\n levelUpSkills.put(20, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAKE_DOWN)));\n levelUpSkills.put(23, new ArrayList<Integer>(Arrays.asList(SkillFactory.FIRE_FANG)));\n levelUpSkills.put(28, new ArrayList<Integer>(Arrays.asList(SkillFactory.ENDEAVOR)));\n levelUpSkills.put(33, new ArrayList<Integer>(Arrays.asList(SkillFactory.ECHOED_VOICE)));\n levelUpSkills.put(36, new ArrayList<Integer>(Arrays.asList(SkillFactory.FLAMETHROWER)));\n levelUpSkills.put(39, new ArrayList<Integer>(Arrays.asList(SkillFactory.CRUNCH)));\n levelUpSkills.put(43, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYPER_VOICE)));\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.INCINERATE)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.OVERHEAT)));\n }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.MEGAHORN);\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.TAIL_WHIP);\n beginnerSkills.add(SkillFactory.WATER_GUN);\n beginnerSkills.add(SkillFactory.WATER_SPORT);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAIL_WHIP)));\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_GUN)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_SPORT)));\n levelUpSkills.put(13, new ArrayList<Integer>(Arrays.asList(SkillFactory.FOCUS_ENERGY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RAZOR_SHELL)));\n levelUpSkills.put(21, new ArrayList<Integer>(Arrays.asList(SkillFactory.FURY_CUTTER)));\n levelUpSkills.put(26, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_PULSE)));\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.REVENGE)));\n levelUpSkills.put(34, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_JET)));\n //39 ENCORE\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_TAIL)));\n //51 RETALIATE\n levelUpSkills.put(58, new ArrayList<Integer>(Arrays.asList(SkillFactory.SWORDS_DANCE)));\n levelUpSkills.put(63, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYDRO_PUMP)));\n initEvolutionSkills();\n }", "public void initSkills(){\n\t\tup = false;\n\t\tdown = false;\n\t\tleft = false;\n\t\tright = false;\n\t\tskillmode = true;\n\t\t\n\t\tskills.setLocation(500,300);\n\t\tskills.setSize(400,300);\n\t\t\t\n\t\tt1 = new JButton(\"Dicker Brecher (benötigt 2 Skillpunkte)\");\n\t\tt1.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0){ //bzgl. Starten\n\t\t\t\tif(player.getXP() >= 2){\n\t\t\t\t\tplayer.setXP(player.getXP()-2);\n\t\t\t\t\tplayer.setMaxhealth(player.getMaxhealth() + 50);\n\t\t\t\t\tplayer.setSkillHealth1(true);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Du hast nicht genug Erfahrung\");\n\t\t\t\t}\n\t\t\t\tskillmode = false;\n\t\t\t}\n\t\t});\n\t\t\n\t\tt3 = new JButton(\"Kanten-Paule (benötigt 4 Skillpunkte und Dicker Brecher)\");\n\t\tt3.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0){ //bzgl. Starten\n\t\t\t\tif(player.getXP() >= 4){\n\t\t\t\t\tplayer.setXP(player.getXP()-4);\n\t\t\t\t\tplayer.setMaxhealth(player.getMaxhealth() + 50);\n\t\t\t\t\tplayer.setSkillHealth2(true);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Du hast nicht genug Erfahrung\");\n\t\t\t\t}\n\t\t\t\tskillmode = false;\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tt2 = new JButton(\"Brutaler Prügelknabe (benötigt 2 Skillpunkte)\");\n\t\tt2.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\tif(player.getXP() >= 2){\n\t\t\t\t\tplayer.setXP(player.getXP()-2);\n\t\t\t\t\tplayer.setDamage(player.getDamage() + 20);\n\t\t\t\t\tplayer.setSkillStrength1(true);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Du hast nicht genug Erfahrung!\");\n\t\t\t\t}\n\t\t\t\tskillmode = false;\n\t\t\t}\n\t\t\t\t\n\t\t});\n\t\t\n\t\tt4 = new JButton(\"Mega-Mörder brutaler Prügelknabe (benötigt 4 Skillpunkte und Brutaler Prügelknabe)\");\n\t\tt4.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\tif(player.getXP() >= 4){\n\t\t\t\t\tplayer.setXP(player.getXP()-4);\n\t\t\t\t\tplayer.setDamage(player.getDamage() + 30);\n\t\t\t\t\tplayer.setSkillStrength2(true);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Du hast nicht genug Erfahrung!\");\n\t\t\t\t}\n\t\t\t\tskillmode = false;\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tt5 = new JButton(\"Ich will nix - danke\");\n\t\tt5.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\tskillmode = false;\n\t\t\t}\n\t\t});\n\t\t\n\t\tskills.setLayout(new GridLayout(3,2));\n\t\tskills.add(t1);\n\t\tskills.add(t2);\n\t\tskills.add(t3);\n\t\tskills.add(t4);\n\t\tskills.add(t5);\n\t\n\t\tif(player.hasSkillHealth1()){\n\t\t\tt1.setEnabled(false);\n\t\t\tt3.setEnabled(true);\n\t\t}else{\n\t\t\tt3.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillHealth2()){\n\t\t\tt3.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillStrength1()){\n\t\t\tt2.setEnabled(false);\n\t\t\tt4.setEnabled(true);\n\t\t}else{\n\t\t\tt4.setEnabled(false);\n\t\t}\n\t\tif(player.hasSkillStrength2()){\n\t\t\tt4.setEnabled(false);\n\t\t}\n\t\t\n\t\tskills.pack();\n\t\t\n\t}", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n //TODO: CONVERSION 2\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.CONVERSION);\n beginnerSkills.add(SkillFactory.SHARPEN);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.PSYBEAM)));\n levelUpSkills.put(12, new ArrayList<Integer>(Arrays.asList(SkillFactory.AGILITY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RECOVER)));\n //TODO: MAGNET RISE 23\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.SIGNAL_BEAM)));\n //TODO: RECYCLE 34\n levelUpSkills.put(40, new ArrayList<Integer>(Arrays.asList(SkillFactory.DISCHARGE)));\n levelUpSkills.put(45, new ArrayList<Integer>(Arrays.asList(SkillFactory.LOCK_ON)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.TRI_ATTACK)));\n //TODO: MAGIC COAT 56\n levelUpSkills.put(62, new ArrayList<Integer>(Arrays.asList(SkillFactory.ZAP_CANNON)));\n }", "private void initHeroRollSkills() {\n if (heroRoll.skills.isEmpty()) {\n for (int i : heroRoll.hero.skills40) {\n heroRoll.skills.add(singleton.skillsMap.get(i));\n }\n }\n }", "public skills(){\n\t\tname = \"tempName\";\n\t\tmanaCost =0;\n\t\tskillDmg = 0;\n\t\tcritFactor = 0;\n\t\tcritChance = 0;\n\t\tnoOfTargets = 1;\n\t\thitChance = 0;\n\t\tmyAttribute = null;\n\t\t\n\t\t//instantiates the original values, prob will have no need\n\t\torigSkillDmg = 0;\n\t\torigCritFac = 0;\n\t\torigCritChan = 0;\n\t\torigHitChan =0;\n\t\t\n\t\t//stores the current buffs on the person\n\t\tcurrBuff = null;\n\t}", "public void addSkills(final Characters player, final Characters enemy)\r\n\t{\r\n\t\tskillOne = new JButton(\"Skill 1\");\r\n\t\tadd(skillOne);\r\n\t\tskillOne.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tcombatLog = combatLog + \"\\n\" + player.attack(enemy);\r\n\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\tstate.setWaiting(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillTwo = new JButton(\"Skill 2\");\r\n\t\tadd(skillTwo);\r\n\t\tskillTwo.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(0, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillThree = new JButton(\"Skill 3\");\r\n\t\tadd(skillThree);\r\n\t\tskillThree.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(1, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillFour = new JButton(\"Skill 4\");\r\n\t\tadd(skillFour);\r\n\t\tskillFour.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(2, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tskillFive = new JButton(\"Skill 5\");\r\n\t\tadd(skillFive);\r\n\t\tskillFive.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tString message = player.useSkill(3, enemy);\r\n\t\t\t\tif (message == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\nNot enough mana. Use another skill.\";\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatLog = combatLog + \"\\n\" + message;\r\n\t\t\t\t\tupdateLog(combatLog);\r\n\t\t\t\t\tstate.setSuccess(true);\r\n\t\t\t\t\tstate.setWaiting(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public Skills chooseSkill();", "public void AddNewSkill()\n\t{\n\t\t\n\t}", "public Skill() {\n\t\tsuper();\n\t}", "public void skillControl() {\n\t\tif(skillActive) {\r\n\t\t\tif(skillLast > 0)\r\n\t\t\t{\r\n\t\t\t\tskillLast--;\r\n\t\t\t}else if(skillLast == 0) {\r\n\t\t\t\tskillActive = false;\r\n\t\t\t\tthis.hp/=2;\r\n\t\t\t\tthis.maxHp/=2;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Skill(String skillName, double skillDamage, int skillManaCost, double skillHeal){\n name = skillName;\n damage = skillDamage;\n manaCost = skillManaCost;\n heal = skillHeal;\n//sets up skills to return as their name.\n }", "public void setSkill(int skill){\n\t\tskillSelection = skill;\n\t}", "@Override\r\n\tpublic void useSkill() {\n\t\tthis.defense+=20;\r\n\t\tthis.maxHp+=(this.maxHp/2);\r\n\t\tthis.hp+=(this.hp/2);\r\n\t\tthis.skillActive = true;\r\n\t\tthis.skillLast = 2;\r\n\t}", "@Override\n\tpublic Skills chooseSkill() {\n\t\t\n\t\treturn null;\n\t}", "void updateSkill(Skill skill);", "void skillsComplete( String key ) {\n //do nothing\n }", "private void adminGiveAllSkills(Player activeChar)\r\n\t{\r\n\t\tGameObject target = activeChar.getTarget();\r\n\t\tPlayer player = null;\r\n\t\tif(target != null && target.isPlayer())\r\n\t\t\tplayer = (Player) target;\r\n\t\telse\r\n\t\t{\r\n\t\t\tactiveChar.sendPacket(SystemMsg.INVALID_TARGET);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint unLearnable = 0;\r\n\t\tint skillCounter = 0;\r\n\t\tCollection<SkillLearn> skills = SkillAcquireHolder.getInstance().getAvailableSkills(player, AcquireType.NORMAL);\r\n\t\twhile(skills.size() > unLearnable)\r\n\t\t{\r\n\t\t\tunLearnable = 0;\r\n\t\t\tfor(SkillLearn s : skills)\r\n\t\t\t{\r\n\t\t\t\tSkill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel());\r\n\t\t\t\tif(sk == null || !sk.getCanLearn(player.getClassId()))\r\n\t\t\t\t{\r\n\t\t\t\t\tunLearnable++;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(player.getSkillLevel(sk.getId()) == -1)\r\n\t\t\t\t\tskillCounter++;\r\n\t\t\t\tplayer.addSkill(sk, true);\r\n\t\t\t}\r\n\t\t\tskills = SkillAcquireHolder.getInstance().getAvailableSkills(player, AcquireType.NORMAL);\r\n\t\t}\r\n\r\n\t\tplayer.sendMessage(new CustomMessage(\"l2r.gameserver.handler.admincommands.impl.adminskill.message22\", player, skillCounter));\r\n\t\tplayer.sendPacket(new SkillList(player));\r\n\t\tactiveChar.sendMessage(new CustomMessage(\"l2r.gameserver.handler.admincommands.impl.adminskill.message23\", activeChar, skillCounter, player.getName()));\r\n\t}", "public void setSkillPrediction(Skills skill);", "public void removeSkills()\r\n\t{\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);\r\n\t\t// Cancel Gatekeeper Transformation\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(8248, 1), false);\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5656, 1), false);//Update by rocknow\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5657, 1), false);//Update by rocknow\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5658, 1), false);//Update by rocknow\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5659, 1), false, false);//Update by rocknow\r\n\r\n\t\tgetPlayer().setTransformAllowedSkills(EMPTY_ARRAY);\r\n\t}", "protected void addSkill(String name) {\r\n\t\tthis.skills.add(name.toLowerCase());\r\n\t}", "public void Skill() {\n\t\tBuilding ig = new Iglu(this.GetWater());\n\t\tthis.GetWater().GetBuilding().ReplaceBuilding(ig);\n\t}", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "public Skills getChosenSkill();", "public final void start() {\n if (!player.isSkillAction()) {\n player.setSkillAction(true);\n World.submit(new SkillActionTask(this));\n }\n }", "public void transformedSkills()\r\n\t{\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);\r\n\t\t// Cancel Gatekeeper Transformation\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(8248, 1), false);\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5656, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5657, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5658, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5659, 1), false);//Update by rocknow\r\n\r\n\t\tgetPlayer().setTransformAllowedSkills(SKILLS);\r\n\t}", "public abstract SkillData skill();", "public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}", "public void AddSkill(int aSkill_ID)\n\t{\n\t\tSkill aSkill= new Skill(aSkill_ID);\n\t\taSkill.user_Id=this.id;\n\t\tmySkills.add(aSkill);\n\t}", "public LanguageSkill() {\n\t}", "void skill( String key, String value ){\n developer.skills.add( value );\n }", "@Override\n public void applyDefaults(DynamicSkill skill, String prefix) { }", "public void rewardSkills(final boolean send) {\n boolean update = false;\n if (AllSettingsConfig.AUTO_LEARN_SKILLS) {\n for (SkillLearn skillLearn : SkillAcquireHolder.getInstance().getNormalSkillsClassId(this).values()) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skillLearn.getId(), skillLearn.getLevel());\n if (sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && skillLearn.isClicked())) {\n continue;\n }\n if (getSkillLevel(sk.getId()) < sk.getLevel())\n addSkill(sk, true);\n }\n update = true;\n/*\n\t\t\tint unLearnable = 0;\n\t\t\tCollection<SkillLearn> skills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\twhile(skills.size() > unLearnable) {\n\t\t\t\tunLearnable = 0;\n\t\t\t\tfor(final SkillLearn s : skills) {\n\t\t\t\t\tfinal SkillEntry sk = SkillTable.getInstance().getSkillEntry(s.getId(), s.getLevel());\n\t\t\t\t\tif(sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && s.isClicked())) {\n\t\t\t\t\t\tunLearnable++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\taddSkill(sk, true);\n\t\t\t\t}\n\t\t\t\tskills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\t}\n\t\t\tupdate = true;*/\n } else\n // Скиллы дающиеся бесплатно не требуют изучения\n {\n for (final SkillLearn skill : SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL)) {\n if (skill.getCost() == 0 && skill.getItemId() == 0) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skill.getId(), skill.getLevel());\n addSkill(sk, true);\n if (!getShortCutComponent().getAllShortCuts().isEmpty() && sk.getLevel() > 1) {\n getShortCutComponent().getAllShortCuts().stream().filter(sc -> sc.getId() == sk.getId() && sc.getType() == ShortCut.TYPE_SKILL).forEach(sc -> {\n final ShortCut newsc = new ShortCut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), sk.getLevel(), 1);\n sendPacket(new ShortCutRegister(this, newsc));\n getShortCutComponent().registerShortCut(newsc);\n });\n }\n update = true;\n }\n }\n }\n if (isTransformed()) {\n update = true;\n //Генерируем новые скилы трансформации и выдаем их.\n getTransformation().addGiveAllSkills(getLevel());\n }\n if (send && update) {\n sendPacket(new SkillList(this));\n }\n\n updateStats();\n }", "@Override\n public void useSkill(Creature activeChar, Creature targets) {\n }", "public void setSkillId(Integer skillId) {\n this.skillId = skillId;\n }", "public void initializeClientSkills()\n\t{\n\t\tServerMessage skillLevels = new ServerMessage(ClientPacket.SKILL_LVL_UP);\n\t\tskillLevels.addInt(getTrainingLevel());\n\t\tskillLevels.addInt(getBreedingLevel());\n\t\tskillLevels.addInt(getFishingLevel());\n\t\tskillLevels.addInt(getCoordinatingLevel());\n\t\tgetSession().Send(skillLevels);\n\t}", "public PlayerSkillManager() {\n\n for (SkillType type : SkillType.values()) {\n levels.put(type, 1);\n levelsXp.put(type, calculateXpForLevel(1));\n }\n }", "private void addSkill(Skill skill) {\n Species.Characteristic att = skill.getGoverningAtt();\n int ability = character.getSpecies().getCharacteristicValue(att);\n skill.setAbility(ability);\n\n skillList.add(skill);\n }", "public void removeSkills()\r\n\t{\r\n\t\tremove(skillOne);\r\n\t\tremove(skillTwo);\r\n\t\tremove(skillThree);\r\n\t\tremove(skillFour);\r\n\t\tremove(skillFive);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void setSkills(String group) {\n top.removeAll();\n\n // Header\n constrItem.gridy = 0;\n\n constrItem.gridx = 0;\n top.add(new JLabel(\"Skill\"), constrItem);\n constrItem.gridx = 1;\n top.add(new JLabel(\"ML\"), constrItem);\n constrItem.gridx = 2;\n top.add(new JLabel(\"Dice\"), constrItem);\n constrItem.gridx = 3;\n top.add(new JLabel(\"Adj-1\"), constrItem);\n constrItem.gridx = 4;\n top.add(new JLabel(\"Adj-2\"), constrItem);\n constrItem.gridx = 5;\n top.add(new JLabel(\"Adj-3\"), constrItem);\n constrItem.gridx = 6;\n top.add(new JLabel(\" \"), constrItem);\n constrItem.gridx = 7;\n top.add(new JLabel(\"EML/Roll\"), constrItem);\n constrItem.gridx = 8;\n top.add(new JLabel(\"Success\"), constrItem);\n constrItem.gridx = 9;\n top.add(new JLabel(\"Type\"), constrItem);\n constrItem.gridx = 10;\n top.add(new JLabel(\"Result\"), constrItem);\n\n ArrayList skills =\n (ArrayList) main.getState().getSkillList(group);\n if (skills != null)\n main.getState().recalibrateGuiLines(skills);\n\n for (int i = 0; skills != null && i < skills.size(); i++) {\n ((State.Section) skills.get(i)).gui = null;\n ((State.Section) skills.get(i)).addGui(top);\n }\n\n revalidate(group);\n }", "public Skill() {\n shortName = new SimpleStringProperty(\"\");\n description = new SimpleStringProperty(\"\");\n }", "public Skill(Player player){\n this.player = player;\n this.name = player.name;\n this.intellect = player.intellect;\n this.defense = player.defense;\n this.attack = player.attack;\n this.weapon = player.weapon;\n this.armor = player.armor;\n this.defense = player.defense;\n\n }", "public void addSkill(Skill newskill) {\n skills.addElement(newskill);\n }", "Skill getSkill(String name);", "public void resetSkill(int id) {\r\n this.staticLevels[id] = id == HITPOINTS ? 10 : 1;\r\n this.dynamicLevels[id] = id == HITPOINTS ? 10 : 1;\r\n this.experience[id] = id == HITPOINTS ? 1154 : 0;\r\n refresh();\r\n updateCombatLevel();\r\n if (entity instanceof Player) {\r\n Player player = (Player) entity;\r\n player.getAppearance().sync();\r\n }\r\n }", "public void unlockSkill() {\n int i = 0;\n while (skills.get(i).isUnlocked()) {\n i = i + 1;\n }\n skills.get(i).unlock();\n }", "void changeSkill(Long pokemonId, int newSkill);", "public Skills getSkillPrediction();", "@java.lang.Override\n public int getSkillId() {\n return skillId_;\n }", "private void initData() throws Exception {\n\t\tString title = personRatingWindow.getTitle();\n\t\ttitle += \" - \" + _studentW.getStudent().getLastFirstName();\n\t\tpersonRatingWindow.setTitle(title);\n\n\t\tList<Skill> skills = new ArrayList<>(); \n\t\t_model.initData(_rko);\n\t\t\n\t\tList<RateCardItem> data = getUserWorkspace().getDataServiceProvider().getRateCard(_studentW.getStudent().getId());\n\t\tdata.stream().forEach((item) -> {\n\t\t\tExercise exercise = _model.getId2ex().get(item.getExerciseId());\n\t\t\tif ( exercise != null ) {\n\t\t\t\taddExcerise(exercise, item);\n\t\t\t\titem.getSkills().stream().forEach((rcItem) -> {\n\t\t\t\t\tSkill skill = _model.getId2skill().get(rcItem.getSkillId() );\n\t\t\t\t\tif ( !_existingSkills.contains(skill) ) {\n\t\t\t\t\t\t_existingSkills.add(skill);\n\t\t\t\t\t\tskills.add(skill);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tCollections.sort(skills, new SkillComparator(true, SkillComparator.TYPE_ORDER));\n\t\tskills.stream().forEach((skill) -> _model.add(skill) );\n\n\t\tif ( listBoxSkills!=null ) {\n\t\t\t_skillModel.setMultiple(true);\n\t\t\t_skillModel.clear();\n\t\t\t_skillModel.addAll(_model.getSkills());\n\t\t\tlistBoxSkills.setModel(_skillModel);\n\t\t}\n\t\t\n\t\tgridSkillsExercises.setModel(_model);\n\t\tlistBoxExercises.setModel(_exerciseListModel);\n\t\t\n\t\t//sampleData();\n\t}", "@Test\n public void testUpgradeSkill_04() {\n System.out.println(\"upgradeSkill\");\n \n Skill s = mock(Skill.class);\n when(s.getName()).thenReturn(\"Java\");\n when(s.getType()).thenReturn(\"Technical\");\n when(s.getCost()).thenReturn(2);\n when(s.getLevel()).thenReturn(10);\n when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"Java\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==10);\n }", "@java.lang.Override\n public int getSkillId() {\n return skillId_;\n }", "public Skill update(Skill skill)\r\n {\r\n name = skill.getName();\r\n shortName = skill.getShortName();\r\n selectable = skill.isSelectable();\r\n baseCost = skill.getBaseCost();\r\n levelCost = skill.getLevelCost();\r\n \r\n return this;\r\n }", "public static void main(String[] args) {\n\t\tGameSkill m = new GameSkill();\n\t\t\n\t}", "@Test\n public void testUpgradeSkill_03() {\n System.out.println(\"upgradeSkill\");\n \n Skill s = mock(Skill.class);\n when(s.getName()).thenReturn(\"Java\");\n when(s.getType()).thenReturn(\"Technical\");\n when(s.getCost()).thenReturn(2);\n when(s.getLevel()).thenReturn(4);\n when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"C\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==4);\n }", "@Override\n\tpublic void addSkill(Skill theSkill) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//add/update the skill\n\t\tcurrentSession.saveOrUpdate(theSkill);\n\t}", "public void setSkill(com.transerainc.aha.gen.agent.SkillDocument.Skill skill)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.transerainc.aha.gen.agent.SkillDocument.Skill target = null;\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().find_element_user(SKILL$0, 0);\n if (target == null)\n {\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().add_element_user(SKILL$0);\n }\n target.set(skill);\n }\n }", "@Override\n\tpublic void skill1(Fightable f) {\n\t\tsuper.setDamage(super.getStrength()*3);\n\t\tsuper.setAtkRange((int)(super.getDamage()/5));\n\t\t\n\t\tthis.attack(f, 2);\n\t}", "public ResponseEntity<List<Skill>> getAllSkills() {\n \tList<Skill> skillist=skillService.getAllSkills();\n\t\t\n//\t\tLOGGER.debug(\" Trying to Fetch list of Skills\");\n\t\t\n\t\tif(skillist==null) {\n\t\t\t\n//\t\t\tLOGGER.error(\" No Skill Found\");\n\t\t\tthrow new ResourceNotFoundException(\"No Skill Details found\");\n\t\t}\n//\t\tLOGGER.info(\"Successfully Retrieved\");\n\t\treturn new ResponseEntity<>(skillist,HttpStatus.OK);\n }", "public static void increaseSkill(int skillId, Player player){\n\t\tint playerNumber = getPlayerNumber(player);\n\t\tplayerSkillsArray[playerNumber][skillId]++;\n\t\tbackupSkills();\n\t\tsaveSkills();\n\t}", "public void onSkillUse(L2Player player, int skill_id)\n\t{\n\t\tint npcId = getNpcId();\n\t\t// check if the npc and skills used are valid\n\t\tif(!feedableBeasts.contains(npcId))\n\t\t\treturn;\n\t\tif(skill_id != SKILL_GOLDEN_SPICE && skill_id != SKILL_CRYSTAL_SPICE)\n\t\t\treturn;\n\n\t\tint food = GOLDEN_SPICE;\n\t\tif(skill_id == SKILL_CRYSTAL_SPICE)\n\t\t\tfood = CRYSTAL_SPICE;\n\n\t\tint objectId = getObjectId();\n\t\t// display the social action of the beast eating the food.\n\t\tbroadcastPacket(new SocialAction(objectId, 2));\n\n\t\t// if this pet can't grow, it's all done.\n\t\tif(growthCapableMobs.containsKey(npcId))\n\t\t{\n\t\t\t// do nothing if this mob doesn't eat the specified food (food gets consumed but has no effect).\n\t\t\tif(growthCapableMobs.get(npcId).spice[food].length == 0)\n\t\t\t\treturn;\n\n\t\t\t// more value gathering on local variables\n\t\t\tint growthLevel = growthCapableMobs.get(npcId).growth_level;\n\n\t\t\tif(growthLevel > 0)\n\t\t\t\t// check if this is the same player as the one who raised it from growth 0.\n\t\t\t\t// if no, then do not allow a chance to raise the pet (food gets consumed but has no effect).\n\t\t\t\tif(feedInfo.get(objectId) != null && feedInfo.get(objectId) != player.getObjectId())\n\t\t\t\t\treturn;\n\n\t\t\t// Polymorph the mob, with a certain chance, given its current growth level\n\t\t\tif(Rnd.chance(growthCapableMobs.get(npcId).growth_chance))\n\t\t\t\tspawnNext(player, growthLevel, food);\n\t\t}\n\t\telse if(tamedBeasts.contains(npcId))\n\t\t\tif(skill_id == ((L2TamedBeastInstance) this).getFoodType())\n\t\t\t{\n\t\t\t\t((L2TamedBeastInstance) this).onReceiveFood();\n\t\t\t\tFunctions.npcSayCustomMessage(this, mytext[Rnd.get(mytext.length)]);\n\t\t\t}\n\t}", "@Override\n public Skill addSkill(Skill skill) {\n return _skills.put(skill.getId(), skill);\n }", "String getSkills();", "@Override\r\n\tpublic Skills deserialize(JsonElement arg0, Type arg1, JsonDeserializationContext arg2) throws JsonParseException {\n\t\tJsonObject obj = arg0.getAsJsonObject();\r\n\t\t\r\n\t\tList<SingleSkill> Skillz = new ArrayList<>();\r\n\t\t\r\n\t\tfor(Map.Entry<String, JsonElement> entry : obj.entrySet()){\r\n\t\t\tSingleSkill skl = new SingleSkill();\r\n\t\t\tskl.name = entry.getKey();\r\n\t\t\tskl.level = entry.getValue().getAsInt();\r\n\t\t\tSkillz.add(skl);\r\n\t\t}\r\n\t\t\r\n\t\tSkills skills = new Skills();\r\n\t\tskills.ListOfSkills = Skillz;\r\n\t\t\r\n\t\treturn skills;\r\n\t}", "@Override\n public void applyDefaults(DynamicSkill skill, String prefix) {\n skill.checkDefault(prefix + DAMAGE, 1, 0);\n skill.checkDefault(prefix + DURATION, 5, 2);\n skill.checkDefault(prefix + FREQUENCY, 1, 0);\n if (!skill.isSet(LETHAL)) skill.setValue(LETHAL, 0);\n }", "@Override\n public String getFunction() {\n return \"Gets all skills a player character has.\";\n }", "@Test\n public void testUpgradeSkill_01() {\n System.out.println(\"upgradeSkill\");\n \n// Skill s = mock(Skill.class);\n// when(s.getName()).thenReturn(\"Java\");\n// when(s.getType()).thenReturn(\"Technical\");\n// when(s.getCost()).thenReturn(2);\n// when(s.getLevel()).thenReturn(4);\n// when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n Skill s = new Skill(\"Java\",\"Technical\",2,4,Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"Java\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==5);\n }", "public String getSkill() {\n\t\treturn skill;\n\t}", "@Inject\n public SkillHandler(ISkillService skillService) {\n if (skillService == null) {\n throw new NullPointerException(\"skill service was null\");\n }\n\n this.fSkillSPI = skillService;\n }", "public SysSkillConferpo()\n {\n }", "public int getSkillType() {\n\t\treturn 1;\n\t}", "public void setSkillEnable(int healthPointMax){\n if(healthPointMax >= 200000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n if(skill3.getEnable() == false){\n setSkillPending(2);\n skill3.setEnable(true);\n skill3.setCanUse(true);\n }\n if(skill4.getEnable() == false){\n setSkillPending(3);\n skill4.setEnable(true);\n skill4.setCanUse(true);\n }\n }\n else if(healthPointMax >= 50000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n if(skill3.getEnable() == false){\n setSkillPending(2);\n skill3.setEnable(true);\n skill3.setCanUse(true);\n }\n }\n else if(healthPointMax >= 10000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n }\n else if(healthPointMax >= 500){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n }\n }", "@ApiModelProperty(value = \"List of Skills to assign to the user. Effect: The list contains a collection of skill descriptors. If the corresponding skill is found, it is assigned to the user with the specified level. If it is not found, the skill is created and then assigned. \")\n public List<Skill> getSkills() {\n return skills;\n }", "public com.transerainc.aha.gen.agent.SkillDocument.Skill addNewSkill()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.transerainc.aha.gen.agent.SkillDocument.Skill target = null;\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().add_element_user(SKILL$0);\n return target;\n }\n }", "String getSkill( String key, Integer index ) {\n return developer.skills.get( index );\n }", "public abstract boolean hasSkill(Skill skill);", "public void setExperience(String educationBackground, String skills) {\n this.educationBackground = educationBackground; \n this.skills = skills; \n }", "public SkillPanel(Player p)\n\t{\n\t\tsuper(new FlowLayout());\n\t\tthis.setBackground(Color.BLACK);\n\t\tplayer = p;\n\t\tmenu = player.getSkillMenu();\n\t\tthis.add(menu);\n\t}", "@Override\n public void onSkillClick(int skill_id, int position) {\n\n Intent intent = new Intent(MainActivity.this, SkillActivity.class);\n intent.putExtra(\"REQUESTED_SKILL\", skill_id);\n startActivity(intent);\n }", "public void setSkillUnable(int skillNumber){\n switch(skillNumber){\n case 0 : skill1Label.setIcon(new ImageIcon(\"src/source/uplayer/skillIcon/Cooldown.png\"));break;\n case 1 : skill2Label.setIcon(new ImageIcon(\"src/source/uplayer/skillIcon/Cooldown.png\"));break;\n case 2 : skill3Label.setIcon(new ImageIcon(\"src/source/uplayer/skillIcon/Cooldown.png\"));break;\n case 3 : skill4Label.setIcon(new ImageIcon(\"src/source/uplayer/skillIcon/Cooldown.png\"));break;\n }\n }", "@Override\n\tpublic void skill2(Fightable f) {\n\t\tsuper.setDamage(super.getStrength()*2);\n\t\tsuper.setAtkRange((int)(super.getDamage()/10));\n\t\t\n\t\tthis.attack(f, 3);\n\t}", "@Test\r\n\tvoid testGetPlayerSkillsShouldPass() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint sru = 1000;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standard = ctrl.getSkillRatingByName(sru, \"Standard\");\r\n\t\tint spin= ctrl.getSkillRatingByName(sru, \"Spin\");\r\n\t\tint pop = ctrl.getSkillRatingByName(sru, \"Pop\");\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint front = ctrl.getSkillRatingByName(sru, \"Front\");\r\n\t\tint rear = ctrl.getSkillRatingByName(sru, \"Rear\");\r\n\t\tint side = ctrl.getSkillRatingByName(sru, \"Side\");\r\n\t\tint scrabble = ctrl.getSkillRatingByName(sru, \"Scrabble\");\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint drop = ctrl.getSkillRatingByName(sru, \"Drop\");\r\n\t\tint punt = ctrl.getSkillRatingByName(sru, \"Punt\");\r\n\t\tint grubber = ctrl.getSkillRatingByName(sru, \"Grubber\");\r\n\t\tint goal = ctrl.getSkillRatingByName(sru, \"Goal\");\r\n\t\t\r\n\t\tboolean success = false;\r\n\t\t\r\n\t\tif(standard == 1 && spin == 1 && pop == 1 && front == 1 && rear == 1 && side == 1 \r\n\t\t\t\t&& scrabble == 1 && drop == 1 && punt == 1 && grubber == 1 && goal == 1) {\r\n\t\t\tsuccess = true;\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(success);\r\n\t}", "public static int attemptSkillUp(int skillId, Player player){ \n\t\ttry{\n\t\t\tif(DwarfCraftPlayerSkills.getSkillLevel(skillId, player) == -1){return -2;}\n\t\t\tif(DwarfCraftPlayerSkills.getSkillLevel(skillId, player) == 30){return -2;}\n\t\t\tint[] skillCost;\n\t\t\tskillCost = new int[8];\n\t\t\tint newSkillLevel = DwarfCraftPlayerSkills.getSkillLevel(skillId, player);\n\t\t\t/* Dan thinks skillId could be removed from the arguments in this function\n\t\t\t getSkillTrainingCost */\n\t\t\tskillCost = Skills.values()[skillId].getSkillTrainingCost(skillId, newSkillLevel, player);\n\t\t\tfor (int i = 0; i < skillCost[0];i++){\n\t\t\t\t//check inventory quantity for needed items\n\t\t\t\tif (DwarfCraftInventory.countInventoryItems(skillCost[1+2*i], player) < skillCost[2+2*i]){return -1;}\n\t\t\t}\n\t\t\treturn 1;\n\t\t}\n\t\t\tcatch(NumberFormatException f) {return 0;}\n\t}", "public LovelyKiss() {\n super(SkillFactory.LOVELY_KISS, \"Lovely Kiss\", SkillDescription.LOVELY_KISS,10,\n Pokemon.Type.NORMAL, 75);\n effects.add(new SleepEffect(SecondaryEffect.Target.ENEMY));\n }", "@Override\n public int getSkillLevel(int skillId) {\n final Skill skill = getKnownSkill(skillId);\n return (skill == null) ? 0 : skill.getLevel();\n }", "@Override\n\tpublic List<JobSkill> findAllSkill() {\n\t\treturn jobskillRepository.findAll();\n\t}", "public void setSkillCooldown(int skillNumber){\n switch(skillNumber){\n case 0 : skill1Label.setIcon(skill1.getSkillArr(skillNumber).get(2));break;\n case 1 : skill2Label.setIcon(skill1.getSkillArr(skillNumber).get(2));break;\n case 2 : skill3Label.setIcon(skill1.getSkillArr(skillNumber).get(2));break;\n case 3 : skill4Label.setIcon(skill1.getSkillArr(skillNumber).get(2));break;\n }\n }", "public TbljobSkill() {\n this(\"tbljob_skill\", null);\n }", "public Builder setSkillId(int value) {\n \n skillId_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic List<Skill> getSkills() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//create a query\n\t\tQuery<Skill> theQuery = currentSession.createQuery(\"from Skill\", Skill.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Skill> skills = theQuery.getResultList();\n\t\t\n\t\t//return the results\n\t\treturn skills;\n\t}", "private void default_init(){\n id = 0;\n xPos = 0;\n yPos = 0;\n hp = 100;\n name=\"\";\n character_id = 1;\n weapons = new ArrayList<>();\n weaponEntryTracker = new LinkedList<>();\n isJumping = false;\n isFalling = false;\n initial_y= -1;\n stateOfMovement = 0;\n for(int i = 0; i < 3; i++){\n this.weapons.add(new Pair<>(NO_WEAPON_ID, (short) 0));\n }\n this.weapons.set(0,new Pair<>(PISTOL_ID,DEFAULT_PISTOL_AMMO));\n currentWeapon = this.weapons.get(0);\n bulletsFired = new ArrayList<>();\n shootingDirection = 1;\n energy = 0;\n sprint = false;\n score = 0;\n roundsWon = 0;\n ready = false;\n audioHandler = new AudioHandler();\n }", "Integer getSkillCount( String key ){\n return developer.skills.size();\n }", "@Override\n\tpublic void init() {\n\t\tloadSpritesheet();\n\t\tloadSounds();\n\t\tinitIntro();\n\t}", "public void initGui() {\n/* 27 */ super.initGui();\n/* 28 */ updateActivePotionEffects();\n/* */ }", "public interface SkillDao {\n \n /**\n * gets untrained skills.\n * convenience method. can use get all skills and iterate through and \n * manually check the {@link Skill#isUsableUntrained() isUsableUntrained flag}.\n */\n Collection<Skill> getUntrainedSkills();\n\n /**\n * gets all skills\n * @return\n */\n Collection<Skill> getSkills();\n\n /**\n * saves a new skill.\n * @param skill skill to save\n * @return\n */\n Skill saveSkill(Skill skill);\n\n /**\n * deletes a skill.\n * @param skill\n */\n void deleteSkill(Skill skill);\n\n /**\n * commit changes to a skill.\n * @param skill\n */\n void updateSkill(Skill skill);\n\n /**\n * Get a skill by name.\n * @param name\n * @return\n */\n Skill getSkill(String name);\n\n\tCollection<Skill> searchSkills(String query);\n}", "public void copy(Skills skills) {\r\n for (int i = 0; i < 24; i++) {\r\n this.staticLevels[i] = skills.staticLevels[i];\r\n this.dynamicLevels[i] = skills.dynamicLevels[i];\r\n this.experience[i] = skills.experience[i];\r\n }\r\n prayerPoints = skills.prayerPoints;\r\n lifepoints = skills.lifepoints;\r\n lifepointsIncrease = skills.lifepointsIncrease;\r\n experienceGained = skills.experienceGained;\r\n }", "public Builder addAssistantSkills(SkillImport assistantSkills) {\n com.ibm.cloud.sdk.core.util.Validator.notNull(\n assistantSkills, \"assistantSkills cannot be null\");\n if (this.assistantSkills == null) {\n this.assistantSkills = new ArrayList<SkillImport>();\n }\n this.assistantSkills.add(assistantSkills);\n return this;\n }", "public Builder assistantSkills(List<SkillImport> assistantSkills) {\n this.assistantSkills = assistantSkills;\n return this;\n }", "@Test\n public void testUpdateMainSkillCompareToNewChange_04() {\n System.out.println(\"updateMainSkillCompareToNewChange\");\n Skill s1 = new Skill(\"Java\", \"Technical\", 2, 3, Skill.PLUS_2);\n Skill s2 = new Skill(\"C\", \"Technical\", 2, 5, Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s1);\n instance.add(s2);\n instance.upgradeSkill(\"Java\");\n instance.upgradeSkill(\"Java\");\n instance.upgradeSkill(\"Java\");\n String result = instance.getMainSkill().getName();\n assertTrue(result.equals(\"Java\"));\n }", "private void addSkills() {\n userSkills = new ArrayList<Skill>();\n // set all the skills that the user inputs to new Skills\n final String skill = actvAddMoreSkills.getText().toString().trim();\n // store the database reference to \"Skill\" as a shortcut\n final DatabaseReference skillsRef = FirebaseDatabase.getInstance().getReference(\"Skill\");\n // if the user does not add the last skill they fill in to the recycler view, then we want to grab it\n // and store it as a new skill\n if (!skill.isEmpty()) {\n final Skill userLastInputSkill = new Skill(skill);\n userSkills.add(userLastInputSkill);\n }\n userSkills.addAll(skills);\n // index through the arraylist to add the skills to the database and link them with the current user\n for (int i = 0; i < userSkills.size(); i++) {\n // we need to bind our index to a final integer in order to link it to the database\n final int index = i;\n // we now go through all the skills already in the database to see if the skill that the user input is already there or not\n skillsRef.orderByChild(\"skill\").equalTo(userSkills.get(index).getSkill())\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n // if the skill is already in the database then we continue through the if statement\n if (dataSnapshot.exists()) {\n // skill already exists in database\n // create hashmap for UserID\n final HashMap<String, String> userIdDataMap = new HashMap<String, String>();\n pushToUsersPerSkill(userIdDataMap, index);\n // get the skill object ID from the database\n // we now set another listener for the exact skill in the database to find its specific id\n pushToSkillsPerUser(index);\n // if the skill that the user input is not already in the database then we run through the else case\n } else {\n firebaseData.child(\"Skill\").push().setValue(userSkills.get(index));\n // create a hashmap for the UserID\n final HashMap<String, String> userIdDataMap = new HashMap<String, String>();\n pushToUsersPerSkill(userIdDataMap, index);\n // get the skill object ID from the database\n // we now set another listener for the exact skill in the database to find its specific id\n pushToSkillsPerUser(index);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n // log the error\n Log.e(\"Adding Skills\", databaseError.toString());\n }\n });\n }\n }" ]
[ "0.77625084", "0.76938355", "0.76752305", "0.766685", "0.69874394", "0.6951012", "0.6821157", "0.67926913", "0.67504865", "0.6695391", "0.65356034", "0.6438732", "0.632047", "0.6291031", "0.62761825", "0.62520427", "0.6219176", "0.621419", "0.62058866", "0.61982924", "0.6192875", "0.6184691", "0.61783373", "0.6157999", "0.6157064", "0.61380225", "0.61125594", "0.6104182", "0.60887545", "0.60308176", "0.5985638", "0.5943787", "0.59336686", "0.59267575", "0.59262437", "0.59148574", "0.58863163", "0.58758235", "0.58657676", "0.58494914", "0.583621", "0.5763156", "0.5678415", "0.55938953", "0.55825216", "0.55580574", "0.5524028", "0.5522837", "0.55201197", "0.5516508", "0.5507013", "0.5504267", "0.5499318", "0.54977655", "0.5494463", "0.5483771", "0.5482106", "0.5476653", "0.5472687", "0.54668677", "0.54666436", "0.5464924", "0.5436449", "0.5413257", "0.5408989", "0.5408607", "0.5408005", "0.5404479", "0.5373433", "0.53434545", "0.531817", "0.5313214", "0.53097934", "0.52946705", "0.5289269", "0.5279617", "0.52744174", "0.5271569", "0.5253615", "0.52472216", "0.52421004", "0.52402884", "0.52364093", "0.5234956", "0.5226987", "0.52069426", "0.5197471", "0.5193495", "0.51909775", "0.51858747", "0.51709974", "0.51693577", "0.5165595", "0.5150322", "0.51322335", "0.5127999", "0.51278305", "0.51227134", "0.5115909", "0.51031363" ]
0.6866806
6
Laesst den Spieler das Spiel gewinnen, fragt nach Neustart bzw. Beenden.
public void wonGame(){ System.out.println("Bravo, du hast gewonnen! Möchtest du noch einmal spielen?"); stopGame(); started = false; spiel_status = 1; paintMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielerWeg(String spieler);", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "public void sendeNeuerSpieler(String spieler);", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "public void sendeSpielfeld();", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public Spielflaeche getSpielflaeche() {return spielflaeche;}", "protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\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\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "public Spieler(String spielfigur) {\n\n this.kontostand = 30000;\n this.spielfigur = spielfigur;\n this.istGefängnis = false;\n\n liste.put(\"braun\", braun);\n liste.put(\"hellblau\", hellblau);\n liste.put(\"pink\", pink);\n liste.put(\"orange\", orange);\n liste.put(\"rot\", rot);\n liste.put(\"gelb\", gelb);\n liste.put(\"grün\", grün);\n liste.put(\"duneklblau\", dunkelblau);\n liste.put(\"bahnhoefe\", bahnhoefe);\n liste.put(\"werke\", werke);\n felderInBesitz = new ArrayList<>();\n\n }", "public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "public void addSteinZuSpielFeld(Stein pStein, int spielerIndex)\n {\n if (!checkLegbarkeit(pStein))\n return;\n //System.out.println(\"QuirkelSpiel: \"+(System.currentTimeMillis() - start) + \" ms for Legbarkeitscheck!\");\n\n\n\n if (aktiveZeile ==null && aktiveSpalte ==null){\n aktiveZeile = pStein.gibZeile();\n aktiveSpalte = pStein.gibSpalte();\n }\n else if (aktiveZeile!=null && aktiveSpalte!=null){\n if (pStein.gibZeile()!=aktiveZeile && pStein.gibSpalte()!=aktiveSpalte) //Stein muss in gleiche Zeile oder Spalte gelegt werden\n return;\n else if (pStein.gibZeile()==aktiveZeile)\n aktiveSpalte = null;\n else\n aktiveZeile =null;\n }\n else if (aktiveZeile!=null){\n if (pStein.gibZeile()!=aktiveZeile) //Stein muss in die gleiche Zeile gelegt werden\n return;\n }\n else\n if (pStein.gibSpalte()!=aktiveSpalte) //Stein muss in die gleiche Spalte gelegt werden\n return;\n\n if (aktiveFarbe ==null && aktivesSymbol ==null){\n aktiveFarbe = pStein.gibFarbString();\n aktivesSymbol = pStein.gibSymbolString();\n }\n else if (aktiveFarbe!=null && aktivesSymbol!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe) && !pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol oder gleiche Farbe haben\n return;\n else if (pStein.gibFarbString().equals(aktiveFarbe))\n aktivesSymbol = null;\n else\n aktiveFarbe =null;\n }\n else if (aktiveFarbe!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe)) //Stein muss gleiche Farbe haben\n return;\n }\n else\n if (!pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol haben\n return;\n\n\n spielfeld.append(pStein); // legt ihn auf das Spielfeld\n symbolMap.get(pStein.gibSymbol()).add(pStein);\n farbenMap.get(pStein.gibSymbol()).add(pStein);\n\n int punkte=0;\n int zwischenPunkte =horizontalePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n zwischenPunkte =senkrechtePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n\n if (punkte==0)\n punkte = 1; //gib auf alle Faelle einen Punkt\n\n while (spielerRing.getContent().gibIndex()!=spielerIndex)\n spielerRing.next();\n\n Spieler spieler = this.spielerRing.getContent();\n spieler.legeStein(pStein,punkte);\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + pStein.toString() + \" gelegt.\");\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + punkte + \" Punkte bekommen.\");\n\n\n //Wiederauffuellen in der gleichen Runde, wenn alle Steine abgelegt worden sind\n if (spieler.gibAnzahlSteine()==0 && beutel.gibAnzahl()>0){\n while (spieler.gibAnzahlSteine()<6 && beutel.gibAnzahl()>0){\n spieler.addStein(beutel.gibStein());\n }\n }\n\n }", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "public int bewerten(String spieler){\n\t\treihenPruefen pruefen = new reihenPruefen();\n\t\tString gegner;\n\t\t\n\t\tif(spieler.equals(\"o\")){\n\t\t\tgegner = \"x\";\n\t\t}else{\n\t\t\tgegner = \"o\";\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, spieler)){\n\t\t\treturn 4;\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, gegner)){\n\t\t\treturn -4;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, spieler)){\n\t\t\treturn 3;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, gegner)){\n\t\t\treturn -3;\n\t\t}\n\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, spieler)){\n\t\t\treturn 2;\n\t\t}\n\t\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, gegner)){\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public Pont ertesit(Pont innenlep, Szereplo sz);", "public void starteSpiel(int pAnzahl){\n\n this.anzahl = pAnzahl;\n\n spielerRing = new Ring<>();\n for (int i = 0; i < pAnzahl; i++) {\n spielerRing.insert(new Spieler(i));\n }\n\n Spieler startSpieler = null;\n while (startSpieler==null) {\n\n //verteile Steine\n int count = 0;\n while (count < pAnzahl) {\n Spieler spieler = this.spielerRing.getContent();\n spieler.loescheAlleSteine();\n for (int i = 0; i < 6; i++) {\n spieler.addStein(beutel.gibStein());\n }\n this.spielerRing.next();\n count++;\n }\n\n //bestimme Startspieler\n int startWert = 0;\n count=0;\n while (count < pAnzahl) {\n Spieler spieler = this.spielerRing.getContent();\n int wert = spieler.gibStartWert();\n if (wert>startWert){\n startWert = wert;\n if (wert>2)\n startSpieler = spieler;\n }\n this.spielerRing.next();\n count++;\n }\n\n if (startSpieler!=null)\n startSpieler.setzeAktiv(true);\n }\n }", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "public void fuehreNaechstenZugAus(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(\"_\")){\n\t\t\tspielfeld[spalte][zeile] = spieler;\n\t\t}\n\t\t\n\t}", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "public KI(Spieler spieler, Spiel spiel){\r\n\t\tif (spieler == null) throw new RuntimeException(\"Spieler muss vorhanden sein!\");\t\r\n\t\tthis.spieler = spieler;\r\n\r\n\t\tif(spiel==null) throw new RuntimeException (\"Spiel sollte vorhanden sein\");\r\n\t\tthis.spiel=spiel;\r\n\r\n\t\thatUeberlauf=false;\r\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "@Before\r\n\tpublic void erstelleSUT() {\n\t\tSpiel spiel = new Spiel();\r\n\r\n\t\t// Für jeden Spieler eine Unternehmenskette, damit eine\r\n\t\t// Konkurrenzsituation entsteht\r\n\t\tukette = new Unternehmenskette(\"KetteNummer1\");\r\n\t\tukette1 = new Unternehmenskette(\"KetteNummer2\");\r\n\t\t// Es werden für Unternehmenskette ein Report erstellt. Pro Runde\r\n\t\t// brauchen wir eigentlich ein Report für jede Kette.\r\n\t\tReport report = new Report(1, ukette);\r\n\t\tReport report1 = new Report(1, ukette1);\r\n\t\tukette.hinzufuegenReport(report);\r\n\t\tukette1.hinzufuegenReport(report1);\r\n\t\t// Dem Spiel werden die Unternehmensketten zugeordnet\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette);\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette1);\r\n\t\t// Ein Standort, an dem die Ketten konkurrieren sollen, wird angelegt\r\n\r\n\t\t// für den Kunden:\r\n\t\t// Praeferenz für ALLE ist Qualität\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tstandort = new Standort(Standorttyp.Standort1);\r\n\t\tfil1 = new Filiale(standort, ukette);\r\n\t\tfil1.setzeMitarbeiter(1);\r\n\t\tfil1.initialisierenKapazitaet();\r\n\t\tfil2 = new Filiale(standort, ukette1);\r\n\t\tfil2.setzeMitarbeiter(1);\r\n\t\tfil2.initialisierenKapazitaet();\r\n\t\tZufall.setzeTestmodus(false);\r\n\t\tstandort.beeinflussenKunden(ukette, 1);\r\n\t\tstandort.beeinflussenKunden(ukette1, 1);\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tProdukt p1 = new Produkt(Produkttyp.TEE, 20);\r\n\t\tProdukt p2 = new Produkt(Produkttyp.KUCHEN, 10);\r\n\t\tp1.setzePreis(1);\r\n\t\tp1.setzeQualitaet(0.56);\r\n\t\tp2.setzePreis(1.2);\r\n\t\tp2.setzeQualitaet(0.6);\r\n\t\tukette.holeLager().einlagern(p1);\r\n\t\tukette.holeLager().einlagern(p2);\r\n\t\tp1.setzePreis(0.8);\r\n\t\tp1.setzeQualitaet(0.5);\r\n\t\tukette1.holeLager().einlagern(p1);\r\n\t\t// Kette1 bietet Kaffee (P:1; Q:0.56) und Kuchen (P:1.2; Q:0.6) an\r\n\t\t// Kette2 bietet Kaffe (P:0.8, Q:0.5) an.\r\n\t}", "public AbstraktesSpielfeld getSpielfeld() {\n // Hier ein Spielfeld-Objekt erzeugen und zurückliefern.\n return new Spielfeld();\n }", "private void findeNachbarSteine(Stein pStein, java.util.List<Stein> pSteinListe, Richtung pRichtung){\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){ //Schleife ueber alle Steine des Spielfelds\n Stein stein = spielfeld.getContent();\n switch(pRichtung){\n case oben:\n if (pStein.gibZeile()==stein.gibZeile()+1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case links:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()+1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case unten:\n if (pStein.gibZeile()==stein.gibZeile()-1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case rechts:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()-1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n }\n spielfeld.next();\n }\n }", "public boolean siegMuster(int spalte, int zeile){\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile].equals(eigenerStein) && spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe links -1\n\t\ttry{\n\t\t\tif(spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe rechts +3\n\t\ttry{\n\t\t\tif(spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein) && spielfeld[spalte+3][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t//Pruefe senkrecht\n\t\ttry{\n\t\t\tif(spielfeld[spalte][zeile-3].equals(eigenerStein) && spielfeld[spalte][zeile-2].equals(eigenerStein) && spielfeld[spalte][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t//Pruefe waagerecht\n\t\t//Pruefe diagonal links -3\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile-3].equals(eigenerStein) && spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe diagonal links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein) && spielfeld[spalte+3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(eigenerStein) && spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+3][zeile-3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links hoch\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein) && spielfeld[spalte-3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile].equals(gegnerStein) && spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein) && spielfeld[spalte+3][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t//Pruefe senkrecht\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte][zeile-3].equals(gegnerStein) && spielfeld[spalte][zeile-2].equals(gegnerStein) && spielfeld[spalte][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe diagonal links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile-3].equals(gegnerStein) && spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -1\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein) && spielfeld[spalte+3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(gegnerStein) && spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+3][zeile-3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links hoch\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein) && spielfeld[spalte-3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\treturn false;\n\t}", "public Farbe letztesKamel();", "@Override\r\n\tpublic String Land() {\n\t\treturn \"El Helicoptero esta Aterrizando\";\r\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\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\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void poetries() {\n\n\t}", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "private void nullstillFordeling(){\n int i = indeks;\n politi = -1;\n mafiaer = -1;\n venner = -1;\n mafia.nullstillSpesialister();\n spillere.tømTommeRoller();\n for (indeks = 0; roller[indeks] == null; indeks++) ;\n fordeling = null;\n }", "public Spiel(TerraSnowSpleef plugin) {\r\n this.plugin = plugin;\r\n joinCountdown = false;\r\n startCountdown = false;\r\n spiel = false;\r\n sf = new Spielfeld(plugin);\r\n spielerSet = new HashSet<>();\r\n }", "private boolean analyseQueryBefore(Spieler spieler,Spieler spielerB, Board board) {\r\n\t\t// Switch mit der Spielphase des Spielers\r\n\t\tboolean back = false;\r\n\t\tswitch (spieler.getSpielPhase()) {\r\n\t\t\tcase 0: \t// Werte nur Regel 1 aus\r\n\t\t\t\t\t\tList<Stein> rueckgabe = this.logikCheck.sucheZweiInGleicherReihe(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!rueckgabe.isEmpty() && !rueckgabe.get(0).equals(new Stein(0,0,0, null))) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe.get(0));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 1:\t\tfor(Regel regel: uebergreifendeRegeln) {\r\n\t\t\t\t\t\t\tif(regel.getIfTeil().contains(\"eigene Steine\")) {\r\n\t\t\t\t\t\t\t\tList<Stein> getDataBack = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!getDataBack.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tStein stein = getDataBack.get(1);\r\n\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\tback = true;\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\t\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tList<Stein> zweiGegner = this.logikCheck.sucheZweiInGleicherReihe(spielerB.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!zweiGegner.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tList<Stein> result = this.logikCheck.sucheSteinInderNäheUmGegnerZuBlocken(zweiGegner, spieler);\r\n\t\t\t\t\t\t\t\t\tif(!result.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tStein stein = result.get(0);\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\t\tback = true;\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\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 2:\t\tList<Stein> rueckgabe2 = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\tif(!rueckgabe2.isEmpty()) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(0));\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(1));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault: break;\t\r\n\t\t}\r\n\t\treturn back;\r\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public void sleutelWaarde(){\n if(sleutel100.getX() == speler.getX() && sleutel100.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel100.getWaarde());\n }\n else if(sleutel1002.getX() == speler.getX() && sleutel1002.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel1002.getWaarde());\n }\n else if(sleutel200.getX() == speler.getX() && sleutel200.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel200.getWaarde());\n }\n else if(sleutel300.getX() == speler.getX() && sleutel300.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel300.getWaarde());\n }\n }", "private void analyseQuerySpielPhase0(Board board, Spieler spieler) {\r\n\t\tfor(RegelSpielPhase0 regel: spielphase0) {\r\n\t\t\tif(regel.getIfTeil().contains(\"Frei\") && !board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"Belegt\") && board.checkAufBelegtFeld(regel.getIfStein().convertToFeld()) &&\r\n\t\t\t\t\t\t!board.checkAufBelegtFeld(regel.getElseStein().convertToFeld())){\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"zufall\")) {\r\n\t\t\t\t\r\n\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\tthis.dataBack.add(regel.getIfStein());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\twhile(board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\t\tSystem.out.println(\"Eine zufällige Regel wurde erzeugt.\");\r\n\t\t\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\t\t\t\tregel.erzeugeZufällig();\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}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void laadSpelIn(int keuze){\r\n String naam = spellen[keuze-1][0];\r\n this.dc.selecteerSpel(naam);\r\n UC1.ua.geefSpelbordWeer();\r\n this.uc3.start();\r\n }", "@Override\n\tpublic void loese(Schiebepuzzle p) {\n\t\tPoint endPos = new Point(0,0);\n\t\twhile(!p.getLocationOfField(1).equals(endPos)) {\n\t\t\tArrayList<Integer> temp = new ArrayList<>();\n\t\t\tfor(int i = 1; i <= p.maxElement(); i++) {\n\t\t\t\tif(p.istVerschiebar(i)) {\n\t\t\t\t\ttemp.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint index = randInt(temp.size() - 1);\n\t\t\tp.schiebe(temp.get(index));\n\t\t}\t\t\n\t}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public void besetze(int spalte, int spieler)\n\t{\n\t\tswitch (spalte)\n\t\t{\n\t\tcase 0:\n\t\t\t_spalte0 = spieler;\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\t_spalte1 = spieler;\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\t_spalte2 = spieler;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(String.valueOf(spalte));\n\t\t}\n\t}", "public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public SPIEL( int breite , int hoehe , boolean punkteLinks , boolean punkteRechts , boolean maus ) \n {\n //Zaehler fuer Tick, Tack, ...\n zaehler = 0;\n anzeige = new AnzeigeE( breite , hoehe );\n //animationsManager = AnimationsManager.getAnimationsManager();\n \n //Punkteanzeige\n anzeige.punkteLinksSichtbarSetzen( punkteLinks );\n anzeige.punkteRechtsSichtbarSetzen( punkteRechts );\n \n //Maus ggf. aktivieren\n if ( maus ) \n {\n anzeige.klickReagierbarAnmelden( this , true );\n }\n \n //Tastatur\n anzeige.tastenReagierbarAnmelden( this );\n \n //Ticker\n //Alle 500 Millisekunden (=Jede halbe Sekunde) ein Tick\n //anzeige.tickerAnmelden(this, 500); \n }", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "public String gibZustand(){\n String out = anzahl+QwirkleServer.SEP;\n String aktiv = \"\";\n int[] punkte = new int[anzahl];\n String[] spielerSteine = new String[anzahl];\n String spielfeldString = \"\";\n\n //sammle Daten\n int count = 0;\n while (count<anzahl){\n Spieler spieler = this.spielerRing.getContent();\n if (spieler.istAktiv()) aktiv = spieler.gibIndex()+\"\";\n punkte[spieler.gibIndex()] = spieler.gibPunkteStand();\n spielerSteine[spieler.gibIndex()]=spieler.gibSteineString();\n this.spielerRing.next();\n count++;\n }\n\n if (spielEnde) aktiv = \"-1\";\n\n out += beutel.gibAnzahl()+QwirkleServer.SEP;\n out += aktiv;\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+punkte[i];\n\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+spielerSteine[i];\n\n\n spielfeld.toFirst();\n while(spielfeld.hasAccess()) {\n Stein stein = spielfeld.getContent();\n out += QwirkleServer.SEP + stein.toString();\n spielfeld.next();\n }\n\n return out;\n }", "public void expLocation() {\n\t\tif (!death) {\t// Geht nicht wenn Tod!\n\t\t\t\n\t\t\t// Beschreibungen anzeigen und boolean explored auf wahr setzen, außer der Raum wurde bereits untersucht\n\t\t\tif (location[this.currentLocation].isExplored()) { Tuna.setMessage(\"Dieser Raum wurde bereits untersucht!\");\n\t\t\t} else {\n\t\t\t\tTuna.addText(location[this.currentLocation].getDescriptions().getExploreDescription());\n\t\t\t\tlocation[this.currentLocation].setExplored(true);\n\t\t\t}\n\t\t\t\n\t\t\t// Items an Stelle null im Item-Array des Standortes sichtbar machen\n\t\t\tif ((currentLocation > 0 && currentLocation < 7 && currentLocation != 2) || currentLocation == 20) {\n\t\t\t\tlocation[this.currentLocation].getItem(0).setVisible(true);\n\t\t\t\t/* Im Korridor (1) der Kaffeelöscherkasten\n\t\t\t\t * Im Konferenzraum (3) der Ventilationsschacht\n\t\t\t\t * In der Kammer der Leere (4) die Notiz\n\t\t\t\t * Im Ventilationsraum (5) die Notiz\n\t\t\t\t * In der Damentoilette (6) das Skillboook\n\t\t\t\t * Im Fahrstuhlschacht (20) die Kaffeetasse\n\t\t\t\t */\n\t\t\t}\n\t\t\t\n\t\t\t// Items an Stelle eins im Item-Array des Standortes sichtbar machen\n\t\t\tif (currentLocation == 9) {\n\t\t\t\tlocation[this.currentLocation].getItem(1).setVisible(true);\n\t\t\t}\n\t\t} else if (death) {\n\t\t\tTuna.setMessage(\"Du bist tot!\");\n\t\t}\n\t}", "protected ElementDoppeltVerkettet gehe(int anzahlSchritte) {\n\t\tElementDoppeltVerkettet aktuell = this;\n\t\tint aS = anzahlSchritte;\n\t\tif (aS < 0) {\n\t\t\twhile (aS < 0 && aktuell.zurück != null) {\n\t\t\t\taktuell = aktuell.zurück;\n\t\t\t\taS++;\n\t\t\t}\n\t\t} else {\n\t\t\twhile (aS > 0 && aktuell.vor != null) { aktuell = (ElementDoppeltVerkettet) aktuell.vor; aS--; }\n\t\t}\n\t\tif (aS == 0) {\n\t\t\treturn aktuell;\n\t\t} else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Die Grenzen der Liste sollten überschritten werden\");\n\t\t}\n\t}", "private boolean checkLegbarkeit(Stein pStein){\n\n if (spielfeld.isEmpty()) //erster Stein, alles ist moeglich\n return true;\n\n //liegt schon ein Stein im Feld?\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){\n Stein stein = spielfeld.getContent();\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte())\n return false;\n spielfeld.next();\n }\n\n //bestimme alle Nachbarsteine\n java.util.List<Stein> oben = new ArrayList<>();\n java.util.List<Stein> rechts = new ArrayList<>();\n java.util.List<Stein> links = new ArrayList<>();\n java.util.List<Stein> unten = new ArrayList<>();\n\n findeNachbarSteine(pStein,oben, Richtung.oben);\n findeNachbarSteine(pStein,rechts, Richtung.rechts);\n findeNachbarSteine(pStein,unten, Richtung.unten);\n findeNachbarSteine(pStein,links, Richtung.links);\n\n if (oben.size()==0 && rechts.size()==0 && links.size()==0 && unten.size()==0) //keine Nachbar, Stein ins Nirvana gelegt\n return false;\n\n if(pruefeAufKonflikt(pStein,oben)) return false;\n if(pruefeAufKonflikt(pStein,rechts)) return false;\n if(pruefeAufKonflikt(pStein,unten)) return false;\n if(pruefeAufKonflikt(pStein,links)) return false;\n\n return true;\n }", "public String limpiar()\r\n/* 509: */ {\r\n/* 510:529 */ return null;\r\n/* 511: */ }", "public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public synchronized IFlaecheK entnehmen() {\n\t\twartendeThreads++;\n\n\t\twhile (speicher.isEmpty()) {\n\n\t\t\t// Ist der Puffer leergelaufen, wird er durch einen anderen ersetzt.\n\t\t\t// Dazu werden Heuristiken herangezogen.\n\t\t\tif (unwahrscheinlich.size() != 0) {\n\t\t\t\tspeicher = heuristiken.ermittleMittelsHeuristik(unwahrscheinlich);\n\t\t\t\tnotifyAll();\n\t\t\t} else {\n\t\t\t\t// Wenn alle Threads warten, bedeutet dies, dass es keine\n\t\t\t\t// Flaeche\n\t\t\t\t// mehr\n\t\t\t\t// gibt, welche die Bedingungen erfuellt, somit ist die\n\t\t\t\t// urspruengliche\n\t\t\t\t// Flaeche nicht loesbar und es wird NULL zurueckgegeben.\n\t\t\t\trunningThreads--;\n\n\t\t\t\t// Wenn der Puffer jetzt wirklich leer ist wird gewartet ob ein\n\t\t\t\t// Thread noch ein neue Flaeche bringt, sind alle Threads hier\n\t\t\t\t// wartend, gibt es keine Loesung.\n\t\t\t\tif (runningThreads < 1) {\n\t\t\t\t\tnotifyAll();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t\trunningThreads++;\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tnotifyAll();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twartendeThreads--;\n\t\tabgelehnteFlaechen = 0;\n\t\treturn speicher.remove(random.nextInt(speicher.size()));\n\t}", "private List<ItemMovement> uitGraven(Slot slot, Gantry gantry){\n\n List<ItemMovement> itemMovements = new ArrayList<>();\n Richting richting = Richting.NaarVoor;\n\n //Recursief naar boven gaan, doordat we namelijk eerste de gevulde parents van een bepaald slot moeten uithalen\n if(slot.getParent() != null && slot.getParent().getItem() != null){\n itemMovements.addAll(uitGraven(slot.getParent(), gantry));\n }\n\n //Slot in een zo dicht mogelijke rij zoeken\n boolean newSlotFound = false;\n Slot newSlot = null;\n int offset = 1;\n do { //TODO: als storage vol zit en NaarVoor en NaarAchter vinden geen vrije plaats => inf loop\n // bij het NaarAchter lopen uw index telkens het negatieve deel nemen, dus deze wordt telkens groter negatief.\n //AANPASSING\n Integer locatie = richting==Richting.NaarVoor? (slot.getCenterY() / 10) + offset : (slot.getCenterY() / 10) - offset;\n //we overlopen eerst alle richtingen NaarVoor wanneer deze op zen einde komt en er geen plaats meer is van richting veranderen naar achter\n // index terug op 1 zetten omdat de indexen ervoor al gecontroleerd waren\n if (grondSlots.get(locatie) == null) {\n //Grootte resetten en richting omdraaien\n offset = 1;\n richting = Richting.NaarAchter;\n continue;\n }\n\n Set<Slot> ondersteRij = new HashSet<>(grondSlots.get(locatie).values());\n newSlot = GeneralMeasures.zoekLeegSlot(ondersteRij);\n\n if(newSlot != null){\n newSlotFound = true;\n }\n //telkens één slot verder gaan\n offset += 1;\n }while(!newSlotFound);\n // vanaf er een nieuw vrij slot gevonden is deze functie verlaten\n\n //verplaatsen\n itemMovements.addAll(GeneralMeasures.createMoves(pickupPlaceDuration,gantry, slot, newSlot));\n update(Operatie.VerplaatsIntern, newSlot, slot);\n\n return itemMovements;\n }", "public Monopoly() {\n\t\tsuper();\n\t\tthis.spieler = new Spielerverwaltung();\n\t\tthis.logik = new Spielverwaltung(spieler,this);\n\t\tpmLaden = new PersistenzLaden();\n\t\tpmSpeichern = new PersistenzSpeichern();\n\t}", "protected Groep updateSpelers(Groep groep, Serie serie) {\r\n\r\n for (Speler speler : groep.getSpelers()) {\r\n Wedstrijd wedstrijd = serie.getWedstrijdVoorSpeler(speler);\r\n if (wedstrijd != null) {\r\n if (wedstrijd.getWit().gelijkAan(speler)) {\r\n // Speler speelde met wit\r\n speler.addTegenstander(wedstrijd.getZwart().getInitialen());\r\n speler.setWitvoorkeur(speler.getWitvoorkeur() - 1.1);\r\n\r\n } else if (wedstrijd.getZwart().gelijkAan(speler)) {\r\n // Speler speelde met zwart\r\n speler.addTegenstander(wedstrijd.getWit().getInitialen());\r\n\r\n speler.setWitvoorkeur(speler.getWitvoorkeur() + 1.1);\r\n\r\n } else {\r\n System.out.println(\"Hmmm, speler niet gevonden....\");\r\n }\r\n }\r\n }\r\n return groep;\r\n }", "public void teken(){\n removeAll();\n \n //eerste tekening\n if(tekenEerste != false){\n tekenMuur();\n tekenSleutel();\n veld[9][9] = 6;\n tekenEerste = false;\n tekenBarricade();\n }\n \n //methode die de speler de waarde van de sleutel geeft aanroepen\n sleutelWaarde();\n \n //de methode van het spel einde aanroepen\n einde();\n \n //vernieuwd veld aanroepen\n veld = speler.nieuwVeld(veld);\n \n //het veld tekenen\n for(int i = 0; i < coordinaten.length; i++) {\n for(int j = 0; j < coordinaten[1].length; j++){\n switch (veld[i][j]) {\n case 1: //de sleutels\n if(i == sleutel100.getY() && j == sleutel100.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel1002.getY() && j == sleutel1002.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel200.getY() && j == sleutel200.getX()){\n coordinaten[i][j] = new SleutelVakje(200);\n }\n else if (i == sleutel300.getY() && j == sleutel300.getX()){\n coordinaten[i][j] = new SleutelVakje(300);\n } break;\n case 2: //de muren\n coordinaten[i][j] = new MuurVakje();\n break;\n // de barricades\n case 3:\n coordinaten[i][j] = new BarricadeVakje(100);\n break;\n case 4:\n coordinaten[i][j] = new BarricadeVakje(200);\n break;\n case 5:\n coordinaten[i][j] = new BarricadeVakje(300);\n break;\n case 6: // het eindveld vakje\n coordinaten[i][j] = new EindveldVakje();\n break;\n default: // het normale vakje\n coordinaten[i][j] = new CoordinaatVakje();\n break;\n }\n //de speler\n coordinaten[speler.getY()][speler.getX()] = new SpelerVakje();\n \n //het veld aan de JPanel toevoegen\n add(coordinaten[i][j]);\n }\n }\n System.out.println(\"Speler waarde = \" + speler.getSleutelWaarde());\n revalidate();\n repaint();\n }", "public int miete(Spieler spieler){\n\t\treturn logik.miete(spieler);\n\t}", "private void heilenTrankBenutzen() {\n LinkedList<Gegenstand> gegenstaende = spieler.getAlleGegenstaende();\n for (Gegenstand g : gegenstaende) {\n if (g.getName().equalsIgnoreCase(\"heiltrank\")) {\n spieler.heilen();\n gegenstaende.remove(g);\n System.out.print(\"Heiltrank wird benutzt\");\n makePause();\n System.out.println(\"Du hast noch \" + zaehltGegenstand(\"heiltrank\") + \" Heiltranke!\");\n return;\n }\n }\n System.out.println(\"Du hast gerade keinen Heiltrank\");\n }", "public void setzeEigenenStein(int spielzug){\t\t\n\t\t//Setze eigenen Stein\n\t\tfor(int i=0; i<6; i++) {\n\t\t\tif(spielfeld[spielzug][i].equals(\"_\")){\n\t\t\t\tspielfeld[spielzug][i] = eigenerStein;\n\t\t\t\teigenerPunkt.setLocation(spielzug, i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "public Vrachtwagen(String merk, int bouwjaar, String kleur, double lading) {\r\n//\t\thaalt de variabelen op van de class voertuig\r\n\t\tsuper(merk, bouwjaar, kleur);\r\n//\t\tgeeft de lading een waarde \r\n\t\tthis.lading = lading;\r\n\t}", "public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}", "public abstract Koordinate schuss();", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "protected void doorschuiven(Groepen wedstrijdGroepen, Groepen aanwezigheidsGroepen) {\r\n int aantal = bepaalAantalDoorschuiven(0, aanwezigheidsGroepen.getPeriode(), aanwezigheidsGroepen.getRonde());\r\n \tlogger.log(Level.INFO, \"Aantal door te schuiven spelers \" + aantal);\r\n // Doorloop hoogste groep tot ��n na laagste groep. In de laagste groep\r\n // kunnen geen spelers inschuiven\r\n \t// Let op: iterator gaat op array index en NIET op groepID\r\n ArrayList<Groep> groepen = wedstrijdGroepen.getGroepen();\r\n// for (int i = 0; i < groepen.size() - 1; ++i) {\r\n for (int i = 0; i < wedstrijdGroepen.getAantalGroepen() - 1; ++i) {\r\n aantal = bepaalAantalDoorschuiven(groepen.get(i).getNiveau(), aanwezigheidsGroepen.getPeriode(), aanwezigheidsGroepen.getRonde());\r\n \tlogger.log(Level.INFO, \"Doorschuiven van groep \" + groepen.get(i+1).getNaam() + \" naar \" + groepen.get(i).getNaam() + \" n=\" + aantal);\r\n ArrayList<Speler> naarGroep = groepen.get(i).getSpelers();\r\n if (naarGroep == null) naarGroep = new ArrayList<>();\r\n ArrayList<Speler> vanGroep = groepen.get(i + 1).getSpelers();\r\n // Als laatste speler niet aanwezig, dan ��n minder doorschuiven\r\n Speler laatste = groepen.get(i + 1).getSpelerByID(aantal);\r\n if (aantal > 2 && laatste == null) aantal--;\r\n\r\n for (int j = 1; j <= aantal; ++j) {\r\n Speler s = groepen.get(i + 1).getSpelerByID(j);\r\n \tlogger.log(Level.FINE, \"Speler : \" + (s != null ? s.getNaam() : \"null\"));\r\n if ((s != null) && s.isAanwezig()) {\r\n if ((j == aantal) && (aantal == 1)) {\r\n // Alleen doorschuiven als speler 1 niet meer ingehaald kan worden\r\n Speler s2 = groepen.get(i + 1).getSpelerByID(2);\r\n\t\t\t\t\t\tif (!IJCController.c().laasteRondeDoorschuivenAltijd) {\r\n\t\t\t\t\t\t\tif ((s2 != null) && (s.getPunten() > (s2.getPunten() + 4))) {\r\n\t\t\t\t\t\t\t\tlogger.log(Level.FINE, \"Speler doorgeschoven, niet meer in te halen \");\r\n\t\t\t\t\t\t\t\tnaarGroep.add(new Speler(s));\r\n\t\t\t\t\t\t\t\tvanGroep.remove(s);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n } else if (j == aantal) {\r\n if (naarGroep.size() % 2 != 0) {\r\n \tlogger.log(Level.FINE, \"Speler doorgeschoven, laatste doorschuiver maar door om even aantal \");\r\n naarGroep.add(new Speler(s));\r\n vanGroep.remove(s);\r\n }\r\n } else {\r\n \tlogger.log(Level.FINE, \"Speler doorgeschoven, niet laatste dus altijd\");\r\n naarGroep.add(new Speler(s));\r\n vanGroep.remove(s);\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n }", "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "private UsineJoueur() {}", "public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}", "public void sendeSpielStarten();", "public void keyPressed(KeyEvent e) {\n\t\t// Aktuelle Position des Spielers\n\t\tint xPos = spieler.getXPos();\n\t\tint yPos = spieler.getYPos();\n\n\t\t// Frage Tastatureingaben auf den Pfeiltasten ab.\n\t\t// Es wird geprueft, ob der naechste Schritt zulaessig ist.\n\t\t// Bleibt die Figur innerhalb der Grenzen des Arrays?\n\t\t// Wenn ja, ist das naechste Feld begehbar?\n\t\t// Falls beides \"wahr\" ist, dann gehe den naechsten Schritt\n\t\tif (!spielende) {\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_UP) {\n\t\t\t\tif (yPos > 0 && !(level[xPos][yPos - 1] instanceof Wand))\n\t\t\t\t\tspieler.hoch();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_DOWN) {\n\t\t\t\tif (yPos < HEIGHT - 1 && !(level[xPos][yPos + 1] instanceof Wand))\n\t\t\t\t\tspieler.runter();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_LEFT) {\n\t\t\t\tif (xPos > 0 && !(level[xPos - 1][yPos] instanceof Wand))\n\t\t\t\t\tspieler.links();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n\t\t\t\tif (xPos < WIDTH - 1 && !(level[xPos + 1][yPos] instanceof Wand))\n\t\t\t\t\tspieler.rechts();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_Q) {\n\t\t\t\tMonster m = spieler.angriffsMonster();\n\t\t\t\tif (m != null)\n\t\t\t\t\tm.changeHealth(-BOX / 4);\n\t\t\t// B f�r 'Heiltrank benutzen'\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_B){\n\t\t\t\tint change = spieler.benutzeHeiltrank();\n\t\t\t\t// Heilungseffekt wird verbessert, falls neue Monster durch das Aufheben des Schl�ssels ausgel�st wurden\n\t\t\t\tif (spieler.hatSchluessel())\n\t\t\t\t\tspieler.changeHealth((int)(change*1.5));\n\t\t\t\telse\n\t\t\t\t\tspieler.changeHealth((int)(change*0.5));\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\n\t\tif (e.getKeyCode() == KeyEvent.VK_SPACE) {\n\t\t\t// Schluessel aufnehmen\n\t\t\tif (level[spieler.getXPos()][spieler.getYPos()] instanceof Schluessel) {\n\t\t\t\tspieler.nimmSchluessel();\n\t\t\t\tlevel[spieler.getXPos()][spieler.getYPos()] = new Boden();\n\t\t\t}\n\t\t\t// Heiltrank aufnehmen\n\t\t\telse if (level[spieler.getXPos()][spieler.getYPos()] instanceof Heiltrank) {\n\t\t\t\tspieler.nimmHeiltrank((Heiltrank) level[spieler.getXPos()][spieler.getYPos()]);\t\t\n\t\t\t\tlevel[spieler.getXPos()][spieler.getYPos()] = new Boden();\n\t\t\t}\n\t\t\t// Schluessel benutzen\n\t\t\tif (level[spieler.getXPos()][spieler.getYPos()] instanceof Tuer) {\n\t\t\t\tif (!((Tuer) level[spieler.getXPos()][spieler.getYPos()]).istOffen() && spieler.hatSchluessel()) {\n\t\t\t\t\t((Tuer) level[spieler.getXPos()][spieler.getYPos()]).setOffen();\n\t\t\t\t\t// Nach dem Oeffnen der Tuer ist der Schluessel wieder weg\n\t\t\t\t\tspieler.entferneSchluessel();\n\t\t\t\t\tif (currentLevel < MAXLEVEL)\n\t\t\t\t\t\tnextLevel();\n\t\t\t\t\telse {\n\t\t\t\t\t\tspielende = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "private SolmuKaksiKolme succSolmu2(SolmuKaksiKolme s) {\n //seuraaja ei tarpeen\n if (s.getOikea() == null) {\n return null;\n }\n\n SolmuKaksiKolme it = s.getOikea();\n\n while (it.getVasen() != null) {\n it = it.getVasen();\n }\n return it;\n }", "boolean EsHemisferioSur()\r\n {\r\n if (getLat() < 29.46)\r\n return true;\r\n else\r\n return false;\r\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "public void startPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [START]\");\n\t\tsetzeSchiffe = true;\n\t\t//Die schiffe festlegen\n\t\tanzahlschiffe = ships.length;\n\t}", "private void prepare_3_warten_auf_start() {\n if (stopBecause_wartenAufStart() ) {\n this.zeitgeber.stopGame(\"spielzeit des vorbereitenden ist abgelaufen\");\n }\n \n // zeit wieder starten, falls vorbereiten leer ist oder eine zeile mit start in der zukunft hat, falls evnet auf pause ist\n if (jetzt.isUnterbruch() && ! stopBecause_zumVorbereiten()) {\n if (this._3_vorbereitet.isEmpty() || jetzt.getSpielZeit().isBefore(new DateTime(_3_vorbereitet.get(0).getStart()))) {\n this.zeitgeber.startGame(0, \"liste mit vorbereiteten ist wieder leer\");\n }\n }\n }", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public void skystonePos4() {\n }", "public void maakNieuweDoolhof()\n {\n /*hzs: hoek zonder schat\n hms: hoek met schat\n r: recht stuk\n t: T-kruispunt met schat*/\n //vaste aantallen vakjes\n int hzs = 10, hms = 6, r = 11, t = 6;\n List<String> schatten = sch.getSchatten();\n List<String> tSchatten = schatten.subList(12, 18);\n Collections.shuffle(tSchatten);\n List<String> hSchatten = schatten.subList(18, 24);\n Collections.shuffle(hSchatten);\n\n int hKaartTeller = 0, tKaartTeller = 0;\n\n //losse vakken random invullen\n //oneven rijen\n for (int h = 0; h <= 6; h += 2)\n {\n for (int i = 1; i <= 5; i += 2)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[h][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[h][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n\n //even rijen\n for (int j = 1; j <= 5; j += 2)\n {\n for (int i = 0; i <= 6; i++)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[j][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[j][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n }", "private void stopPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [ENDE]\");\n\t\tthis.setzeSchiffe = false;\n\t}", "@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }", "public void verzinsen(double zinssatz){\n stand = stand-(stand*zinssatz);\n }", "public void test1(){\r\n\t\tZug zug1 = st.zugErstellen(3, 2, \"Zug 1\");\r\n\t\tst.blockFahren();\r\n\t\tst.blockFahren();\r\n\t\tZug zug2 = st.zugErstellen(2, 3, \"Zug 2\");\r\n\t\tg.textAusgeben(\"Position Zug1: \"+zug1.getPosition()+\"\\n\"+\"Position Zug2: \"+zug2.getPosition());\r\n\t\tst.fahren();\r\n\t}" ]
[ "0.6908611", "0.6827568", "0.67760354", "0.6698229", "0.6592855", "0.65922856", "0.65907085", "0.65304685", "0.64955366", "0.6401194", "0.6370765", "0.6327149", "0.6301697", "0.62902427", "0.626313", "0.61787695", "0.615543", "0.61546814", "0.60689235", "0.6054361", "0.6013971", "0.59851027", "0.5979851", "0.595892", "0.59483767", "0.5930289", "0.59271705", "0.59260184", "0.5910279", "0.59096205", "0.5904407", "0.59022856", "0.58303255", "0.5791983", "0.5781555", "0.5769615", "0.57561827", "0.575093", "0.57482105", "0.5746106", "0.5739994", "0.57393545", "0.573312", "0.57276833", "0.5713398", "0.5694909", "0.5670039", "0.565257", "0.5648316", "0.56469953", "0.5633293", "0.5625647", "0.5601351", "0.55919147", "0.5587568", "0.5582526", "0.55763096", "0.55525625", "0.55495566", "0.5515264", "0.5506707", "0.5490965", "0.54869837", "0.5482788", "0.5475206", "0.54720175", "0.5462052", "0.54605013", "0.54538536", "0.54511046", "0.54506886", "0.54306245", "0.54297566", "0.5406302", "0.54034626", "0.5399931", "0.53991103", "0.53859544", "0.53721505", "0.53715366", "0.53632724", "0.5356176", "0.53487206", "0.53464794", "0.53430045", "0.5338684", "0.53376544", "0.5336071", "0.5334164", "0.53295565", "0.53231436", "0.53221005", "0.5320576", "0.53180474", "0.5309987", "0.5309443", "0.53078884", "0.53057164", "0.5304219", "0.52986836", "0.5289755" ]
0.0
-1
Laesst den Spieler verlieren, fragt nach Neustart bzw. Beenden.
public void lostGame(){ System.out.println("Schade, du hast verloren. Möchtest du es noch einmal versuchen?"); if(!singleplayer){ if(player.getLifes() == 0){ System.out.println("Spieler 2 gewinnt!"); }else{ System.out.println("Spieler 1 gewinnt!"); } } stopGame(); started = false; spiel_status = 0; paintMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielerWeg(String spieler);", "public void sendeSpielfeld();", "public void sendeNeuerSpieler(String spieler);", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public Spielflaeche getSpielflaeche() {return spielflaeche;}", "public Spieler(String spielfigur) {\n\n this.kontostand = 30000;\n this.spielfigur = spielfigur;\n this.istGefängnis = false;\n\n liste.put(\"braun\", braun);\n liste.put(\"hellblau\", hellblau);\n liste.put(\"pink\", pink);\n liste.put(\"orange\", orange);\n liste.put(\"rot\", rot);\n liste.put(\"gelb\", gelb);\n liste.put(\"grün\", grün);\n liste.put(\"duneklblau\", dunkelblau);\n liste.put(\"bahnhoefe\", bahnhoefe);\n liste.put(\"werke\", werke);\n felderInBesitz = new ArrayList<>();\n\n }", "public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }", "public void addSteinZuSpielFeld(Stein pStein, int spielerIndex)\n {\n if (!checkLegbarkeit(pStein))\n return;\n //System.out.println(\"QuirkelSpiel: \"+(System.currentTimeMillis() - start) + \" ms for Legbarkeitscheck!\");\n\n\n\n if (aktiveZeile ==null && aktiveSpalte ==null){\n aktiveZeile = pStein.gibZeile();\n aktiveSpalte = pStein.gibSpalte();\n }\n else if (aktiveZeile!=null && aktiveSpalte!=null){\n if (pStein.gibZeile()!=aktiveZeile && pStein.gibSpalte()!=aktiveSpalte) //Stein muss in gleiche Zeile oder Spalte gelegt werden\n return;\n else if (pStein.gibZeile()==aktiveZeile)\n aktiveSpalte = null;\n else\n aktiveZeile =null;\n }\n else if (aktiveZeile!=null){\n if (pStein.gibZeile()!=aktiveZeile) //Stein muss in die gleiche Zeile gelegt werden\n return;\n }\n else\n if (pStein.gibSpalte()!=aktiveSpalte) //Stein muss in die gleiche Spalte gelegt werden\n return;\n\n if (aktiveFarbe ==null && aktivesSymbol ==null){\n aktiveFarbe = pStein.gibFarbString();\n aktivesSymbol = pStein.gibSymbolString();\n }\n else if (aktiveFarbe!=null && aktivesSymbol!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe) && !pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol oder gleiche Farbe haben\n return;\n else if (pStein.gibFarbString().equals(aktiveFarbe))\n aktivesSymbol = null;\n else\n aktiveFarbe =null;\n }\n else if (aktiveFarbe!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe)) //Stein muss gleiche Farbe haben\n return;\n }\n else\n if (!pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol haben\n return;\n\n\n spielfeld.append(pStein); // legt ihn auf das Spielfeld\n symbolMap.get(pStein.gibSymbol()).add(pStein);\n farbenMap.get(pStein.gibSymbol()).add(pStein);\n\n int punkte=0;\n int zwischenPunkte =horizontalePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n zwischenPunkte =senkrechtePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n\n if (punkte==0)\n punkte = 1; //gib auf alle Faelle einen Punkt\n\n while (spielerRing.getContent().gibIndex()!=spielerIndex)\n spielerRing.next();\n\n Spieler spieler = this.spielerRing.getContent();\n spieler.legeStein(pStein,punkte);\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + pStein.toString() + \" gelegt.\");\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + punkte + \" Punkte bekommen.\");\n\n\n //Wiederauffuellen in der gleichen Runde, wenn alle Steine abgelegt worden sind\n if (spieler.gibAnzahlSteine()==0 && beutel.gibAnzahl()>0){\n while (spieler.gibAnzahlSteine()<6 && beutel.gibAnzahl()>0){\n spieler.addStein(beutel.gibStein());\n }\n }\n\n }", "protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\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\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "public void fuehreNaechstenZugAus(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(\"_\")){\n\t\t\tspielfeld[spalte][zeile] = spieler;\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "public int bewerten(String spieler){\n\t\treihenPruefen pruefen = new reihenPruefen();\n\t\tString gegner;\n\t\t\n\t\tif(spieler.equals(\"o\")){\n\t\t\tgegner = \"x\";\n\t\t}else{\n\t\t\tgegner = \"o\";\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, spieler)){\n\t\t\treturn 4;\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, gegner)){\n\t\t\treturn -4;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, spieler)){\n\t\t\treturn 3;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, gegner)){\n\t\t\treturn -3;\n\t\t}\n\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, spieler)){\n\t\t\treturn 2;\n\t\t}\n\t\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, gegner)){\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "public Pont ertesit(Pont innenlep, Szereplo sz);", "private void poetries() {\n\n\t}", "public KI(Spieler spieler, Spiel spiel){\r\n\t\tif (spieler == null) throw new RuntimeException(\"Spieler muss vorhanden sein!\");\t\r\n\t\tthis.spieler = spieler;\r\n\r\n\t\tif(spiel==null) throw new RuntimeException (\"Spiel sollte vorhanden sein\");\r\n\t\tthis.spiel=spiel;\r\n\r\n\t\thatUeberlauf=false;\r\n\t}", "public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}", "public Farbe letztesKamel();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\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\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public void starteSpiel(int pAnzahl){\n\n this.anzahl = pAnzahl;\n\n spielerRing = new Ring<>();\n for (int i = 0; i < pAnzahl; i++) {\n spielerRing.insert(new Spieler(i));\n }\n\n Spieler startSpieler = null;\n while (startSpieler==null) {\n\n //verteile Steine\n int count = 0;\n while (count < pAnzahl) {\n Spieler spieler = this.spielerRing.getContent();\n spieler.loescheAlleSteine();\n for (int i = 0; i < 6; i++) {\n spieler.addStein(beutel.gibStein());\n }\n this.spielerRing.next();\n count++;\n }\n\n //bestimme Startspieler\n int startWert = 0;\n count=0;\n while (count < pAnzahl) {\n Spieler spieler = this.spielerRing.getContent();\n int wert = spieler.gibStartWert();\n if (wert>startWert){\n startWert = wert;\n if (wert>2)\n startSpieler = spieler;\n }\n this.spielerRing.next();\n count++;\n }\n\n if (startSpieler!=null)\n startSpieler.setzeAktiv(true);\n }\n }", "private void nullstillFordeling(){\n int i = indeks;\n politi = -1;\n mafiaer = -1;\n venner = -1;\n mafia.nullstillSpesialister();\n spillere.tømTommeRoller();\n for (indeks = 0; roller[indeks] == null; indeks++) ;\n fordeling = null;\n }", "public AbstraktesSpielfeld getSpielfeld() {\n // Hier ein Spielfeld-Objekt erzeugen und zurückliefern.\n return new Spielfeld();\n }", "public void besetze(int spalte, int spieler)\n\t{\n\t\tswitch (spalte)\n\t\t{\n\t\tcase 0:\n\t\t\t_spalte0 = spieler;\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\t_spalte1 = spieler;\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\t_spalte2 = spieler;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(String.valueOf(spalte));\n\t\t}\n\t}", "@Override\r\n\tpublic String Land() {\n\t\treturn \"El Helicoptero esta Aterrizando\";\r\n\t}", "@Before\r\n\tpublic void erstelleSUT() {\n\t\tSpiel spiel = new Spiel();\r\n\r\n\t\t// Für jeden Spieler eine Unternehmenskette, damit eine\r\n\t\t// Konkurrenzsituation entsteht\r\n\t\tukette = new Unternehmenskette(\"KetteNummer1\");\r\n\t\tukette1 = new Unternehmenskette(\"KetteNummer2\");\r\n\t\t// Es werden für Unternehmenskette ein Report erstellt. Pro Runde\r\n\t\t// brauchen wir eigentlich ein Report für jede Kette.\r\n\t\tReport report = new Report(1, ukette);\r\n\t\tReport report1 = new Report(1, ukette1);\r\n\t\tukette.hinzufuegenReport(report);\r\n\t\tukette1.hinzufuegenReport(report1);\r\n\t\t// Dem Spiel werden die Unternehmensketten zugeordnet\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette);\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette1);\r\n\t\t// Ein Standort, an dem die Ketten konkurrieren sollen, wird angelegt\r\n\r\n\t\t// für den Kunden:\r\n\t\t// Praeferenz für ALLE ist Qualität\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tstandort = new Standort(Standorttyp.Standort1);\r\n\t\tfil1 = new Filiale(standort, ukette);\r\n\t\tfil1.setzeMitarbeiter(1);\r\n\t\tfil1.initialisierenKapazitaet();\r\n\t\tfil2 = new Filiale(standort, ukette1);\r\n\t\tfil2.setzeMitarbeiter(1);\r\n\t\tfil2.initialisierenKapazitaet();\r\n\t\tZufall.setzeTestmodus(false);\r\n\t\tstandort.beeinflussenKunden(ukette, 1);\r\n\t\tstandort.beeinflussenKunden(ukette1, 1);\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tProdukt p1 = new Produkt(Produkttyp.TEE, 20);\r\n\t\tProdukt p2 = new Produkt(Produkttyp.KUCHEN, 10);\r\n\t\tp1.setzePreis(1);\r\n\t\tp1.setzeQualitaet(0.56);\r\n\t\tp2.setzePreis(1.2);\r\n\t\tp2.setzeQualitaet(0.6);\r\n\t\tukette.holeLager().einlagern(p1);\r\n\t\tukette.holeLager().einlagern(p2);\r\n\t\tp1.setzePreis(0.8);\r\n\t\tp1.setzeQualitaet(0.5);\r\n\t\tukette1.holeLager().einlagern(p1);\r\n\t\t// Kette1 bietet Kaffee (P:1; Q:0.56) und Kuchen (P:1.2; Q:0.6) an\r\n\t\t// Kette2 bietet Kaffe (P:0.8, Q:0.5) an.\r\n\t}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "private boolean analyseQueryBefore(Spieler spieler,Spieler spielerB, Board board) {\r\n\t\t// Switch mit der Spielphase des Spielers\r\n\t\tboolean back = false;\r\n\t\tswitch (spieler.getSpielPhase()) {\r\n\t\t\tcase 0: \t// Werte nur Regel 1 aus\r\n\t\t\t\t\t\tList<Stein> rueckgabe = this.logikCheck.sucheZweiInGleicherReihe(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!rueckgabe.isEmpty() && !rueckgabe.get(0).equals(new Stein(0,0,0, null))) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe.get(0));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 1:\t\tfor(Regel regel: uebergreifendeRegeln) {\r\n\t\t\t\t\t\t\tif(regel.getIfTeil().contains(\"eigene Steine\")) {\r\n\t\t\t\t\t\t\t\tList<Stein> getDataBack = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!getDataBack.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tStein stein = getDataBack.get(1);\r\n\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\tback = true;\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\t\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tList<Stein> zweiGegner = this.logikCheck.sucheZweiInGleicherReihe(spielerB.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!zweiGegner.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tList<Stein> result = this.logikCheck.sucheSteinInderNäheUmGegnerZuBlocken(zweiGegner, spieler);\r\n\t\t\t\t\t\t\t\t\tif(!result.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tStein stein = result.get(0);\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\t\tback = true;\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\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 2:\t\tList<Stein> rueckgabe2 = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\tif(!rueckgabe2.isEmpty()) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(0));\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(1));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault: break;\t\r\n\t\t}\r\n\t\treturn back;\r\n\t}", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public void trenneVerbindung();", "private void findeNachbarSteine(Stein pStein, java.util.List<Stein> pSteinListe, Richtung pRichtung){\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){ //Schleife ueber alle Steine des Spielfelds\n Stein stein = spielfeld.getContent();\n switch(pRichtung){\n case oben:\n if (pStein.gibZeile()==stein.gibZeile()+1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case links:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()+1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case unten:\n if (pStein.gibZeile()==stein.gibZeile()-1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case rechts:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()-1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n }\n spielfeld.next();\n }\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }", "private void analyseQuerySpielPhase0(Board board, Spieler spieler) {\r\n\t\tfor(RegelSpielPhase0 regel: spielphase0) {\r\n\t\t\tif(regel.getIfTeil().contains(\"Frei\") && !board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"Belegt\") && board.checkAufBelegtFeld(regel.getIfStein().convertToFeld()) &&\r\n\t\t\t\t\t\t!board.checkAufBelegtFeld(regel.getElseStein().convertToFeld())){\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"zufall\")) {\r\n\t\t\t\t\r\n\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\tthis.dataBack.add(regel.getIfStein());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\twhile(board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\t\tSystem.out.println(\"Eine zufällige Regel wurde erzeugt.\");\r\n\t\t\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\t\t\t\tregel.erzeugeZufällig();\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}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tvoid ligar() {\n\t\tsuper.ligar();\n\t\tSystem.out.println(\"Automovel ligando\");\n\t}", "public SPIEL( int breite , int hoehe , boolean punkteLinks , boolean punkteRechts , boolean maus ) \n {\n //Zaehler fuer Tick, Tack, ...\n zaehler = 0;\n anzeige = new AnzeigeE( breite , hoehe );\n //animationsManager = AnimationsManager.getAnimationsManager();\n \n //Punkteanzeige\n anzeige.punkteLinksSichtbarSetzen( punkteLinks );\n anzeige.punkteRechtsSichtbarSetzen( punkteRechts );\n \n //Maus ggf. aktivieren\n if ( maus ) \n {\n anzeige.klickReagierbarAnmelden( this , true );\n }\n \n //Tastatur\n anzeige.tastenReagierbarAnmelden( this );\n \n //Ticker\n //Alle 500 Millisekunden (=Jede halbe Sekunde) ein Tick\n //anzeige.tickerAnmelden(this, 500); \n }", "protected ElementDoppeltVerkettet gehe(int anzahlSchritte) {\n\t\tElementDoppeltVerkettet aktuell = this;\n\t\tint aS = anzahlSchritte;\n\t\tif (aS < 0) {\n\t\t\twhile (aS < 0 && aktuell.zurück != null) {\n\t\t\t\taktuell = aktuell.zurück;\n\t\t\t\taS++;\n\t\t\t}\n\t\t} else {\n\t\t\twhile (aS > 0 && aktuell.vor != null) { aktuell = (ElementDoppeltVerkettet) aktuell.vor; aS--; }\n\t\t}\n\t\tif (aS == 0) {\n\t\t\treturn aktuell;\n\t\t} else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Die Grenzen der Liste sollten überschritten werden\");\n\t\t}\n\t}", "@Override\r\n\tpublic void verteidigen(Lebewesen lebewesen) {\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public String gibZustand(){\n String out = anzahl+QwirkleServer.SEP;\n String aktiv = \"\";\n int[] punkte = new int[anzahl];\n String[] spielerSteine = new String[anzahl];\n String spielfeldString = \"\";\n\n //sammle Daten\n int count = 0;\n while (count<anzahl){\n Spieler spieler = this.spielerRing.getContent();\n if (spieler.istAktiv()) aktiv = spieler.gibIndex()+\"\";\n punkte[spieler.gibIndex()] = spieler.gibPunkteStand();\n spielerSteine[spieler.gibIndex()]=spieler.gibSteineString();\n this.spielerRing.next();\n count++;\n }\n\n if (spielEnde) aktiv = \"-1\";\n\n out += beutel.gibAnzahl()+QwirkleServer.SEP;\n out += aktiv;\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+punkte[i];\n\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+spielerSteine[i];\n\n\n spielfeld.toFirst();\n while(spielfeld.hasAccess()) {\n Stein stein = spielfeld.getContent();\n out += QwirkleServer.SEP + stein.toString();\n spielfeld.next();\n }\n\n return out;\n }", "public String limpiar()\r\n/* 509: */ {\r\n/* 510:529 */ return null;\r\n/* 511: */ }", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public void skrivUtSpiller() {\r\n\t\tSystem.out.println(\"Spiller \" + id + \": \" + navn + \", har \" + poengsum + \" poeng\");\r\n\t}", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "@Override\n\tpublic boolean livre() {\n\t\treturn true;\n\t}", "public Spiel(TerraSnowSpleef plugin) {\r\n this.plugin = plugin;\r\n joinCountdown = false;\r\n startCountdown = false;\r\n spiel = false;\r\n sf = new Spielfeld(plugin);\r\n spielerSet = new HashSet<>();\r\n }", "public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "void berechneFlaeche() {\n\t}", "public int miete(Spieler spieler){\n\t\treturn logik.miete(spieler);\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public Spieler(String name) {\n\t\tthis.name = name;\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setLetztesErgebnis(Spiel letztesErgebnis) {\n this.letztesErgebnis = letztesErgebnis;\n }", "public void besucherZuordnen(Spieler besucher) {\n\t\tboolean hinsetzen = false;\n\t\twhile (!hinsetzen) {\n\t\t\tfor (Tisch it : this.tische) {\n\t\t\t\tif (it.AnzahlTeilnehmer() < 8) {\n\t\t\t\t\tit.hinsetzen(besucher);\n\t\t\t\t\tbesucher.setTischNr(this.tische.indexOf(it));\n\t\t\t\t\tbesucher.setCasino(this);\n\t\t\t\t\tit.getDealer().setCasino(this);\n\t\t\t\t\thinsetzen = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hinsetzen) {\n\t\t\t\ttischAufstellen(new Tisch());\n\t\t\t}\n\t\t}\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public void reserveer() {\n System.out.println(\"de eigenaar van de auto is: \" + i.eigenaar());\n\n }", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "public void sendeBeenden();", "public void sendeSpielStarten();", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}", "@Override\r\n\tpublic String fly() {\n\t\tString volar = \"Puede volar\";\r\n\t\treturn volar;\r\n\t}", "public void validerSaisie();", "public void verwerkRijVoorKassa() {\r\n while(kassarij.erIsEenRij()) {\r\n Persoon staatBijKassa = kassarij.eerstePersoonInRij();\r\n kassa.rekenAf(staatBijKassa);\r\n }\r\n }", "public void laadSpelIn(int keuze){\r\n String naam = spellen[keuze-1][0];\r\n this.dc.selecteerSpel(naam);\r\n UC1.ua.geefSpelbordWeer();\r\n this.uc3.start();\r\n }", "public void print() {\r\n\t\tSystem.out.println(\"---Vrachtwagen---\");\r\n//\t\thaalt de print functie op van de class voertuigen\r\n\t\tsuper.print();\r\n//\t \tgeeft lading weer\r\n\t\tSystem.out.println(\"Lading: \" + lading);\r\n\t}", "private void heilenTrankBenutzen() {\n LinkedList<Gegenstand> gegenstaende = spieler.getAlleGegenstaende();\n for (Gegenstand g : gegenstaende) {\n if (g.getName().equalsIgnoreCase(\"heiltrank\")) {\n spieler.heilen();\n gegenstaende.remove(g);\n System.out.print(\"Heiltrank wird benutzt\");\n makePause();\n System.out.println(\"Du hast noch \" + zaehltGegenstand(\"heiltrank\") + \" Heiltranke!\");\n return;\n }\n }\n System.out.println(\"Du hast gerade keinen Heiltrank\");\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private boolean checkLegbarkeit(Stein pStein){\n\n if (spielfeld.isEmpty()) //erster Stein, alles ist moeglich\n return true;\n\n //liegt schon ein Stein im Feld?\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){\n Stein stein = spielfeld.getContent();\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte())\n return false;\n spielfeld.next();\n }\n\n //bestimme alle Nachbarsteine\n java.util.List<Stein> oben = new ArrayList<>();\n java.util.List<Stein> rechts = new ArrayList<>();\n java.util.List<Stein> links = new ArrayList<>();\n java.util.List<Stein> unten = new ArrayList<>();\n\n findeNachbarSteine(pStein,oben, Richtung.oben);\n findeNachbarSteine(pStein,rechts, Richtung.rechts);\n findeNachbarSteine(pStein,unten, Richtung.unten);\n findeNachbarSteine(pStein,links, Richtung.links);\n\n if (oben.size()==0 && rechts.size()==0 && links.size()==0 && unten.size()==0) //keine Nachbar, Stein ins Nirvana gelegt\n return false;\n\n if(pruefeAufKonflikt(pStein,oben)) return false;\n if(pruefeAufKonflikt(pStein,rechts)) return false;\n if(pruefeAufKonflikt(pStein,unten)) return false;\n if(pruefeAufKonflikt(pStein,links)) return false;\n\n return true;\n }", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "public void skystonePos4() {\n }", "public boolean siegMuster(int spalte, int zeile){\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile].equals(eigenerStein) && spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe links -1\n\t\ttry{\n\t\t\tif(spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe rechts +3\n\t\ttry{\n\t\t\tif(spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein) && spielfeld[spalte+3][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t//Pruefe senkrecht\n\t\ttry{\n\t\t\tif(spielfeld[spalte][zeile-3].equals(eigenerStein) && spielfeld[spalte][zeile-2].equals(eigenerStein) && spielfeld[spalte][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t//Pruefe waagerecht\n\t\t//Pruefe diagonal links -3\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile-3].equals(eigenerStein) && spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe diagonal links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein) && spielfeld[spalte+3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(eigenerStein) && spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+3][zeile-3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links hoch\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein) && spielfeld[spalte-3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile].equals(gegnerStein) && spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein) && spielfeld[spalte+3][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t//Pruefe senkrecht\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte][zeile-3].equals(gegnerStein) && spielfeld[spalte][zeile-2].equals(gegnerStein) && spielfeld[spalte][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe diagonal links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile-3].equals(gegnerStein) && spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -1\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein) && spielfeld[spalte+3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(gegnerStein) && spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+3][zeile-3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links hoch\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein) && spielfeld[spalte-3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\treturn false;\n\t}", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "private void aktualisierePreisanzeige(Set<Platz> plaetze)\r\n\t{\r\n\r\n\t\tif (istVerkaufenMoeglich(plaetze))\r\n\t\t{\r\n\t\t\tGeldbetrag preis = _vorstellung.getPreisFuerPlaetze(plaetze);\r\n\t\t\t_ui.getPreisLabel().setText(\"Gesamtpreis: \" + preis.toString() + \" €\");\r\n\t\t\t_preisFuerAuswahl = preis;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t_ui.getPreisLabel().setText(\"Gesamtpreis:\");\r\n\t\t}\r\n\t}", "public void einlesenUndInitialisieren() {\n\t\t\n\t\t// Willkommenstext\n\t\tSystem.out.println(\"Willkommen zur Caesar-Kodierung!\\nMoechten Sie einen Text chiffrieren oder dechiffrieren?\");\n\t\tboolean chiffrieren = getModus();\n\t\t\n\t\t// Schluessel-Eingabe\n\t\tif(chiffrieren) {\n\t\t\tSystem.out.println(\"Bitte geben sie jetzt den Schluessel ein, der zum Chiffrieren verwendet werden soll. Entscheiden Sie sich\\ndabei fuer eine Ganzzahl zwischen 1 und 25.\\nMoechten sie einen zufaelligen Schluessel, geben sie bitte '88' ein.\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Wenn sie den fuer die Dechiffrierung benoetigten Schluessel kennen, geben sie ihn jetzt bitte ein. Sollten\\nSie ihn nicht kennen, geben sie bitte die '88' ein.\");\n\t\t}\n\t\tbyte schluessel = getSchluessel();\n\t\t\n\t\t// Als naechstes die Datei-Namen\n\t\tboolean erfolgreichEingelesen = false;\n\t\tdo {\n\t\t\n\t\t\tString[] namen = getDateiNamen();\n\t\t\tString eingabeDatei = namen[0];\n\t\t\tString ausgabeDatei = namen[1];\n\t\t\n\t\t\t// Nun haben wir alles und leiten die Initialisierung ein\n\t\t\n\t\t\tthis.streamKoordinierung = new StreamKoordinierung(chiffrieren, schluessel, eingabeDatei, ausgabeDatei );\n\t\t\terfolgreichEingelesen = this.streamKoordinierung.liesStarttextAusDatei();\n\t\t\tif(!erfolgreichEingelesen) {\n\t\t\t\tSystem.out.println(\"\\n\\nBeim Lesen der Datei trat ein Fehler auf, bitte geben sie erneut die DateiNamen an!\\n\");\n\t\t\t}\n\t\t}\n\t\twhile(!erfolgreichEingelesen);\n\t\t\n\t\tSystem.out.println(\"\\nDie Eingabe lief erfolgreich ab, wir beginnen nun mit der De-/Chiffrierung.\");\n\t}", "public void test1(){\r\n\t\tZug zug1 = st.zugErstellen(3, 2, \"Zug 1\");\r\n\t\tst.blockFahren();\r\n\t\tst.blockFahren();\r\n\t\tZug zug2 = st.zugErstellen(2, 3, \"Zug 2\");\r\n\t\tg.textAusgeben(\"Position Zug1: \"+zug1.getPosition()+\"\\n\"+\"Position Zug2: \"+zug2.getPosition());\r\n\t\tst.fahren();\r\n\t}", "public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}" ]
[ "0.71752065", "0.7074419", "0.70725775", "0.67204684", "0.6706271", "0.66390723", "0.6627739", "0.65544784", "0.653244", "0.65010035", "0.6493695", "0.6314617", "0.62819684", "0.6277829", "0.6228848", "0.62245244", "0.62198025", "0.6173319", "0.61371803", "0.6119923", "0.6109362", "0.60763156", "0.6073227", "0.6044157", "0.602993", "0.60173553", "0.5960841", "0.5939636", "0.5934989", "0.59235877", "0.5915353", "0.5870637", "0.5864168", "0.58620197", "0.58614373", "0.58527714", "0.58459914", "0.5839752", "0.5832461", "0.5824305", "0.58050996", "0.5797302", "0.5794611", "0.5780979", "0.5774713", "0.5773962", "0.5772242", "0.57658607", "0.57657164", "0.573118", "0.5726851", "0.5712349", "0.57082236", "0.5704012", "0.570255", "0.5702169", "0.5696504", "0.5690496", "0.568527", "0.568199", "0.5681929", "0.5680854", "0.5673964", "0.5667506", "0.56548923", "0.5641275", "0.56396747", "0.56373614", "0.5624541", "0.56189066", "0.56025827", "0.5598652", "0.5577151", "0.5575341", "0.55727774", "0.55638254", "0.55600995", "0.5556675", "0.5551103", "0.5543701", "0.55354446", "0.55267984", "0.5524959", "0.5512373", "0.5502375", "0.54905856", "0.54890317", "0.54874575", "0.5481107", "0.5467903", "0.5464508", "0.5462451", "0.5461198", "0.5437622", "0.54354197", "0.54319865", "0.5430742", "0.54279256", "0.54254955", "0.5425481", "0.54247725" ]
0.0
-1
Prueft auf Tastendruecke und setzt entsprechende BooleanVariablen zur Steuerrung des Spielers, Aufrufen von Menues usw.
public void keyPressed(KeyEvent e){ if(chatmode){ char key = e.getKeyChar(); if(key == KeyEvent.VK_ENTER){ if(clientMode){ client.out.println("Chat"); client.out.flush(); if(!chatPane.getText().equals("")){ client.out.println(chatarea.getText()); chatPane.setText(chatPane.getText() + "\n" + "Ich: " + chatarea.getText()); }else{ client.out.println(chatarea.getText()); chatPane.setText("Ich: " + chatarea.getText()); } chatarea.setText(""); client.out.flush(); }else if(serverMode){ server.out.println("Chat"); server.out.flush(); if(!chatPane.getText().equals("")){ server.out.println(chatarea.getText()); chatPane.setText(chatPane.getText() + "\n" + "Ich: " + chatarea.getText()); }else{ server.out.println(chatarea.getText()); chatPane.setText("Ich: " + chatarea.getText()); } chatarea.setText(""); server.out.flush(); } } }else{ if (e.getKeyCode() == KeyEvent.VK_LEFT){ //linke Pfeiltaste left = true; if(clientMode){ client.out.println("left"); client.out.flush(); } if(serverMode){ server.out.println("left"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_RIGHT){ //rechte Pfeiltaste right = true; if(clientMode){ client.out.println("right"); client.out.flush(); } if(serverMode){ server.out.println("right"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_UP){ //obere Pfeiltaste up = true; if(clientMode){ client.out.println("up"); client.out.flush(); } if(serverMode){ server.out.println("up"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_DOWN){//untere Pfeiltaste down = true; if(clientMode){ client.out.println("down"); client.out.flush(); } if(serverMode){ server.out.println("down"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_ENTER){ enterShop = true; enterNPC = true; } if(e.getKeyCode() == KeyEvent.VK_S){ if(!multiplayer){ skillmode = true; skills(); } } if(e.getKeyCode() == KeyEvent.VK_T){ if(multiplayer){ chatmode = true; chat.setVisible(true); } } if(e.getKeyCode() == KeyEvent.VK_X){ if(clientMode){ client.out.println("Attack"); client.out.flush(); } if(serverMode){ server.out.println("Attack"); server.out.flush(); } attack = true; } if (e.getKeyCode() == KeyEvent.VK_C){ if(clientMode){ client.out.println("Magic"); client.out.flush(); } if(serverMode){ server.out.println("Magic"); server.out.flush(); } magic = true; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTallied(java.lang.Boolean value);", "public void set(boolean bol);", "public void setT(boolean t) {\n\tthis.t = t;\n }", "public void setDescTraslado(Boolean descTraslado){\n this.descTraslado = descTraslado;\n }", "public void setS ( boolean s ) {\n\n\tthis.s = s;\n }", "public void setActivo(boolean activo)\r\n/* 115: */ {\r\n/* 116:142 */ this.activo = activo;\r\n/* 117: */ }", "void setManualCheck (boolean value);", "void setBoolean(boolean value);", "public void setPredeterminado(boolean predeterminado)\r\n/* 159: */ {\r\n/* 160:274 */ this.predeterminado = predeterminado;\r\n/* 161: */ }", "public abstract void setCheck(Boolean check);", "void set(boolean value);", "public void set_boolean(boolean param) {\n this.local_boolean = param;\n }", "public void setDirezione(boolean direzione) {\n\r\n }", "protected GUIBooleanParameter(BooleanParameter parameter, SettingsPane sp) {\n\t\tsuper(parameter, sp);\n\t}", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}", "public void setIsGermplasmTemplate(boolean isGermplasmTemplate);", "public void testSetBoolean() {\n ValueString vs = new ValueString();\n\n vs.setBoolean(false);\n assertEquals(\"N\", vs.getString());\n vs.setBoolean(true);\n assertEquals(\"Y\", vs.getString());\n }", "public void setVar29(java.lang.Boolean value) {\n this.var29 = value;\n }", "public void method_9697(boolean var1) {\r\n this.field_9139 = var1;\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tboolean value = this.getValue();\n\t\t\n\t\tint bValue = Constants.isTrue;\n\t\tif(value) {\n\t\t\tbValue = Constants.isTrue;\n\t\t} else {\n\t\t\tbValue = Constants.isFalse;\n\t\t}\n\t\t//System.out.println(\"Huhu\");\n\t\tStaticHolder.area.setVariable(this.varNumber, bValue);\n\t\tStaticHolder.area.repaint();\n\t\tif(StaticHolder.area.isTrue()) {\n\t\t\tJOptionPane.showMessageDialog(StaticHolder.mainWindow, \"Herzlichen Glückwunsch! Sie haben gewonnen.\");\n\t\t}\n\t\t\n\t}", "public void setP(boolean p) {\n\tthis.p = p;\n }", "public void setActivo(boolean activo)\r\n/* 178: */ {\r\n/* 179:328 */ this.activo = activo;\r\n/* 180: */ }", "public void setIndicadorNuevo(boolean indicadorNuevo)\r\n/* 215: */ {\r\n/* 216:222 */ this.indicadorNuevo = indicadorNuevo;\r\n/* 217: */ }", "public void setBool(String parName, boolean parVal) throws HibException;", "public void onChanged(Boolean bool) {\n if (bool != null) {\n C41389o oVar = this.f107704a;\n C7573i.m23582a((Object) bool, \"it\");\n oVar.mo102021a(bool.booleanValue());\n }\n }", "void setSet(boolean set);", "public void presetTrueFalse() {\n pollOptions.clear();\n pollOptions.add(\"True\");\n pollOptions.add(\"False\");\n CreatePollLogic.reDrawOptionList(optionContainer, pollOptions, optionArea);\n }", "public void setVar2(java.lang.Boolean value) {\n this.var2 = value;\n }", "public void set()\r\n {\r\n isSet = true;\r\n }", "private CheckBoolean() {\n\t}", "private void setTagEditable(boolean bool){\n \t\teditTag.setVisible(!bool);\r\n \t\teditTag.setVisible(bool); //actually we want editTag visible false\r\n \t\t\r\n \t\tviewTag.setVisible(bool);\r\n \t\tviewTag.setVisible(!bool); //actually we want viewTag visible true\r\n \t}", "public void setIsSOTrx (boolean IsSOTrx);", "public void setActivo(boolean activo)\r\n/* 149: */ {\r\n/* 150:255 */ this.activo = activo;\r\n/* 151: */ }", "@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}", "public void setLocal(boolean isLocal);", "boolean isSetParlay();", "private void setAvailability(boolean b) {\r\n TextAnswer1.setVisible(b);\r\n TextAnswer2.setVisible(b);\r\n TextAnswer3.setVisible(b);\r\n\r\n TextAnswer1.setDisable(!b);\r\n TextAnswer2.setDisable(!b);\r\n TextAnswer3.setDisable(!b);\r\n\r\n LabelAnswer1.setVisible(b);\r\n LabelAnswer2.setVisible(b);\r\n LabelAnswer3.setVisible(b);\r\n\r\n // if not, we should not be able to write in the TextFields (I reset them to prevent errors)\r\n if (!b) {\r\n TextAnswer1.setText(\"\");\r\n TextAnswer2.setText(\"\");\r\n TextAnswer3.setText(\"\");\r\n }\r\n }", "boolean isSetValue();", "boolean isSetValue();", "public void setSpecial(boolean s)\r\n\t{\r\n\t\tspecial = s;\r\n\t}", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "@Override\n\tpublic void setTensileShows(Boolean paramBoolean)\n\t{\n\n\t}", "public Boolean() {\n\t\tsuper(false);\n\t}", "public abstract void setInput(boolean value);", "public void setValue(Boolean newLiteralValue) {\n\t\tsuper.setLiteralValue(newLiteralValue);\n\t}", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "@Override\n\tprotected void resetFalseClause() {\n\t\t\n\t}", "public void setValue(boolean value) {\n this.value = value;\n }", "public void onChanged(Boolean bool) {\n int i;\n if (bool != null) {\n LocationActivitySettingItem a = this.f107703a.mo102020a();\n C7573i.m23582a((Object) bool, \"it\");\n if (bool.booleanValue()) {\n i = 0;\n } else {\n i = 8;\n }\n a.setVisibility(i);\n }\n }", "void setInactive(boolean aInactive) {\n/* 4829 */ this.inactive = aInactive;\n/* */ }", "public void setAktif(java.lang.Boolean value) {\n this.aktif = value;\n }", "public void setMostrarBasesDetalle(boolean mostrarBasesDetalle)\r\n/* 597: */ {\r\n/* 598:648 */ this.mostrarBasesDetalle = mostrarBasesDetalle;\r\n/* 599: */ }", "public void setV(boolean v) {\n\tthis.v = v;\n }", "public void setAktiivisuus()\r\n\t{\r\n\t\tonAktiivinen = false;\r\n\t}", "void set(boolean on);", "private BooleanValueProvider() {\n this.state = true;\n }", "public void setMyBool(boolean myBoolIn) {\n myBool = myBoolIn;\n }", "public void setPPV(Boolean ppv)\n\t{\n\t\tthis.ppv = ppv;\n\t}", "static void setNotSaved(){saved=false;}", "public void setIndicadorFactura(Boolean indicadorFactura)\r\n/* 702: */ {\r\n/* 703:769 */ this.indicadorFactura = indicadorFactura;\r\n/* 704: */ }", "void setQuick(boolean quick);", "public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }", "public void setForua(boolean newValue);", "public void setVar38(java.lang.Boolean value) {\n this.var38 = value;\n }", "public void set_state(boolean etat) {\r\n this.etat = etat;\r\n }", "void setString(boolean string);", "public void setBoton() {\n SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);\n preferences.edit().putBoolean(PREFERENCE_ESTADO_BUTTON_SESION,checkBox.isChecked()).apply();\n\n }", "public void setVar101(java.lang.Boolean value) {\n this.var101 = value;\n }", "void setBox(boolean box);", "public void setzeNurRechtePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( false );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }", "public void setRight(boolean b){ right = b; }", "public void setRight(boolean b){ right = b; }", "void setVarReturn(boolean varReturn);", "public void setIsModifier(java.lang.Boolean value);", "protected void doSetValue(Object _value) {\n\t\tthis.value = (Boolean) _value;\n\t}", "public void setPiston(boolean x){\n armPiston.set(x);\n }", "public void setVar227(java.lang.Boolean value) {\n this.var227 = value;\n }", "public void setVar74(java.lang.Boolean value) {\n this.var74 = value;\n }", "private void stelDoelIn(boolean isDoel)\n {\n this.isDoel = isDoel; \n }", "public void setA ( boolean a ) {\n\n\tthis.a = a;\n }", "public void setParking(java.lang.Boolean value);", "public abstract void setBooleanImpl(String str, boolean z, Resolver<Void> resolver);", "public void method_103(boolean var1) {\n this.field_4130 = var1;\n }", "public void initializeBoolean(){\n\t\tisEndTime = false;\n\t\tdisplayTimeCount = true;\n\t\tmoveDistanceCount = true;\n\t\tguessCounter = true;\n\t\t\n\t\t\n\t\ttutorial1 = true;\n\t\ttutorial2 = false;\n\t\twin = false;\n\t\tgoLeft = false;\n\t\tgoRight = false;\n\t\tballShoot = false;\n\t\tactiveBall = false;\n\t}", "void setBoolean(String key, boolean val);", "public void method_2656(boolean var1) {\r\n super.method_2427(awt.field_4189);\r\n String[] var2 = class_752.method_4253();\r\n if(var2 != null) {\r\n this.field_2120 = var1;\r\n if(var1) {\r\n this.method_2430(1.0F);\r\n }\r\n }\r\n\r\n }", "default boolean trySetBoolean(boolean value) {\n if (this.isValidBoolean(value)) {\n this.setBoolean(value);\n return true;\n } else {\n return false;\n }\n }", "public void setEstaGuardada(boolean f){\n estaGuardada=f;\n }", "static void setNotEdit(){isEditing=false;}", "void setestadoRadio(boolean x){\n estadoRadio = x;\n }", "public void setO(boolean o) {\n\tthis.o = o;\n }", "abstract void setIsInit(boolean b);", "protected BooleanValue(Boolean bv) {\n boolValue = bv;\n }", "public void setValid(boolean value)\r\n {\r\n //Override this method in MediaItem object\r\n getSemanticObject().setBooleanProperty(swb_valid, value,false);\r\n }", "@Test\r\n\tpublic void testSetGetTravelNeeded() {\r\n\t\tteachu1.setTravelNeed(false);\r\n\t\tassertFalse(teachu1.getTravelNeed());\r\n\r\n\t\tteachu1.setTravelNeed(true);\r\n\t\tassertTrue(teachu1.getTravelNeed());\r\n\t}", "public void setVar56(java.lang.Boolean value) {\n this.var56 = value;\n }", "void setValidSettings(boolean valid);", "public void mo23014a(boolean z) {\n this.f26122b.edit().putBoolean(\"has.show.tut\", z).apply();\n }", "private void setFlag(Post p, String s, Boolean b) {\n p.setFlag(s, b);\n }" ]
[ "0.7041638", "0.6837038", "0.6732909", "0.6570722", "0.6534283", "0.6479565", "0.6461042", "0.6453415", "0.64322174", "0.6425082", "0.6412848", "0.6387492", "0.6315392", "0.6302407", "0.6300184", "0.62893754", "0.625681", "0.6249307", "0.6238451", "0.62370604", "0.62304735", "0.6229193", "0.6227684", "0.62169755", "0.6206759", "0.6201698", "0.61987907", "0.61785936", "0.61709994", "0.6159669", "0.61499786", "0.6141947", "0.6126332", "0.61099136", "0.61065674", "0.61062884", "0.60992837", "0.60826224", "0.608221", "0.608221", "0.60800916", "0.6065221", "0.60644615", "0.60416913", "0.6034551", "0.6029373", "0.60290504", "0.60160244", "0.6015541", "0.6015489", "0.60114765", "0.6006771", "0.60016716", "0.6000163", "0.5999584", "0.5992611", "0.59884465", "0.59883004", "0.5985138", "0.5983509", "0.59818494", "0.59804946", "0.59757274", "0.59729207", "0.59627813", "0.5956753", "0.59561074", "0.5954514", "0.5953037", "0.59486955", "0.59387255", "0.5934257", "0.5932279", "0.5932279", "0.5929888", "0.5929201", "0.59272295", "0.5923554", "0.59151596", "0.59150875", "0.59134316", "0.5912101", "0.5910358", "0.5909588", "0.59040046", "0.58990574", "0.58972", "0.58966106", "0.58898807", "0.58897394", "0.5889558", "0.5889317", "0.58891636", "0.58853", "0.58828616", "0.58690584", "0.5863561", "0.5857285", "0.5856518", "0.58561003", "0.58533263" ]
0.0
-1
Prueft auf Tastendruecke (Loslassen) und setzt entsprechende BooleanVariablen zur Steuerrung des Spielers, Aufrufen von Menues usw.
public void keyReleased(KeyEvent e){ if (e.getKeyCode() == KeyEvent.VK_LEFT){//linke Pfeiltaste left = false; if(clientMode){ client.out.println("notleft"); client.out.flush(); } if(serverMode){ server.out.println("notleft"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_RIGHT){//rechte Pfeiltaste right = false; if(clientMode){ client.out.println("notright"); client.out.flush(); } if(serverMode){ server.out.println("notright"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_UP){//obere Pfeiltaste up = false; if(clientMode){ client.out.println("notup"); client.out.flush(); } if(serverMode){ server.out.println("notup"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_DOWN){//untere Pfeiltaste down = false; if(clientMode){ client.out.println("notdown"); client.out.flush(); } if(serverMode){ server.out.println("notdown"); server.out.flush(); } } if(e.getKeyCode() == KeyEvent.VK_X){ attack = false; if(clientMode){ client.out.println("notattack"); client.out.flush(); } if(serverMode){ server.out.println("notattack"); server.out.flush(); } } if (e.getKeyCode() == KeyEvent.VK_C){ magic = false; if(clientMode){ client.out.println("notmagic"); client.out.flush(); } if(serverMode){ server.out.println("notmagic"); server.out.flush(); } } if(e.getKeyCode() == KeyEvent.VK_ENTER){ enterNPC = false; enterShop = false; } if (e.getKeyCode() == KeyEvent.VK_ESCAPE){//Escape zum B if(isStarted()){ stopGame(); paintMenu(); }else { setStarted(false); System.exit(0); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTallied(java.lang.Boolean value);", "public void setT(boolean t) {\n\tthis.t = t;\n }", "public void setDescTraslado(Boolean descTraslado){\n this.descTraslado = descTraslado;\n }", "public void set(boolean bol);", "public void setS ( boolean s ) {\n\n\tthis.s = s;\n }", "public void setIsGermplasmTemplate(boolean isGermplasmTemplate);", "void setManualCheck (boolean value);", "public void setVar29(java.lang.Boolean value) {\n this.var29 = value;\n }", "protected GUIBooleanParameter(BooleanParameter parameter, SettingsPane sp) {\n\t\tsuper(parameter, sp);\n\t}", "public void setPredeterminado(boolean predeterminado)\r\n/* 159: */ {\r\n/* 160:274 */ this.predeterminado = predeterminado;\r\n/* 161: */ }", "public void set_boolean(boolean param) {\n this.local_boolean = param;\n }", "public void setActivo(boolean activo)\r\n/* 115: */ {\r\n/* 116:142 */ this.activo = activo;\r\n/* 117: */ }", "void setBoolean(boolean value);", "private CheckBoolean() {\n\t}", "public void setIsSOTrx (boolean IsSOTrx);", "public abstract void setCheck(Boolean check);", "public void presetTrueFalse() {\n pollOptions.clear();\n pollOptions.add(\"True\");\n pollOptions.add(\"False\");\n CreatePollLogic.reDrawOptionList(optionContainer, pollOptions, optionArea);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tboolean value = this.getValue();\n\t\t\n\t\tint bValue = Constants.isTrue;\n\t\tif(value) {\n\t\t\tbValue = Constants.isTrue;\n\t\t} else {\n\t\t\tbValue = Constants.isFalse;\n\t\t}\n\t\t//System.out.println(\"Huhu\");\n\t\tStaticHolder.area.setVariable(this.varNumber, bValue);\n\t\tStaticHolder.area.repaint();\n\t\tif(StaticHolder.area.isTrue()) {\n\t\t\tJOptionPane.showMessageDialog(StaticHolder.mainWindow, \"Herzlichen Glückwunsch! Sie haben gewonnen.\");\n\t\t}\n\t\t\n\t}", "public void onChanged(Boolean bool) {\n if (bool != null) {\n C41389o oVar = this.f107704a;\n C7573i.m23582a((Object) bool, \"it\");\n oVar.mo102021a(bool.booleanValue());\n }\n }", "void set(boolean value);", "public void method_9697(boolean var1) {\r\n this.field_9139 = var1;\r\n }", "public Boolean() {\n\t\tsuper(false);\n\t}", "public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}", "public void setAktiivisuus()\r\n\t{\r\n\t\tonAktiivinen = false;\r\n\t}", "public void setDirezione(boolean direzione) {\n\r\n }", "@Override\n\tprotected void resetFalseClause() {\n\t\t\n\t}", "public void testSetBoolean() {\n ValueString vs = new ValueString();\n\n vs.setBoolean(false);\n assertEquals(\"N\", vs.getString());\n vs.setBoolean(true);\n assertEquals(\"Y\", vs.getString());\n }", "public void setVar2(java.lang.Boolean value) {\n this.var2 = value;\n }", "boolean isSetParlay();", "public void setP(boolean p) {\n\tthis.p = p;\n }", "public void setIndicadorNuevo(boolean indicadorNuevo)\r\n/* 215: */ {\r\n/* 216:222 */ this.indicadorNuevo = indicadorNuevo;\r\n/* 217: */ }", "@Override\n\tpublic void setTensileShows(Boolean paramBoolean)\n\t{\n\n\t}", "public void setLocal(boolean isLocal);", "public void setBool(String parName, boolean parVal) throws HibException;", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "private void stelDoelIn(boolean isDoel)\n {\n this.isDoel = isDoel; \n }", "public void setActivo(boolean activo)\r\n/* 178: */ {\r\n/* 179:328 */ this.activo = activo;\r\n/* 180: */ }", "public void setAktif(java.lang.Boolean value) {\n this.aktif = value;\n }", "public void set_state(boolean etat) {\r\n this.etat = etat;\r\n }", "public void setSpecial(boolean s)\r\n\t{\r\n\t\tspecial = s;\r\n\t}", "@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}", "boolean isSetLastrun();", "public void setzeNurRechtePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( false );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "public void setVar38(java.lang.Boolean value) {\n this.var38 = value;\n }", "public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "private void setAvailability(boolean b) {\r\n TextAnswer1.setVisible(b);\r\n TextAnswer2.setVisible(b);\r\n TextAnswer3.setVisible(b);\r\n\r\n TextAnswer1.setDisable(!b);\r\n TextAnswer2.setDisable(!b);\r\n TextAnswer3.setDisable(!b);\r\n\r\n LabelAnswer1.setVisible(b);\r\n LabelAnswer2.setVisible(b);\r\n LabelAnswer3.setVisible(b);\r\n\r\n // if not, we should not be able to write in the TextFields (I reset them to prevent errors)\r\n if (!b) {\r\n TextAnswer1.setText(\"\");\r\n TextAnswer2.setText(\"\");\r\n TextAnswer3.setText(\"\");\r\n }\r\n }", "public void initializeBoolean(){\n\t\tisEndTime = false;\n\t\tdisplayTimeCount = true;\n\t\tmoveDistanceCount = true;\n\t\tguessCounter = true;\n\t\t\n\t\t\n\t\ttutorial1 = true;\n\t\ttutorial2 = false;\n\t\twin = false;\n\t\tgoLeft = false;\n\t\tgoRight = false;\n\t\tballShoot = false;\n\t\tactiveBall = false;\n\t}", "boolean isSetStraight();", "void setSet(boolean set);", "public void method_2656(boolean var1) {\r\n super.method_2427(awt.field_4189);\r\n String[] var2 = class_752.method_4253();\r\n if(var2 != null) {\r\n this.field_2120 = var1;\r\n if(var1) {\r\n this.method_2430(1.0F);\r\n }\r\n }\r\n\r\n }", "public void setVar74(java.lang.Boolean value) {\n this.var74 = value;\n }", "boolean getBoolean();", "boolean getBoolean();", "public void setzeNurLinkePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( false );\n }", "public void setValue(Boolean newLiteralValue) {\n\t\tsuper.setLiteralValue(newLiteralValue);\n\t}", "public void setActivo(boolean activo)\r\n/* 149: */ {\r\n/* 150:255 */ this.activo = activo;\r\n/* 151: */ }", "public void onChanged(Boolean bool) {\n int i;\n if (bool != null) {\n LocationActivitySettingItem a = this.f107703a.mo102020a();\n C7573i.m23582a((Object) bool, \"it\");\n if (bool.booleanValue()) {\n i = 0;\n } else {\n i = 8;\n }\n a.setVisibility(i);\n }\n }", "public void setVar227(java.lang.Boolean value) {\n this.var227 = value;\n }", "public void setPiston(boolean x){\n armPiston.set(x);\n }", "public void setPeutTirer(boolean peutTirer) {\n this.peutTirer = peutTirer;\n }", "public void setVar182(java.lang.Boolean value) {\n this.var182 = value;\n }", "public Boolean getDescTraslado(){\n return this.descTraslado;\n }", "boolean isSetValue();", "boolean isSetValue();", "public void setVar218(java.lang.Boolean value) {\n this.var218 = value;\n }", "public void setVegallomas(boolean ertek)\r\n\t{\r\n\t\tvegallomas = ertek;\r\n\t}", "public void setMostrarBasesDetalle(boolean mostrarBasesDetalle)\r\n/* 597: */ {\r\n/* 598:648 */ this.mostrarBasesDetalle = mostrarBasesDetalle;\r\n/* 599: */ }", "static void setNotSaved(){saved=false;}", "public void mo23014a(boolean z) {\n this.f26122b.edit().putBoolean(\"has.show.tut\", z).apply();\n }", "public void setTruth(boolean truth) {\n this.truth = truth;\n }", "public void setVar101(java.lang.Boolean value) {\n this.var101 = value;\n }", "public void setNoGoZone(Boolean bool) {\r\n\t this.noGoZone = bool;\r\n\t }", "public void setIndicadorFactura(Boolean indicadorFactura)\r\n/* 702: */ {\r\n/* 703:769 */ this.indicadorFactura = indicadorFactura;\r\n/* 704: */ }", "private BooleanValueProvider() {\n this.state = true;\n }", "public void setEstaGuardada(boolean f){\n estaGuardada=f;\n }", "void setVarReturn(boolean varReturn);", "public void set()\r\n {\r\n isSet = true;\r\n }", "private void setTagEditable(boolean bool){\n \t\teditTag.setVisible(!bool);\r\n \t\teditTag.setVisible(bool); //actually we want editTag visible false\r\n \t\t\r\n \t\tviewTag.setVisible(bool);\r\n \t\tviewTag.setVisible(!bool); //actually we want viewTag visible true\r\n \t}", "public void setParking(java.lang.Boolean value);", "public void setUlaz(boolean value) {\n this.ulaz = value;\n }", "public boolean getBoolean();", "public void setVar56(java.lang.Boolean value) {\n this.var56 = value;\n }", "void setInactive(boolean aInactive) {\n/* 4829 */ this.inactive = aInactive;\n/* */ }", "public void setVar83(java.lang.Boolean value) {\n this.var83 = value;\n }", "public void setPPV(Boolean ppv)\n\t{\n\t\tthis.ppv = ppv;\n\t}", "public void setBoton() {\n SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);\n preferences.edit().putBoolean(PREFERENCE_ESTADO_BUTTON_SESION,checkBox.isChecked()).apply();\n\n }", "public void setVar236(java.lang.Boolean value) {\n this.var236 = value;\n }", "public void setForua(boolean newValue);", "public void setRight(boolean b){ right = b; }", "public void setRight(boolean b){ right = b; }", "public void setO(boolean o) {\n\tthis.o = o;\n }", "public boolean isSetT() {\n return this.t != null;\n }", "public void method_103(boolean var1) {\n this.field_4130 = var1;\n }", "public void setTypal(boolean value) {\n this.typal = value;\n }", "@Test\r\n\tpublic void testSetGetTravelNeeded() {\r\n\t\tteachu1.setTravelNeed(false);\r\n\t\tassertFalse(teachu1.getTravelNeed());\r\n\r\n\t\tteachu1.setTravelNeed(true);\r\n\t\tassertTrue(teachu1.getTravelNeed());\r\n\t}", "protected BooleanValue(Boolean bv) {\n boolValue = bv;\n }", "public boolean pobjeda() {\r\n\t\treturn !igrajPoslijePobjede && pobjeda;\t\r\n\t}", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "void setBox(boolean box);" ]
[ "0.7051014", "0.6685829", "0.6649942", "0.6602656", "0.64347684", "0.6315291", "0.6296534", "0.62835157", "0.62758756", "0.6233139", "0.6232086", "0.6231086", "0.62292993", "0.61878425", "0.61817276", "0.6167906", "0.6165541", "0.61576045", "0.61574376", "0.6149122", "0.6128926", "0.6121028", "0.61180866", "0.611439", "0.6073732", "0.60644513", "0.6056626", "0.6052172", "0.6051602", "0.60304296", "0.6029345", "0.60263085", "0.6026295", "0.6018711", "0.6016537", "0.60029626", "0.60010976", "0.59988195", "0.5991477", "0.5991001", "0.5984631", "0.5982594", "0.59808517", "0.5964367", "0.5961954", "0.5960856", "0.5959211", "0.59479153", "0.59429455", "0.5933869", "0.5918563", "0.59053993", "0.5895299", "0.58948237", "0.58948237", "0.58903205", "0.5889679", "0.58855605", "0.5881368", "0.58804", "0.58762074", "0.5873846", "0.58738446", "0.5872486", "0.5868259", "0.5868259", "0.5852704", "0.58487624", "0.5848112", "0.58466434", "0.5838406", "0.58345556", "0.5834155", "0.5833956", "0.58307546", "0.5830295", "0.582683", "0.58252615", "0.5823563", "0.5817746", "0.58141476", "0.5811939", "0.58077675", "0.5804335", "0.5793949", "0.57906246", "0.5788071", "0.5786073", "0.57837677", "0.5783665", "0.57832086", "0.57832086", "0.57816774", "0.5779543", "0.5775699", "0.57692903", "0.57644594", "0.5760795", "0.57602984", "0.5757812", "0.5753847" ]
0.0
-1
Gibt zurueck, ob das Spiel gestartet ist, oder nicht
public boolean isStarted(){ return started; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielStarten();", "boolean hasStart();", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean getStart() {\n\t\treturn true;\n\t}", "public boolean isFirstStart() {\n return !sp.contains(UUID_SP_KEY);\n }", "public boolean isStart() {\n\t\treturn start;\n\t}", "public boolean start() {\n return start(0);\n }", "public boolean isAutoStart()\n {\n return false;\n }", "public void startPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [START]\");\n\t\tsetzeSchiffe = true;\n\t\t//Die schiffe festlegen\n\t\tanzahlschiffe = ships.length;\n\t}", "public void starteStartCountdown() {\r\n\r\n if (spielerSet.size() >= plugin.getConfig().getInt(\"Mindest-Spieler\")) {\r\n plugin.broadcastMessage(\"SnowSpleef startet jetzt\");\r\n final ItemStack[] items = new ItemStack[2];\r\n items[0] = new ItemStack(Material.IRON_SPADE, 1, (short) -32768);\r\n items[1] = new ItemStack(Material.SNOW_BALL, plugin.getConfig().getInt(\"Schneeball-Anzahl\"));\r\n\r\n startCountdown = true;\r\n BukkitRunnable startCountdownTask;\r\n startCountdownTask = new BukkitRunnable() {\r\n int counter = plugin.getConfig().getInt(\"StartCountdown-Zeit\") * 20;\r\n Iterator<String> it = spielerSet.iterator();\r\n Player spieler;\r\n\r\n @Override\r\n public void run() {\r\n counter--;\r\n if (counter == 0) {\r\n plugin.broadcastMessage(ChatColor.GOLD + \"GO!\");\r\n startCountdown = false;\r\n plugin.getSpiel().starteSpiel();\r\n this.cancel();\r\n } else {\r\n if (counter % 20 == 0) {\r\n for (String spieler : spielerSet) {\r\n plugin.sendMessage(plugin.getServer().getPlayer(spieler), ChatColor.GOLD + \"\" + (counter / 20) + \"...\");\r\n }\r\n }\r\n }\r\n if (it.hasNext()) {\r\n spieler = plugin.getServer().getPlayer(it.next());\r\n spieler.setGameMode(GameMode.SURVIVAL);\r\n spieler.getInventory().clear();\r\n spieler.getInventory().setContents(items);\r\n spieler.teleport(plugin.getSpiel().getSpielfeld().zufaelligerSpawn());\r\n }\r\n }\r\n };\r\n startCountdownTask.runTaskTimer(plugin, 0L, 1L);\r\n } else {\r\n plugin.broadcastMessage(\"Zu wenige Spieler haben SnowSpleef betreten\");\r\n this.stoppeSpiel();\r\n }\r\n }", "public boolean start() {\n\t\treturn true;\n\t}", "private void prepare_3_warten_auf_start() {\n if (stopBecause_wartenAufStart() ) {\n this.zeitgeber.stopGame(\"spielzeit des vorbereitenden ist abgelaufen\");\n }\n \n // zeit wieder starten, falls vorbereiten leer ist oder eine zeile mit start in der zukunft hat, falls evnet auf pause ist\n if (jetzt.isUnterbruch() && ! stopBecause_zumVorbereiten()) {\n if (this._3_vorbereitet.isEmpty() || jetzt.getSpielZeit().isBefore(new DateTime(_3_vorbereitet.get(0).getStart()))) {\n this.zeitgeber.startGame(0, \"liste mit vorbereiteten ist wieder leer\");\n }\n }\n }", "public void start(){\r\n int keuze; \r\n try{\r\n laadSpellen();\r\n keuze = geefNaamIn();\r\n if(keuze>this.spellen.length){\r\n throw new IllegalArgumentException(\"\");\r\n }\r\n laadSpelIn(keuze);\r\n }catch(SpelerHeeftGeenOpgeslagenSpellenException she){\r\n throw she;\r\n }catch(IllegalArgumentException iae){\r\n System.err.println(r.getString(\"probeerOpnieuw\"));\r\n start();\r\n }\r\n }", "public boolean isStartable () ;", "public boolean getStart(){\n\t\treturn this.isStart;\n\t}", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "public boolean canStart(){\r\n try {\r\n return start.take();\r\n } catch (Exception e){\r\n return false;\r\n }\r\n }", "@Override\r\n\tpublic void tellStarting() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\t// Not used here\r\n\t}", "public void start(){\n return;\n }", "boolean isStarted();", "boolean isStarted();", "public int start() { return _start; }", "private boolean isStartable()\n {\n if (! isAlive() && nextStartTime <= System.currentTimeMillis())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean isStart () {\n if (this.equals(SquareType.START))\n return true;\n else\n return false;\n }", "IfStart createIfStart();", "protected abstract boolean start();", "public boolean isStarting() {\n\t\treturn starting;\n\t}", "private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}", "boolean isSetBegin();", "private void start() {\n\n\t}", "public void willStartOne() {\n startOne();\n }", "public boolean start();", "private void stopPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [ENDE]\");\n\t\tthis.setzeSchiffe = false;\n\t}", "protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\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\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}", "protected void restart()\r\n \t{\r\n \t\tspielen();\r\n \t}", "int getStart();", "boolean hasStartPosition();", "boolean hasStartPosition();", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "boolean hasStarted() {\n return includedLength > 0;\n }", "@Override\n public void start() {\n checkValue();\n super.start();\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public boolean hasStartPositions(int player)\r\n/* 399: */ {\r\n/* 400:470 */ ArrayList<StartPositionModel> models = getStartPositions(player);\r\n/* 401:472 */ for (StartPositionModel model : models) {\r\n/* 402:474 */ if ((model.isOpen()) && (getAgentOnTile(model.getX(), model.getY()) == null)) {\r\n/* 403:476 */ return true;\r\n/* 404: */ }\r\n/* 405: */ }\r\n/* 406:479 */ return false;\r\n/* 407: */ }", "@Override\n\tpublic void start() {\n\n\t}", "boolean isSetStaStart();", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n public boolean isEnding() {\n return false;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }", "public boolean Init(){\n\tend = true ;\n\treturn true ;\n }" ]
[ "0.7214485", "0.7173141", "0.67495656", "0.6466961", "0.64482784", "0.6409613", "0.6374407", "0.63575363", "0.63311607", "0.63165146", "0.6289491", "0.62844586", "0.6274213", "0.6223603", "0.6220682", "0.6155925", "0.60507685", "0.6038848", "0.60134983", "0.6008372", "0.6008372", "0.60071945", "0.5998796", "0.59850687", "0.5979414", "0.59719175", "0.59677035", "0.5927457", "0.5921891", "0.59007347", "0.589488", "0.5859754", "0.58555", "0.5823637", "0.5811658", "0.5811181", "0.57971066", "0.57971066", "0.5791935", "0.5759684", "0.5750412", "0.5750032", "0.57448494", "0.5744384", "0.57440156", "0.5742316", "0.5742316", "0.5742316", "0.5742316", "0.5730727", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698", "0.5728698" ]
0.5942837
27
Setzt das Spiel auf den Zustand started (wichtig, ob noch das Menue oder bereits das Spielfeld gezeichnet werden soll)
public void setStarted(boolean started){ this.started = started; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielStarten();", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "public void start(){\n\t\tsuper.start();\n\t}", "public void start() {\n\n\t}", "public start() {\n\t\tsuper();\n\t}", "private void start() {\n\n\t}", "public void starting();", "public void start() {\n\t\t\n\t}", "public void start() {\n\t\t\n\t}", "@Override\r\n\tpublic void start() {\n\t\tsuper.start();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "public void start(){\n }", "public void start()\n {\n }", "protected void start() {\n }", "void setZeroStart();", "public void start() {\n }", "@Override\n\tpublic void start() {\n\n\t}", "public void startup() {\n\t\tstart();\n }", "public void setStarted(boolean started){\n\t\tthis.started = started;\n\t}", "@Override\r\n\tpublic void tellStarting() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\t// Not used here\r\n\t}", "public void start() {\n\t\tSystem.out.println(\"BMW Slef-----start\");\n\t}", "@Override\n\tpublic void start() {\n\t}", "@Override\n\tpublic void start() {\n\t}", "@Override\r\n public void start() {\r\n }", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "public void start() {}", "public void start() {}", "@Override\n\tpublic void start()\n\t{\n\t\tarena = \"scenarios/boxpushing/arena/pioneer.controller.arena.txt\"; \n\n\t\t\n\t\tschedule.reset();\n\n\t\tsuper.start();\n\n\t\tresetBehavior();\n\n\t}", "public void start()\r\n\t{\n\tSystem.out.println(\"normal start method\");\r\n\t}", "public void start() {\n\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "void setStarted(boolean started) {\n hasStarted = started;\n }", "public void start()\n {}", "public void startPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [START]\");\n\t\tsetzeSchiffe = true;\n\t\t//Die schiffe festlegen\n\t\tanzahlschiffe = ships.length;\n\t}", "public void start(){\n this.speakerMessageScreen.printScreenName();\n mainPart();\n }", "@Override\n public void start() { }", "public void startup(){}", "@Override\n\tpublic void start() {\n\t\t\n\t\t_mode.init();\n\t\t\n\t\t_mode.start();\n\t}", "@Override\n public void start() {}", "public void setStart(int start) {\n this.start=start;\n }", "@Override\n\tvoid start() {\n\t\tSystem.out.println(\"starts\");\n\t}", "public void setStart(int start) {\r\n this.start = start;\r\n }", "@Override public void start() {\n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "public void start( )\n {\n // Implemented by student.\n }", "@Override\n public synchronized void start()\n {\n if (run)\n return;\n run = true;\n super.start();\n }", "@Override\n public void onStart(boolean fromBeginning)\n {\n if(fromBeginning)\n {\n System.out.println(mLabel + \" Started!\");\n }\n else\n {\n System.out.println(mLabel + \" resumed\");\n }\n }", "public void start(){\n\t\tstarted = true;\n\t\tlastTime = System.nanoTime();\n\t}", "private void prepare_3_warten_auf_start() {\n if (stopBecause_wartenAufStart() ) {\n this.zeitgeber.stopGame(\"spielzeit des vorbereitenden ist abgelaufen\");\n }\n \n // zeit wieder starten, falls vorbereiten leer ist oder eine zeile mit start in der zukunft hat, falls evnet auf pause ist\n if (jetzt.isUnterbruch() && ! stopBecause_zumVorbereiten()) {\n if (this._3_vorbereitet.isEmpty() || jetzt.getSpielZeit().isBefore(new DateTime(_3_vorbereitet.get(0).getStart()))) {\n this.zeitgeber.startGame(0, \"liste mit vorbereiteten ist wieder leer\");\n }\n }\n }", "public void start(int p) {\n\t\t_start.setEnabled(true);\n\t\tupdateToPlace(p);\n\t}", "@Override\n public void start() {\n }", "public void setStarted(Boolean started) {\n\t\tthis.started = started;\n\t}", "public void start() {\n startTime = System.currentTimeMillis();\n }", "public void setStart(int start) {\n\t\tthis.start = start;\n\t}", "@Override\n\tpublic void start() {\n\t\t\tSystem.out.println(\"BMW --- strart\");\n\t}", "void doManualStart();", "public void start() {\n\n System.out.println(\"Esto no debe salir por consola al sobreescribirlo\");\n\n }", "void start() {\n }", "@Override\n public void start() {\n smDrive.start();\n smArm.start();\n }", "public void start() {\n startTime = System.currentTimeMillis();\n }", "public void start() {\n\t\tSystem.out.println(\"开启系统1\");\r\n\t}", "@Override\n public void start() {\n System.out.println(\"smart life cycle start\");\n flag = true;\n }", "public void start() {\r\n message = \"Now I'm starting up...\";\r\n repaint();\r\n }", "public abstract void started();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start() {\n System.out.println(\"start\");\n }", "@Override\r\n\tpublic synchronized void start() {\n\t\tsuper.start();\r\n\t}", "@Override\n public void start() {\n System.out.println(\"The SportCar is started !\");\n }", "void start(String name);", "public void start(){\n\t\t//System.out.println(\"SimulationTime.start\");\n\t\tthis.running\t\t\t= true;\n\t\tthis.pause\t\t\t\t= false;\n\t}", "@Override\n protected void Start() {\n }", "public void start() {\n\t\tSystem.out.println(\"BMW.........start!!!.\");\n\t}", "public void start() {\n isStarted = true;\n clearBoard();\n newPiece();\n }", "@Override\n public void startup() {\n }", "public void start() {\n\r\n }", "public void markRunStart(){\r\n runStart = stepCount;\r\n }", "@Override\n public synchronized void start() {\n m_startTime = getMsClock();\n m_running = true;\n }", "public void start() {\n\t\tstack = new Stack<>();\t\t\n\t}" ]
[ "0.7391376", "0.6718855", "0.6558987", "0.64335954", "0.6427402", "0.6427322", "0.6421839", "0.6355617", "0.6355617", "0.6336985", "0.6295252", "0.6285938", "0.6277168", "0.6268194", "0.62654173", "0.6264494", "0.6264431", "0.6253609", "0.6242102", "0.62383556", "0.6222281", "0.6212136", "0.6212136", "0.6210886", "0.62083614", "0.62083614", "0.62083614", "0.62083614", "0.6195835", "0.6195835", "0.61925036", "0.6185266", "0.616339", "0.6162115", "0.6162115", "0.6162115", "0.6162115", "0.6162115", "0.6162115", "0.6162115", "0.615266", "0.61524504", "0.6146333", "0.61424553", "0.6142343", "0.614113", "0.6119825", "0.61196136", "0.6117194", "0.6104456", "0.6100925", "0.60879767", "0.606682", "0.606682", "0.606682", "0.6055301", "0.60500973", "0.6041305", "0.6016211", "0.60124", "0.6012053", "0.6010082", "0.6004187", "0.5993517", "0.5984982", "0.5983744", "0.5978558", "0.59691364", "0.59690565", "0.5957269", "0.5952939", "0.5952165", "0.59504795", "0.59365815", "0.5932103", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5925519", "0.5903051", "0.5893463", "0.5885311", "0.5883881", "0.58832574", "0.588268", "0.587932", "0.5878413", "0.58780736", "0.5872879", "0.58715063", "0.58703166", "0.58633786" ]
0.64027536
7
Setzt das aktuelle Level auf level
public void setLevel(int level){ this.level = level; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setLevel(int level){\r\n this.level = level;\r\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public void setLevel(String level);", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(Level level) { this.currentLevel = level; }", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public final void setLevel(final int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel ( int level ) {\n\t\texecute ( handle -> handle.setLevel ( level ) );\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(int value) {\n this.level = value;\n }", "public void setLevel(int v)\n {\n m_level = v;\n }", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "public void setLevel(int level) {\r\n\t\tthis.level = Math.max(0, level);\r\n\t}", "public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }", "public void setLevel(int level) {\n if (level < 1)\n throw new IllegalArgumentException(\"Cannot be a level less than 0\");\n\n this.level = level;\n }", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}", "private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static void setLevel(Level level) {\r\n\t\tGameplay.getInstance().setLevel(level);\r\n\t}", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }", "public void setCurrentLevel(Level level){\r\n currentLevel = level;\r\n currentLevel.setObserver(this);\r\n }", "public static void setLevel(int level) {\n Game.level = level;\n movingSpeed = level * 5;\n }", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public void setLevel(int level)\n {\n _level = level;\n if(_level < 0)\n _level = 0;\n\n calculateIndentationString();\n }", "public static void setLogLevel(int level) {\n mLogLevel = level;\n }", "public void setLevel(String value) {\n this.level = value;\n }", "public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}", "public static void setLevel(LogLevel lvl){\n updateLevel(lvl);\n if (txtAreaHandler!=null){\n txtAreaHandler.changeLevel(lvl);\n }\n }", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "static public void setLevel( byte level ) {\n Debug.level=level;\n }", "public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }", "private void changeLogLevel(String level){\n\n }", "public void setLevel(int aLevel, Context context){\n this.level = aLevel;\n writeFile(context);\n }", "public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000002;\n level_ = value;\n \n return this;\n }", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000001;\n level_ = value;\n \n return this;\n }", "public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void changeLevel(Level level) {\n gameState.setCurrentLevel(level);\n\n }", "private void setLevel(final org.apache.log4j.Level level) {\r\n if (log.isWarnEnabled()) {\r\n log.warn(\"LogUtil : level changed to : \" + level.toString());\r\n }\r\n\r\n for (final Log l : this.logs.values()) {\r\n setLevel(l, level);\r\n }\r\n }", "public void setLogLevel(int level) {\n logLevel = level;\n }", "public void setLogLevel(int level) {\n\t\t// only change if a valid level\n\t\tif (isValidLogLevel(level)) this.logLevel = level;\n\t}", "public void set_log_level(int level) {\r\n logLevel = Math.max(0,level);\r\n }", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000008;\n level_ = value;\n onChanged();\n return this;\n }", "private synchronized static void setLevelSync(final Logger.LEVEL desiredLevel) {\n if (null == desiredLevel) {\n return;\n }\n level = desiredLevel;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n prefs.edit ().putString (SHARED_PREF_KEY_level, level.toString ()).commit();\n // we still processed the setCapture call, but when SHARED_PREF_KEY_level_from_server is present, it is used for the level field value (it's an override)\n level = Logger.LEVEL.fromString(prefs.getString(SHARED_PREF_KEY_level_from_server, level.toString()));\n }\n }", "private static void setLoggingLevel(Level level) {\n ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) org.slf4j.LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME);\n root.setLevel(level);\n }", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000001;\n level_ = value;\n onChanged();\n return this;\n }", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "public void setLevel(double amt) {\n\t\tlevel += amt;\n\t}", "public synchronized void setLevel(final Level level) {\n if (level == getLevel()) {\n return;\n }\n Level actualLevel;\n if (level != null) {\n actualLevel = level;\n } else {\n final Logger parent = getParent();\n actualLevel = parent != null ? parent.getLevel() : privateConfig.loggerConfigLevel;\n }\n privateConfig = new PrivateConfig(privateConfig, actualLevel);\n }", "public void init(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "@Override\n public void setRunLevel(int level) {\n\n }", "public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }", "public abstract void setForceLevel(int level);", "public static void setMinimumLevel(Level level) {\n\t\tminLevel = level;\n\t}", "public static void setLogLevel(int level){\n\t\tswitch(level){\n\t\t\tcase ONE: \n\t\t\t\tLogger.getRootLogger().setLevel(Level.ALL); \n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.ALL\"); \n\t\t\t\tbreak;\n\t\t\tcase TWO: \n\t\t\t\tLogger.getRootLogger().setLevel(Level.DEBUG); \n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.DEBUG\"); \n\t\t\t\tbreak;\n\t\t\tcase THREE:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.ERROR);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.ERROR\");\n\t\t\t\tbreak;\n\t\t\tcase FOUR:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.FATAL);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.FATAL\");\n\t\t\t\tbreak;\n\t\t\tcase FIVE:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.INFO);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.INFO\");\n\t\t\t\tbreak;\n\t\t\tcase SIX:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.OFF); \n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.OFF\");\n\t\t\t\tbreak;\n\t\t\tcase SEVEN:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.WARN);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.WARN\");\n\t\t\t\tbreak;\n\t\t\tcase EIGHT:\n\t\t\t\tLogger.getRootLogger().setLevel(Level.TRACE);\n\t\t\t\tLOGGER.info(\"Logging Level set to LEVEL.WARN\");\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\tLogger.getRootLogger().setLevel(Level.ALL);\n\t\t\t\tLOGGER.info(\"Logging Level defaulted to LEVEL.ALL Please add parameter to properties file for custom logging.\");\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void setLvl(int lvl) {\r\n\t\tfor(int i = this.nivelArma; i < lvl; i++) {\r\n\t\t\tstatsLvlUp();\r\n\t\t\tnivelArma += 1;\r\n\t\t}\r\n\t}", "public void setLevel(int level) {\n filename = evaluate(getLat(), getLon(), level);\n }", "public void setLevelState(ExpertiseLevelState level) {\n this.levelState = level;\n }", "public void setEnabledLevel(int level)\r\n {\r\n this.enabled = level;\r\n }", "Log set(Level level) {\n\tthis.logging = level.compareTo(this.level) >= 0;\n\treturn this;\n }", "public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }", "void levelanzeigen(){\n if(level==levelold){\n //TODO HARDWARE this.systeminterface.tab.setcolor(255,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,level);\n }else{\n //TODO HARDWARE this.systeminterface.ledFeld.setcolor(0,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,levelold);\n //TODO HARDWARE this.systeminterface.ledFeld.setcolor(255,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,level);\n levelold=level;\n }\n //TODO HARDWARE this.systeminterface.ledFeld.show();\n //TODO HARDWARE this.systeminterface.ledFeld.setRotation(1);\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "public void setThreshold(Level level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "protected static void updateLevel(LogLevel lvl){\n //System.out.println(\"updateLevel: \"+lvl);\n Level level;\n \n EZLoggerManager.lvl = lvl;\n //adapted from http://blog.cag.se/?p=835\n Logger logger = Logger.getLogger(\"\");\n \n switch(lvl){\n case error:\n level = Level.SEVERE;\n break;\n case warn:\n level = Level.WARNING;\n break;\n case info:\n level = Level.INFO;\n break;\n case debug:\n default:\n level = Level.CONFIG;\n break;\n }\n logger.setLevel(level);\n Handler[] handlers = logger.getHandlers();\n for(Handler h : handlers){\n h.setLevel(level);\n }\n }", "protected void setLogLevel(int logLevel) \n\t{\n\t\tthis.logLevel = logLevel;\n\t}", "public void setThreshold(String level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "public void setLevels(String levels) {\r\n\t\tthis.levels = levels;\r\n\t}", "public void switchPowerLevel()\n {\n // If power level is 1, set this.powerLevel to 3 - 1 = 2.\n // If power level is 2, set this.powerLevel to 3 - 2 = 1.\n this.powerLevel = (3 - this.powerLevel);\n }", "public void setNextLevel(Level level){\r\n this.currentLevel.setNextLevel(level);\r\n }", "public void setCurrentLevel(String initCurrentLevel)\n {\n currentLevel = initCurrentLevel;\n }", "public void setActiveLevel(PlayerLevel toSet){\r\n\t\tthis.activeLevel = toSet;\r\n\t}", "public synchronized void setLevel(int actId) {\n/* 76 */ this.component.setLevels(actId);\n/* */ }", "public void setLevel(int slot, int level) {\r\n setLevel(slot, level, true);\r\n }", "public void setMlevel(Integer mlevel) {\n this.mlevel = mlevel;\n }", "private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }", "public void seteLevel(Integer eLevel) {\n this.eLevel = eLevel;\n }", "public Builder setLevelValue(int value) {\n level_ = value;\n onChanged();\n return this;\n }" ]
[ "0.8627079", "0.85264945", "0.8488674", "0.83787864", "0.836229", "0.83592093", "0.83124024", "0.83085555", "0.8291593", "0.8206421", "0.8178586", "0.8178586", "0.8175396", "0.81738865", "0.8070703", "0.806728", "0.80665314", "0.80665314", "0.80608124", "0.80596817", "0.80102146", "0.80102146", "0.80102146", "0.80102146", "0.80102146", "0.79780596", "0.7971074", "0.79363596", "0.791945", "0.7908448", "0.7901427", "0.7895546", "0.7855082", "0.78056955", "0.77978337", "0.7692883", "0.76819485", "0.76819485", "0.7620123", "0.7609637", "0.75943613", "0.7578104", "0.7522049", "0.74927807", "0.74908763", "0.7467178", "0.745225", "0.7427207", "0.74225914", "0.7384982", "0.7290296", "0.7246303", "0.7237717", "0.72304803", "0.72011375", "0.71993285", "0.71719664", "0.7171861", "0.7158711", "0.7157576", "0.7151601", "0.71380615", "0.71275294", "0.711514", "0.71146303", "0.7091965", "0.7091965", "0.7091965", "0.7091965", "0.7052745", "0.70469725", "0.70249426", "0.7014833", "0.7010949", "0.69869936", "0.69774956", "0.69757336", "0.6961622", "0.69260293", "0.69206756", "0.6920019", "0.69166106", "0.6881826", "0.68682706", "0.68669635", "0.68625414", "0.6860002", "0.67767024", "0.67539006", "0.6753222", "0.6743166", "0.67338127", "0.67302996", "0.6725901", "0.67179", "0.67111886", "0.67091113", "0.6690769", "0.6683201", "0.6664816" ]
0.8222834
9